#include <guiScrollBar.h>
◆ ArrowVisibility
Enumerator |
---|
HIDE | |
SHOW | |
DEFAULT | |
◆ GUIScrollBar()
GUIScrollBar::GUIScrollBar |
( |
IGUIEnvironment * | environment, |
|
|
IGUIElement * | parent, |
|
|
s32 | id, |
|
|
core::rect< s32 > | rectangle, |
|
|
bool | horizontal, |
|
|
bool | auto_scale, |
|
|
ISimpleTextureSource * | tsrc ) |
◆ draw()
void GUIScrollBar::draw |
( |
| ) |
|
|
overridevirtual |
◆ getLargeStep()
s32 GUIScrollBar::getLargeStep |
( |
| ) |
const |
|
inline |
◆ getMax()
s32 GUIScrollBar::getMax |
( |
| ) |
const |
|
inline |
◆ getMin()
s32 GUIScrollBar::getMin |
( |
| ) |
const |
|
inline |
◆ getPos()
s32 GUIScrollBar::getPos |
( |
| ) |
const |
◆ getPosFromMousePos()
s32 GUIScrollBar::getPosFromMousePos |
( |
const core::position2di & | p | ) |
const |
|
private |
◆ getSmallStep()
s32 GUIScrollBar::getSmallStep |
( |
| ) |
const |
|
inline |
◆ getTargetPos()
s32 GUIScrollBar::getTargetPos |
( |
| ) |
const |
◆ interpolatePos()
void GUIScrollBar::interpolatePos |
( |
| ) |
|
|
private |
◆ isHorizontal()
bool GUIScrollBar::isHorizontal |
( |
| ) |
const |
|
inline |
◆ OnEvent()
bool GUIScrollBar::OnEvent |
( |
const SEvent & | event | ) |
|
|
overridevirtual |
References down_button, drag_offset, dragged_by_slider, getPosFromMousePos(), getTargetPos(), is_dragging, is_horizontal, large_step, max_pos, min_pos, p(), setPosAndSend(), setPosInterpolated(), slider_rect, small_step, thumb_size, tray_clicked, and up_button.
Referenced by GUIScrollContainer::OnEvent().
◆ OnPostRender()
void GUIScrollBar::OnPostRender |
( |
u32 | time_ms | ) |
|
|
overridevirtual |
◆ range()
f32 GUIScrollBar::range |
( |
| ) |
const |
|
inlineprivate |
◆ refreshControls()
void GUIScrollBar::refreshControls |
( |
| ) |
|
|
private |
References GUIButton::addButton(), arrow_visibility, border_size, current_icon_color, DEFAULT, down_button, HIDE, is_horizontal, m_tsrc, and up_button.
Referenced by GUIScrollBar(), draw(), setArrowsVisible(), and updateAbsolutePosition().
◆ setArrowsVisible()
◆ setLargeStep()
void GUIScrollBar::setLargeStep |
( |
const s32 & | step | ) |
|
◆ setMax()
void GUIScrollBar::setMax |
( |
const s32 & | max | ) |
|
◆ setMin()
void GUIScrollBar::setMin |
( |
const s32 & | min | ) |
|
◆ setPageSize()
void GUIScrollBar::setPageSize |
( |
const s32 & | size | ) |
|
◆ setPos()
void GUIScrollBar::setPos |
( |
const s32 & | pos | ) |
|
Sets a position immediately, aborting any ongoing interpolation.
References setPosRaw(), and target_pos.
Referenced by GUIScrollBar(), GUITable::GUITable(), GUITable::autoScroll(), GUIEditBoxWithScrollBar::calculateScrollPos(), GUIHyperText::draw(), GUIFormSpecMenu::parseScrollBar(), GUITable::setDynamicData(), setPosAndSend(), and GUIEditBox::updateVScrollBar().
◆ setPosAndSend()
void GUIScrollBar::setPosAndSend |
( |
const s32 & | pos | ) |
|
◆ setPosInterpolated()
void GUIScrollBar::setPosInterpolated |
( |
const s32 & | pos | ) |
|
Sets a target position for interpolation.
References g_settings, Settings::getBool(), interpolatePos(), max_pos, min_pos, scroll_pos, setPosAndSend(), and target_pos.
Referenced by GUIHyperText::OnEvent(), OnEvent(), GUITable::OnEvent(), and GUIEditBox::processMouse().
◆ setPosRaw()
void GUIScrollBar::setPosRaw |
( |
const s32 & | pos | ) |
|
|
private |
References border_size, draw_center, is_auto_scaling, is_horizontal, max_pos, min_pos, page_size, range(), S32_MAX, scroll_pos, and thumb_size.
Referenced by interpolatePos(), setPos(), and updatePos().
◆ setSmallStep()
void GUIScrollBar::setSmallStep |
( |
const s32 & | step | ) |
|
◆ updateAbsolutePosition()
void GUIScrollBar::updateAbsolutePosition |
( |
| ) |
|
|
overridevirtual |
◆ updatePos()
void GUIScrollBar::updatePos |
( |
| ) |
|
|
private |
◆ arrow_visibility
◆ border_size
s32 GUIScrollBar::border_size |
|
private |
◆ current_icon_color
video::SColor GUIScrollBar::current_icon_color |
|
private |
◆ down_button
IGUIButton* GUIScrollBar::down_button |
|
private |
◆ drag_offset
s32 GUIScrollBar::drag_offset |
|
private |
◆ dragged_by_slider
bool GUIScrollBar::dragged_by_slider |
|
private |
◆ draw_center
s32 GUIScrollBar::draw_center |
|
private |
◆ is_auto_scaling
bool GUIScrollBar::is_auto_scaling |
|
private |
◆ is_dragging
bool GUIScrollBar::is_dragging |
|
private |
◆ is_horizontal
bool GUIScrollBar::is_horizontal |
|
private |
◆ large_step
s32 GUIScrollBar::large_step |
|
private |
◆ last_delta_ms
u32 GUIScrollBar::last_delta_ms = 17 |
|
private |
◆ last_time_ms
u32 GUIScrollBar::last_time_ms = 0 |
|
private |
◆ m_tsrc
◆ max_pos
s32 GUIScrollBar::max_pos |
|
private |
◆ min_pos
s32 GUIScrollBar::min_pos |
|
private |
◆ page_size
s32 GUIScrollBar::page_size |
|
private |
◆ scroll_pos
s32 GUIScrollBar::scroll_pos |
|
private |
◆ slider_rect
core::rect<s32> GUIScrollBar::slider_rect |
|
private |
◆ small_step
s32 GUIScrollBar::small_step |
|
private |
◆ target_pos
std::optional<s32> GUIScrollBar::target_pos |
|
private |
◆ thumb_size
s32 GUIScrollBar::thumb_size |
|
private |
◆ tray_clicked
bool GUIScrollBar::tray_clicked |
|
private |
◆ up_button
IGUIButton* GUIScrollBar::up_button |
|
private |
The documentation for this class was generated from the following files: