From d9b29d2242b7384f4a9a0e7b424dd54fd9fcb740 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Tue, 4 Feb 2025 12:59:16 +1300 Subject: Filled holes in Fl_Widget binding --- doc/fl_widget.html | 365 +++++++++++++++++++++++++++++++++++++++++++---------- doc/fl_window.html | 4 +- 2 files changed, 303 insertions(+), 66 deletions(-) (limited to 'doc') diff --git a/doc/fl_widget.html b/doc/fl_widget.html index 265af2c..419ab3b 100644 --- a/doc/fl_widget.html +++ b/doc/fl_widget.html @@ -51,6 +51,11 @@ Callback_Flag + + uchar + Damage_Mask + + @@ -86,6 +91,37 @@ function Create + + + + + + + + + + + + + + + + + + +
Static Functions and Procedures
+static void default_callback(Fl_Widget *cb, void *d);
+
+procedure Default_Callback
+       (This : in out Widget'Class);
+
+static unsigned int label_shortcut(const char *t);
+
Marked as internal use only.
+static int test_shortcut(const char *, const bool require_alt=false);
+
Marked as internal use only.
+ + + @@ -93,14 +129,14 @@ function Create - + - + @@ -161,35 +197,35 @@ procedure Set_Alignment - + - + - + - + - + @@ -229,12 +265,13 @@ function Get_Callback - + - + @@ -267,9 +304,8 @@ function Has_Changed void clear_active(); @@ -278,9 +314,8 @@ procedure Set_Active void clear_changed(); @@ -288,7 +323,11 @@ procedure Set_Changed - + @@ -296,9 +335,8 @@ void clear_damage(uchar c=0); void clear_output(); @@ -307,9 +345,8 @@ procedure Set_Output_Only void clear_visible(); @@ -318,9 +355,8 @@ procedure Set_Visible void clear_visible_focus(); @@ -350,21 +386,25 @@ procedure Set_Background_Color - + - + - + @@ -409,6 +449,10 @@ uchar damage() const; function Is_Damaged (This : in Widget) return Boolean; + +function Get_Damage + (This : in Widget) + return Damage_Mask; @@ -417,9 +461,9 @@ function Is_Damaged void damage(uchar c); @@ -428,9 +472,9 @@ procedure Set_Damaged void damage(uchar c, int x, int y, int w, int h); @@ -439,7 +483,7 @@ procedure Set_Damaged - + @@ -455,6 +499,7 @@ procedure Deactivate - - - - - + @@ -516,9 +561,9 @@ void draw_label(int, int, int, int, Fl_Align) const; @@ -549,12 +594,16 @@ function Handle - + - + @@ -610,14 +661,21 @@ function Get_Label - + - + @@ -745,7 +803,7 @@ function Parent - + @@ -783,7 +841,11 @@ procedure Redraw_Label - + @@ -812,42 +874,60 @@ procedure Set_Selection_Color - + - + - + - + - + - + @@ -887,7 +967,7 @@ function Takes_Events - + @@ -905,7 +985,9 @@ function Get_Tooltip - + @@ -925,8 +1007,8 @@ Fl_Window * top_window_offset(int &xoff, int &yoff) const; @@ -935,35 +1017,41 @@ function Top_Window_Offset - + - + - + - + - + @@ -981,7 +1069,11 @@ function Is_Visible - + @@ -1075,6 +1167,151 @@ function Get_Y
Functions and Procedures
 void _clear_fullscreen();
 
 Marked as internal use only.
 void _set_fullscreen();
 
 Marked as internal use only.
 long argument() const;
 
 Intentionally left unbound.
 void argument(long v);
 
 Intentionally left unbound.
 virtual class Fl_Gl_Window * as_gl_window();
 
 Use runtime tag checks and view conversions instead.
 virtual Fl_Group * as_group();
 
Use runtime tag checks and view conversions insteadUse runtime tag checks and view conversions instead.
 virtual Fl_Window * as_window();
 
Use runtime tag checks and view conversions insteadUse runtime tag checks and view conversions instead.
 void callback(Fl_Callback *cb, void *p);
 
 Use callback(Fl_Callback *cb) / Set_Callback instead.
 void callback(Fl_Callback *cb);
+
 void callback(Fl_Callback0 *cb);
 
@@ -248,7 +285,7 @@ procedure Set_Callback
 
 void callback(Fl_Callback1 *cb, long p=0);
 
 Use callback(Fl_Callback *cb) / Set_Callback instead.
-procedure Set_Active
-       (This : in out Widget;
-        To   : in     Boolean);
+procedure Clear_Active
+       (This : in out Widget);
 
-procedure Set_Changed
-       (This : in out Widget;
-        To   : in     Boolean);
+procedure Clear_Changed
+       (This : in out Widget);
 
 void clear_damage(uchar c=0);
 
 
+procedure Clear_Damage
+       (This : in out Widget;
+        Mask : in     Damage_Mask := Damage_None);
+
-procedure Set_Output_Only
-       (This : in out Widget;
-        To   : in     Boolean);
+procedure Clear_Output_Only
+       (This : in out Widget);
 
-procedure Set_Visible
-       (This : in out Widget;
-        To   : in     Boolean);
+procedure Clear_Visible
+       (This : in out Widget);
 
-procedure Set_Visible_Focus
-       (This : in out Widget;
-        To   : in     Boolean);
+procedure Clear_Visible_Focus
+       (This : in out Widget);
 
 void color(Fl_Color bg, Fl_Color sel);
 
 
+procedure Set_Colors
+       (This      : in out Widget;
+        Back, Sel : in     Color);
+
 Fl_Color color2() const;
 
 Deprecated, use selection_color / Get_Selection_Color instead.
 void color2(unsigned a);
 
 Deprecated, use selection_color / Set_Selection_Color instead.
-procedure Set_Damaged
+procedure Set_Damage
        (This : in out Widget;
-        To   : in     Boolean);
+        Mask : in     Damage_Mask);
 
