diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-03-20 18:23:33 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-03-20 18:23:33 +1100 |
| commit | 654dcb34d61bc8313ff0d3a62e73bdf945c231ad (patch) | |
| tree | e8c2ad1d22f38fa4748d8ebb46d77c8f14115f8d /luals-stubs | |
| parent | a05d93a1e26181237a76da5ce398c6b08497d591 (diff) | |
| download | tangara-fw-654dcb34d61bc8313ff0d3a62e73bdf945c231ad.tar.gz | |
Support pinning decoded images to RAM
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 --- |
