Skip to content

Commit d25acfb

Browse files
committed
doc: minor update to include global functions
Signed-off-by: Neo Xu <[email protected]>
1 parent 2553bbb commit d25acfb

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/lvgl.lua

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,11 @@ end
332332
--- @param parent? Object | nil
333333
--- @param property? StyleProp
334334
--- @return Object
335-
function lvgl.Object(parent, property)
335+
function Object(parent, property)
336336
end
337337

338+
lvgl.Object = Object
339+
338340
--- Create Calendar widget on parent
339341
--- @param parent? Object | nil
340342
--- @param property? StyleProp
@@ -364,17 +366,21 @@ end
364366
--- @param parent? Object | nil
365367
--- @param property? ImageStyle
366368
--- @return Image
367-
function lvgl.Image(parent, property)
369+
function Image(parent, property)
368370
end
369371

372+
lvgl.Image = Image
373+
370374
---
371375
--- Create Label on parent
372376
--- @param parent? Object | nil
373377
--- @param property? LabelStyle
374378
--- @return Label
375-
function lvgl.Label(parent, property)
379+
function Label(parent, property)
376380
end
377381

382+
lvgl.Label = Label
383+
378384
---
379385
--- Create Textarea Widget on parent
380386
--- @param parent? Object | nil

0 commit comments

Comments
 (0)