lib/gtk: add more services to GtkBox
authorAlexis Laferrière <alexis.laf@xymus.net>
Tue, 5 May 2015 11:24:56 +0000 (07:24 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Wed, 6 May 2015 15:45:55 +0000 (11:45 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/gtk/v3_4/gtk_core.nit

index da1c696..15b649c 100644 (file)
@@ -386,6 +386,29 @@ extern class GtkBox `{ GtkBox * `}
        new (orientation: GtkOrientation, spacing: Int) `{
                return (GtkBox *)gtk_box_new(orientation, spacing);
        `}
+
+       # Give the children of `self` equal space in the box?
+       fun omogeneous: Bool `{ return gtk_box_get_homogeneous(recv); `}
+
+       # Give the children of `self` equal space in the box?
+       fun omogeneous=(omogeneous: Bool) `{
+               gtk_box_set_homogeneous(recv, omogeneous);
+       `}
+
+       # Add `child` and pack it at the start of the box
+       fun pack_start(child: GtkWidget, expand, fill: Bool, padding: Int) `{
+               gtk_box_pack_start(recv, child, expand, fill, padding);
+       `}
+
+       # Add `child` and pack it at the end of the box
+       fun pack_end(child: GtkWidget, expand, fill: Bool, padding: Int) `{
+               gtk_box_pack_end(recv, child, expand, fill, padding);
+       `}
+
+       # Set the way `child` is packed in `self`
+       fun set_child_packing(child: GtkWidget, expand, fill: Bool, padding: Int, packing: GtkPackType) `{
+               gtk_box_set_child_packing(recv, child, expand, fill, padding, packing);
+       `}
 end
 
 # The tree interface used by GtkTreeView