diff options
Diffstat (limited to 'src/c_fl_adjuster.cpp')
-rw-r--r-- | src/c_fl_adjuster.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/c_fl_adjuster.cpp b/src/c_fl_adjuster.cpp index 4cd2b70..37a52cd 100644 --- a/src/c_fl_adjuster.cpp +++ b/src/c_fl_adjuster.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); + @@ -37,10 +39,15 @@ public: friend void fl_adjuster_draw(ADJUSTER a); friend int fl_adjuster_handle(ADJUSTER a, int e); + int format(char * buf); void draw(); int handle(int e); }; +int My_Adjuster::format(char * buf) { + return valuator_format_hook(this->user_data(), buf); +} + void My_Adjuster::draw() { widget_draw_hook(this->user_data()); } |