#include <guiScrollContainer.h>
Inheritance diagram for GUIScrollContainer:
Collaboration diagram for GUIScrollContainer:Public Member Functions | |
| GUIScrollContainer (gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id, const core::rect< s32 > &rectangle, const std::string &orientation, f32 scrollfactor) | |
| virtual bool | OnEvent (const SEvent &event) override |
| virtual void | draw () override |
| void | setContentPadding (std::optional< s32 > padding) |
| void | onScrollEvent (gui::IGUIElement *caller) |
| void | setScrollBar (GUIScrollBar *scrollbar) |
Private Types | |
| enum | OrientationEnum { VERTICAL , HORIZONTAL , UNDEFINED } |
Private Member Functions | |
| void | updateScrolling () |
Private Attributes | |
| GUIScrollBar * | m_scrollbar |
| OrientationEnum | m_orientation |
| f32 | m_scrollfactor |
| std::optional< s32 > | m_content_padding_px |
|
private |
| GUIScrollContainer::GUIScrollContainer | ( | gui::IGUIEnvironment * | env, |
| gui::IGUIElement * | parent, | ||
| s32 | id, | ||
| const core::rect< s32 > & | rectangle, | ||
| const std::string & | orientation, | ||
| f32 | scrollfactor ) |
References HORIZONTAL, m_orientation, UNDEFINED, and VERTICAL.
|
overridevirtual |
|
overridevirtual |
|
inline |
|
inline |
References m_content_padding_px.
Referenced by GUIFormSpecMenu::parseScrollContainer().
Here is the caller graph for this function:| void GUIScrollContainer::setScrollBar | ( | GUIScrollBar * | scrollbar | ) |
References GUIScrollBar::isHorizontal(), m_content_padding_px, m_orientation, m_scrollbar, m_scrollfactor, GUIScrollBar::setMax(), GUIScrollBar::setMin(), GUIScrollBar::setPageSize(), updateScrolling(), and VERTICAL.
Here is the call graph for this function:
|
private |
References GUIScrollBar::getPos(), HORIZONTAL, m_orientation, m_scrollbar, m_scrollfactor, and VERTICAL.
Referenced by onScrollEvent(), and setScrollBar().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Referenced by setContentPadding(), and setScrollBar().
|
private |
Referenced by GUIScrollContainer(), setScrollBar(), and updateScrolling().
|
private |
Referenced by OnEvent(), onScrollEvent(), setScrollBar(), and updateScrolling().
|
private |
Referenced by setScrollBar(), and updateScrolling().