From 8b01c23e0ba1fd22e0bfc797d6ca540c79079674 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Sun, 12 Jan 2025 15:45:37 +1300 Subject: Format string methods for Fl_Spinner --- src/c_fl_spinner.cpp | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) (limited to 'src/c_fl_spinner.cpp') diff --git a/src/c_fl_spinner.cpp b/src/c_fl_spinner.cpp index a09ed17..71d86f8 100644 --- a/src/c_fl_spinner.cpp +++ b/src/c_fl_spinner.cpp @@ -127,14 +127,6 @@ void fl_spinner_set_step(SPINNER n, double t) { reinterpret_cast(n)->step(t); } -int fl_spinner_get_type(SPINNER n) { - return reinterpret_cast(n)->type(); -} - -void fl_spinner_set_type(SPINNER n, int t) { - reinterpret_cast(n)->type(t); -} - double fl_spinner_get_value(SPINNER n) { return reinterpret_cast(n)->value(); } @@ -146,6 +138,25 @@ void fl_spinner_set_value(SPINNER n, double t) { +const char * fl_spinner_get_format(SPINNER n) { + return reinterpret_cast(n)->format(); +} + +void fl_spinner_set_format(SPINNER n, const char * f) { + reinterpret_cast(n)->format(f); +} + +int fl_spinner_get_type(SPINNER n) { + return reinterpret_cast(n)->type(); +} + +void fl_spinner_set_type(SPINNER n, int t) { + reinterpret_cast(n)->type(t); +} + + + + void fl_spinner_resize(SPINNER n, int x, int y, int w, int h) { reinterpret_cast(n)->resize(x, y, w, h); } -- cgit