Structs§
- Border
Params - Bracket
Params - A partial box border (left/right/top/bottom edges) drawn at the element’s
rect, 1px lines — the original “bracket” decoration used on stats pages. - Column
Def - Cursor
Params - A selection cursor (e.g. the ▶ arrow). Its base position is the element’s
rect.tx/rect.ty; the final position isbase + col*col_step(x) andbase + row*row_step(y), so a single cursor expresses a 1-D list, a 2-D grid (battle FIGHT/PKMN/ITEM/RUN), or an enum-offset selector.col/roware data bindings; place several cursor elements for multi-cursor screens (options/party). - Data
Context - Divider
Params - Edge
Insets - Element
Rect - Flex
List Params - Group
Params - Image
Data - A decoded full-colour image: straight RGBA, row-major (
width * height). Theimagelayout element looks one up by its resolvedsourcekey in theImageRegistrycarried onRenderContext. - Image
Params - Item
Template - Layout
Config - Layout
Element - List
Cursor - Cursor configuration for a scrollable list. Authored either as a bare
tile id number (
"cursor": 223) or as an object ("cursor": {"tile": 223, "position": "left"}). - List
Params - Pixel
Rect Params - A raw filled rectangle in PIXEL coordinates (not tiles).
- Render
Context - Screen
Layout - Text
Params - Theme
- Tile
Params
Enums§
- Border
Style - Coord
- A coordinate value that can be either a literal
u32or a template variable string (e.g."{cursor_0_tx}") that must be resolved at render time viaDataContext. - Data
Value - Direction
- Element
Params - Localized
Value - A text value that is either a single string (same in every language) or a
per-locale map produced by the GUI DSL’s
@t("en", "中文")literal —{"en": "TEXT SPEED", "zh": "文字速度"}. The renderer resolves it against the active language viaLocalizedValue::get. - Render
Error - Text
Align - Text
Mode - Text positioning strategy for a screen (see
Theme::text_mode). - Visibility
- Whether an element should render. Either a static
boolor a{template}condition (e.g."{show_entry}") evaluated against theDataContextat render time (truthy → visible).
Functions§
- empty_
image_ registry - A shared empty image registry — the default
RenderContext::imagesfor callers that render no images (soRenderContext::newstays 4-arg).
Type Aliases§
- Font
Registry - Image
Registry - Named registry of full-colour images, looked up by an
imageelement’s resolvedsourcekey. Empty by default (seeempty_image_registry). - Tileset
Registry