[gtkmm] Box: Wrap child properties
- From: Juan R. Garcia Blanco <juanrgar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Box: Wrap child properties
- Date: Tue, 29 Jul 2014 18:32:12 +0000 (UTC)
commit a029273edda757f9187bc10b28969d79198d21f2
Author: Juan R. GarcĂa Blanco <juanrgar gmail com>
Date: Tue Jul 29 18:02:11 2014 +0200
Box: Wrap child properties
* gtk/src/gtk_signals.defs: Add definitions for "expand",
"fill", "padding", "pack-type", and "position" child
properties.
* gtk/src/box.hg: Add wrappers for the aforementioned child
properties.
* See https://bugzilla.gnome.org/show_bug.cgi?id=140515
gtk/src/box.hg | 6 ++++++
gtk/src/gtk_signals.defs | 45 +++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 51 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/box.hg b/gtk/src/box.hg
index 9592659..7113885 100644
--- a/gtk/src/box.hg
+++ b/gtk/src/box.hg
@@ -131,6 +131,12 @@ public:
_WRAP_PROPERTY("spacing", int)
_WRAP_PROPERTY("homogeneous", bool)
_WRAP_PROPERTY("baseline-position", BaselinePosition)
+
+ _WRAP_CHILD_PROPERTY("expand", bool)
+ _WRAP_CHILD_PROPERTY("fill", bool)
+ _WRAP_CHILD_PROPERTY("padding", guint)
+ _WRAP_CHILD_PROPERTY("pack-type", PackType)
+ _WRAP_CHILD_PROPERTY("position", int)
};
} // namespace Gtk
diff --git a/gtk/src/gtk_signals.defs b/gtk/src/gtk_signals.defs
index 3370f01..44a2e16 100644
--- a/gtk/src/gtk_signals.defs
+++ b/gtk/src/gtk_signals.defs
@@ -12693,6 +12693,51 @@
(construct-only #f)
)
+(define-child-property expand
+ (of-object "GtkBox")
+ (prop-type "GParamBoolean")
+ (docs "Whether the child should receive extra space when the parent grows")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-child-property fill
+ (of-object "GtkBox")
+ (prop-type "GParamBoolean")
+ (docs "Whether extra space given to the child should be allocated to the child or used as padding")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-child-property padding
+ (of-object "GtkBox")
+ (prop-type "GParamUInt")
+ (docs "Extra space to put between the child and its neighbors, in pixels")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-child-property pack-type
+ (of-object "GtkBox")
+ (prop-type "GParamEnum")
+ (docs "A GtkPackType indicating whether the child is packed with reference to the start or end of the
parent")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
+(define-child-property position
+ (of-object "GtkBox")
+ (prop-type "GParamInt")
+ (docs "The index of the child in the parent")
+ (readable #t)
+ (writable #t)
+ (construct-only #f)
+)
+
(define-child-property x
(of-object "GtkFixed")
(prop-type "GParamInt")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]