From 157f44ff7034212a29696c5bb2b87e4f6f20d625 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Thu, 16 Jan 2025 23:44:10 +1300 Subject: Added convenience widget constructors that specify the parent group to add to --- doc/fl_cairo_window.html | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) (limited to 'doc/fl_cairo_window.html') diff --git a/doc/fl_cairo_window.html b/doc/fl_cairo_window.html index 1454c61..fe696fd 100644 --- a/doc/fl_cairo_window.html +++ b/doc/fl_cairo_window.html @@ -64,12 +64,35 @@ function Create + +Rely on the automatic use of begin when a group is created, or use begin/end +explicitly, or add each widget to its intended parent group manually. +
+function Create
+       (Parent : in out Groups.Group'Class;
+        W, H   : in     Integer)
+    return Cairo_Window;
+
+ + Create a Fl_Cairo_Window and set the label manually.
 function Create
        (W, H : in Integer;
-        Text : in String := "")
+        Text : in String)
+    return Cairo_Window;
+
+ + + +Rely on the automatic use of begin when a group is created, or use begin/end +explicitly, or add each widget to its intended parent group manually. +
+function Create
+       (Parent : in out Groups.Group'Class;
+        W, H   : in     Integer;
+        Text   : in     String)
     return Cairo_Window;
 
@@ -84,6 +107,18 @@ function Create + +Rely on the automatic use of begin when a group is created, or use begin/end +explicitly, or add each widget to its intended parent group manually. +
+function Create
+       (Parent     : in out Groups.Group'Class;
+        X, Y, W, H : in     Integer;
+        Text       : in     String := "")
+    return Cairo_Window;
+
+ + -- cgit