From 096ec211833d663b3e8976452c3293756a7ededf Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Mon, 20 Jan 2025 16:02:12 +1300 Subject: format / Format method for Fl_Valuator --- src/c_fl_dial.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/c_fl_dial.cpp') diff --git a/src/c_fl_dial.cpp b/src/c_fl_dial.cpp index 34c6df8..af83c21 100644 --- a/src/c_fl_dial.cpp +++ b/src/c_fl_dial.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); + @@ -39,10 +41,15 @@ public: friend void fl_dial_draw(DIAL v); friend int fl_dial_handle(DIAL v, int e); + int format(char * buf); void draw(); int handle(int e); }; +int My_Dial::format(char * buf) { + return valuator_format_hook(this->user_data(), buf); +} + void My_Dial::draw() { widget_draw_hook(this->user_data()); } -- cgit