diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-11-20 16:59:53 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-11-20 16:59:53 +1100 |
| commit | f34b6405884c4073158c3f36158c6351fa135a0f (patch) | |
| tree | 5ca5ebd1d19cb568dd402c1e53bfffdc86101acf /lib/luavgl/src/lvgl.lua | |
| parent | 5c7f07e638c50a7b063009718f8ab35c0ce7fa44 (diff) | |
| download | tangara-fw-f34b6405884c4073158c3f36158c6351fa135a0f.tar.gz | |
Add 'btn' support to luavgl
Diffstat (limited to 'lib/luavgl/src/lvgl.lua')
| -rw-r--r-- | lib/luavgl/src/lvgl.lua | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/lib/luavgl/src/lvgl.lua b/lib/luavgl/src/lvgl.lua index db1ee349..f30335cb 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 Button widget on parent +--- @param parent? Object | nil +--- @param property? StyleProp +--- @return Button +function lvgl.Button(parent, property) +end + --- Create Calendar widget on parent --- @param parent? Object | nil --- @param property? StyleProp @@ -342,7 +349,6 @@ end function lvgl.Calendar(parent, property) end - --- --- Create Label on parent --- @param parent? Object | nil @@ -466,6 +472,13 @@ function obj:Object(property) end --- +--- Create button on object +--- @param property? ButtonStyle +--- @return Button +function obj:Button(property) +end + +--- --- Create calendar on object --- @param property? CalendarStyle --- @return Calendar @@ -854,6 +867,18 @@ function calendar:Dropdown(p) end --- +--- Button widget +---@class Button:Object +--- +local button = {} + +--- set method for button widget +--- @param p ButtonStyle +--- @return nil +function button:set(p) +end + +--- --- Checkbox widget ---@class Checkbox:Object --- @@ -1350,6 +1375,8 @@ end --- @class LabelStyle :StyleProp --- @field text string +--- Button style +--- @class ButtonStyle :StyleProp --- Checkbox style --- @class CalendarStyle :StyleProp |