-procedure Set_Damaged
+procedure Set_Damage
        (This       : in out Widget;
-        To         : in     Boolean;
+        Mask       : in     Damage_Mask;
         X, Y, W, H : in     Integer);
 
 int damage_resize(int, int, int, int);
 
 Marked as internal use only.
 Fl_Image * deimage();
+
 const Fl_Image * deimage() const;
 
@@ -467,6 +512,7 @@ function Get_Inactive_Image
   
 void deimage(Fl_Image *img);
+
 void deimage(Fl_Image &img);
 
@@ -489,15 +535,14 @@ procedure Do_Callback
   
 void do_callback(Fl_Widget *o, long arg);
-
 
 void do_callback(Fl_Widget *o, void *arg=0);
 
 
+procedure Do_Callback
+       (This  : in     Widget;
+        Using : in out Widget);
+
 procedure Draw_Label
-       (This       : in Widget;
-        X, Y, W, H : in Integer;
-        Align      : in Alignment);
+       (This       : in out Widget;
+        X, Y, W, H : in     Integer;
+        Align      : in     Alignment);
 
 virtual void hide();
 
See void clear_visible();
+procedure Hide
+       (This : in out Widget);
+
 Fl_Image * image();
+
 const Fl_Image * image() const;
 
@@ -567,6 +616,7 @@ function Get_Image
   
 void image(Fl_Image *img);
+
 void image(Fl_Image &img);
 
@@ -592,7 +642,8 @@ function Inside
 
 int is_label_copied() const;
 
 Due to the marshalling between String and char * this +would always return true, so left unbound.
 void label(const char *text);
 
See void copy_label(const char *new_label);Due to the marshalling between String and char * using +this method would be pointless, so its functionality is +subsumed by copy_label / Set_Label.
 void label(Fl_Labeltype a, const char *b);
 
 
+procedure Set_Label
+       (This : in out Widget;
+        Kind : in     Label_Kind;
+        Text : in     String);
+
 void parent(Fl_Group *p);
 
 Marked as internal use only.
 virtual void resize(int x, int y, int w, int h);
 
 
+procedure Resize
+       (This       : in out Widget;
+        X, Y, W, H : in     Integer);
+
 void set_active();
 
See void clear_active();
+procedure Set_Active
+       (This : in out Widget);
+
 void set_changed();
 
