Changeset View
Changeset View
Standalone View
Standalone View
source/gui/CGUIScrollBarVertical.h
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
public: | public: | ||||
CGUIScrollBarVertical(CGUI* pGUI); | CGUIScrollBarVertical(CGUI* pGUI); | ||||
virtual ~CGUIScrollBarVertical(); | virtual ~CGUIScrollBarVertical(); | ||||
public: | public: | ||||
/** | /** | ||||
* Draw the scroll-bar | * Draw the scroll-bar | ||||
*/ | */ | ||||
virtual void Draw(); | virtual void Draw() override; | ||||
/** | /** | ||||
* If an object that contains a scrollbar has got messages, send | * If an object that contains a scrollbar has got messages, send | ||||
* them to the scroll-bar and it will see if the message regarded | * them to the scroll-bar and it will see if the message regarded | ||||
* itself. | * itself. | ||||
* | * | ||||
* @see IGUIObject#HandleMessage() | * @see IGUIObject#HandleMessage() | ||||
*/ | */ | ||||
virtual void HandleMessage(SGUIMessage& Message); | virtual void HandleMessage(SGUIMessage& Message) override; | ||||
/** | /** | ||||
* Set m_Pos with g_mouse_x/y input, i.e. when dragging. | * Set m_Pos with g_mouse_x/y input, i.e. when dragging. | ||||
*/ | */ | ||||
virtual void SetPosFromMousePos(const CPos& mouse); | virtual void SetPosFromMousePos(const CPos& mouse) override; | ||||
/** | /** | ||||
* @see IGUIScrollBar#HoveringButtonMinus | * @see IGUIScrollBar#HoveringButtonMinus | ||||
*/ | */ | ||||
virtual bool HoveringButtonMinus(const CPos& mouse); | virtual bool HoveringButtonMinus(const CPos& mouse) override; | ||||
/** | /** | ||||
* @see IGUIScrollBar#HoveringButtonPlus | * @see IGUIScrollBar#HoveringButtonPlus | ||||
*/ | */ | ||||
virtual bool HoveringButtonPlus(const CPos& mouse); | virtual bool HoveringButtonPlus(const CPos& mouse) override; | ||||
/** | /** | ||||
* Set Right Aligned | * Set Right Aligned | ||||
* @param align Alignment | * @param align Alignment | ||||
*/ | */ | ||||
void SetRightAligned(const bool& align) { m_RightAligned = align; } | void SetRightAligned(const bool& align) { m_RightAligned = align; } | ||||
/** | /** | ||||
* Get the rectangle of the actual BAR. | * Get the rectangle of the actual BAR. | ||||
* @return Rectangle, CRect | * @return Rectangle, CRect | ||||
*/ | */ | ||||
virtual CRect GetBarRect() const; | virtual CRect GetBarRect() const override; | ||||
/** | /** | ||||
* Get the rectangle of the outline of the scrollbar, every component of the | * Get the rectangle of the outline of the scrollbar, every component of the | ||||
* scroll-bar should be inside this area. | * scroll-bar should be inside this area. | ||||
* @return Rectangle, CRect | * @return Rectangle, CRect | ||||
*/ | */ | ||||
virtual CRect GetOuterRect() const; | virtual CRect GetOuterRect() const override; | ||||
protected: | protected: | ||||
/** | /** | ||||
* Should the scroll bar proceed to the left or to the right of the m_X value. | * Should the scroll bar proceed to the left or to the right of the m_X value. | ||||
* Notice, this has nothing to do with where the owner places it. | * Notice, this has nothing to do with where the owner places it. | ||||
*/ | */ | ||||
bool m_RightAligned; | bool m_RightAligned; | ||||
}; | }; | ||||
#endif // INCLUDED_CGUISCROLLBARVERTICAL | #endif // INCLUDED_CGUISCROLLBARVERTICAL |
Wildfire Games · Phabricator