From c300ec0f456da533291b10db57d27a9c3bb8de9f Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Mon, 13 Jan 2025 15:47:35 +1300 Subject: Filled holes in Group binding API --- doc/fl_group.html | 69 +++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 52 insertions(+), 17 deletions(-) (limited to 'doc/fl_group.html') diff --git a/doc/fl_group.html b/doc/fl_group.html index 2b97b02..6e2fb25 100644 --- a/doc/fl_group.html +++ b/doc/fl_group.html @@ -26,6 +26,11 @@ +

Note:

+Groups automatically have end / End_Current called on them as part of their construction. +This is because otherwise the usual begin/end behaviour would get confusing with the style +of declaration this binding uses.

+ @@ -138,32 +143,39 @@ procedure Add - + - + - + - + - + @@ -250,7 +263,10 @@ procedure Set_Clip_Mode - + @@ -263,7 +279,7 @@ int find(const Fl_Widget &o) const; function Find (This : in Group; Item : in out Widget'Class) - return Index; + return Extended_Index; @@ -271,7 +287,7 @@ function Find - + @@ -298,7 +314,7 @@ function Handle void init_sizes(); @@ -328,7 +344,7 @@ procedure Insert - + - +
 void add_resizable(Fl_Widget &o);
 
 
+procedure Add_Resizable
+       (This : in out Group;
+        Item : in out Widget'Class);
+
 Fl_Widget * const * array() const;
 
Use iterators insteadUse iterators instead.
 virtual Fl_Group * as_group();
 
Use runtime tag checks and view conversions insteadUse runtime tag checks and view conversions instead.
 void begin();
 
 
+procedure Begin_Current
+       (This : in out Group);
+
 Check if the index value is in range manually.
 function Has_Child
        (This  : in Group;
@@ -189,7 +201,8 @@ Fl_Widget * child(int n) const;
 function Child
        (This  : in Group;
         Place : in Index)
-    return Widget_Reference;
+    return Widget_Reference
+with Pre => This.Has_Child (Place);
 
 void end();
 
 
+procedure End_Current
+       (This : in out Group);
+
 void focus(Fl_Widget *W);
 
 Deprecated, see take_focus / Take_Focus in Fl_Widget.
-procedure Reset_Initial_Sizes
+procedure Reset_Sizes
        (This : in out Group);
 
 Use a for loop to iterate over the group's children.
 function Iterate
        (This : in Group)
@@ -388,7 +404,11 @@ procedure Set_Resizable
 
 void resize(int, int, int, int);
 
 
+procedure Resize
+       (This       : in out Group;
+        X, Y, W, H : in     Integer);
+
@@ -412,35 +432,50 @@ procedure Draw
 void draw_child(Fl_Widget &widget) const;
 
-  +
+procedure Draw_Child
+       (This : in out Group;
+        Item : in out Widget'Class);
+
 void draw_children();
 
-  +
+procedure Draw_Children
+       (This : in out Group);
+
 void draw_outside_label(const Fl_Widget &widget) const;
 
-  +
+procedure Draw_Outside_Label
+       (This : in out Group;
+        Item : in out Widget'Class);
+
 int * sizes();
 
-  +Intentionally left unbound.
 void update_child(Fl_Widget &widget) const;
 
-  +
+procedure Update_Child
+       (This : in out Group;
+        Item : in out Widget'Class);
+
-- cgit