TGUI
1.6.1
|
Base class for widgets with both a vertical and horizontal scrollbar. More...
#include <TGUI/Widgets/Scrollbar.hpp>
Public Member Functions | |
DualScrollbarChildInterface () | |
Default constructor. | |
DualScrollbarChildInterface (const DualScrollbarChildInterface &) | |
Copy constructor. | |
DualScrollbarChildInterface (DualScrollbarChildInterface &&) noexcept | |
Move constructor. | |
virtual | ~DualScrollbarChildInterface ()=default |
Destructor. | |
DualScrollbarChildInterface & | operator= (const DualScrollbarChildInterface &) |
Overload of copy assignment operator. | |
DualScrollbarChildInterface & | operator= (DualScrollbarChildInterface &&) noexcept |
Move assignment. | |
ScrollbarAccessor * | getVerticalScrollbar () |
Returns an object that provides access to the widget's vertical scrollbar. | |
const ScrollbarAccessor * | getVerticalScrollbar () const |
Returns an object that provides access to the widget's vertical scrollbar. | |
ScrollbarAccessor * | getHorizontalScrollbar () |
Returns an object that provides access to the widget's horizontal scrollbar. | |
const ScrollbarAccessor * | getHorizontalScrollbar () const |
Returns an object that provides access to the widget's horizontal scrollbar. | |
Protected Member Functions | |
virtual void | scrollbarValueChanged (Orientation orientation) |
Called when the value of one of the scrollbars has been changed by calling either getVerticalScrollbar()->setValue(...) or getHorizontalScrollbar()->setValue(...) | |
virtual void | scrollbarPolicyChanged (Orientation orientation) |
Called when the policy of one of the scrollbars has been changed calling either getVerticalScrollbar()->setPolicy(...) or getHorizontalScrollbar()->setPolicy(...) | |
virtual void | scrollbarScrollAmountChanged (Orientation orientation) |
Called when the scroll amount of one of the scrollbars has been changed calling either getVerticalScrollbar()->setScrollAmount(...) or getHorizontalScrollbar()->setScrollAmount(...) | |
void | saveScrollbarPolicies (std::unique_ptr< DataIO::Node > &node) const |
This function should be called inside the save function in order to save the configured scrollbar policies. | |
void | loadScrollbarPolicies (const std::unique_ptr< DataIO::Node > &node) |
This function should be called inside the load function in order to load the wanted scrollbar policies. | |
Protected Attributes | |
CopiedSharedPtr< ScrollbarChildWidget > | m_verticalScrollbar |
CopiedSharedPtr< ScrollbarChildWidget > | m_horizontalScrollbar |
ScrollbarAccessor | m_verticalScrollbarAccessor |
ScrollbarAccessor | m_horizontalScrollbarAccessor |
Base class for widgets with both a vertical and horizontal scrollbar.
This class exists so that these widgets wouldn't need to define their own copy constructor and assignment operators.
|
nodiscard |
Returns an object that provides access to the widget's horizontal scrollbar.
|
nodiscard |
Returns an object that provides access to the widget's horizontal scrollbar.
|
nodiscard |
Returns an object that provides access to the widget's vertical scrollbar.
|
nodiscard |
Returns an object that provides access to the widget's vertical scrollbar.
|
protectedvirtual |
Called when the policy of one of the scrollbars has been changed calling either getVerticalScrollbar()->setPolicy(...) or getHorizontalScrollbar()->setPolicy(...)
orientation | Vertical or Horizontal depending on which scrollbar triggered the callback |
Reimplemented in tgui::ListView, tgui::ScrollablePanel, tgui::TextArea, and tgui::TreeView.
|
protectedvirtual |
Called when the scroll amount of one of the scrollbars has been changed calling either getVerticalScrollbar()->setScrollAmount(...) or getHorizontalScrollbar()->setScrollAmount(...)
orientation | Vertical or Horizontal depending on which scrollbar triggered the callback |
Reimplemented in tgui::ScrollablePanel.
|
protectedvirtual |
Called when the value of one of the scrollbars has been changed by calling either getVerticalScrollbar()->setValue(...) or getHorizontalScrollbar()->setValue(...)
orientation | Vertical or Horizontal depending on which scrollbar triggered the callback |