summaryrefslogtreecommitdiff
path: root/src/c_fl_line_dial.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_fl_line_dial.cpp')
-rw-r--r--src/c_fl_line_dial.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/c_fl_line_dial.cpp b/src/c_fl_line_dial.cpp
index c01e8d8..388264f 100644
--- a/src/c_fl_line_dial.cpp
+++ b/src/c_fl_line_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);
+
@@ -27,10 +29,15 @@ public:
friend void fl_line_dial_draw(LINEDIAL v);
friend int fl_line_dial_handle(LINEDIAL v, int e);
+ int format(char * buf);
void draw();
int handle(int e);
};
+int My_Line_Dial::format(char * buf) {
+ return valuator_format_hook(this->user_data(), buf);
+}
+
void My_Line_Dial::draw() {
widget_draw_hook(this->user_data());
}