summaryrefslogtreecommitdiff
path: root/lib/luavgl/src/lvgl.lua
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-11-24 15:13:10 +1100
committerjacqueline <me@jacqueline.id.au>2023-11-24 15:13:10 +1100
commit7c6eb2997cbba350e7384151e13659271508e08f (patch)
treeb6f95a4843521e69b24cbf4c126d84442d19fc23 /lib/luavgl/src/lvgl.lua
parent230721cd6271f3239b42e1d2471f8db15bebd712 (diff)
downloadtangara-fw-7c6eb2997cbba350e7384151e13659271508e08f.tar.gz
Migrate 'now playing' screen to lua
Diffstat (limited to 'lib/luavgl/src/lvgl.lua')
-rw-r--r--lib/luavgl/src/lvgl.lua38
1 files changed, 38 insertions, 0 deletions
diff --git a/lib/luavgl/src/lvgl.lua b/lib/luavgl/src/lvgl.lua
index f30335cb..f4505a67 100644
--- a/lib/luavgl/src/lvgl.lua
+++ b/lib/luavgl/src/lvgl.lua
@@ -335,6 +335,13 @@ end
function lvgl.Object(parent, property)
end
+--- Create Bar widget on parent
+--- @param parent? Object | nil
+--- @param property? BarProp
+--- @return Bar
+function lvgl.Bar(parent, property)
+end
+
--- Create Button widget on parent
--- @param parent? Object | nil
--- @param property? StyleProp
@@ -472,6 +479,13 @@ function obj:Object(property)
end
---
+--- Create bar on object
+--- @param property? BarStyle
+--- @return Bar
+function obj:Bar(property)
+end
+
+---
--- Create button on object
--- @param property? ButtonStyle
--- @return Button
@@ -867,6 +881,18 @@ function calendar:Dropdown(p)
end
---
+--- Bar widget
+---@class Bar:Object
+---
+local bar = {}
+
+--- set method for bar widget
+--- @param p BarStyle
+--- @return nil
+function bar:set(p)
+end
+
+---
--- Button widget
---@class Button:Object
---
@@ -1375,6 +1401,11 @@ end
--- @class LabelStyle :StyleProp
--- @field text string
+--- Bar style
+--- @class BarStyle :StyleProp
+--- @field range BarRangePara
+--- @field value integer
+
--- Button style
--- @class ButtonStyle :StyleProp
@@ -1473,6 +1504,13 @@ end
---
+--- BarRange para
+--- @class BarRangePara
+--- @field min integer
+--- @field max integer
+---
+
+---
--- CalendarToday para
--- @class CalendarDatePara
--- @field year integer