summaryrefslogtreecommitdiff
path: root/src/c_fl_value_input.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_fl_value_input.cpp')
-rw-r--r--src/c_fl_value_input.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/c_fl_value_input.cpp b/src/c_fl_value_input.cpp
index e6a5498..3d19845 100644
--- a/src/c_fl_value_input.cpp
+++ b/src/c_fl_value_input.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_input_draw(VALUEINPUT a);
friend int fl_value_input_handle(VALUEINPUT a, int e);
+ int format(char * buf);
void draw();
int handle(int e);
};
+int My_Value_Input::format(char * buf) {
+ return valuator_format_hook(this->user_data(), buf);
+}
+
void My_Value_Input::draw() {
widget_draw_hook(this->user_data());
}