feat(lua): allow the filename for an image object to be set via a function (#6091)
This commit is contained in:
@@ -456,8 +456,11 @@ class LvglWidgetImage : public LvglWidgetObject
|
||||
public:
|
||||
LvglWidgetImage() : LvglWidgetObject(LVGL_SIMPLEMETATABLE) {}
|
||||
|
||||
bool callRefs(lua_State *L) override;
|
||||
void clearRefs(lua_State *L) override;
|
||||
|
||||
protected:
|
||||
std::string filename;
|
||||
LvglParamFuncOrValue filename = { .function = LUA_REFNIL, .txt = ""};
|
||||
bool fillFrame = false;
|
||||
|
||||
void build(lua_State *L) override;
|
||||
|
||||
Reference in New Issue
Block a user