X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fgui%2FguiScrollBar.h;h=29493bb993220f8d8d23c9c6c94240f24daf3ae4;hb=c162340973463580cc5013d8b53ea87975637bf2;hp=349411fc12dee8082df56c9c8c574390eeb82720;hpb=115ef6c09c640598695d5d506a7a8e1ab928174b;p=oweals%2Fminetest.git diff --git a/src/gui/guiScrollBar.h b/src/gui/guiScrollBar.h index 349411fc1..29493bb99 100644 --- a/src/gui/guiScrollBar.h +++ b/src/gui/guiScrollBar.h @@ -23,6 +23,13 @@ public: GUIScrollBar(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect 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;