diff options
Diffstat (limited to 'luals-stubs')
| -rw-r--r-- | luals-stubs/lvgl.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/luals-stubs/lvgl.lua b/luals-stubs/lvgl.lua index 59093000..360246f7 100644 --- a/luals-stubs/lvgl.lua +++ b/luals-stubs/lvgl.lua @@ -427,6 +427,13 @@ end function lvgl.Font(family, size, weight) end +--- Decodes an image from the filesystem and pins it into RAM, returning a +--- lightuserdata that can be passed to `img:set_src`. +--- @param path? string path to the encoded image +--- @return ImgData +function lvgl.ImgData(path) +end + --- Create a new style that can be applied to objects via `obj:add_style`. --- @param p? StyleProp Style properties that will be applied by this style. --- @return Style @@ -1248,6 +1255,12 @@ Font is a light userdata that can be uset to set style text_font. local font = {} + +--- Decoded image data that is pinned to memory. +--- @class ImgData + +local ImgData = {} + --- --- @class Style : lightuserdata --- |
