FabGL
ESP32 Display Controller and Graphics Library

◆ setScrollBar()

void setScrollBar ( uiOrientation  orientation,
int  position,
int  visible,
int  range,
bool  repaintScrollbar = true 
)
protectedvirtual

Sets scrollbar position, visible portion and range.

Parameters
orientationSpecifies which scrollbar to update
positionSets position of the scrollbar thumb. Minimum value is 0, maximum value is range - visible. Position is measured in "scroll units". A scroll unit is determined by scrollbar size.
visibleSets scrollbar visible portion (aka thumb size) of the scrollable content. Visible portion is measured in "scroll units". A scroll unit is determined by scrollbar size.
rangeSets vertical scrollbar range. Range is the maximum position of the scrollbar. Maximum value of scrollbar position will range - visible.
repaintScrollbarIf True the scrollbar is repainted immediately.

Reimplemented in uiCustomListBox, and uiPaintBox.

Definition at line 3660 of file fabui.cpp.