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_slider.html | 78 ++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 61 insertions(+), 17 deletions(-) (limited to 'doc/fl_slider.html') diff --git a/doc/fl_slider.html b/doc/fl_slider.html index 7ccd2a1..3b99b86 100644 --- a/doc/fl_slider.html +++ b/doc/fl_slider.html @@ -42,7 +42,7 @@ -   + uchar Slider_Kind @@ -51,7 +51,7 @@ - + @@ -69,9 +69,22 @@ function Create - + +
Functions and Procedures
Constructors
@@ -60,7 +60,7 @@ Fl_Slider(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 Slider;
 
 Fl_Slider(uchar t, int X, int Y, int W, int H, const char *L);
 
 
+function Create
+       (Kind       : in Slider_Kind;
+        X, Y, W, H : in Integer;
+        Text       : in String := "")
+    return Slider;
+
+ + + + + + - - - - - - + - +
Functions and Procedures
 void bounds(double a, double b);
@@ -85,16 +98,6 @@ procedure Set_Bounds
 
   
-void draw();
-
-procedure Draw
-       (This : in out Slider);
-
 int handle(int);
 
@@ -159,12 +162,12 @@ void slider_size(double v);
 
 procedure Set_Slide_Size
        (This : in out Slider;
-        To   : in     Float);
+        To   : in     Long_Float);
 
See type() methods for Fl_WidgetSee type method for Fl_Widget.
 function Get_Slider_Type
        (This : in Slider)
@@ -173,7 +176,7 @@ function Get_Slider_Type
   
See type() methods for Fl_WidgetSee type method for Fl_Widget.
 procedure Set_Slider_Type
        (This : in out Slider;
@@ -184,6 +187,47 @@ procedure Set_Slider_Type
 
+ + + + + + + + + + + + + + + + + + + +
Protected Functions and Procedures
+void draw();
+
+procedure Draw
+       (This : in out Slider);
+
+void draw(int, int, int, int);
+
+procedure Draw
+       (This       : in out Slider;
+        X, Y, W, H : in     Integer);
+
+int handle(int, int, int, int, int);
+
+function Handle
+       (This       : in out Slider;
+        Event      : in     Event_Kind;
+        X, Y, W, H : in     Integer)
+    return Event_Outcome;
+
+ + -- cgit