--- ---
|
TGUI
1.x-dev
|
Base class for widgets with a single scrollbar. More...
#include <TGUI/Widgets/Scrollbar.hpp>
Public Member Functions | |
| ScrollbarChildInterface () | |
| Default constructor. | |
| ScrollbarChildInterface (const ScrollbarChildInterface &) | |
| Copy constructor. | |
| ScrollbarChildInterface (ScrollbarChildInterface &&) noexcept | |
| Move constructor. | |
| virtual | ~ScrollbarChildInterface ()=default |
| Destructor. | |
| ScrollbarChildInterface & | operator= (const ScrollbarChildInterface &) |
| Overload of copy assignment operator. | |
| ScrollbarChildInterface & | operator= (ScrollbarChildInterface &&) noexcept |
| Move assignment. | |
| ScrollbarAccessor * | getScrollbar () |
| Returns an object that provides access to the widget's scrollbar. | |
| const ScrollbarAccessor * | getScrollbar () const |
| Returns an object that provides access to the widget's scrollbar. | |
Protected Member Functions | |
| virtual void | scrollbarValueChanged () |
| Called when the value of the scrollbar has been changed via getScrollbar()->setValue(...) | |
| virtual void | scrollbarPolicyChanged () |
| Called when the policy of the scrollbar has been changed via getScrollbar()->setPolicy(...) | |
| virtual void | scrollbarScrollAmountChanged () |
| Called when the scroll amount of the scrollbar has been changed via getScrollbar()->setScrollAmount(...) | |
| void | saveScrollbarPolicy (std::unique_ptr< DataIO::Node > &node) const |
| This function should be called inside the save function in order to save the configured scrollbar policy. | |
| void | loadScrollbarPolicy (const std::unique_ptr< DataIO::Node > &node) |
| This function should be called inside the load function in order to load the wanted scrollbar policy. | |
Protected Attributes | |
| CopiedSharedPtr< ScrollbarChildWidget > | m_scrollbar |
| ScrollbarAccessor | m_scrollbarAccessor |
Base class for widgets with a single 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 scrollbar.
|
nodiscard |
Returns an object that provides access to the widget's scrollbar.
|
protectedvirtual |
Called when the policy of the scrollbar has been changed via getScrollbar()->setPolicy(...)
Reimplemented in tgui::Label.
|
protectedvirtual |
Called when the value of the scrollbar has been changed via getScrollbar()->setValue(...)
Reimplemented in tgui::ListBox.