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_valuator.html | 112 ++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 92 insertions(+), 20 deletions(-) (limited to 'doc/fl_valuator.html') diff --git a/doc/fl_valuator.html b/doc/fl_valuator.html index 20877e3..c6965a2 100644 --- a/doc/fl_valuator.html +++ b/doc/fl_valuator.html @@ -46,7 +46,7 @@ - + +
Functions and Procedures
Constructors
@@ -55,11 +55,18 @@ Fl_Valuator(int X, int Y, int W, int H, const char *L);
 
 function Create
        (X, Y, W, H : in Integer;
-        Text       : in String)
+        Text       : in String := "")
     return Valuator;
 
+ + + + + + - - - - - + - - + @@ -210,7 +216,7 @@ void step(double a, int b); void step(double s); @@ -218,12 +224,12 @@ procedure Set_Step @@ -252,6 +258,72 @@ procedure Set_Value
Functions and Procedures
 void bounds(double a, double b);
@@ -90,16 +97,6 @@ virtual int format(char *);
 
 
 
-function Handle
-       (This  : in out Valuator;
-        Event : in     Event_Kind)
-    return Event_Outcome;
-
 double increment(double, int);
@@ -193,16 +190,25 @@ function Round
 
   
-void step(int a);
+double step() const;
+
+function Get_Step
+       (This : in Valuator)
+    return Long_Float;
 
 
 void step(double a, int b);
 
 
+procedure Set_Step
+       (This   : in out Valuator;
+        Top    : in     Long_Float;
+        Bottom : in     Integer);
+
-procedure Set_Step
+procedure Set_Step_Top
        (This : in out Valuator;
         To   : in     Long_Float);
 
-double step() const;
+void step(int a);
 
-function Get_Step
-       (This : in Valuator)
-    return Long_Float;
+procedure Set_Step_Bottom
+       (This : in out Valuator;
+        To   : in     Integer);
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Protected Functions and Procedures
+void handle_drag(double newvalue);
+
Intentionally left unbound.
+void handle_push();
+
Intentionally left unbound.
+void handle_release();
+
Intentionally left unbound.
+int horizontal() const;
+
Intentionally left unbound.
+double previous_value() const;
+
Intentionally left unbound.
+void set_value(double v);
+
Intentionally left unbound.
+double softclamp(double);
+
Intentionally left unbound.
+virtual void value_damage();
+
+procedure Value_Damage
+       (This : in out Valuator);
+
+ + -- cgit