diff options
Diffstat (limited to 'src/c_fl_value_output.cpp')
-rw-r--r-- | src/c_fl_value_output.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/c_fl_value_output.cpp b/src/c_fl_value_output.cpp index 3294b6b..5e42996 100644 --- a/src/c_fl_value_output.cpp +++ b/src/c_fl_value_output.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_value_output_draw(VALUEOUTPUT a); friend int fl_value_output_handle(VALUEOUTPUT a, int e); + int format(char * buf); void draw(); int handle(int e); }; +int My_Value_Output::format(char * buf) { + return valuator_format_hook(this->user_data(), buf); +} + void My_Value_Output::draw() { widget_draw_hook(this->user_data()); } |