From f2352c6df585d817b3613145ec81446f917dcc21 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Sun, 2 Mar 2025 16:06:45 +1300 Subject: Filled holes in FLTK.Static API --- doc/fl_(fltk-events).html | 35 +++++++++- doc/fl_(fltk-static).html | 172 ++++++++++++++++++++++++++++++---------------- 2 files changed, 145 insertions(+), 62 deletions(-) (limited to 'doc') diff --git a/doc/fl_(fltk-events).html b/doc/fl_(fltk-events).html index c9846fd..6d17e85 100644 --- a/doc/fl_(fltk-events).html +++ b/doc/fl_(fltk-events).html @@ -41,6 +41,16 @@ Event_Dispatch + + void * + System_Event + + + + Fl_System_Handler + System_Handler + + @@ -54,7 +64,18 @@ static void add_handler(Fl_Event_Handler h);
 procedure Add_Handler
-       (Func : in Event_Handler);
+       (Func : in not null Event_Handler);
+
+ + + +
+static void add_system_handler(Fl_System_Handler h,
+    void *data);
+
+
+procedure Add_System_Handler
+       (Func : in not null System_Handler);
 
@@ -576,7 +597,17 @@ static void remove_handler(Fl_Event_Handler h);
 procedure Remove_Handler
-       (Func : in Event_Handler);
+       (Func : in not null Event_Handler);
+
+ + + +
+static void remove_system_handler(Fl_System_Handler h);
+
+
+procedure Remove_System_Handler
+       (Func : in not null System_Handler);
 
