aboutsummaryrefslogtreecommitdiff
path: root/dw/fltkviewport.hh
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-10-06 10:37:14 +0200
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-10-13 13:36:47 +0200
commit7bade294672a638bcd1b0451333be5bb948cbbf7 (patch)
treea44310f1ba962197bdda543a19d32c08b7929534 /dw/fltkviewport.hh
parent05094b91a070c0a498870a473b37732929289ca1 (diff)
Add support for left scrollbar
Implements support for placing the vertical scrollbar on the left side by setting scrollbar_on_left=YES on dillorc. By default, continues to be on the right side. See: https://www.toomanyatoms.com/software/mobilized_dillo.html Authored-By: dogma
Diffstat (limited to 'dw/fltkviewport.hh')
-rw-r--r--dw/fltkviewport.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/dw/fltkviewport.hh b/dw/fltkviewport.hh
index 1569a7d8..fdcbb3be 100644
--- a/dw/fltkviewport.hh
+++ b/dw/fltkviewport.hh
@@ -21,6 +21,7 @@ private:
int scrollX, scrollY;
int scrollDX, scrollDY;
+ int scrollbarOnLeft;
int hasDragScroll, dragScrolling, dragX, dragY;
int horScrolling, verScrolling;
@@ -64,6 +65,7 @@ public:
bool usesViewport ();
int getHScrollbarThickness ();
int getVScrollbarThickness ();
+ int getScrollbarOnLeft () {return scrollbarOnLeft; };
void scroll(int dx, int dy);
void scroll(dw::core::ScrollCommand cmd);
void scrollTo (int x, int y);
@@ -75,6 +77,7 @@ public:
GadgetOrientation gadgetOrientation);
void setDragScroll (bool enable) { hasDragScroll = enable ? 1 : 0; }
void addGadget (Fl_Widget *gadget);
+ void setScrollbarOnLeft (bool enable);
};
} // namespace fltk