1
// GtkSharp.Generation.ChildProperty.cs - GtkContainer child properties
3
// Copyright (c) 2004 Novell, Inc.
5
// This program is free software; you can redistribute it and/or
6
// modify it under the terms of version 2 of the GNU General Public
7
// License as published by the Free Software Foundation.
9
// This program is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
// General Public License for more details.
14
// You should have received a copy of the GNU General Public
15
// License along with this program; if not, write to the
16
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
// Boston, MA 02111-1307, USA.
20
namespace GtkSharp.Generation {
23
using System.Collections;
27
public class ChildProperty : Property {
29
public ChildProperty (XmlElement elem, ClassBase container_type) : base (elem, container_type) {}
31
protected override string PropertyAttribute (string qpname) {
32
return "[Gtk.ChildProperty (" + qpname + ")]";
35
protected override string RawGetter (string qpname) {
36
return "parent.ChildGetProperty (child, " + qpname + ")";
39
protected override string RawSetter (string qpname) {
40
return "parent.ChildSetProperty(child, " + qpname + ", val)";