summaryrefslogtreecommitdiff
path: root/src/c_fl_scroll.cpp
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-14 00:06:33 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-14 00:06:33 +1300
commit88ca2ea14ba6651404cd4ea347ac8f06afdd0558 (patch)
tree74f6b8064f112bd96e66c060537c439ec54d67cd /src/c_fl_scroll.cpp
parent41fca67267180571b5107bf7b9516eb669588b25 (diff)
Ensured Widgets will remove themselves from a Group upon dealloc and Groups won't inadvertantly dealloc Widgets upon Clear
Diffstat (limited to 'src/c_fl_scroll.cpp')
-rw-r--r--src/c_fl_scroll.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/c_fl_scroll.cpp b/src/c_fl_scroll.cpp
index ab63827..b3d2c14 100644
--- a/src/c_fl_scroll.cpp
+++ b/src/c_fl_scroll.cpp
@@ -56,8 +56,12 @@ void free_fl_scroll(SCROLL s) {
-void fl_scroll_clear(SCROLL s) {
- reinterpret_cast<Fl_Scroll*>(s)->clear();
+void * fl_scroll_hscrollbar(SCROLL s) {
+ return &static_cast<Fl_Scroll*>(s)->hscrollbar;
+}
+
+void * fl_scroll_scrollbar(SCROLL s) {
+ return &static_cast<Fl_Scroll*>(s)->scrollbar;
}