summaryrefslogtreecommitdiff
path: root/src/c_fl_scrollbar.cpp
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-20 16:02:12 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-20 16:02:12 +1300
commit096ec211833d663b3e8976452c3293756a7ededf (patch)
tree716536ffe15b6b31bc32dd6f4af4330e97ccb374 /src/c_fl_scrollbar.cpp
parent82eb9509e9e273e8e9e7e584553ccc49f476d4a3 (diff)
format / Format method for Fl_Valuator
Diffstat (limited to 'src/c_fl_scrollbar.cpp')
-rw-r--r--src/c_fl_scrollbar.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/c_fl_scrollbar.cpp b/src/c_fl_scrollbar.cpp
index 4208744..2ebdb27 100644
--- a/src/c_fl_scrollbar.cpp
+++ b/src/c_fl_scrollbar.cpp
@@ -30,6 +30,8 @@ void fl_scrollbar_extra_final(void * adaobj) {
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);
+
@@ -42,10 +44,15 @@ public:
friend void fl_scrollbar_draw(SCROLLBAR s);
friend int fl_scrollbar_handle(SCROLLBAR s, int e);
+ int format(char * buf);
void draw();
int handle(int e);
};
+int My_Scrollbar::format(char * buf) {
+ return valuator_format_hook(this->user_data(), buf);
+}
+
void My_Scrollbar::draw() {
widget_draw_hook(this->user_data());
}