Difference between revisions of "UI.Progress"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2023.1<br/> '''Class:''' UI<br/> === Description === Creates Progress widgets. The widget can be a '''CircularProgress''', a '''P...") |
|||
Line 46: | Line 46: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | {{ | + | {{UI}} |
Latest revision as of 07:19, 17 October 2023
Available since: Gideros 2023.1
Class: UI
Description
Creates Progress widgets. The widget can be a CircularProgress, a ProgressBar or a ProgressBeads.
UI.CircularProgress.new()
UI.ProgressBar.new(textFormat)
UI.ProgressBeads.new()
Parameters
textFormat: (string) the Button widget text format
Examples
CircularProgress
local gui = UI.CircularProgress.new()
gui:setDimensions(64, 64)
gui:setColor(0xaa0000)
gui:setPosition(50, 50)
gui:setProgress(0.3)
gui:setIndeterminate(true)
stage:addChild(gui)
ProgressBar
local gui = UI.ProgressBar.new("Done: %d%%")
gui:setDimensions(128, 64)
gui:setColor(0xaa0000)
gui:setPosition(50, 50)
gui:setProgress(0.3)
stage:addChild(gui)
ProgressBeads
gui:setPosition(50, 50)
gui:setIndeterminate(4)
stage:addChild(gui)
- UI.Accordion
- UI.Animation
- UI.Bar
- UI.Behavior
- UI.Border
- UI.BreadCrumbs
- UI.Builder
- UI.Button
- UI.Calendar
- UI.Checkbox
- UI.Combobox
- UI.ImageText
- UI.Keyboard
- UI.Label
- UI.Panel
- UI.Progress
- UI.Slider
- UI.Spinner
- UI.Splitpane
- UI.TabbedPane
- UI.Table
- UI.TextField
- UI.TimePicker
- UI.Toolbox
- UI.Tree
- UI.Viewport
- UI.WeekSchedule