diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-20 16:02:12 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-20 16:02:12 +1300 |
commit | 096ec211833d663b3e8976452c3293756a7ededf (patch) | |
tree | 716536ffe15b6b31bc32dd6f4af4330e97ccb374 /src/c_fl_hor_value_slider.cpp | |
parent | 82eb9509e9e273e8e9e7e584553ccc49f476d4a3 (diff) |
format / Format method for Fl_Valuator
Diffstat (limited to 'src/c_fl_hor_value_slider.cpp')
-rw-r--r-- | src/c_fl_hor_value_slider.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/c_fl_hor_value_slider.cpp b/src/c_fl_hor_value_slider.cpp index 7f5bc87..cff16f6 100644 --- a/src/c_fl_hor_value_slider.cpp +++ b/src/c_fl_hor_value_slider.cpp @@ -15,6 +15,8 @@ extern "C" void widget_draw_hook(void * ud); extern "C" int widget_handle_hook(void * ud, int e); +extern "C" int valuator_format_hook(void * ud, char * buf); + @@ -27,10 +29,15 @@ public: friend void fl_hor_value_slider_draw(HORVALUESLIDER s); friend int fl_hor_value_slider_handle(HORVALUESLIDER s, int e); + int format(char * buf); void draw(); int handle(int e); }; +int My_Hor_Value_Slider::format(char * buf) { + return valuator_format_hook(this->user_data(), buf); +} + void My_Hor_Value_Slider::draw() { widget_draw_hook(this->user_data()); } |