FabGL
ESP32 Display Controller and Graphics Library

◆ setScrollBar()

void setScrollBar ( uiOrientation  orientation,
int  position,
int  visible,
int  range,
bool  repaintScrollbar 
)
protectedvirtualinherited

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 from uiScrollableControl.

Definition at line 4215 of file fabui.cpp.