From e93b9bbc02e2791f3a35b6f077fcbb8514c28aed Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Sun, 12 Jan 2025 01:14:58 +1300 Subject: Refactored draw/handle methods in Widgets hierarchy, improved docs, added a few minor method bindings here and there --- doc/fl_button.html | 88 +++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 70 insertions(+), 18 deletions(-) (limited to 'doc/fl_button.html') diff --git a/doc/fl_button.html b/doc/fl_button.html index b074f3b..c95ebb4 100644 --- a/doc/fl_button.html +++ b/doc/fl_button.html @@ -41,7 +41,7 @@ -   + int State @@ -50,7 +50,21 @@ - + + + + + + + +
Functions and Procedures
Static Protected Attributes
+static Fl_Widget_Tracker * key_release_tracker = 0;
+
Intentionally left unbound.
+ + + + + +
Constructors
@@ -59,16 +73,23 @@ Fl_Button(int X, int Y, int W, int H, const char *L=0);
 
 function Create
        (X, Y, W, H : in Integer;
-        Text       : in String)
+        Text       : in String := "")
     return Button;
 
+ + + + + + - + @@ -97,24 +118,14 @@ procedure Set_Down_Box - + - - - - - - + @@ -133,7 +144,7 @@ function Handle - + @@ -172,7 +183,7 @@ procedure Set_Shortcut - + @@ -200,6 +211,47 @@ function Get_State
Functions and Procedures
 int clear();
 
See int value();See value / Set_State.
 Fl_Color down_color() const;
 
 See selection_color / Get_Selection_Color from Fl_Widget.
 void down_color(unsigned c);
 
 
-virtual void draw();
-
-procedure Draw
-       (This : in out Button);
-
See selection_color / Set_Selection_Color from Fl_Widget.
 int set();
 
See int value();See value / Set_State.
 void shortcut(const char *s);
 
See void shortcut(int s);See shortcut / Set_Shortcut.
+ + + + + + + + + +
Static Protected Functions and Procedures
+static void key_release_timeout(void *);
+
Intentionally left unbound.
+ + + + + + + + + + + + + + + + +
Protected Functions and Procedures
+virtual void draw();
+
+procedure Draw
+       (This : in out Button);
+
+void simulate_key_action();
+
+procedure Simulate_Key_Action
+       (This : in out Button);
+
+ + -- cgit