This repository has been archived by the owner on Dec 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
addslider()
Mammad900 edited this page Feb 27, 2021
·
2 revisions
addslider(page, X, Y, width, height, AreaHeight, value, min, max, ColorLeft, colorRight, colorBorder, colorThumb, thumbWidth, enabled, visible)
Adds a slider to the application user interface.
- Page (
int
) : The number of the page which contains the new slider - X (
unsigned int
) : The X position of the new slider in pixels. - Y (
unsigned int
) : The Y position of the new slider in pixels. - width (
unsigned int
) optional: The new slider’s width. Default: an auto value with which the slider is aligned to center ( screen height - ( X position * 2 ) ) - height (
unsigned int
) optional: The new slider’s height (thickness). Default: 10 - AreaHeight (
unsigned int
) optional: Another version of height used for touch. Default: height * 3 - value (
int
) optional: The new slider’s default value. Default: 0 - min (
int
) optional: The new slider’s minimum acceptable value. Default: 0 - max (
int
) optional: The new slider’s maximum acceptable value. Default: width - thumb width - ColorLeft (
uint16_t
) optional: See this Default: black - colorRight (
uint16_t
) optional: See this Default: black - colorBorder (
uint16_t
) optional: See this Default: white - colorThumb (
uint16_t
) optional: See this Default: white - thumbWidth (
unsigned int
) optional: The new slider’s thumb (indicator) width in pixels. Default: 7 - enabled (
bool
) optional: If false, the slider is darkened and cannot be changed. Default:true
- visible (
bool
) optional: If false, the slider is hidden (not shown). Default:true
The index of the new slider