From d7768b76d042eaa6cdce97976e96315d0bceccb2 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 6 Nov 2023 19:09:48 +0100 Subject: FLUID: Adds template for tutorial. Tutorial still to be written. Also adds convenience methods to Fl_Input_ for getting and setting numeric values. --- FL/Fl_Input_.H | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'FL') 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 @@ -238,6 +238,12 @@ public: /* Changes the widget text. */ 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*); @@ -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; -- cgit v1.2.3