The project is a widget management module written in Lua. It defines a WidgetManager object that contains methods for managing widgets in LuaRT desktop applications.
The project provides a modular and flexible way to manage widgets in desktop applications. It allows you to add, hide, show, disable and enable child widgets. Several widget managers can be used in one application.
- Create a folder called "ecluart" in your application.
- Copy the "wm.lua" file into this folder.
[application]
|
|----ecluart
| |
| |----wm.lua
| |----...
|
|----app.wlua
The widget manager (wm) can be loaded using the function require():
local wm = require("ecluart.wm") WidgetManager() -> objectInitializes a new widget manager instance.
WidgetManager:add(widget: object, name: string) -> noneAdds a widget and name.
WidgetManager:hide() -> noneHides all child widgets.
WidgetManager:show() -> noneShows all child widgets.
WidgetManager:disable() -> noneDisables all child widgets.
WidgetManager:enable() -> noneEnables all child widgets.
WidgetManager:change(key: string, value: any) -> noneChanges a property for all child widgets.
WidgetManager:focus(name: string) -> noneSets the focus to a specific child widget.
Copyright (c) 2023 by esferatec. It is open source, released under the MIT License. See full copyright notice in the LICENSE.md file.