Remove Mapgen V7 floatlands in preparation for new implementation (#9238)
[oweals/minetest.git] / src / gui / guiScrollBar.h
index 2236ff5b989193891e9ea7c5d3bc023adfbd0611..29493bb993220f8d8d23c9c6c94240f24daf3ae4 100644 (file)
@@ -17,12 +17,19 @@ the arrow buttons where there is insufficient space.
 using namespace irr;
 using namespace gui;
 
-class guiScrollBar : public IGUIElement
+class GUIScrollBar : public IGUIElement
 {
 public:
-       guiScrollBar(IGUIEnvironment *environment, IGUIElement *parent, s32 id,
+       GUIScrollBar(IGUIEnvironment *environment, IGUIElement *parent, s32 id,
                        core::rect<s32> rectangle, bool horizontal, bool auto_scale);
 
+       enum ArrowVisibility
+       {
+               HIDE,
+               SHOW,
+               DEFAULT
+       };
+
        virtual void draw();
        virtual void updateAbsolutePosition();
        virtual bool OnEvent(const SEvent &event);
@@ -39,6 +46,7 @@ public:
        void setLargeStep(const s32 &step);
        void setPos(const s32 &pos);
        void setPageSize(const s32 &size);
+       void setArrowsVisible(ArrowVisibility visible);
 
 private:
        void refreshControls();
@@ -47,6 +55,7 @@ private:
 
        IGUIButton *up_button;
        IGUIButton *down_button;
+       ArrowVisibility arrow_visibility = DEFAULT;
        bool is_dragging;
        bool is_horizontal;
        bool is_auto_scaling;