diff --git a/doc/fl_(fltk-static).html b/doc/fl_(fltk-static).html index ac47474..90e74cd 100644 --- a/doc/fl_(fltk-static).html +++ b/doc/fl_(fltk-static).html @@ -38,7 +38,7 @@ Fl_Args_Handler -   + Args_Handler @@ -61,11 +61,6 @@   - - Fl_System_Handler -   - - Fl_Timeout_Handler Timeout_Handler @@ -96,6 +91,11 @@ File_Handler + + uchar + Byte_Integer + + Fl_Box_Draw_F Box_Draw_Function @@ -103,12 +103,12 @@ Fl_Label_Draw_F -   + Label_Draw_Function Fl_Label_Measure_F -   + Label_Measure_Function @@ -120,6 +120,18 @@ + + + + + + + + +
Errors
intArgument_Error
+ + + @@ -134,7 +146,9 @@ static void (*atclose)(Fl_Window *, void *); - + @@ -167,7 +181,7 @@ static void add_check(Fl_Timeout_Handler, void *=0); @@ -178,7 +192,7 @@ static void add_clipboard_notify(Fl_Clipboard_Notify_Handler h, @@ -188,8 +202,8 @@ static void add_fd(int fd, Fl_FD_Handler cb, void *=0); @@ -200,9 +214,9 @@ static void add_fd(int fd, int when, Fl_FD_Handler cb, @@ -212,27 +226,19 @@ static void add_idle(Fl_Idle_Handler cb, void *data=0); - - - - - @@ -240,7 +246,11 @@ procedure Add_Timeout - + @@ -248,21 +258,30 @@ static int arg(int argc, char **argv, int &i); static int args(int argc, char **argv, int &i, Fl_Args_Handler cb=0); - + - + - + @@ -298,7 +317,11 @@ procedure Set_Alt_Background - + @@ -349,7 +372,11 @@ function Get_Box_Y_Offset - + @@ -487,14 +514,22 @@ function Get_Awake_Handler - + - + @@ -558,7 +593,7 @@ static int has_check(Fl_Timeout_Handler, void *=0); @@ -569,7 +604,7 @@ static int has_idle(Fl_Idle_Handler cb, void *data=0); @@ -580,7 +615,7 @@ static int has_timeout(Fl_Timeout_Handler, void *=0); @@ -702,7 +737,7 @@ static void remove_check(Fl_Timeout_Handler, void *=0); @@ -713,7 +748,7 @@ static void remove_clipboard_notify @@ -745,15 +780,8 @@ static void remove_idle(Fl_Idle_Handler cb, - - - - - @@ -763,7 +791,7 @@ static void remove_timeout(Fl_Timeout_Handler, @@ -774,8 +802,8 @@ static repeat_timeout(double t, Fl_Timeout_Handler, @@ -863,7 +891,10 @@ static void set_atclose(Fl_Atclose_Handler f); - + @@ -871,7 +902,13 @@ static void set_box_color(Fl_Color); static void set_boxtype(Fl_Boxtype, Fl_Box_Draw_F *, uchar, uchar, uchar, uchar); - + @@ -888,7 +925,10 @@ procedure Set_Box_Kind - + @@ -898,7 +938,7 @@ static void set_color(Fl_Color, @@ -907,7 +947,11 @@ procedure Set_Color - + @@ -916,7 +960,7 @@ static void set_font(Fl_Font, Fl_Font); @@ -942,21 +986,29 @@ static void set_idle(Fl_Old_Idle_Handler cb); static void set_labeltype(Fl_Labeltype, Fl_Label_Draw_F *, FL_Label_Measure_F *); - + - + - + -- cgit
Static Attributes
 static const char * const help = helpmsg + 13;
 
 
+Help_Message : constant String;
+
 procedure Add_Check
-       (Func : in Timeout_Handler);
+       (Func : in not null Timeout_Handler);
 
 procedure Add_Clipboard_Notify
-       (Func : in Clipboard_Notify_Handler);
+       (Func : in not null Clipboard_Notify_Handler);
 
 procedure Add_File_Descriptor
-       (FD   : in File_Descriptor;
-        Func : in File_Handler);
+       (FD   : in          File_Descriptor;
+        Func : in not null File_Handler);
 
 procedure Add_File_Descriptor
-       (FD   : in File_Descriptor;
-        Mode : in File_Mode;
-        Func : in File_Handler);
+       (FD   : in          File_Descriptor;
+        Mode : in          File_Mode;
+        Func : in not null File_Handler);
 
 procedure Add_Idle
-       (Func : in Idle_Handler);
+       (Func : in not null Idle_Handler);
 
-static void add_system_handler(Fl_System_Handler h,
-    void *data);
-
 
 static void add_timeout(double t, Fl_Timeout_Handler,
     void *=0);
 
 procedure Add_Timeout
-       (Seconds : in Long_Float;
-        Func    : in Timeout_Handler);
+       (Seconds : in          Long_Float;
+        Func    : in not null Timeout_Handler);
 
 static int arg(int argc, char **argv, int &i);
 
 
+function Parse_Arg
+       (Index : in Positive)
+    return Natural;
+
 
+procedure Parse_Args
+       (Count :    out Natural;
+        Func  : in     Args_Handler := null);
+
 static void args(int argc, char **argv);
 
 
+procedure Parse_Args;
+
 static int awake(Fl_Awake_Handler cb, void *message=0);
 
 
+procedure Awake
+       (Func : in Awake_Handler);
+
 static Fl_Color box_color(Fl_Color);
 
 
+function Get_Box_Color
+       (Tone : in Color)
+    return Color;
+
 static int clipboard_contains(const char *type);
 
 
+function Clipboard_Contains
+       (Kind : in String)
+    return Boolean;
+
 static Fl_Box_Draw_F * get_boxtype(Fl_Boxtype);
 
 
+function Get_Box_Draw_Function
+       (Kind : in Box_Kind)
+    return Box_Draw_Function;
+
 static unsigned get_color(Fl_Color i);
 
 
+function Get_Color
+       (From : in Color)
+    return Color;
+
 function Has_Check
-       (Func : in Timeout_Handler)
+       (Func : in not null Timeout_Handler)
     return Boolean;
 
 function Has_Idle
-       (Func : in Idle_Handler)
+       (Func : in not null Idle_Handler)
     return Boolean;
 
 function Has_Timeout
-       (Func : in Timeout_Handler)
+       (Func : in not null Timeout_Handler)
     return Boolean;
 
 procedure Remove_Check
-       (Func : in Timeout_Handler);
+       (Func : in not null Timeout_Handler);
 
 procedure Remove_Clipboard_Notify
-       (Func : in Clipboard_Notify_Handler);
+       (Func : in not null Clipboard_Notify_Handler);
 
 procedure Remove_Idle
-       (Func : in Idle_Handler);
-
-static void remove_system_handler(Fl_System_Handler h);
+       (Func : in not null Idle_Handler);
 
 
 procedure Remove_Timeout
-       (Func : in Timeout_Handler);
+       (Func : in not null Timeout_Handler);
 
 procedure Repeat_Timeout
-       (Seconds : in Long_Float;
-        Func    : in Timeout_Handler);
+       (Seconds : in          Long_Float;
+        Func    : in not null Timeout_Handler);
 
 static void set_box_color(Fl_Color);
 
 
+procedure Set_Box_Color
+       (Tone : in Color);
+
 
+procedure Set_Box_Draw_Function
+       (Kind               : in Box_Kind;
+        Func               : in Box_Draw_Function;
+        Offset_X, Offset_Y : in Byte_Integer := 0;
+        Offset_W, Offset_H : in Byte_Integer := 0);
+
 static void set_color(Fl_Color i, unsigned c);
 
 
+procedure Set_Color
+       (Target, Source : in Color);
+
 procedure Set_Color
-       (To      : in Color;
+       (Target  : in Color;
         R, G, B : in Color_Component);
 
 static void set_font(Fl_Font, const char *);
 
 
+procedure Set_Font_Kind
+       (Target : in Font_Kind;
+        Source : in String);
+
 procedure Set_Font_Kind
-       (To, From : in Font_Kind);
+       (Target, Source : in Font_Kind);
 
 
+procedure Set_Label_Draw_Function
+       (Kind         : in Label_Kind;
+        Draw_Func    : in Label_Draw_Function;
+        Measure_Func : in Label_Measure_Function);
+
 static void set_labeltype(Fl_Labeltype, Fl_Labeltype from);
 
 
+procedure Set_Label_Kind
+       (Target, Source : in Label_Kind);
+
 static void * thread_message();
 
 Intentionally left unbound.