summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-11-06 19:09:48 +0100
committerMatthias Melcher <github@matthiasm.com>2023-11-07 14:28:22 +0100
commitd7768b76d042eaa6cdce97976e96315d0bceccb2 (patch)
tree92b8c751fa1affc7f5fdb10d980bd4ea4ba1e36e /FL
parent8b31954d6698bded12d6252b1bbc46c6eece7f73 (diff)
FLUID: Adds template for tutorial.
Tutorial still to be written. Also adds convenience methods to Fl_Input_ for getting and setting numeric values.
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Input_.H10
1 files changed, 10 insertions, 0 deletions
diff --git a/FL/Fl_Input_.H b/FL/Fl_Input_.H
index a800d7e49..e8ab6508c 100644
--- a/FL/Fl_Input_.H
+++ b/FL/Fl_Input_.H
@@ -239,6 +239,12 @@ public:
int value(const char*, int);
/* Changes the widget text. */
+ int value(int value);
+
+ /* Changes the widget text. */
+ int value(double value);
+
+ /* Changes the widget text. */
int static_value(const char*);
/* Changes the widget text. */
@@ -256,6 +262,10 @@ public:
*/
const char* value() const {return value_;}
+ int ivalue() const;
+
+ int dvalue() const;
+
/* Returns the Unicode character at index \p i. */
unsigned int index(int i) const;