|
GlyEngine 0.3.2
Create games and apps with lua
|
Standard API. More...
Topics | |
| Draw | |
| image | |
| Key | |
| Array | |
| Hash | |
| I18n | |
| Log | |
| App | |
| Text | |
| Ui | |
| Http | |
| Media | |
| Storage | |
| Math | |
| Bus | |
| Mem | |
| Node | |
| Color | |
Functions | |
| local function | add_style (std, node, stylesheet) |
| local function | h (element, attribute, childs) |
| JSX element factory. | |
| local function | setenv (engine) |
| local function | getenv (engine, get_env) |
| local function add_style | ( | std | , |
| node | , | ||
| stylesheet | ) |
| local function getenv | ( | engine | , |
| get_env | ) |
| local function h | ( | element | , |
| attribute | , | ||
| childs | ) |
Core function that interprets JSX and integrate with std.ui
| element | (string|function|table) The element tag name, a component function, or a raw node. |
| attribute | (table) Element attributes (e.g., class, margin, gap). |
| ... | Child elements or nested content. |
| error | when element is invalid type |
| local function setenv | ( | engine | ) |