diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-21 00:53:56 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-21 00:53:56 +1300 |
commit | f9e453e3d456514066e8ecbed9fbac93a588a0d0 (patch) | |
tree | 06587afde830fb324d5ab7372f0f1686c4fd993a /src/c_fl_scroll.cpp | |
parent | 67a43ef89ba41ac32b86cda7396c16fffaf691b3 (diff) |
Using the type method is now more consistent
Diffstat (limited to 'src/c_fl_scroll.cpp')
-rw-r--r-- | src/c_fl_scroll.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/c_fl_scroll.cpp b/src/c_fl_scroll.cpp index 59bb8c2..5fd3240 100644 --- a/src/c_fl_scroll.cpp +++ b/src/c_fl_scroll.cpp @@ -71,8 +71,12 @@ void fl_scroll_to(SCROLL s, int x, int y) { static_cast<Fl_Scroll*>(s)->scroll_to(x, y); } -void fl_scroll_set_type(SCROLL s, int t) { - static_cast<Fl_Scroll*>(s)->type(t); +int fl_scroll_xposition(SCROLL s) { + return static_cast<Fl_Scroll*>(s)->xposition(); +} + +int fl_scroll_yposition(SCROLL s) { + return static_cast<Fl_Scroll*>(s)->yposition(); } @@ -86,14 +90,6 @@ void fl_scroll_set_size(SCROLL s, int t) { static_cast<Fl_Scroll*>(s)->scrollbar_size(t); } -int fl_scroll_xposition(SCROLL s) { - return static_cast<Fl_Scroll*>(s)->xposition(); -} - -int fl_scroll_yposition(SCROLL s) { - return static_cast<Fl_Scroll*>(s)->yposition(); -} - |