See void clear_changed();
+procedure Set_Changed
+       (This : in out Widget);
+
 void set_output();
 
See void clear_output();
+procedure Set_Output_Only
+       (This : in out Widget);
+
 void set_visible();
 
See void clear_visible();
+procedure Set_Visible
+       (This : in out Widget);
+
 void set_visible_focus();
 
See void clear_visible_focus();
+procedure Set_Visible_Focus
+       (This : in out Widget);
+
 virtual void show();
 
 
+procedure Show
+       (This : in out Widget);
+
 int test_shortcut();
 
 Marked as internal use only.
 void tooltip(const char *text);
 
See void copy_tooltip(const char *text);Due to the marshalling between String and char * using +this method would be pointless, so its functionality is +subsumed by copy_tooltip / Set_Tooltip.
 function Top_Window_Offset
-       (This : in Widget;
-        Offset_X, Offset_Y : out Integer)
+       (This               : in     Widget;
+        Offset_X, Offset_Y :    out Integer)
     return access FLTK.Widgets.Groups.Windows.Window'Class;
 
 uchar type() const;
 
 See Get_Kind subprograms in Fl_Counter, Fl_Dial, Fl_Input_, +Fl_Pack, Fl_Scroll, Fl_Slider, Fl_Spinner.
 void type(uchar t);
 
 See Set_Kind subprograms in Fl_Counter, Fl_Dial, Fl_Input_, +Fl_Pack, Fl_Scroll, Fl_Slider, Fl_Spinner.
 int use_accents_menu();
 
 
+function Uses_Accents_Menu
+       (This : in Widget)
+    return Boolean;
+
 void * user_data() const;
 
 Used internally by the binding.
 void user_data(void *v);
 
 Used internally by the binding.
 void visible_focus(int v);
 
See void clear_visible_focus();
+procedure Set_Visible_Focus
+       (This : in out Widget;
+        To   : in     Boolean);
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Protected Functions and Procedures
+void clear_flag(unsigned int c);
+
Intentionally left unbound.
+void draw_backdrop() const;
+
+procedure Draw_Backdrop
+       (This : in out Widget);
+
+void draw_box() const;
+
+procedure Draw_Box
+       (This : in out Widget);
+
+void draw_box(Fl_Boxtype t, Fl_Color c) const;
+
+procedure Draw_Box
+       (This : in out Widget;
+        Kind : in     Box_Kind;
+        Hue  : in     Color);
+
+void draw_box(Fl_Boxtype t, int x, int y, int w, int h,
+    Fl_Color c) const;
+
+procedure Draw_Box
+       (This       : in out Widget;
+        Kind       : in     Box_Kind;
+        X, Y, W, H : in     Integer;
+        Hue        : in     Color);
+
+void draw_focus();
+
+procedure Draw_Focus
+       (This : in out Widget);
+
+void draw_focus(Fl_Boxtype t, int x, int y, int w, int h) const;
+
+procedure Draw_Focus
+       (This       : in out Widget;
+        Kind       : in     Box_Kind;
+        X, Y, W, H : in     Integer);
+
+void draw_label() const;
+
+procedure Draw_Label
+       (This : in out Widget);
+
+void draw_label(int, int, int, int) const;
+
+procedure Draw_Label
+       (This       : in out Widget;
+        X, Y, W, H : in     Integer);
+
+unsigned int flags() const;
+
Intentionally left unbound.
+void h(int v);
+
Marked as internal use only.
+void set_flag(unsigned int c);
+
Intentionally left unbound.
+void w(int v);
+
Marked as internal use only.
+void x(int v);
+
Marked as internal use only.
+void y(int v);
+
Marked as internal use only.
+ + diff --git a/doc/fl_window.html b/doc/fl_window.html index bda031e..4f246b3 100644 --- a/doc/fl_window.html +++ b/doc/fl_window.html @@ -526,8 +526,8 @@ function Get_Label
 void label(const char *);
 
-Due to necessary marshalling between String and char* -using this method would be pointless, so its functionality is +Due to the marshalling between String and char * using +this method would be pointless, so its functionality is subsumed by copy_label / Set_Label. -- cgit