summaryrefslogtreecommitdiff
path: root/lib/luavgl/src/lvgl.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/luavgl/src/lvgl.lua')
-rw-r--r--lib/luavgl/src/lvgl.lua29
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