Package gui
gui-app-demo #sleela 2.5 (lib/gui/version-gual/gui-app-demo.sleela)
GuiAppDemo class
Runnable demonstrator for the /lib/gui support structure. It boots an SLGuiApp (application + window + DOM + reconciler + host adapter + script engine), builds a small interface in the SLeeLa DOM, binds an onClick callback, drives part of the UI from a script, refreshes once to project the DOM onto real SleelaUI widgets, and (on a display) hands control to the run loop. On a headless host boot() returns false and it exits cleanly, like gui-demo.sleela. This proves the architectural wiring end to end: DOM -> reconcile -> widgets, and widget activations -> events -> handlers. Family: gui. SLeeLa owns the document and dispatch; SleelaUI renders it.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
boolToStr | String boolToStr(boolean b) | No description in source. |
banner | void banner(String t) | No description in source. |
run | int run() | No description in source. |
gui-app-demo #sleela 2.5 (lib/gui/version-mual/gui-app-demo.sleela)
GuiAppDemo class
Runnable demonstrator for the /lib/gui support structure. It boots an SLGuiApp (application + window + DOM + reconciler + host adapter + script engine), builds a small interface in the SLeeLa DOM, binds an onClick callback, drives part of the UI from a script, refreshes once to project the DOM onto real SleelaUI widgets, and (on a display) hands control to the run loop. On a headless host boot() returns false and it exits cleanly, like gui-demo.sleela. This proves the architectural wiring end to end: DOM -> reconcile -> widgets, and widget activations -> events -> handlers. Family: gui. SLeeLa owns the document and dispatch; SleelaUI renders it.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
boolToStr | String boolToStr(boolean b) | No description in source. |
banner | void banner(String t) | No description in source. |
run | int run() | No description in source. |
gui-app-demo #sleela 2.5 (lib/gui/version-thual/gui-app-demo.sleela)
GuiAppDemo class
Runnable demonstrator for the /lib/gui support structure. It boots an SLGuiApp (application + window + DOM + reconciler + host adapter + script engine), builds a small interface in the SLeeLa DOM, binds an onClick callback, drives part of the UI from a script, refreshes once to project the DOM onto real SleelaUI widgets, and (on a display) hands control to the run loop. On a headless host boot() returns false and it exits cleanly, like gui-demo.sleela. This proves the architectural wiring end to end: DOM -> reconcile -> widgets, and widget activations -> events -> handlers. Family: gui. SLeeLa owns the document and dispatch; SleelaUI renders it.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
boolToStr | String boolToStr(boolean b) | No description in source. |
banner | void banner(String t) | No description in source. |
run | int run() | No description in source. |
gui-app-demo #sleela 2.5 (lib/gui/version-military/gui-app-demo.sleela)
GuiAppDemo class
Runnable demonstrator for the /lib/gui support structure. It boots an SLGuiApp (application + window + DOM + reconciler + host adapter + script engine), builds a small interface in the SLeeLa DOM, binds an onClick callback, drives part of the UI from a script, refreshes once to project the DOM onto real SleelaUI widgets, and (on a display) hands control to the run loop. On a headless host boot() returns false and it exits cleanly, like gui-demo.sleela. This proves the architectural wiring end to end: DOM -> reconcile -> widgets, and widget activations -> events -> handlers. Family: gui. SLeeLa owns the document and dispatch; SleelaUI renders it.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
boolToStr | String boolToStr(boolean b) | No description in source. |
banner | void banner(String t) | No description in source. |
run | int run() | No description in source. |
gui-app-demo #sleela 2.5 (lib/gui/version-dual/gui-app-demo.sleela)
GuiAppDemo class
Runnable demonstrator for the /lib/gui support structure. It boots an SLGuiApp (application + window + DOM + reconciler + host adapter + script engine), builds a small interface in the SLeeLa DOM, binds an onClick callback, drives part of the UI from a script, refreshes once to project the DOM onto real SleelaUI widgets, and (on a display) hands control to the run loop. On a headless host boot() returns false and it exits cleanly, like gui-demo.sleela. This proves the architectural wiring end to end: DOM -> reconcile -> widgets, and widget activations -> events -> handlers. Family: gui. SLeeLa owns the document and dispatch; SleelaUI renders it.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
boolToStr | String boolToStr(boolean b) | No description in source. |
banner | void banner(String t) | No description in source. |
run | int run() | No description in source. |
gui-components-demo #sleela 2.5 (lib/gui/version-military/gui-components-demo.sleela)
GuiComponentsDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | void main() | No description in source. |
gui-components-demo #sleela 2.5 (lib/gui/version-dual/gui-components-demo.sleela)
GuiComponentsDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | void main() | No description in source. |
gui-demo #sleela 2.5 (lib/gui/version-gual/gui-demo.sleela)
GuiDemo class
Runnable demonstrator for the gui package — the SLeeLa-facing consequence of the top-level gui/ work. It walks the three integration paths (Java host, SLeeLa intent, native ABI bridge) and the 1..14 document-change listener that refreshes a running window on an OS call. Self-contained (inline model + main) in the style of moral-capacitor.sleela.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MIN_DOCUMENTS | int MIN_DOCUMENTS = 1 | No description in source. |
MAX_DOCUMENTS | int MAX_DOCUMENTS = 14 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
intToStr | String intToStr(int v) | No description in source. |
boolToStr | String boolToStr(boolean b) | No description in source. |
resolveBackend | String resolveBackend(String kind) | The toolkit-neutral backend selector (SleelaGui.create). |
backendSupported | boolean backendSupported(String kind) | No description in source. |
withinBound | boolean withinBound(int count) | The hard 1..14 document-count contract. |
refreshText | String refreshText(String documentId, String revision) | The window's document-change refresh sink (SleelaGui.refresh default). |
banner | void banner(String t) | No description in source. |
main | void main() | No description in source. |
gui-demo #sleela 2.5 (lib/gui/version-mual/gui-demo.sleela)
GuiDemo class
Runnable demonstrator for the gui package — the SLeeLa-facing consequence of the top-level gui/ work. It walks the three integration paths (Java host, SLeeLa intent, native ABI bridge) and the 1..14 document-change listener that refreshes a running window on an OS call. Self-contained (inline model + main) in the style of moral-capacitor.sleela.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MIN_DOCUMENTS | int MIN_DOCUMENTS = 1 | No description in source. |
MAX_DOCUMENTS | int MAX_DOCUMENTS = 14 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
intToStr | String intToStr(int v) | No description in source. |
boolToStr | String boolToStr(boolean b) | No description in source. |
resolveBackend | String resolveBackend(String kind) | The toolkit-neutral backend selector (SleelaGui.create). |
backendSupported | boolean backendSupported(String kind) | No description in source. |
withinBound | boolean withinBound(int count) | The hard 1..14 document-count contract. |
refreshText | String refreshText(String documentId, String revision) | The window's document-change refresh sink (SleelaGui.refresh default). |
banner | void banner(String t) | No description in source. |
main | void main() | No description in source. |
gui-demo #sleela 2.5 (lib/gui/version-thual/gui-demo.sleela)
GuiDemo class
Runnable demonstrator for the gui package — the SLeeLa-facing consequence of the top-level gui/ work. It walks the three integration paths (Java host, SLeeLa intent, native ABI bridge) and the 1..14 document-change listener that refreshes a running window on an OS call. Self-contained (inline model + main) in the style of moral-capacitor.sleela.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MIN_DOCUMENTS | int MIN_DOCUMENTS = 1 | No description in source. |
MAX_DOCUMENTS | int MAX_DOCUMENTS = 14 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
intToStr | String intToStr(int v) | No description in source. |
boolToStr | String boolToStr(boolean b) | No description in source. |
resolveBackend | String resolveBackend(String kind) | The toolkit-neutral backend selector (SleelaGui.create). |
backendSupported | boolean backendSupported(String kind) | No description in source. |
withinBound | boolean withinBound(int count) | The hard 1..14 document-count contract. |
refreshText | String refreshText(String documentId, String revision) | The window's document-change refresh sink (SleelaGui.refresh default). |
banner | void banner(String t) | No description in source. |
main | void main() | No description in source. |
gui-demo #sleela 2.5 (lib/gui/version-military/gui-demo.sleela)
GuiDemo class
Runnable demonstrator for the gui package — the SLeeLa-facing consequence of the top-level gui/ work. It walks the three integration paths (Java host, SLeeLa intent, native ABI bridge) and the 1..14 document-change listener that refreshes a running window on an OS call. Self-contained (inline model + main) in the style of moral-capacitor.sleela.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MIN_DOCUMENTS | int MIN_DOCUMENTS = 1 | No description in source. |
MAX_DOCUMENTS | int MAX_DOCUMENTS = 14 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
intToStr | String intToStr(int v) | No description in source. |
boolToStr | String boolToStr(boolean b) | No description in source. |
resolveBackend | String resolveBackend(String kind) | The toolkit-neutral backend selector (SleelaGui.create). |
backendSupported | boolean backendSupported(String kind) | No description in source. |
withinBound | boolean withinBound(int count) | The hard 1..14 document-count contract. |
refreshText | String refreshText(String documentId, String revision) | The window's document-change refresh sink (SleelaGui.refresh default). |
banner | void banner(String t) | No description in source. |
main | void main() | No description in source. |
gui-demo #sleela 2.5 (lib/gui/version-dual/gui-demo.sleela)
GuiDemo class
Runnable demonstrator for the gui package — the SLeeLa-facing consequence of the top-level gui/ work. It walks the three integration paths (Java host, SLeeLa intent, native ABI bridge) and the 1..14 document-change listener that refreshes a running window on an OS call. Self-contained (inline model + main) in the style of moral-capacitor.sleela.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MIN_DOCUMENTS | int MIN_DOCUMENTS = 1 | No description in source. |
MAX_DOCUMENTS | int MAX_DOCUMENTS = 14 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
intToStr | String intToStr(int v) | No description in source. |
boolToStr | String boolToStr(boolean b) | No description in source. |
resolveBackend | String resolveBackend(String kind) | The toolkit-neutral backend selector (SleelaGui.create). |
backendSupported | boolean backendSupported(String kind) | No description in source. |
withinBound | boolean withinBound(int count) | The hard 1..14 document-count contract. |
refreshText | String refreshText(String documentId, String revision) | The window's document-change refresh sink (SleelaGui.refresh default). |
banner | void banner(String t) | No description in source. |
main | void main() | No description in source. |
gui-effects-demo #sleela 2.5 (lib/gui/version-thual/gui-effects-demo.sleela)
GuiEffectsDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | void main() | No description in source. |
gui-effects-demo #sleela 2.5 (lib/gui/version-military/gui-effects-demo.sleela)
GuiEffectsDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | void main() | No description in source. |
gui-effects-demo #sleela 2.5 (lib/gui/version-dual/gui-effects-demo.sleela)
GuiEffectsDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | void main() | No description in source. |
gui-events-demo #sleela 2.5 (lib/gui/version-gual/gui-events-demo.sleela)
GuiEventsDemo class
Runnable demonstrator for the /lib/gui event + DHTML + scripting layer. It builds a small document (a window with a button and an entry), binds callbacks (onClick / onInput) the DHTML way, raises events and shows the dispatcher routing them to operations with the take-the-latch latch, demonstrates preventDefault/stopPropagation, mutates the DOM live (setText/setStyle/hide), and finally drives the SAME interface from an SLGuiScript command list — proving the UI can be authored and driven by scripting. Self-contained (inline flow + main), in the style of gui-demo.sleela. Family: gui. SLeeLa owns dispatch and the meaning of events; a host only raises them and mirrors the DOM onto widgets.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
boolToStr | String boolToStr(boolean b) | No description in source. |
banner | void banner(String t) | No description in source. |
main | void main() | No description in source. |
gui-events-demo #sleela 2.5 (lib/gui/version-mual/gui-events-demo.sleela)
GuiEventsDemo class
Runnable demonstrator for the /lib/gui event + DHTML + scripting layer. It builds a small document (a window with a button and an entry), binds callbacks (onClick / onInput) the DHTML way, raises events and shows the dispatcher routing them to operations with the take-the-latch latch, demonstrates preventDefault/stopPropagation, mutates the DOM live (setText/setStyle/hide), and finally drives the SAME interface from an SLGuiScript command list — proving the UI can be authored and driven by scripting. Self-contained (inline flow + main), in the style of gui-demo.sleela. Family: gui. SLeeLa owns dispatch and the meaning of events; a host only raises them and mirrors the DOM onto widgets.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
boolToStr | String boolToStr(boolean b) | No description in source. |
banner | void banner(String t) | No description in source. |
main | void main() | No description in source. |
gui-events-demo #sleela 2.5 (lib/gui/version-thual/gui-events-demo.sleela)
GuiEventsDemo class
Runnable demonstrator for the /lib/gui event + DHTML + scripting layer. It builds a small document (a window with a button and an entry), binds callbacks (onClick / onInput) the DHTML way, raises events and shows the dispatcher routing them to operations with the take-the-latch latch, demonstrates preventDefault/stopPropagation, mutates the DOM live (setText/setStyle/hide), and finally drives the SAME interface from an SLGuiScript command list — proving the UI can be authored and driven by scripting. Self-contained (inline flow + main), in the style of gui-demo.sleela. Family: gui. SLeeLa owns dispatch and the meaning of events; a host only raises them and mirrors the DOM onto widgets.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
boolToStr | String boolToStr(boolean b) | No description in source. |
banner | void banner(String t) | No description in source. |
main | void main() | No description in source. |
gui-events-demo #sleela 2.5 (lib/gui/version-military/gui-events-demo.sleela)
GuiEventsDemo class
Runnable demonstrator for the /lib/gui event + DHTML + scripting layer. It builds a small document (a window with a button and an entry), binds callbacks (onClick / onInput) the DHTML way, raises events and shows the dispatcher routing them to operations with the take-the-latch latch, demonstrates preventDefault/stopPropagation, mutates the DOM live (setText/setStyle/hide), and finally drives the SAME interface from an SLGuiScript command list — proving the UI can be authored and driven by scripting. Self-contained (inline flow + main), in the style of gui-demo.sleela. Family: gui. SLeeLa owns dispatch and the meaning of events; a host only raises them and mirrors the DOM onto widgets.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
boolToStr | String boolToStr(boolean b) | No description in source. |
banner | void banner(String t) | No description in source. |
main | void main() | No description in source. |
gui-events-demo #sleela 2.5 (lib/gui/version-dual/gui-events-demo.sleela)
GuiEventsDemo class
Runnable demonstrator for the /lib/gui event + DHTML + scripting layer. It builds a small document (a window with a button and an entry), binds callbacks (onClick / onInput) the DHTML way, raises events and shows the dispatcher routing them to operations with the take-the-latch latch, demonstrates preventDefault/stopPropagation, mutates the DOM live (setText/setStyle/hide), and finally drives the SAME interface from an SLGuiScript command list — proving the UI can be authored and driven by scripting. Self-contained (inline flow + main), in the style of gui-demo.sleela. Family: gui. SLeeLa owns dispatch and the meaning of events; a host only raises them and mirrors the DOM onto widgets.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
boolToStr | String boolToStr(boolean b) | No description in source. |
banner | void banner(String t) | No description in source. |
main | void main() | No description in source. |
gui-guide-chain-demo #sleela 2.5 (lib/gui/version-mual/gui-guide-chain-demo.sleela)
GuiGuideChainDemo class
Runnable demonstrator for the philosophers Guide-chain operator (syntax 2.3, SLEELA.syntax section 17) applied to GUI setup. A window is "constructed and guided" in one expression: new GuiPanel() :: window :: title :: listen :: show where each Guide is a zero-argument setup step applied in order, and the chain evaluates to the constructed panel (fluent). This is the gui-family reading of the perfect Constructor: the construction of a GUI surface IS a seated sequence of growths. Self-contained (inline model + main).
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | void main() | No description in source. |
GuiPanel class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
hasWindow | int hasWindow | set as each Guide fires |
hasTitle | int hasTitle | No description in source. |
listening | int listening | No description in source. |
shown | int shown | No description in source. |
seated | int seated | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
create | void create() | No description in source. |
window | void window() | --- the GUI Guides: zero-arg setup steps seated via :: --- |
title | void title() | No description in source. |
listen | void listen() | No description in source. |
show | void show() | No description in source. |
steps | int steps() | No description in source. |
describe | String describe() | No description in source. |
gui-html-codecs-demo #sleela 2.5 (lib/gui/version-military/gui-html-codecs-demo.sleela)
GuiHtmlCodecsDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | void main() | No description in source. |
gui-html-codecs-demo #sleela 2.5 (lib/gui/version-dual/gui-html-codecs-demo.sleela)
GuiHtmlCodecsDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | void main() | No description in source. |
gui-menu-model-demo #sleela 2.5 (lib/gui/version-military/gui-menu-model-demo.sleela)
GuiMenuModelDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
boolToStr | String boolToStr(boolean b) | No description in source. |
main | void main() | No description in source. |
gui-military-demo #sleela 2.5 (lib/gui/version-military/gui-military-demo.sleela)
GuiMilitaryDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | void main() | No description in source. |
gui-overflow-scroll-demo #sleela 2.5 (lib/gui/version-gual/gui-overflow-scroll-demo.sleela)
GuiOverflowScrollDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
banner | void banner(String t) | No description in source. |
axis | void axis(String name, int viewport, int content, boolean horizontal) | Report the implied-scroll decision for a viewport vs. content extent. |
main | void main() | No description in source. |
gui-overflow-scroll-demo #sleela 2.5 (lib/gui/version-mual/gui-overflow-scroll-demo.sleela)
GuiOverflowScrollDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
banner | void banner(String t) | No description in source. |
axis | void axis(String name, int viewport, int content, boolean horizontal) | Report the implied-scroll decision for a viewport vs. content extent. |
main | void main() | No description in source. |
gui-overflow-scroll-demo #sleela 2.5 (lib/gui/version-thual/gui-overflow-scroll-demo.sleela)
GuiOverflowScrollDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
banner | void banner(String t) | No description in source. |
axis | void axis(String name, int viewport, int content, boolean horizontal) | Report the implied-scroll decision for a viewport vs. content extent. |
main | void main() | No description in source. |
gui-overflow-scroll-demo #sleela 2.5 (lib/gui/version-military/gui-overflow-scroll-demo.sleela)
GuiOverflowScrollDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
banner | void banner(String t) | No description in source. |
axis | void axis(String name, int viewport, int content, boolean horizontal) | Report the implied-scroll decision for a viewport vs. content extent. |
main | void main() | No description in source. |
gui-overflow-scroll-demo #sleela 2.5 (lib/gui/version-dual/gui-overflow-scroll-demo.sleela)
GuiOverflowScrollDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
banner | void banner(String t) | No description in source. |
axis | void axis(String name, int viewport, int content, boolean horizontal) | Report the implied-scroll decision for a viewport vs. content extent. |
main | void main() | No description in source. |
gui-scroll-screenfit-demo #sleela 2.5 (lib/gui/version-gual/gui-scroll-screenfit-demo.sleela)
GuiScrollScreenFitDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | void main() | No description in source. |
gui-scroll-screenfit-demo #sleela 2.5 (lib/gui/version-mual/gui-scroll-screenfit-demo.sleela)
GuiScrollScreenFitDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | void main() | No description in source. |
gui-scroll-screenfit-demo #sleela 2.5 (lib/gui/version-thual/gui-scroll-screenfit-demo.sleela)
GuiScrollScreenFitDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | void main() | No description in source. |
gui-scroll-screenfit-demo #sleela 2.5 (lib/gui/version-military/gui-scroll-screenfit-demo.sleela)
GuiScrollScreenFitDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | void main() | No description in source. |
gui-scroll-screenfit-demo #sleela 2.5 (lib/gui/version-dual/gui-scroll-screenfit-demo.sleela)
GuiScrollScreenFitDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | void main() | No description in source. |
gui-transitions-demo #sleela 2.5 (lib/gui/version-gual/gui-transitions-demo.sleela)
GuiTransitionsDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | void main() | No description in source. |
gui-transitions-demo #sleela 2.5 (lib/gui/version-mual/gui-transitions-demo.sleela)
GuiTransitionsDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | void main() | No description in source. |
gui-transitions-demo #sleela 2.5 (lib/gui/version-thual/gui-transitions-demo.sleela)
GuiTransitionsDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | void main() | No description in source. |
gui-transitions-demo #sleela 2.5 (lib/gui/version-military/gui-transitions-demo.sleela)
GuiTransitionsDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | void main() | No description in source. |
gui-transitions-demo #sleela 2.5 (lib/gui/version-dual/gui-transitions-demo.sleela)
GuiTransitionsDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | void main() | No description in source. |
SLGuiAction #sleela 2.5 (lib/gui/version-gual/SLGuiAction.sleela)
SLGuiAction class
Defines SLGuiAction — a named, bindable GUI action. Mirrors the SleelaGuiRuntime.action(name, operation) / SleelaGui.onAction(...) binding in gui/: a name the window raises and a SLeeLa operation it maps to. The VM latches each activation so a click (or Enter/Space while focused) is observed exactly once.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
name | String name | the action's stable name |
operation | String operation | the SLeeLa operation it invokes |
pending | int pending | activation latch (set on raise, cleared on take) |
fired | int fired | total activations observed |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String n, String op) | No description in source. |
getName | String getName() | No description in source. |
getOperation | String getOperation() | No description in source. |
bound | boolean bound() | No description in source. |
raise | void raise() | The host raises an activation (a click, or Enter/Space while focused). |
take | boolean take() | Take-the-latch read: true once per activation, then cleared — the VM clears the latch on read, so each click is observed exactly once. |
activations | int activations() | No description in source. |
SLGuiAction #sleela 2.5 (lib/gui/version-mual/SLGuiAction.sleela)
SLGuiAction class
Defines SLGuiAction — a named, bindable GUI action. Mirrors the SleelaGuiRuntime.action(name, operation) / SleelaGui.onAction(...) binding in gui/: a name the window raises and a SLeeLa operation it maps to. The VM latches each activation so a click (or Enter/Space while focused) is observed exactly once.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
name | String name | the action's stable name |
operation | String operation | the SLeeLa operation it invokes |
pending | int pending | activation latch (set on raise, cleared on take) |
fired | int fired | total activations observed |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String n, String op) | No description in source. |
getName | String getName() | No description in source. |
getOperation | String getOperation() | No description in source. |
bound | boolean bound() | No description in source. |
raise | void raise() | The host raises an activation (a click, or Enter/Space while focused). |
take | boolean take() | Take-the-latch read: true once per activation, then cleared — the VM clears the latch on read, so each click is observed exactly once. |
activations | int activations() | No description in source. |
SLGuiAction #sleela 2.5 (lib/gui/version-thual/SLGuiAction.sleela)
SLGuiAction class
Defines SLGuiAction — a named, bindable GUI action. Mirrors the SleelaGuiRuntime.action(name, operation) / SleelaGui.onAction(...) binding in gui/: a name the window raises and a SLeeLa operation it maps to. The VM latches each activation so a click (or Enter/Space while focused) is observed exactly once.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
name | String name | the action's stable name |
operation | String operation | the SLeeLa operation it invokes |
pending | int pending | activation latch (set on raise, cleared on take) |
fired | int fired | total activations observed |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String n, String op) | No description in source. |
getName | String getName() | No description in source. |
getOperation | String getOperation() | No description in source. |
bound | boolean bound() | No description in source. |
raise | void raise() | The host raises an activation (a click, or Enter/Space while focused). |
take | boolean take() | Take-the-latch read: true once per activation, then cleared — the VM clears the latch on read, so each click is observed exactly once. |
activations | int activations() | No description in source. |
SLGuiAction #sleela 2.5 (lib/gui/version-military/SLGuiAction.sleela)
SLGuiAction class
Defines SLGuiAction — a named, bindable GUI action. Mirrors the SleelaGuiRuntime.action(name, operation) / SleelaGui.onAction(...) binding in gui/: a name the window raises and a SLeeLa operation it maps to. The VM latches each activation so a click (or Enter/Space while focused) is observed exactly once.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
name | String name | the action's stable name |
operation | String operation | the SLeeLa operation it invokes |
pending | int pending | activation latch (set on raise, cleared on take) |
fired | int fired | total activations observed |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String n, String op) | No description in source. |
getName | String getName() | No description in source. |
getOperation | String getOperation() | No description in source. |
bound | boolean bound() | No description in source. |
raise | void raise() | The host raises an activation (a click, or Enter/Space while focused). |
take | boolean take() | Take-the-latch read: true once per activation, then cleared — the VM clears the latch on read, so each click is observed exactly once. |
activations | int activations() | No description in source. |
SLGuiAction #sleela 2.5 (lib/gui/version-dual/SLGuiAction.sleela)
SLGuiAction class
Defines SLGuiAction — a named, bindable GUI action. Mirrors the SleelaGuiRuntime.action(name, operation) / SleelaGui.onAction(...) binding in gui/: a name the window raises and a SLeeLa operation it maps to. The VM latches each activation so a click (or Enter/Space while focused) is observed exactly once.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
name | String name | the action's stable name |
operation | String operation | the SLeeLa operation it invokes |
pending | int pending | activation latch (set on raise, cleared on take) |
fired | int fired | total activations observed |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String n, String op) | No description in source. |
getName | String getName() | No description in source. |
getOperation | String getOperation() | No description in source. |
bound | boolean bound() | No description in source. |
raise | void raise() | The host raises an activation (a click, or Enter/Space while focused). |
take | boolean take() | Take-the-latch read: true once per activation, then cleared — the VM clears the latch on read, so each click is observed exactly once. |
activations | int activations() | No description in source. |
SLGuiAdminAuthority #sleela 2.5 (lib/gui/version-military/SLGuiAdminAuthority.sleela)
SLGuiAdminAuthority class
Defines SLGuiAdminAuthority — the 4.0 admin authority surface. It
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_AUDIT | static final int MAX_AUDIT = 128 | No description in source. |
ACT_SIGNIN | static final int ACT_SIGNIN = 1 | Audit entry kinds. started a process session |
ACT_SIGNOFF | static final int ACT_SIGNOFF = 2 | approved an operation |
ACT_SIGNATURE | static final int ACT_SIGNATURE= 3 | legal signature on a record |
ACT_SIGNOUT | static final int ACT_SIGNOUT = 4 | No description in source. |
adminId | String adminId | the authenticated admin currently signed in ("" = none) |
signedIn | int signedIn | 1 while a signed-in process session is open |
processName | String processName | the process this session was opened to start |
auditAct | int[] auditAct | Audit trail (parallel arrays): act kind, admin, subject, token/reason. |
auditAdmin | String[] auditAdmin | No description in source. |
auditSubject | String[] auditSubject | No description in source. |
auditToken | String[] auditToken | No description in source. |
auditCount | int auditCount | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
signIn | boolean signIn(String admin, String process) | ---- 1. sign-in to start a process -------------------------------------- An authorised admin opens a session to start a guarded process. Fail-closed: a blank admin id or process name is refused. |
signOut | void signOut() | No description in source. |
isSignedIn | boolean isSignedIn() | No description in source. |
currentAdmin | String currentAdmin() | No description in source. |
currentProcess | String currentProcess() | No description in source. |
mayStartProcess | boolean mayStartProcess(String process) | A guarded process may start only while an admin session is open. |
signOff | boolean signOff(String operation, String reason) | ---- 2. sign-off on a component operation ------------------------------- Approve a specific operation. Requires a signed-in admin (fail-closed); the approval is recorded against that admin. Returns false without authority. |
isSignedOff | boolean isSignedOff(String operation) | Was `operation` signed off by an admin (searching the audit trail)? |
signForLaw | boolean signForLaw(String subject, String signatureToken) | ---- 3. admin signature for Law ----------------------------------------- Attach a legal signature token to a record. Requires a signed-in admin; the token is host-supplied (e.g. a signed hash). Fail-closed on missing inputs. |
isLegallySigned | boolean isLegallySigned(String subject) | No description in source. |
signatureOf | String signatureOf(String subject) | No description in source. |
logAct | void logAct(int act, String admin, String subject, String token) | ---- audit trail -------------------------------------------------------- |
auditEntries | int auditEntries() | No description in source. |
auditActAt | int auditActAt(int i) | No description in source. |
auditAdminAt | String auditAdminAt(int i) | No description in source. |
auditSubjectAt | String auditSubjectAt(int i) | No description in source. |
actName | String actName(int act) | No description in source. |
SLGuiAdminAuthority #sleela 2.5 (lib/gui/version-dual/SLGuiAdminAuthority.sleela)
SLGuiAdminAuthority class
Defines SLGuiAdminAuthority — the 4.0 admin authority surface. It
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_AUDIT | static final int MAX_AUDIT = 128 | No description in source. |
ACT_SIGNIN | static final int ACT_SIGNIN = 1 | Audit entry kinds. started a process session |
ACT_SIGNOFF | static final int ACT_SIGNOFF = 2 | approved an operation |
ACT_SIGNATURE | static final int ACT_SIGNATURE= 3 | legal signature on a record |
ACT_SIGNOUT | static final int ACT_SIGNOUT = 4 | No description in source. |
adminId | String adminId | the authenticated admin currently signed in ("" = none) |
signedIn | int signedIn | 1 while a signed-in process session is open |
processName | String processName | the process this session was opened to start |
auditAct | int[] auditAct | Audit trail (parallel arrays): act kind, admin, subject, token/reason. |
auditAdmin | String[] auditAdmin | No description in source. |
auditSubject | String[] auditSubject | No description in source. |
auditToken | String[] auditToken | No description in source. |
auditCount | int auditCount | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
signIn | boolean signIn(String admin, String process) | ---- 1. sign-in to start a process -------------------------------------- An authorised admin opens a session to start a guarded process. Fail-closed: a blank admin id or process name is refused. |
signOut | void signOut() | No description in source. |
isSignedIn | boolean isSignedIn() | No description in source. |
currentAdmin | String currentAdmin() | No description in source. |
currentProcess | String currentProcess() | No description in source. |
mayStartProcess | boolean mayStartProcess(String process) | A guarded process may start only while an admin session is open. |
signOff | boolean signOff(String operation, String reason) | ---- 2. sign-off on a component operation ------------------------------- Approve a specific operation. Requires a signed-in admin (fail-closed); the approval is recorded against that admin. Returns false without authority. |
isSignedOff | boolean isSignedOff(String operation) | Was `operation` signed off by an admin (searching the audit trail)? |
signForLaw | boolean signForLaw(String subject, String signatureToken) | ---- 3. admin signature for Law ----------------------------------------- Attach a legal signature token to a record. Requires a signed-in admin; the token is host-supplied (e.g. a signed hash). Fail-closed on missing inputs. |
isLegallySigned | boolean isLegallySigned(String subject) | No description in source. |
signatureOf | String signatureOf(String subject) | No description in source. |
logAct | void logAct(int act, String admin, String subject, String token) | ---- audit trail -------------------------------------------------------- |
auditEntries | int auditEntries() | No description in source. |
auditActAt | int auditActAt(int i) | No description in source. |
auditAdminAt | String auditAdminAt(int i) | No description in source. |
auditSubjectAt | String auditSubjectAt(int i) | No description in source. |
actName | String actName(int act) | No description in source. |
SLGuiApp #sleela 2.5 (lib/gui/version-gual/SLGuiApp.sleela)
SLGuiApp class
Defines SLGuiApp — the top-level support structure that ties the whole /lib/gui dynamic stack together into one object: it opens a SleelaUI application and window (via /lib/user-interface), owns the SLeeLa DOM (SLGuiDom), the reconciler (SLGuiMount) that projects the DOM onto widgets, the host adapter (SLGuiHostAdapter) that raises widget activations back as events, and an optional script engine (SLGuiScript). Its run loop pumps the toolkit event loop, polls widget activations into the event bus, re-mounts any newly-created nodes, and reconciles dirty nodes each turn. This is the "basic support structure" a program (or the IDE) builds on: construct the DOM declaratively or by script, bind callbacks, and call run(). Family: gui. SLeeLa owns the DOM, dispatch, and script execution; SleelaUI owns presentation; this object is the wiring between them.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
THEME_PRESET | static final int THEME_PRESET = SLTheme.DEFAULT | Choose DEFAULT, WHITE, BLUE, BLACK, or GRAY here for this GUI family. |
ui | SLUserInterface ui | No description in source. |
window | SLWindow window | No description in source. |
dom | SLGuiDom dom | No description in source. |
mount | SLGuiMount mount | No description in source. |
host | SLGuiHostAdapter host | No description in source. |
script | SLGuiScript script | No description in source. |
screenFitter | SLGuiScreenFit screenFitter | sizes the window from the actual screen size |
ready | int ready | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
boot | boolean boot(String appId, String title, int width, int height) | Open the application + window and stand up the DOM/mount/host wiring. Returns true when the toolkit came up (false on a headless host). |
bootFitted | boolean bootFitted(String appId, String title, int tier) | Open the application and size the window to the ACTUAL screen / resolution, at a support tier (0=basic, 1=moderate, 2=advanced; see SLGuiScreenFit). Queries uiScreenWidth/uiScreenHeight through the facade; a headless host falls back to a modeled 1920x1080. Returns true when the toolkit came up. |
screenFit | SLGuiScreenFit screenFit() | The screen-fit helper (primed with the real screen). Call setScreen()/fit() to recompute, then read width()/height()/x()/y() for a resize or re-center. |
scrollbarFor | SLGuiScrollbar scrollbarFor(int viewport, int content, boolean horizontal) | Build an IMPLIED scrollbar model for a scrolled surface. `horizontal` selects the axis; `viewport`/`content` are the extents on that axis. The returned SLGuiScrollbar yields orient()/valuePermille()/pagePermille() to paint with uiScrollBar (or an SLScrollBar), and tracks the scroll offset. |
setBuffering | void setBuffering(int mode) | Presentation buffering for the live window: 0=single, 1=double (the toolkit default, flicker-free resize), 2=triple (smoother rapid resize). Pass SLGuiSettings.getBufferingMode() here to honor the configured knob. |
buffering | int buffering() | No description in source. |
addScrolled | SLGuiNode addScrolled(String parentId, String id) | Add a SCROLLED VIEWPORT node to the DOM under `parentId`. Its children become the scroll content and native scrollbars appear AUTOMATICALLY when that content is larger than the viewport. Pin the viewport smaller than its content (e.g. style "min-height") to force scrolling. Equivalent to adding a "scrolled" element; returns the node so the caller can append content to it. |
addOverflowBox | SLGuiNode addOverflowBox(String parentId, String id, String overflow) | Add a plain container that scrolls on overflow by setting its `overflow` intent (auto|scroll|always|hidden). SLGuiMount promotes it to a native scrolled viewport. Returns the node for appending content. |
transition | SLGuiTransition transition() | ---- fade / transition helpers ------------------------------------------ A reusable enter/exit fade primitive (the shared tween). Returns a default 200ms ease-out fade-in the caller can retarget with fadeIn/fadeOut/between. |
toast | SLGuiToast toast(String message) | A TOAST / SNACKBAR: a small self-dismissing notification that fades in, dwells, and fades out. Driven by tick(); read opacityPct() to paint it. |
modal | SLGuiModal modal(String title) | A MODAL / OVERLAY: a dialog that fades in over a darkened backdrop (scrim). |
skeleton | SLGuiSkeleton skeleton(int shape, int lines) | A SKELETON SCREEN / PLACEHOLDER: a shimmering loading placeholder that dissolves to reveal real content (shape 0=text/1=card/2=avatar/3=list). |
isReady | boolean isReady() | No description in source. |
document | SLGuiDom document() | No description in source. |
scripting | SLGuiScript scripting() | No description in source. |
hostWindow | SLWindow hostWindow() | No description in source. |
add | SLGuiNode add(String parentId, String tag, String id) | Convenience: append an element to a parent in the DOM (then mount+show on the next loop turn, or immediately via refresh()). |
onClick | SLGuiHandler onClick(String id, String operation) | Bind a click callback (DHTML onClick) by node id. |
runScript | int runScript() | Run a UI script against the DOM (build + bind + fire), then refresh. |
run | int run() | Mount everything, show the window, then run the toolkit event loop: pump -> poll activations -> mount new nodes -> reconcile. Returns the process-style exit code. |
refresh | void refresh() | A single synchronous refresh (mount new + reconcile) without the loop, for building a UI up front or driving it from a test/host step. |
step | int step(boolean block) | Pump one turn (pump + poll + refresh); returns events raised this turn. |
quit | void quit(int code) | No description in source. |
shutdown | void shutdown() | No description in source. |
SLGuiApp #sleela 2.5 (lib/gui/version-mual/SLGuiApp.sleela)
SLGuiApp class
Defines SLGuiApp — the top-level support structure that ties the whole /lib/gui dynamic stack together into one object: it opens a SleelaUI application and window (via /lib/user-interface), owns the SLeeLa DOM (SLGuiDom), the reconciler (SLGuiMount) that projects the DOM onto widgets, the host adapter (SLGuiHostAdapter) that raises widget activations back as events, and an optional script engine (SLGuiScript). Its run loop pumps the toolkit event loop, polls widget activations into the event bus, re-mounts any newly-created nodes, and reconciles dirty nodes each turn. This is the "basic support structure" a program (or the IDE) builds on: construct the DOM declaratively or by script, bind callbacks, and call run(). Family: gui. SLeeLa owns the DOM, dispatch, and script execution; SleelaUI owns presentation; this object is the wiring between them.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
THEME_PRESET | static final int THEME_PRESET = SLTheme.DEFAULT | Choose DEFAULT, WHITE, BLUE, BLACK, or GRAY here for this GUI family. |
ui | SLUserInterface ui | No description in source. |
window | SLWindow window | No description in source. |
dom | SLGuiDom dom | No description in source. |
mount | SLGuiMount mount | No description in source. |
host | SLGuiHostAdapter host | No description in source. |
script | SLGuiScript script | No description in source. |
screenFitter | SLGuiScreenFit screenFitter | sizes the window from the actual screen size |
ready | int ready | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
boot | boolean boot(String appId, String title, int width, int height) | Open the application + window and stand up the DOM/mount/host wiring. Returns true when the toolkit came up (false on a headless host). |
bootFitted | boolean bootFitted(String appId, String title, int tier) | Open the application and size the window to the ACTUAL screen / resolution, at a support tier (0=basic, 1=moderate, 2=advanced; see SLGuiScreenFit). Queries uiScreenWidth/uiScreenHeight through the facade; a headless host falls back to a modeled 1920x1080. Returns true when the toolkit came up. |
screenFit | SLGuiScreenFit screenFit() | The screen-fit helper (primed with the real screen). Call setScreen()/fit() to recompute, then read width()/height()/x()/y() for a resize or re-center. |
scrollbarFor | SLGuiScrollbar scrollbarFor(int viewport, int content, boolean horizontal) | Build an IMPLIED scrollbar model for a scrolled surface. `horizontal` selects the axis; `viewport`/`content` are the extents on that axis. The returned SLGuiScrollbar yields orient()/valuePermille()/pagePermille() to paint with uiScrollBar (or an SLScrollBar), and tracks the scroll offset. |
setBuffering | void setBuffering(int mode) | Presentation buffering for the live window: 0=single, 1=double (the toolkit default, flicker-free resize), 2=triple (smoother rapid resize). Pass SLGuiSettings.getBufferingMode() here to honor the configured knob. |
buffering | int buffering() | No description in source. |
addScrolled | SLGuiNode addScrolled(String parentId, String id) | Add a SCROLLED VIEWPORT node to the DOM under `parentId`. Its children become the scroll content and native scrollbars appear AUTOMATICALLY when that content is larger than the viewport. Pin the viewport smaller than its content (e.g. style "min-height") to force scrolling. Equivalent to adding a "scrolled" element; returns the node so the caller can append content to it. |
addOverflowBox | SLGuiNode addOverflowBox(String parentId, String id, String overflow) | Add a plain container that scrolls on overflow by setting its `overflow` intent (auto|scroll|always|hidden). SLGuiMount promotes it to a native scrolled viewport. Returns the node for appending content. |
transition | SLGuiTransition transition() | ---- fade / transition helpers ------------------------------------------ A reusable enter/exit fade primitive (the shared tween). Returns a default 200ms ease-out fade-in the caller can retarget with fadeIn/fadeOut/between. |
toast | SLGuiToast toast(String message) | A TOAST / SNACKBAR: a small self-dismissing notification that fades in, dwells, and fades out. Driven by tick(); read opacityPct() to paint it. |
modal | SLGuiModal modal(String title) | A MODAL / OVERLAY: a dialog that fades in over a darkened backdrop (scrim). |
skeleton | SLGuiSkeleton skeleton(int shape, int lines) | A SKELETON SCREEN / PLACEHOLDER: a shimmering loading placeholder that dissolves to reveal real content (shape 0=text/1=card/2=avatar/3=list). |
isReady | boolean isReady() | No description in source. |
document | SLGuiDom document() | No description in source. |
scripting | SLGuiScript scripting() | No description in source. |
hostWindow | SLWindow hostWindow() | No description in source. |
add | SLGuiNode add(String parentId, String tag, String id) | Convenience: append an element to a parent in the DOM (then mount+show on the next loop turn, or immediately via refresh()). |
onClick | SLGuiHandler onClick(String id, String operation) | Bind a click callback (DHTML onClick) by node id. |
runScript | int runScript() | Run a UI script against the DOM (build + bind + fire), then refresh. |
run | int run() | Mount everything, show the window, then run the toolkit event loop: pump -> poll activations -> mount new nodes -> reconcile. Returns the process-style exit code. |
refresh | void refresh() | A single synchronous refresh (mount new + reconcile) without the loop, for building a UI up front or driving it from a test/host step. |
step | int step(boolean block) | Pump one turn (pump + poll + refresh); returns events raised this turn. |
quit | void quit(int code) | No description in source. |
shutdown | void shutdown() | No description in source. |
SLGuiApp #sleela 2.5 (lib/gui/version-thual/SLGuiApp.sleela)
SLGuiApp class
Defines SLGuiApp — the top-level support structure that ties the whole /lib/gui dynamic stack together into one object: it opens a SleelaUI application and window (via /lib/user-interface), owns the SLeeLa DOM (SLGuiDom), the reconciler (SLGuiMount) that projects the DOM onto widgets, the host adapter (SLGuiHostAdapter) that raises widget activations back as events, and an optional script engine (SLGuiScript). Its run loop pumps the toolkit event loop, polls widget activations into the event bus, re-mounts any newly-created nodes, and reconciles dirty nodes each turn. This is the "basic support structure" a program (or the IDE) builds on: construct the DOM declaratively or by script, bind callbacks, and call run(). Family: gui. SLeeLa owns the DOM, dispatch, and script execution; SleelaUI owns presentation; this object is the wiring between them.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
THEME_PRESET | static final int THEME_PRESET = SLTheme.DEFAULT | Choose DEFAULT, WHITE, BLUE, BLACK, or GRAY here for this GUI family. |
ui | SLUserInterface ui | No description in source. |
window | SLWindow window | No description in source. |
dom | SLGuiDom dom | No description in source. |
mount | SLGuiMount mount | No description in source. |
host | SLGuiHostAdapter host | No description in source. |
script | SLGuiScript script | No description in source. |
branding | SLGuiBranding branding | 3.0 logo/brand identity painted into the chrome |
audio | SLGuiAudioCues audio | 3.0 activation-audio cue registry |
screenFitter | SLGuiScreenFit screenFitter | sizes the window from the actual screen size |
frameMillis | int frameMillis | nominal per-loop tick for scheduled effects |
ready | int ready | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
boot | boolean boot(String appId, String title, int width, int height) | Open the application + window and stand up the DOM/mount/host wiring. Returns true when the toolkit came up (false on a headless host). |
bootFitted | boolean bootFitted(String appId, String title, int tier) | Open the application and size the window to the ACTUAL screen / resolution, at a support tier (0=basic, 1=moderate, 2=advanced; see SLGuiScreenFit). Queries uiScreenWidth/uiScreenHeight through the facade; a headless host falls back to a modeled 1920x1080. Returns true when the toolkit came up. |
screenFit | SLGuiScreenFit screenFit() | The screen-fit helper (primed with the real screen). Call setScreen()/fit() to recompute, then read width()/height()/x()/y() for a resize or re-center. |
scrollbarFor | SLGuiScrollbar scrollbarFor(int viewport, int content, boolean horizontal) | Build an IMPLIED scrollbar model for a scrolled surface. `horizontal` selects the axis; `viewport`/`content` are the extents on that axis. The returned SLGuiScrollbar yields orient()/valuePermille()/pagePermille() to paint with uiScrollBar (or an SLScrollBar), and tracks the scroll offset. |
setBuffering | void setBuffering(int mode) | Presentation buffering for the live window: 0=single, 1=double (the toolkit default, flicker-free resize), 2=triple (smoother rapid resize). Pass SLGuiSettings.getBufferingMode() here to honor the configured knob. |
buffering | int buffering() | No description in source. |
addScrolled | SLGuiNode addScrolled(String parentId, String id) | Add a SCROLLED VIEWPORT node to the DOM under `parentId`. Its children become the scroll content and native scrollbars appear AUTOMATICALLY when that content is larger than the viewport. Pin the viewport smaller than its content (e.g. style "min-height") to force scrolling. Equivalent to adding a "scrolled" element; returns the node so the caller can append content to it. |
addOverflowBox | SLGuiNode addOverflowBox(String parentId, String id, String overflow) | Add a plain container that scrolls on overflow by setting its `overflow` intent (auto|scroll|always|hidden). SLGuiMount promotes it to a native scrolled viewport. Returns the node for appending content. |
transition | SLGuiTransition transition() | ---- fade / transition helpers ------------------------------------------ A reusable enter/exit fade primitive (the shared tween). Returns a default 200ms ease-out fade-in the caller can retarget with fadeIn/fadeOut/between. |
toast | SLGuiToast toast(String message) | A TOAST / SNACKBAR: a small self-dismissing notification that fades in, dwells, and fades out. Driven by tick(); read opacityPct() to paint it. |
modal | SLGuiModal modal(String title) | A MODAL / OVERLAY: a dialog that fades in over a darkened backdrop (scrim). |
skeleton | SLGuiSkeleton skeleton(int shape, int lines) | A SKELETON SCREEN / PLACEHOLDER: a shimmering loading placeholder that dissolves to reveal real content (shape 0=text/1=card/2=avatar/3=list). |
brand | SLGuiBranding brand() | ---- 3.0 branding + audio access ---------------------------------------- |
audioCues | SLGuiAudioCues audioCues() | No description in source. |
setFrameMillis | void setFrameMillis(int ms) | No description in source. |
setLogo | void setLogo(String asset, String accent) | Apply a brand logo + accent in one call (host paints it into the chrome). |
effectsFor | SLGuiEffects effectsFor(String nodeId) | Give a node an effects bundle and (optionally) an activation cue, then flatten it into the node's style for the next reconcile. |
isReady | boolean isReady() | No description in source. |
document | SLGuiDom document() | No description in source. |
scripting | SLGuiScript scripting() | No description in source. |
hostWindow | SLWindow hostWindow() | No description in source. |
add | SLGuiNode add(String parentId, String tag, String id) | Convenience: append an element to a parent in the DOM (then mount+show on the next loop turn, or immediately via refresh()). |
onClick | SLGuiHandler onClick(String id, String operation) | Bind a click callback (DHTML onClick) by node id. |
runScript | int runScript() | Run a UI script against the DOM (build + bind + fire), then refresh. |
run | int run() | Mount everything, show the window, then run the toolkit event loop: pump -> poll activations -> mount new nodes -> reconcile. Returns the process-style exit code. |
advanceEffects | int advanceEffects(int elapsedMillis) | Advance every node's scheduled effects by `elapsedMillis`: scheduled rotations turn (and their bound memorandum key epoch rotates with them), and the host interpolates fades. Returns how many nodes moved this tick. |
refresh | void refresh() | A single synchronous refresh (mount new + reconcile) without the loop, for building a UI up front or driving it from a test/host step. |
step | int step(boolean block) | Pump one turn (pump + poll + refresh); returns events raised this turn. |
quit | void quit(int code) | No description in source. |
shutdown | void shutdown() | No description in source. |
SLGuiApp #sleela 2.5 (lib/gui/version-military/SLGuiApp.sleela)
SLGuiApp class
Defines SLGuiApp — the top-level support structure that ties the whole /lib/gui dynamic stack together into one object: it opens a SleelaUI application and window (via /lib/user-interface), owns the SLeeLa DOM (SLGuiDom), the reconciler (SLGuiMount) that projects the DOM onto widgets, the host adapter (SLGuiHostAdapter) that raises widget activations back as events, and an optional script engine (SLGuiScript). Its run loop pumps the toolkit event loop, polls widget activations into the event bus, re-mounts any newly-created nodes, and reconciles dirty nodes each turn. This is the "basic support structure" a program (or the IDE) builds on: construct the DOM declaratively or by script, bind callbacks, and call run(). Family: gui. SLeeLa owns the DOM, dispatch, and script execution; SleelaUI owns presentation; this object is the wiring between them.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
THEME_PRESET | static final int THEME_PRESET = SLTheme.DEFAULT | Choose DEFAULT, WHITE, BLUE, BLACK, or GRAY here for this GUI family. |
ui | SLUserInterface ui | No description in source. |
window | SLWindow window | No description in source. |
dom | SLGuiDom dom | No description in source. |
mount | SLGuiMount mount | No description in source. |
host | SLGuiHostAdapter host | No description in source. |
script | SLGuiScript script | No description in source. |
branding | SLGuiBranding branding | 3.0 logo/brand identity painted into the chrome |
audio | SLGuiAudioCues audio | 3.0 activation-audio cue registry |
codecs | SLGuiCodecs codecs | 4.0 codec registry (mirror of /codecs) GUI can see |
html | SLGuiHtmlRenderer html | 4.0 HTML/CSS/JS renderer (quick-responsive) |
kinds | SLGuiKind kinds | 5.0 Component vs Container taxonomy |
crypto | SLGuiCryptoSelector crypto | 5.0 cryptography selector component |
certs | SLGuiCertificateStore certs | 5.0 public-key certificate store |
winState | SLGuiWindowState winState | 5.0 window-state + key listeners (fold/restore) |
screenFitter | SLGuiScreenFit screenFitter | sizes the window from the actual screen size |
frameMillis | int frameMillis | nominal per-loop tick for scheduled effects |
ready | int ready | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
boot | boolean boot(String appId, String title, int width, int height) | Open the application + window and stand up the DOM/mount/host wiring. Returns true when the toolkit came up (false on a headless host). |
bootFitted | boolean bootFitted(String appId, String title, int tier) | Open the application and size the window to the ACTUAL screen / resolution, at a support tier (0=basic, 1=moderate, 2=advanced; see SLGuiScreenFit). Queries uiScreenWidth/uiScreenHeight through the facade; a headless host falls back to a modeled 1920x1080. Returns true when the toolkit came up. |
screenFit | SLGuiScreenFit screenFit() | The screen-fit helper (primed with the real screen). Call setScreen()/fit() to recompute, then read width()/height()/x()/y() for a resize or re-center. |
scrollbarFor | SLGuiScrollbar scrollbarFor(int viewport, int content, boolean horizontal) | Build an IMPLIED scrollbar model for a scrolled surface. `horizontal` selects the axis; `viewport`/`content` are the extents on that axis. The returned SLGuiScrollbar yields orient()/valuePermille()/pagePermille() to paint with uiScrollBar (or an SLScrollBar), and tracks the scroll offset. |
setBuffering | void setBuffering(int mode) | Presentation buffering for the live window: 0=single, 1=double (the toolkit default, flicker-free resize), 2=triple (smoother rapid resize). Pass SLGuiSettings.getBufferingMode() here to honor the configured knob. |
buffering | int buffering() | No description in source. |
addScrolled | SLGuiNode addScrolled(String parentId, String id) | Add a SCROLLED VIEWPORT node to the DOM under `parentId`. Its children become the scroll content and native scrollbars appear AUTOMATICALLY when that content is larger than the viewport. Pin the viewport smaller than its content (e.g. style "min-height") to force scrolling. Equivalent to adding a "scrolled" element; returns the node so the caller can append content to it. |
addOverflowBox | SLGuiNode addOverflowBox(String parentId, String id, String overflow) | Add a plain container that scrolls on overflow by setting its `overflow` intent (auto|scroll|always|hidden). SLGuiMount promotes it to a native scrolled viewport. Returns the node for appending content. |
transition | SLGuiTransition transition() | ---- fade / transition helpers ------------------------------------------ A reusable enter/exit fade primitive (the shared tween). Returns a default 200ms ease-out fade-in the caller can retarget with fadeIn/fadeOut/between. |
toast | SLGuiToast toast(String message) | A TOAST / SNACKBAR: a small self-dismissing notification that fades in, dwells, and fades out. Driven by tick(); read opacityPct() to paint it. |
modal | SLGuiModal modal(String title) | A MODAL / OVERLAY: a dialog that fades in over a darkened backdrop (scrim). |
skeleton | SLGuiSkeleton skeleton(int shape, int lines) | A SKELETON SCREEN / PLACEHOLDER: a shimmering loading placeholder that dissolves to reveal real content (shape 0=text/1=card/2=avatar/3=list). |
taxonomy | SLGuiKind taxonomy() | ---- 5.0 military surfaces access --------------------------------------- |
cryptoSelector | SLGuiCryptoSelector cryptoSelector() | No description in source. |
certificateStore | SLGuiCertificateStore certificateStore() | No description in source. |
windowState | SLGuiWindowState windowState() | No description in source. |
isContainer | boolean isContainer(String tag) | Is a tag a container or a component (the explicit taxonomy)? |
isComponent | boolean isComponent(String tag) | No description in source. |
setIcon | boolean setIcon(String nodeId, SLGuiIcon icon) | Attach an icon to a node — ONLY when the node's tag is icon-eligible (buttons, menu items, clickables). Returns false otherwise (fail-closed), so icons land exactly where they belong. |
codecRegistry | SLGuiCodecs codecRegistry() | ---- 4.0 codecs + HTML renderer access ---------------------------------- The codec registry every GUI media component can consult. |
htmlRenderer | SLGuiHtmlRenderer htmlRenderer() | No description in source. |
canPlayCodec | boolean canPlayCodec(String codecName) | Convenience capability questions for GUI implementations. |
canPlayExtension | boolean canPlayExtension(String ext) | No description in source. |
supportedCodecs | int supportedCodecs() | No description in source. |
brand | SLGuiBranding brand() | ---- 3.0 branding + audio access ---------------------------------------- |
audioCues | SLGuiAudioCues audioCues() | No description in source. |
setFrameMillis | void setFrameMillis(int ms) | No description in source. |
setLogo | void setLogo(String asset, String accent) | Apply a brand logo + accent in one call (host paints it into the chrome). |
effectsFor | SLGuiEffects effectsFor(String nodeId) | Give a node an effects bundle and (optionally) an activation cue, then flatten it into the node's style for the next reconcile. |
isReady | boolean isReady() | No description in source. |
document | SLGuiDom document() | No description in source. |
scripting | SLGuiScript scripting() | No description in source. |
hostWindow | SLWindow hostWindow() | No description in source. |
add | SLGuiNode add(String parentId, String tag, String id) | Convenience: append an element to a parent in the DOM (then mount+show on the next loop turn, or immediately via refresh()). |
onClick | SLGuiHandler onClick(String id, String operation) | Bind a click callback (DHTML onClick) by node id. |
runScript | int runScript() | Run a UI script against the DOM (build + bind + fire), then refresh. |
run | int run() | Mount everything, show the window, then run the toolkit event loop: pump -> poll activations -> mount new nodes -> reconcile. Returns the process-style exit code. |
advanceEffects | int advanceEffects(int elapsedMillis) | Advance every node's scheduled effects by `elapsedMillis`: scheduled rotations turn (and their bound memorandum key epoch rotates with them), and the host interpolates fades. Returns how many nodes moved this tick. |
refresh | void refresh() | A single synchronous refresh (mount new + reconcile) without the loop, for building a UI up front or driving it from a test/host step. |
step | int step(boolean block) | Pump one turn (pump + poll + refresh); returns events raised this turn. |
quit | void quit(int code) | No description in source. |
shutdown | void shutdown() | No description in source. |
SLGuiApp #sleela 2.5 (lib/gui/version-dual/SLGuiApp.sleela)
SLGuiApp class
Defines SLGuiApp — the top-level support structure that ties the whole /lib/gui dynamic stack together into one object: it opens a SleelaUI application and window (via /lib/user-interface), owns the SLeeLa DOM (SLGuiDom), the reconciler (SLGuiMount) that projects the DOM onto widgets, the host adapter (SLGuiHostAdapter) that raises widget activations back as events, and an optional script engine (SLGuiScript). Its run loop pumps the toolkit event loop, polls widget activations into the event bus, re-mounts any newly-created nodes, and reconciles dirty nodes each turn. This is the "basic support structure" a program (or the IDE) builds on: construct the DOM declaratively or by script, bind callbacks, and call run(). Family: gui. SLeeLa owns the DOM, dispatch, and script execution; SleelaUI owns presentation; this object is the wiring between them.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
THEME_PRESET | static final int THEME_PRESET = SLTheme.DEFAULT | Choose DEFAULT, WHITE, BLUE, BLACK, or GRAY here for this GUI family. |
ui | SLUserInterface ui | No description in source. |
window | SLWindow window | No description in source. |
dom | SLGuiDom dom | No description in source. |
mount | SLGuiMount mount | No description in source. |
host | SLGuiHostAdapter host | No description in source. |
script | SLGuiScript script | No description in source. |
branding | SLGuiBranding branding | 3.0 logo/brand identity painted into the chrome |
audio | SLGuiAudioCues audio | 3.0 activation-audio cue registry |
codecs | SLGuiCodecs codecs | 4.0 codec registry (mirror of /codecs) GUI can see |
html | SLGuiHtmlRenderer html | 4.0 HTML/CSS/JS renderer (quick-responsive) |
screenFitter | SLGuiScreenFit screenFitter | sizes the window from the actual screen size |
frameMillis | int frameMillis | nominal per-loop tick for scheduled effects |
ready | int ready | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
boot | boolean boot(String appId, String title, int width, int height) | Open the application + window and stand up the DOM/mount/host wiring. Returns true when the toolkit came up (false on a headless host). |
bootFitted | boolean bootFitted(String appId, String title, int tier) | Open the application and size the window to the ACTUAL screen / resolution, at a support tier (0=basic, 1=moderate, 2=advanced; see SLGuiScreenFit). Queries uiScreenWidth/uiScreenHeight through the facade; a headless host falls back to a modeled 1920x1080. Returns true when the toolkit came up. |
screenFit | SLGuiScreenFit screenFit() | The screen-fit helper (primed with the real screen). Call setScreen()/fit() to recompute, then read width()/height()/x()/y() for a resize or re-center. |
scrollbarFor | SLGuiScrollbar scrollbarFor(int viewport, int content, boolean horizontal) | Build an IMPLIED scrollbar model for a scrolled surface. `horizontal` selects the axis; `viewport`/`content` are the extents on that axis. The returned SLGuiScrollbar yields orient()/valuePermille()/pagePermille() to paint with uiScrollBar (or an SLScrollBar), and tracks the scroll offset. |
setBuffering | void setBuffering(int mode) | Presentation buffering for the live window: 0=single, 1=double (the toolkit default, flicker-free resize), 2=triple (smoother rapid resize). Pass SLGuiSettings.getBufferingMode() here to honor the configured knob. |
buffering | int buffering() | No description in source. |
addScrolled | SLGuiNode addScrolled(String parentId, String id) | Add a SCROLLED VIEWPORT node to the DOM under `parentId`. Its children become the scroll content and native scrollbars appear AUTOMATICALLY when that content is larger than the viewport. Pin the viewport smaller than its content (e.g. style "min-height") to force scrolling. Equivalent to adding a "scrolled" element; returns the node so the caller can append content to it. |
addOverflowBox | SLGuiNode addOverflowBox(String parentId, String id, String overflow) | Add a plain container that scrolls on overflow by setting its `overflow` intent (auto|scroll|always|hidden). SLGuiMount promotes it to a native scrolled viewport. Returns the node for appending content. |
transition | SLGuiTransition transition() | ---- fade / transition helpers ------------------------------------------ A reusable enter/exit fade primitive (the shared tween). Returns a default 200ms ease-out fade-in the caller can retarget with fadeIn/fadeOut/between. |
toast | SLGuiToast toast(String message) | A TOAST / SNACKBAR: a small self-dismissing notification that fades in, dwells, and fades out. Driven by tick(); read opacityPct() to paint it. |
modal | SLGuiModal modal(String title) | A MODAL / OVERLAY: a dialog that fades in over a darkened backdrop (scrim). |
skeleton | SLGuiSkeleton skeleton(int shape, int lines) | A SKELETON SCREEN / PLACEHOLDER: a shimmering loading placeholder that dissolves to reveal real content (shape 0=text/1=card/2=avatar/3=list). |
codecRegistry | SLGuiCodecs codecRegistry() | ---- 4.0 codecs + HTML renderer access ---------------------------------- The codec registry every GUI media component can consult. |
htmlRenderer | SLGuiHtmlRenderer htmlRenderer() | No description in source. |
canPlayCodec | boolean canPlayCodec(String codecName) | Convenience capability questions for GUI implementations. |
canPlayExtension | boolean canPlayExtension(String ext) | No description in source. |
supportedCodecs | int supportedCodecs() | No description in source. |
brand | SLGuiBranding brand() | ---- 3.0 branding + audio access ---------------------------------------- |
audioCues | SLGuiAudioCues audioCues() | No description in source. |
setFrameMillis | void setFrameMillis(int ms) | No description in source. |
setLogo | void setLogo(String asset, String accent) | Apply a brand logo + accent in one call (host paints it into the chrome). |
effectsFor | SLGuiEffects effectsFor(String nodeId) | Give a node an effects bundle and (optionally) an activation cue, then flatten it into the node's style for the next reconcile. |
isReady | boolean isReady() | No description in source. |
document | SLGuiDom document() | No description in source. |
scripting | SLGuiScript scripting() | No description in source. |
hostWindow | SLWindow hostWindow() | No description in source. |
add | SLGuiNode add(String parentId, String tag, String id) | Convenience: append an element to a parent in the DOM (then mount+show on the next loop turn, or immediately via refresh()). |
onClick | SLGuiHandler onClick(String id, String operation) | Bind a click callback (DHTML onClick) by node id. |
runScript | int runScript() | Run a UI script against the DOM (build + bind + fire), then refresh. |
run | int run() | Mount everything, show the window, then run the toolkit event loop: pump -> poll activations -> mount new nodes -> reconcile. Returns the process-style exit code. |
advanceEffects | int advanceEffects(int elapsedMillis) | Advance every node's scheduled effects by `elapsedMillis`: scheduled rotations turn (and their bound memorandum key epoch rotates with them), and the host interpolates fades. Returns how many nodes moved this tick. |
refresh | void refresh() | A single synchronous refresh (mount new + reconcile) without the loop, for building a UI up front or driving it from a test/host step. |
step | int step(boolean block) | Pump one turn (pump + poll + refresh); returns events raised this turn. |
quit | void quit(int code) | No description in source. |
shutdown | void shutdown() | No description in source. |
SLGuiAudioCues #sleela 2.5 (lib/gui/version-thual/SLGuiAudioCues.sleela)
SLGuiAudioCues class
Defines SLGuiAudioCues — the 3.0 activation-audio registry. UI components in the thual line may play a short audio CUE when activated (click/submit/toggle); this registry is the single place that names the available cues and the master audio settings, so an SLGuiEffects on a node references a cue by name and the host plays it through the audio stack. It holds a small bank of named cues (name -> host asset), a master enabled/mute flag, and a master gain. SLeeLa names and gates the cues; the host owns actual playback. Family: gui. Consulted by the host when a component with an activation cue fires; owned by SLGuiApp.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_CUES | static final int MAX_CUES = 32 | No description in source. |
cueNames | String[] cueNames | cue name, e.g. "click", "confirm", "error" |
cueAssets | String[] cueAssets | host-resolvable audio asset for the cue |
cueCount | int cueCount | No description in source. |
enabled | int enabled | 1 = activation audio is on globally |
muted | int muted | 1 = temporarily silenced (enabled stays as-is) |
masterGainPct | int masterGainPct | 0..100 % master playback gain |
played | int played | total cues dispatched to the host |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
clamp | int clamp(int v, int lo, int hi) | No description in source. |
register | boolean register(String name, String asset) | Register (or re-point) a named cue. Returns false when the bank is full. |
indexOf | int indexOf(String name) | No description in source. |
has | boolean has(String name) | No description in source. |
assetFor | String assetFor(String name) | No description in source. |
cues | int cues() | No description in source. |
setEnabled | void setEnabled(boolean on) | Master controls. |
isEnabled | boolean isEnabled() | No description in source. |
mute | void mute() | No description in source. |
unmute | void unmute() | No description in source. |
isMuted | boolean isMuted() | No description in source. |
setMasterGainPct | void setMasterGainPct(int pct) | No description in source. |
getMasterGainPct | int getMasterGainPct() | No description in source. |
audible | boolean audible(String name) | Whether a given cue would actually sound now (registered, on, not muted). |
play | int play(String name, int nodeGainPct) | Dispatch a cue for the host to play at the given node-level gain, scaled by the master gain. Returns the effective gain (0..100), or -1 when silent. |
totalPlayed | int totalPlayed() | No description in source. |
SLGuiAudioCues #sleela 2.5 (lib/gui/version-military/SLGuiAudioCues.sleela)
SLGuiAudioCues class
Defines SLGuiAudioCues — the 3.0 activation-audio registry. UI components in the thual line may play a short audio CUE when activated (click/submit/toggle); this registry is the single place that names the available cues and the master audio settings, so an SLGuiEffects on a node references a cue by name and the host plays it through the audio stack. It holds a small bank of named cues (name -> host asset), a master enabled/mute flag, and a master gain. SLeeLa names and gates the cues; the host owns actual playback. Family: gui. Consulted by the host when a component with an activation cue fires; owned by SLGuiApp.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_CUES | static final int MAX_CUES = 32 | No description in source. |
cueNames | String[] cueNames | cue name, e.g. "click", "confirm", "error" |
cueAssets | String[] cueAssets | host-resolvable audio asset for the cue |
cueCount | int cueCount | No description in source. |
enabled | int enabled | 1 = activation audio is on globally |
muted | int muted | 1 = temporarily silenced (enabled stays as-is) |
masterGainPct | int masterGainPct | 0..100 % master playback gain |
played | int played | total cues dispatched to the host |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
clamp | int clamp(int v, int lo, int hi) | No description in source. |
register | boolean register(String name, String asset) | Register (or re-point) a named cue. Returns false when the bank is full. |
indexOf | int indexOf(String name) | No description in source. |
has | boolean has(String name) | No description in source. |
assetFor | String assetFor(String name) | No description in source. |
cues | int cues() | No description in source. |
setEnabled | void setEnabled(boolean on) | Master controls. |
isEnabled | boolean isEnabled() | No description in source. |
mute | void mute() | No description in source. |
unmute | void unmute() | No description in source. |
isMuted | boolean isMuted() | No description in source. |
setMasterGainPct | void setMasterGainPct(int pct) | No description in source. |
getMasterGainPct | int getMasterGainPct() | No description in source. |
audible | boolean audible(String name) | Whether a given cue would actually sound now (registered, on, not muted). |
play | int play(String name, int nodeGainPct) | Dispatch a cue for the host to play at the given node-level gain, scaled by the master gain. Returns the effective gain (0..100), or -1 when silent. |
totalPlayed | int totalPlayed() | No description in source. |
SLGuiAudioCues #sleela 2.5 (lib/gui/version-dual/SLGuiAudioCues.sleela)
SLGuiAudioCues class
Defines SLGuiAudioCues — the 3.0 activation-audio registry. UI components in the thual line may play a short audio CUE when activated (click/submit/toggle); this registry is the single place that names the available cues and the master audio settings, so an SLGuiEffects on a node references a cue by name and the host plays it through the audio stack. It holds a small bank of named cues (name -> host asset), a master enabled/mute flag, and a master gain. SLeeLa names and gates the cues; the host owns actual playback. Family: gui. Consulted by the host when a component with an activation cue fires; owned by SLGuiApp.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_CUES | static final int MAX_CUES = 32 | No description in source. |
cueNames | String[] cueNames | cue name, e.g. "click", "confirm", "error" |
cueAssets | String[] cueAssets | host-resolvable audio asset for the cue |
cueCount | int cueCount | No description in source. |
enabled | int enabled | 1 = activation audio is on globally |
muted | int muted | 1 = temporarily silenced (enabled stays as-is) |
masterGainPct | int masterGainPct | 0..100 % master playback gain |
played | int played | total cues dispatched to the host |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
clamp | int clamp(int v, int lo, int hi) | No description in source. |
register | boolean register(String name, String asset) | Register (or re-point) a named cue. Returns false when the bank is full. |
indexOf | int indexOf(String name) | No description in source. |
has | boolean has(String name) | No description in source. |
assetFor | String assetFor(String name) | No description in source. |
cues | int cues() | No description in source. |
setEnabled | void setEnabled(boolean on) | Master controls. |
isEnabled | boolean isEnabled() | No description in source. |
mute | void mute() | No description in source. |
unmute | void unmute() | No description in source. |
isMuted | boolean isMuted() | No description in source. |
setMasterGainPct | void setMasterGainPct(int pct) | No description in source. |
getMasterGainPct | int getMasterGainPct() | No description in source. |
audible | boolean audible(String name) | Whether a given cue would actually sound now (registered, on, not muted). |
play | int play(String name, int nodeGainPct) | Dispatch a cue for the host to play at the given node-level gain, scaled by the master gain. Returns the effective gain (0..100), or -1 when silent. |
totalPlayed | int totalPlayed() | No description in source. |
SLGuiAudioRecorder #sleela 2.5 (lib/gui/version-military/SLGuiAudioRecorder.sleela)
SLGuiAudioRecorder class
Defines SLGuiAudioRecorder — the 4.0 standard audio-input record control: a record button with the transport states a professional recorder needs (idle -> recording <-> paused -> stopped), an input device + format (sample rate, channels), a live input level, an elapsed duration, and an armed/monitoring flag. SLeeLa owns the recorder's STATE and the meaning of each transition; the host owns the actual capture device and writes the output asset. Every setting is validated/clamped. Family: gui. A control node's backing model; the host captures audio and reports level/duration back through this object.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
STATE_IDLE | static final int STATE_IDLE = 0 | No description in source. |
STATE_ARMED | static final int STATE_ARMED = 1 | monitoring input, not yet recording |
STATE_RECORDING | static final int STATE_RECORDING = 2 | No description in source. |
STATE_PAUSED | static final int STATE_PAUSED = 3 | No description in source. |
STATE_STOPPED | static final int STATE_STOPPED = 4 | No description in source. |
state | int state | No description in source. |
inputDevice | String inputDevice | host-resolvable capture device ("default" = system) |
sampleRate | int sampleRate | Hz, 8000..192000 |
channels | int channels | 1 mono / 2 stereo |
outputAsset | String outputAsset | where the host writes the capture |
levelPct | int levelPct | live input level 0..100 (host-reported) |
durationMs | int durationMs | elapsed recording time |
clipping | int clipping | 1 if level hit the ceiling since last clear |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String device, String output) | No description in source. |
clamp | int clamp(int v, int lo, int hi) | No description in source. |
setSampleRate | void setSampleRate(int hz) | No description in source. |
setChannels | void setChannels(int ch) | No description in source. |
setOutputAsset | void setOutputAsset(String a) | No description in source. |
arm | boolean arm() | ---- transport ---------------------------------------------------------- Arm (begin monitoring the input without capturing). |
startRecording | boolean startRecording() | The record button: start capturing from idle/armed/stopped, or resume paused. |
pause | boolean pause() | No description in source. |
stop | boolean stop() | No description in source. |
reset | void reset() | No description in source. |
onLevel | void onLevel(int pct) | Host feeds the live input level + elapsed time while recording. |
onElapsed | void onElapsed(int deltaMs) | No description in source. |
clearClipping | void clearClipping() | No description in source. |
getState | int getState() | ---- state readers ------------------------------------------------------ |
isRecording | boolean isRecording() | No description in source. |
isPaused | boolean isPaused() | No description in source. |
isActive | boolean isActive() | No description in source. |
level | int level() | No description in source. |
durationMillis | int durationMillis() | No description in source. |
clipped | boolean clipped() | No description in source. |
device | String device() | No description in source. |
getSampleRate | int getSampleRate() | No description in source. |
getChannels | int getChannels() | No description in source. |
output | String output() | No description in source. |
stateName | String stateName() | No description in source. |
buttonLabel | String buttonLabel() | The record button's label follows the transport state. |
valid | boolean valid() | No description in source. |
SLGuiAudioRecorder #sleela 2.5 (lib/gui/version-dual/SLGuiAudioRecorder.sleela)
SLGuiAudioRecorder class
Defines SLGuiAudioRecorder — the 4.0 standard audio-input record control: a record button with the transport states a professional recorder needs (idle -> recording <-> paused -> stopped), an input device + format (sample rate, channels), a live input level, an elapsed duration, and an armed/monitoring flag. SLeeLa owns the recorder's STATE and the meaning of each transition; the host owns the actual capture device and writes the output asset. Every setting is validated/clamped. Family: gui. A control node's backing model; the host captures audio and reports level/duration back through this object.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
STATE_IDLE | static final int STATE_IDLE = 0 | No description in source. |
STATE_ARMED | static final int STATE_ARMED = 1 | monitoring input, not yet recording |
STATE_RECORDING | static final int STATE_RECORDING = 2 | No description in source. |
STATE_PAUSED | static final int STATE_PAUSED = 3 | No description in source. |
STATE_STOPPED | static final int STATE_STOPPED = 4 | No description in source. |
state | int state | No description in source. |
inputDevice | String inputDevice | host-resolvable capture device ("default" = system) |
sampleRate | int sampleRate | Hz, 8000..192000 |
channels | int channels | 1 mono / 2 stereo |
outputAsset | String outputAsset | where the host writes the capture |
levelPct | int levelPct | live input level 0..100 (host-reported) |
durationMs | int durationMs | elapsed recording time |
clipping | int clipping | 1 if level hit the ceiling since last clear |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String device, String output) | No description in source. |
clamp | int clamp(int v, int lo, int hi) | No description in source. |
setSampleRate | void setSampleRate(int hz) | No description in source. |
setChannels | void setChannels(int ch) | No description in source. |
setOutputAsset | void setOutputAsset(String a) | No description in source. |
arm | boolean arm() | ---- transport ---------------------------------------------------------- Arm (begin monitoring the input without capturing). |
startRecording | boolean startRecording() | The record button: start capturing from idle/armed/stopped, or resume paused. |
pause | boolean pause() | No description in source. |
stop | boolean stop() | No description in source. |
reset | void reset() | No description in source. |
onLevel | void onLevel(int pct) | Host feeds the live input level + elapsed time while recording. |
onElapsed | void onElapsed(int deltaMs) | No description in source. |
clearClipping | void clearClipping() | No description in source. |
getState | int getState() | ---- state readers ------------------------------------------------------ |
isRecording | boolean isRecording() | No description in source. |
isPaused | boolean isPaused() | No description in source. |
isActive | boolean isActive() | No description in source. |
level | int level() | No description in source. |
durationMillis | int durationMillis() | No description in source. |
clipped | boolean clipped() | No description in source. |
device | String device() | No description in source. |
getSampleRate | int getSampleRate() | No description in source. |
getChannels | int getChannels() | No description in source. |
output | String output() | No description in source. |
stateName | String stateName() | No description in source. |
buttonLabel | String buttonLabel() | The record button's label follows the transport state. |
valid | boolean valid() | No description in source. |
SLGuiBackend #sleela 2.5 (lib/gui/version-gual/SLGuiBackend.sleela)
SLGuiBackend class
Defines SLGuiBackend — the toolkit-neutral GUI backend identity. Mirrors SleelaGui.create(backend) in gui/: a backend is "swing", "javafx" (alias "fx"), or "native" (the C ABI bridge). SLeeLa names the backend; the Java host or the native bridge supplies the actual desktop controls.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
kind | String kind | "swing" | "javafx" | "fx" | "native" |
valid | int valid | 1 once configure() accepted a known kind |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String k) | 2.0: validated configuration — an unknown kind is REFUSED (fail-closed) rather than stored and only caught later by supported(). Returns true when the kind was accepted. configure(String) keeps the lenient 1.0 behavior for source compatibility; configureStrict() is the 2.0 guarded form. |
configureStrict | boolean configureStrict(String k) | No description in source. |
known | boolean known(String k) | No description in source. |
name | String name() | No description in source. |
supported | boolean supported() | A backend is supported when it is one of the known toolkits/bridges. |
isSwing | boolean isSwing() | No description in source. |
isJavaFx | boolean isJavaFx() | No description in source. |
isNative | boolean isNative() | No description in source. |
resolved | String resolved() | Normalized label: the "fx" alias resolves to "javafx". |
supportsHiDpi | boolean supportsHiDpi() | 2.0 capability flags — what the chosen backend can honor from SLGuiSettings. The native bridge and JavaFX expose the richest surface; Swing is HiDPI- and theme-capable but has no vsync concept and weaker native menus. all backends scale |
supportsThemes | boolean supportsThemes() | light/dark/system |
supportsVsync | boolean supportsVsync() | swing has no vsync |
supportsAccessibility | boolean supportsAccessibility() | a11y tree on all |
supportsNativeMenus | boolean supportsNativeMenus() | richer native menus |
SLGuiBackend #sleela 2.5 (lib/gui/version-mual/SLGuiBackend.sleela)
SLGuiBackend class
Defines SLGuiBackend — the toolkit-neutral GUI backend identity. Mirrors SleelaGui.create(backend) in gui/: a backend is "swing", "javafx" (alias "fx"), or "native" (the C ABI bridge). SLeeLa names the backend; the Java host or the native bridge supplies the actual desktop controls.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
kind | String kind | "swing" | "javafx" | "fx" | "native" |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String k) | No description in source. |
name | String name() | No description in source. |
supported | boolean supported() | A backend is supported when it is one of the known toolkits/bridges. |
isSwing | boolean isSwing() | No description in source. |
isJavaFx | boolean isJavaFx() | No description in source. |
isNative | boolean isNative() | No description in source. |
resolved | String resolved() | Normalized label: the "fx" alias resolves to "javafx". |
supportsNativeMenus | boolean supportsNativeMenus() | 1.0 compatibility: JavaFX/native can request host-native menus; Swing uses custom widgets. |
SLGuiBackend #sleela 2.5 (lib/gui/version-thual/SLGuiBackend.sleela)
SLGuiBackend class
Defines SLGuiBackend — the toolkit-neutral GUI backend identity. Mirrors SleelaGui.create(backend) in gui/: a backend is "swing", "javafx" (alias "fx"), or "native" (the C ABI bridge). SLeeLa names the backend; the Java host or the native bridge supplies the actual desktop controls.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
kind | String kind | "swing" | "javafx" | "fx" | "native" |
valid | int valid | 1 once configure() accepted a known kind |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String k) | 2.0: validated configuration — an unknown kind is REFUSED (fail-closed) rather than stored and only caught later by supported(). Returns true when the kind was accepted. configure(String) keeps the lenient 1.0 behavior for source compatibility; configureStrict() is the 2.0 guarded form. |
configureStrict | boolean configureStrict(String k) | No description in source. |
known | boolean known(String k) | No description in source. |
name | String name() | No description in source. |
supported | boolean supported() | A backend is supported when it is one of the known toolkits/bridges. |
isSwing | boolean isSwing() | No description in source. |
isJavaFx | boolean isJavaFx() | No description in source. |
isNative | boolean isNative() | No description in source. |
resolved | String resolved() | Normalized label: the "fx" alias resolves to "javafx". |
supportsHiDpi | boolean supportsHiDpi() | 2.0 capability flags — what the chosen backend can honor from SLGuiSettings. The native bridge and JavaFX expose the richest surface; Swing is HiDPI- and theme-capable but has no vsync concept and weaker native menus. all backends scale |
supportsThemes | boolean supportsThemes() | light/dark/system |
supportsVsync | boolean supportsVsync() | swing has no vsync |
supportsAccessibility | boolean supportsAccessibility() | a11y tree on all |
supportsNativeMenus | boolean supportsNativeMenus() | richer native menus |
SLGuiBackend #sleela 2.5 (lib/gui/version-military/SLGuiBackend.sleela)
SLGuiBackend class
Defines SLGuiBackend — the toolkit-neutral GUI backend identity. Mirrors SleelaGui.create(backend) in gui/: a backend is "swing", "javafx" (alias "fx"), or "native" (the C ABI bridge). SLeeLa names the backend; the Java host or the native bridge supplies the actual desktop controls.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
kind | String kind | "swing" | "javafx" | "fx" | "native" |
valid | int valid | 1 once configure() accepted a known kind |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String k) | 2.0: validated configuration — an unknown kind is REFUSED (fail-closed) rather than stored and only caught later by supported(). Returns true when the kind was accepted. configure(String) keeps the lenient 1.0 behavior for source compatibility; configureStrict() is the 2.0 guarded form. |
configureStrict | boolean configureStrict(String k) | No description in source. |
known | boolean known(String k) | No description in source. |
name | String name() | No description in source. |
supported | boolean supported() | A backend is supported when it is one of the known toolkits/bridges. |
isSwing | boolean isSwing() | No description in source. |
isJavaFx | boolean isJavaFx() | No description in source. |
isNative | boolean isNative() | No description in source. |
resolved | String resolved() | Normalized label: the "fx" alias resolves to "javafx". |
supportsHiDpi | boolean supportsHiDpi() | 2.0 capability flags — what the chosen backend can honor from SLGuiSettings. The native bridge and JavaFX expose the richest surface; Swing is HiDPI- and theme-capable but has no vsync concept and weaker native menus. all backends scale |
supportsThemes | boolean supportsThemes() | light/dark/system |
supportsVsync | boolean supportsVsync() | swing has no vsync |
supportsAccessibility | boolean supportsAccessibility() | a11y tree on all |
supportsNativeMenus | boolean supportsNativeMenus() | richer native menus |
SLGuiBackend #sleela 2.5 (lib/gui/version-dual/SLGuiBackend.sleela)
SLGuiBackend class
Defines SLGuiBackend — the toolkit-neutral GUI backend identity. Mirrors SleelaGui.create(backend) in gui/: a backend is "swing", "javafx" (alias "fx"), or "native" (the C ABI bridge). SLeeLa names the backend; the Java host or the native bridge supplies the actual desktop controls.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
kind | String kind | "swing" | "javafx" | "fx" | "native" |
valid | int valid | 1 once configure() accepted a known kind |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String k) | 2.0: validated configuration — an unknown kind is REFUSED (fail-closed) rather than stored and only caught later by supported(). Returns true when the kind was accepted. configure(String) keeps the lenient 1.0 behavior for source compatibility; configureStrict() is the 2.0 guarded form. |
configureStrict | boolean configureStrict(String k) | No description in source. |
known | boolean known(String k) | No description in source. |
name | String name() | No description in source. |
supported | boolean supported() | A backend is supported when it is one of the known toolkits/bridges. |
isSwing | boolean isSwing() | No description in source. |
isJavaFx | boolean isJavaFx() | No description in source. |
isNative | boolean isNative() | No description in source. |
resolved | String resolved() | Normalized label: the "fx" alias resolves to "javafx". |
supportsHiDpi | boolean supportsHiDpi() | 2.0 capability flags — what the chosen backend can honor from SLGuiSettings. The native bridge and JavaFX expose the richest surface; Swing is HiDPI- and theme-capable but has no vsync concept and weaker native menus. all backends scale |
supportsThemes | boolean supportsThemes() | light/dark/system |
supportsVsync | boolean supportsVsync() | swing has no vsync |
supportsAccessibility | boolean supportsAccessibility() | a11y tree on all |
supportsNativeMenus | boolean supportsNativeMenus() | richer native menus |
SLGuiBranding #sleela 2.5 (lib/gui/version-thual/SLGuiBranding.sleela)
SLGuiBranding class
Defines SLGuiBranding — the 3.0 logo + brand-identity surface for a SLeeLa GUI app: a logo asset (by host-resolvable name/path), a placement, a scale, an optional wordmark, brand accent/secondary colors, and a tagline. The host paints the logo into the chrome (title bar / splash / about / app header) at the requested placement and scale; SLeeLa names the brand, the host renders it. Every knob is validated/clamped. Family: gui. Owned by SLGuiApp; read by the host when it dresses the window.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
PLACE_TITLEBAR | static final int PLACE_TITLEBAR = 0 | Logo placement in the app chrome. |
PLACE_HEADER | static final int PLACE_HEADER = 1 | No description in source. |
PLACE_SPLASH | static final int PLACE_SPLASH = 2 | No description in source. |
PLACE_ABOUT | static final int PLACE_ABOUT = 3 | No description in source. |
PLACE_WATERMARK | static final int PLACE_WATERMARK= 4 | No description in source. |
logoAsset | String logoAsset | host-resolvable logo name/path (e.g. "brand/logo.svg") |
placement | int placement | PLACE_* |
scalePct | int scalePct | logo scale, 25..400 % |
wordmark | String wordmark | text wordmark shown beside/instead of the logo |
accentColor | String accentColor | primary brand color "#rrggbb" (or named) |
secondaryColor | String secondaryColor | secondary brand color |
tagline | String tagline | short brand tagline |
shown | int shown | 1 = branding is active |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String asset) | No description in source. |
clamp | int clamp(int v, int lo, int hi) | No description in source. |
setLogo | void setLogo(String asset) | No description in source. |
setPlacement | void setPlacement(int p) | No description in source. |
setScalePct | void setScalePct(int pct) | No description in source. |
setWordmark | void setWordmark(String w) | No description in source. |
setColors | void setColors(String accent, String secondary) | No description in source. |
setTagline | void setTagline(String t) | No description in source. |
show | void show() | No description in source. |
hide | void hide() | No description in source. |
logo | String logo() | No description in source. |
getPlacement | int getPlacement() | No description in source. |
getScalePct | int getScalePct() | No description in source. |
getWordmark | String getWordmark() | No description in source. |
getAccent | String getAccent() | No description in source. |
getSecondary | String getSecondary() | No description in source. |
getTagline | String getTagline() | No description in source. |
visible | boolean visible() | No description in source. |
hasLogo | boolean hasLogo() | No description in source. |
placementName | String placementName() | No description in source. |
valid | boolean valid() | No description in source. |
report | String report() | No description in source. |
SLGuiBranding #sleela 2.5 (lib/gui/version-military/SLGuiBranding.sleela)
SLGuiBranding class
Defines SLGuiBranding — the 3.0 logo + brand-identity surface for a SLeeLa GUI app: a logo asset (by host-resolvable name/path), a placement, a scale, an optional wordmark, brand accent/secondary colors, and a tagline. The host paints the logo into the chrome (title bar / splash / about / app header) at the requested placement and scale; SLeeLa names the brand, the host renders it. Every knob is validated/clamped. Family: gui. Owned by SLGuiApp; read by the host when it dresses the window.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
PLACE_TITLEBAR | static final int PLACE_TITLEBAR = 0 | Logo placement in the app chrome. |
PLACE_HEADER | static final int PLACE_HEADER = 1 | No description in source. |
PLACE_SPLASH | static final int PLACE_SPLASH = 2 | No description in source. |
PLACE_ABOUT | static final int PLACE_ABOUT = 3 | No description in source. |
PLACE_WATERMARK | static final int PLACE_WATERMARK= 4 | No description in source. |
logoAsset | String logoAsset | host-resolvable logo name/path (e.g. "brand/logo.svg") |
placement | int placement | PLACE_* |
scalePct | int scalePct | logo scale, 25..400 % |
wordmark | String wordmark | text wordmark shown beside/instead of the logo |
accentColor | String accentColor | primary brand color "#rrggbb" (or named) |
secondaryColor | String secondaryColor | secondary brand color |
tagline | String tagline | short brand tagline |
shown | int shown | 1 = branding is active |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String asset) | No description in source. |
clamp | int clamp(int v, int lo, int hi) | No description in source. |
setLogo | void setLogo(String asset) | No description in source. |
setPlacement | void setPlacement(int p) | No description in source. |
setScalePct | void setScalePct(int pct) | No description in source. |
setWordmark | void setWordmark(String w) | No description in source. |
setColors | void setColors(String accent, String secondary) | No description in source. |
setTagline | void setTagline(String t) | No description in source. |
show | void show() | No description in source. |
hide | void hide() | No description in source. |
logo | String logo() | No description in source. |
getPlacement | int getPlacement() | No description in source. |
getScalePct | int getScalePct() | No description in source. |
getWordmark | String getWordmark() | No description in source. |
getAccent | String getAccent() | No description in source. |
getSecondary | String getSecondary() | No description in source. |
getTagline | String getTagline() | No description in source. |
visible | boolean visible() | No description in source. |
hasLogo | boolean hasLogo() | No description in source. |
placementName | String placementName() | No description in source. |
valid | boolean valid() | No description in source. |
report | String report() | No description in source. |
SLGuiBranding #sleela 2.5 (lib/gui/version-dual/SLGuiBranding.sleela)
SLGuiBranding class
Defines SLGuiBranding — the 3.0 logo + brand-identity surface for a SLeeLa GUI app: a logo asset (by host-resolvable name/path), a placement, a scale, an optional wordmark, brand accent/secondary colors, and a tagline. The host paints the logo into the chrome (title bar / splash / about / app header) at the requested placement and scale; SLeeLa names the brand, the host renders it. Every knob is validated/clamped. Family: gui. Owned by SLGuiApp; read by the host when it dresses the window.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
PLACE_TITLEBAR | static final int PLACE_TITLEBAR = 0 | Logo placement in the app chrome. |
PLACE_HEADER | static final int PLACE_HEADER = 1 | No description in source. |
PLACE_SPLASH | static final int PLACE_SPLASH = 2 | No description in source. |
PLACE_ABOUT | static final int PLACE_ABOUT = 3 | No description in source. |
PLACE_WATERMARK | static final int PLACE_WATERMARK= 4 | No description in source. |
logoAsset | String logoAsset | host-resolvable logo name/path (e.g. "brand/logo.svg") |
placement | int placement | PLACE_* |
scalePct | int scalePct | logo scale, 25..400 % |
wordmark | String wordmark | text wordmark shown beside/instead of the logo |
accentColor | String accentColor | primary brand color "#rrggbb" (or named) |
secondaryColor | String secondaryColor | secondary brand color |
tagline | String tagline | short brand tagline |
shown | int shown | 1 = branding is active |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String asset) | No description in source. |
clamp | int clamp(int v, int lo, int hi) | No description in source. |
setLogo | void setLogo(String asset) | No description in source. |
setPlacement | void setPlacement(int p) | No description in source. |
setScalePct | void setScalePct(int pct) | No description in source. |
setWordmark | void setWordmark(String w) | No description in source. |
setColors | void setColors(String accent, String secondary) | No description in source. |
setTagline | void setTagline(String t) | No description in source. |
show | void show() | No description in source. |
hide | void hide() | No description in source. |
logo | String logo() | No description in source. |
getPlacement | int getPlacement() | No description in source. |
getScalePct | int getScalePct() | No description in source. |
getWordmark | String getWordmark() | No description in source. |
getAccent | String getAccent() | No description in source. |
getSecondary | String getSecondary() | No description in source. |
getTagline | String getTagline() | No description in source. |
visible | boolean visible() | No description in source. |
hasLogo | boolean hasLogo() | No description in source. |
placementName | String placementName() | No description in source. |
valid | boolean valid() | No description in source. |
report | String report() | No description in source. |
SLGuiBridge #sleela 2.5 (lib/gui/version-gual/SLGuiBridge.sleela)
SLGuiBridge class
Defines SLGuiBridge — Path 3 of gui/INTEGRATION.md: the shared native ABI. Mirrors gui/native/sleela_gui_bridge.h: a C-compatible callback boundary (slgui_bridge_create/call/destroy) plus the document-change refresh hook (slgui_bridge_on_document_change / slgui_bridge_document_changed) that is the native counterpart of SleelaGui.refresh(). The attached document count is bounded 1..14 to match the Java listener.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
SLGUI_MIN_DOCUMENTS | int SLGUI_MIN_DOCUMENTS = 1 | No description in source. |
SLGUI_MAX_DOCUMENTS | int SLGUI_MAX_DOCUMENTS = 14 | No description in source. |
created | int created | 1 after slgui_bridge_create succeeds |
hasRefresh | int hasRefresh | 1 while a refresh callback is installed |
documents | int documents | attached document count (bounded 1..14) |
delivered | int delivered | total refreshes delivered to the callback |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
create | boolean create(boolean hasCall) | slgui_bridge_create(context, call): a non-null call is required. |
isCreated | boolean isCreated() | No description in source. |
call | boolean call(String operation) | slgui_bridge_call(operation, arguments): valid only on a created bridge with a non-empty operation (null arguments are treated as empty). |
attachDocuments | boolean attachDocuments(int count) | Attach the watched-document count; enforces the 1..14 ABI bound. |
documentCount | int documentCount() | No description in source. |
onDocumentChange | void onDocumentChange(boolean installRefresh) | slgui_bridge_on_document_change(refresh): install (or clear with false). |
documentChanged | int documentChanged(String documentId) | slgui_bridge_document_changed(id, revision): forwards one change; returns 1 when delivered, else 0 (no-op when no callback is installed). |
totalDelivered | int totalDelivered() | No description in source. |
destroy | void destroy() | slgui_bridge_destroy(bridge). |
SLGuiBridge #sleela 2.5 (lib/gui/version-mual/SLGuiBridge.sleela)
SLGuiBridge class
Defines SLGuiBridge — Path 3 of gui/INTEGRATION.md: the shared native ABI. Mirrors gui/native/sleela_gui_bridge.h: a C-compatible callback boundary (slgui_bridge_create/call/destroy) plus the document-change refresh hook (slgui_bridge_on_document_change / slgui_bridge_document_changed) that is the native counterpart of SleelaGui.refresh(). The attached document count is bounded 1..14 to match the Java listener.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
SLGUI_MIN_DOCUMENTS | int SLGUI_MIN_DOCUMENTS = 1 | No description in source. |
SLGUI_MAX_DOCUMENTS | int SLGUI_MAX_DOCUMENTS = 14 | No description in source. |
created | int created | 1 after slgui_bridge_create succeeds |
hasRefresh | int hasRefresh | 1 while a refresh callback is installed |
documents | int documents | attached document count (bounded 1..14) |
delivered | int delivered | total refreshes delivered to the callback |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
create | boolean create(boolean hasCall) | slgui_bridge_create(context, call): a non-null call is required. |
isCreated | boolean isCreated() | No description in source. |
call | boolean call(String operation) | slgui_bridge_call(operation, arguments): valid only on a created bridge with a non-empty operation (null arguments are treated as empty). |
attachDocuments | boolean attachDocuments(int count) | Attach the watched-document count; enforces the 1..14 ABI bound. |
documentCount | int documentCount() | No description in source. |
onDocumentChange | void onDocumentChange(boolean installRefresh) | slgui_bridge_on_document_change(refresh): install (or clear with false). |
documentChanged | int documentChanged(String documentId) | slgui_bridge_document_changed(id, revision): forwards one change; returns 1 when delivered, else 0 (no-op when no callback is installed). |
totalDelivered | int totalDelivered() | No description in source. |
destroy | void destroy() | slgui_bridge_destroy(bridge). |
SLGuiBridge #sleela 2.5 (lib/gui/version-thual/SLGuiBridge.sleela)
SLGuiBridge class
Defines SLGuiBridge — Path 3 of gui/INTEGRATION.md: the shared native ABI. Mirrors gui/native/sleela_gui_bridge.h: a C-compatible callback boundary (slgui_bridge_create/call/destroy) plus the document-change refresh hook (slgui_bridge_on_document_change / slgui_bridge_document_changed) that is the native counterpart of SleelaGui.refresh(). The attached document count is bounded 1..14 to match the Java listener.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
SLGUI_MIN_DOCUMENTS | int SLGUI_MIN_DOCUMENTS = 1 | No description in source. |
SLGUI_MAX_DOCUMENTS | int SLGUI_MAX_DOCUMENTS = 14 | No description in source. |
created | int created | 1 after slgui_bridge_create succeeds |
hasRefresh | int hasRefresh | 1 while a refresh callback is installed |
documents | int documents | attached document count (bounded 1..14) |
delivered | int delivered | total refreshes delivered to the callback |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
create | boolean create(boolean hasCall) | slgui_bridge_create(context, call): a non-null call is required. |
isCreated | boolean isCreated() | No description in source. |
call | boolean call(String operation) | slgui_bridge_call(operation, arguments): valid only on a created bridge with a non-empty operation (null arguments are treated as empty). |
attachDocuments | boolean attachDocuments(int count) | Attach the watched-document count; enforces the 1..14 ABI bound. |
documentCount | int documentCount() | No description in source. |
onDocumentChange | void onDocumentChange(boolean installRefresh) | slgui_bridge_on_document_change(refresh): install (or clear with false). |
documentChanged | int documentChanged(String documentId) | slgui_bridge_document_changed(id, revision): forwards one change; returns 1 when delivered, else 0 (no-op when no callback is installed). |
totalDelivered | int totalDelivered() | No description in source. |
destroy | void destroy() | slgui_bridge_destroy(bridge). |
SLGuiBridge #sleela 2.5 (lib/gui/version-military/SLGuiBridge.sleela)
SLGuiBridge class
Defines SLGuiBridge — Path 3 of gui/INTEGRATION.md: the shared native ABI. Mirrors gui/native/sleela_gui_bridge.h: a C-compatible callback boundary (slgui_bridge_create/call/destroy) plus the document-change refresh hook (slgui_bridge_on_document_change / slgui_bridge_document_changed) that is the native counterpart of SleelaGui.refresh(). The attached document count is bounded 1..14 to match the Java listener.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
SLGUI_MIN_DOCUMENTS | int SLGUI_MIN_DOCUMENTS = 1 | No description in source. |
SLGUI_MAX_DOCUMENTS | int SLGUI_MAX_DOCUMENTS = 14 | No description in source. |
created | int created | 1 after slgui_bridge_create succeeds |
hasRefresh | int hasRefresh | 1 while a refresh callback is installed |
documents | int documents | attached document count (bounded 1..14) |
delivered | int delivered | total refreshes delivered to the callback |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
create | boolean create(boolean hasCall) | slgui_bridge_create(context, call): a non-null call is required. |
isCreated | boolean isCreated() | No description in source. |
call | boolean call(String operation) | slgui_bridge_call(operation, arguments): valid only on a created bridge with a non-empty operation (null arguments are treated as empty). |
attachDocuments | boolean attachDocuments(int count) | Attach the watched-document count; enforces the 1..14 ABI bound. |
documentCount | int documentCount() | No description in source. |
onDocumentChange | void onDocumentChange(boolean installRefresh) | slgui_bridge_on_document_change(refresh): install (or clear with false). |
documentChanged | int documentChanged(String documentId) | slgui_bridge_document_changed(id, revision): forwards one change; returns 1 when delivered, else 0 (no-op when no callback is installed). |
totalDelivered | int totalDelivered() | No description in source. |
destroy | void destroy() | slgui_bridge_destroy(bridge). |
SLGuiBridge #sleela 2.5 (lib/gui/version-dual/SLGuiBridge.sleela)
SLGuiBridge class
Defines SLGuiBridge — Path 3 of gui/INTEGRATION.md: the shared native ABI. Mirrors gui/native/sleela_gui_bridge.h: a C-compatible callback boundary (slgui_bridge_create/call/destroy) plus the document-change refresh hook (slgui_bridge_on_document_change / slgui_bridge_document_changed) that is the native counterpart of SleelaGui.refresh(). The attached document count is bounded 1..14 to match the Java listener.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
SLGUI_MIN_DOCUMENTS | int SLGUI_MIN_DOCUMENTS = 1 | No description in source. |
SLGUI_MAX_DOCUMENTS | int SLGUI_MAX_DOCUMENTS = 14 | No description in source. |
created | int created | 1 after slgui_bridge_create succeeds |
hasRefresh | int hasRefresh | 1 while a refresh callback is installed |
documents | int documents | attached document count (bounded 1..14) |
delivered | int delivered | total refreshes delivered to the callback |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
create | boolean create(boolean hasCall) | slgui_bridge_create(context, call): a non-null call is required. |
isCreated | boolean isCreated() | No description in source. |
call | boolean call(String operation) | slgui_bridge_call(operation, arguments): valid only on a created bridge with a non-empty operation (null arguments are treated as empty). |
attachDocuments | boolean attachDocuments(int count) | Attach the watched-document count; enforces the 1..14 ABI bound. |
documentCount | int documentCount() | No description in source. |
onDocumentChange | void onDocumentChange(boolean installRefresh) | slgui_bridge_on_document_change(refresh): install (or clear with false). |
documentChanged | int documentChanged(String documentId) | slgui_bridge_document_changed(id, revision): forwards one change; returns 1 when delivered, else 0 (no-op when no callback is installed). |
totalDelivered | int totalDelivered() | No description in source. |
destroy | void destroy() | slgui_bridge_destroy(bridge). |
SLGuiCertificateStore #sleela 2.5 (lib/gui/version-military/SLGuiCertificateStore.sleela)
SLGuiCertificateStore class
Defines SLGuiCertificateStore — a military-line COMPONENT that holds and presents public-key certificates (an X.509-style store). Each entry carries a subject, an issuer, a key algorithm, a fingerprint, a trust state (trusted / untrusted / revoked / expired), and whether it is a CA. The store lets the program import a certificate, mark trust, select one for use, and query validity. SLeeLa owns the store CONTENTS and trust STATE; the host/crypto layer performs chain building and signature verification and reports the result back as a trust state. It is fail-closed: a certificate is untrusted until explicitly trusted, and a revoked/expired certificate is never reported valid. Family: gui. A "certstore" node's backing model; partners SLGuiCryptoSelector and SLGuiAdminAuthority (an admin signature for Law may reference a cert).
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_CERTS | static final int MAX_CERTS = 64 | No description in source. |
TRUST_UNTRUSTED | static final int TRUST_UNTRUSTED = 0 | Trust state of an entry. present but not trusted (default) |
TRUST_TRUSTED | static final int TRUST_TRUSTED = 1 | explicitly trusted by the operator |
TRUST_REVOKED | static final int TRUST_REVOKED = 2 | on a revocation list |
TRUST_EXPIRED | static final int TRUST_EXPIRED = 3 | past its validity window |
subject | String[] subject | certificate subject (CN/O) |
issuer | String[] issuer | issuing authority |
keyAlg | String[] keyAlg | e.g. "RSA-2048", "ECDSA-P256", "Ed25519", "ML-DSA-65" |
fingerprint | String[] fingerprint | host-supplied hash (e.g. SHA-256 hex) |
trust | int[] trust | TRUST_* |
isCa | int[] isCa | 1 = certificate authority |
count | int count | No description in source. |
selected | int selected | selected entry index (-1 = none) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
importCert | int importCert(String subj, String iss, String alg, String fp, boolean ca) | Import a certificate. Fail-closed: blank subject/fingerprint is refused, and a new entry starts UNTRUSTED. Returns the new index, or -1 on refusal/full. |
certCount | int certCount() | No description in source. |
subjectAt | String subjectAt(int i) | No description in source. |
issuerAt | String issuerAt(int i) | No description in source. |
keyAlgAt | String keyAlgAt(int i) | No description in source. |
fingerprintAt | String fingerprintAt(int i) | No description in source. |
trustAt | int trustAt(int i) | No description in source. |
isCaAt | boolean isCaAt(int i) | No description in source. |
indexOfFingerprint | int indexOfFingerprint(String fp) | No description in source. |
trustCert | boolean trustCert(int i) | ---- trust (the operator / host chain-verifier sets these) -------------- |
untrustCert | boolean untrustCert(int i) | No description in source. |
markRevoked | void markRevoked(int i) | Host reports a revocation / expiry (irreversible trust downgrade). |
markExpired | void markExpired(int i) | No description in source. |
valid | boolean valid(int i) | A certificate is VALID for use only when explicitly trusted (never when untrusted, revoked, or expired) — fail-closed. |
select | boolean select(int i) | ---- selection ---------------------------------------------------------- Select a certificate for use; only a valid (trusted) entry may be selected. |
clearSelection | void clearSelection() | No description in source. |
hasSelection | boolean hasSelection() | No description in source. |
selectedIndex | int selectedIndex() | No description in source. |
selectedSubject | String selectedSubject() | No description in source. |
selectedFingerprint | String selectedFingerprint() | No description in source. |
validCount | int validCount() | Count of certificates that are currently valid for use. |
trustName | String trustName(int t) | No description in source. |
SLGuiClickObject #sleela 2.5 (lib/gui/version-military/SLGuiClickObject.sleela)
SLGuiClickObject class
Defines SLGuiClickObject — a 4.0 custom click object: a small circle with its own position, radius, architecturally-driven MOTION, and a staged TIMER. The timer runs through a sequence of "System Apprentice" stages — subtle, escalating activations — and when the final stage elapses it fires the FINAL CALL (a named SLeeLa operation). The motion is a declared architecture (static / drift / orbit / pulse) advanced by the app tick, so the circle moves predictably rather than by ad-hoc animation. SLeeLa owns position, motion, the apprentice ladder, and the final-call binding; the host paints the circle and plays any cue. The apprentice model: stage 0 is dormant; each interval advances one apprentice stage (subtle visual/behaviour change); reaching apprenticeMax triggers the final call exactly once. This gives a click object a careful, architecturally-driven build-up to its culminating action. Family: gui. A circle node's backing model; advanced by SLGuiApp's tick.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MOTION_STATIC | static final int MOTION_STATIC = 0 | Motion architectures. fixed position |
MOTION_DRIFT | static final int MOTION_DRIFT = 1 | linear drift by (vx,vy) per interval |
MOTION_ORBIT | static final int MOTION_ORBIT = 2 | orbit a center at a radius/step |
MOTION_PULSE | static final int MOTION_PULSE = 3 | radius pulses between min/max |
id | String id | No description in source. |
radiusPx | int radiusPx | circle radius, 2..512 |
motion | int motion | MOTION_* |
intervalMs | int intervalMs | Staged apprentice timer. time between apprentice stages, 50..600000 |
accumMs | int accumMs | banked time toward the next stage |
apprentice | int apprentice | current apprentice stage (0 = dormant) |
apprenticeMax | int apprenticeMax | stages before the final call fires, 1..64 |
finalCall | String finalCall | SLeeLa operation fired at the culminating stage |
fired | int fired | 1 once the final call has fired (fires once) |
running | int running | 1 while the timer advances |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String objId, int cx, int cy, int radius) | No description in source. |
clamp | int clamp(int v, int lo, int hi) | No description in source. |
clampRadius | int clampRadius(int r) | No description in source. |
wrapDeg | int wrapDeg(int d) | No description in source. |
setPosition | void setPosition(int cx, int cy) | ---- position ---------------------------------------------------------- |
setRadius | void setRadius(int r) | No description in source. |
posX | int posX() | No description in source. |
posY | int posY() | No description in source. |
radius | int radius() | No description in source. |
setStatic | void setStatic() | ---- motion architecture ------------------------------------------------ |
setDrift | void setDrift(int velX, int velY) | No description in source. |
setOrbit | void setOrbit(int centerX, int centerY, int r, int stepDeg) | No description in source. |
setPulse | void setPulse(int minR, int maxR) | No description in source. |
bindFinalCall | void bindFinalCall(String operation, int stages) | ---- apprentice ladder -------------------------------------------------- Bind the culminating action and how many apprentice stages precede it. |
setInterval | void setInterval(int ms) | No description in source. |
start | void start() | No description in source. |
stop | void stop() | No description in source. |
reset | void reset() | No description in source. |
apprenticeStage | int apprenticeStage() | No description in source. |
apprenticeStages | int apprenticeStages() | No description in source. |
dormant | boolean dormant() | No description in source. |
finalFired | boolean finalFired() | No description in source. |
getFinalCall | String getFinalCall() | No description in source. |
advance | int advance(int elapsedMs) | ---- advance (called by the app tick) ----------------------------------- Advance motion and the apprentice timer by `elapsedMs`. Returns a code: 0 = nothing happened this tick 1 = moved and/or advanced an apprentice stage 2 = the FINAL CALL fired this tick (the host should invoke finalCall) |
advanceMotion | boolean advanceMotion() | Apply one motion step according to the architecture. Returns true if moved. |
orbitAngle | int orbitAngle() | No description in source. |
motionKind | int motionKind() | No description in source. |
motionName | String motionName() | No description in source. |
honored | boolean honored() | No description in source. |
SLGuiClickObject #sleela 2.5 (lib/gui/version-dual/SLGuiClickObject.sleela)
SLGuiClickObject class
Defines SLGuiClickObject — a 4.0 custom click object: a small circle with its own position, radius, architecturally-driven MOTION, and a staged TIMER. The timer runs through a sequence of "System Apprentice" stages — subtle, escalating activations — and when the final stage elapses it fires the FINAL CALL (a named SLeeLa operation). The motion is a declared architecture (static / drift / orbit / pulse) advanced by the app tick, so the circle moves predictably rather than by ad-hoc animation. SLeeLa owns position, motion, the apprentice ladder, and the final-call binding; the host paints the circle and plays any cue. The apprentice model: stage 0 is dormant; each interval advances one apprentice stage (subtle visual/behaviour change); reaching apprenticeMax triggers the final call exactly once. This gives a click object a careful, architecturally-driven build-up to its culminating action. Family: gui. A circle node's backing model; advanced by SLGuiApp's tick.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MOTION_STATIC | static final int MOTION_STATIC = 0 | Motion architectures. fixed position |
MOTION_DRIFT | static final int MOTION_DRIFT = 1 | linear drift by (vx,vy) per interval |
MOTION_ORBIT | static final int MOTION_ORBIT = 2 | orbit a center at a radius/step |
MOTION_PULSE | static final int MOTION_PULSE = 3 | radius pulses between min/max |
id | String id | No description in source. |
radiusPx | int radiusPx | circle radius, 2..512 |
motion | int motion | MOTION_* |
intervalMs | int intervalMs | Staged apprentice timer. time between apprentice stages, 50..600000 |
accumMs | int accumMs | banked time toward the next stage |
apprentice | int apprentice | current apprentice stage (0 = dormant) |
apprenticeMax | int apprenticeMax | stages before the final call fires, 1..64 |
finalCall | String finalCall | SLeeLa operation fired at the culminating stage |
fired | int fired | 1 once the final call has fired (fires once) |
running | int running | 1 while the timer advances |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String objId, int cx, int cy, int radius) | No description in source. |
clamp | int clamp(int v, int lo, int hi) | No description in source. |
clampRadius | int clampRadius(int r) | No description in source. |
wrapDeg | int wrapDeg(int d) | No description in source. |
setPosition | void setPosition(int cx, int cy) | ---- position ---------------------------------------------------------- |
setRadius | void setRadius(int r) | No description in source. |
posX | int posX() | No description in source. |
posY | int posY() | No description in source. |
radius | int radius() | No description in source. |
setStatic | void setStatic() | ---- motion architecture ------------------------------------------------ |
setDrift | void setDrift(int velX, int velY) | No description in source. |
setOrbit | void setOrbit(int centerX, int centerY, int r, int stepDeg) | No description in source. |
setPulse | void setPulse(int minR, int maxR) | No description in source. |
bindFinalCall | void bindFinalCall(String operation, int stages) | ---- apprentice ladder -------------------------------------------------- Bind the culminating action and how many apprentice stages precede it. |
setInterval | void setInterval(int ms) | No description in source. |
start | void start() | No description in source. |
stop | void stop() | No description in source. |
reset | void reset() | No description in source. |
apprenticeStage | int apprenticeStage() | No description in source. |
apprenticeStages | int apprenticeStages() | No description in source. |
dormant | boolean dormant() | No description in source. |
finalFired | boolean finalFired() | No description in source. |
getFinalCall | String getFinalCall() | No description in source. |
advance | int advance(int elapsedMs) | ---- advance (called by the app tick) ----------------------------------- Advance motion and the apprentice timer by `elapsedMs`. Returns a code: 0 = nothing happened this tick 1 = moved and/or advanced an apprentice stage 2 = the FINAL CALL fired this tick (the host should invoke finalCall) |
advanceMotion | boolean advanceMotion() | Apply one motion step according to the architecture. Returns true if moved. |
orbitAngle | int orbitAngle() | No description in source. |
motionKind | int motionKind() | No description in source. |
motionName | String motionName() | No description in source. |
honored | boolean honored() | No description in source. |
SLGuiCodecs #sleela 2.5 (lib/gui/version-military/SLGuiCodecs.sleela)
SLGuiCodecs class
Defines SLGuiCodecs — the GUI-facing view of the SLeeLa codec
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
STATE_NATIVE | static final int STATE_NATIVE = 0 | Capability state (mirrors sleela_codec_state). |
STATE_BACKEND | static final int STATE_BACKEND = 1 | No description in source. |
STATE_RECOGNIZED | static final int STATE_RECOGNIZED = 2 | No description in source. |
STATE_CONTAINER | static final int STATE_CONTAINER = 3 | No description in source. |
STATE_EVENT | static final int STATE_EVENT = 4 | No description in source. |
CODEC_COUNT | static final int CODEC_COUNT = 20 | == SLEELA_CODEC_COUNT |
names | String[] names | Parallel registry arrays (the surface language has no record arrays). Index is the sleela_codec_id ordinal, so by-id lookup is O(1). |
mimes | String[] mimes | No description in source. |
exts | String[] exts | No description in source. |
states | int[] states | No description in source. |
decode | int[] decode | 1 = can decode |
encode | int[] encode | 1 = can encode |
count | int count | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
add | void add(String name, String mime, String ext, int state, int dec, int enc) | No description in source. |
codecCount | int codecCount() | No description in source. |
idOf | int idOf(String name) | ---- lookup (mirrors sleela_codec_by_id / _by_extension) ---------------- |
nameAt | String nameAt(int id) | No description in source. |
mimeAt | String mimeAt(int id) | No description in source. |
stateAt | int stateAt(int id) | No description in source. |
has | boolean has(String name) | No description in source. |
byExtension | int byExtension(String ext) | Find the codec id whose extension list contains `ext` (e.g. ".mp3"); -1 none. |
byMime | int byMime(String mime) | Find a codec id by MIME type; -1 if none matches. |
contains | boolean contains(String csv, String token) | No description in source. |
indexOfSub | int indexOfSub(String hay, String needle) | No description in source. |
canDecode | boolean canDecode(String name) | ---- capability questions GUI components ask ---------------------------- |
canEncode | boolean canEncode(String name) | No description in source. |
playable | boolean playable(String name) | "Playable" = the system can actually decode it (native or backend). |
recordable | boolean recordable(String name) | "Recordable" = the system can encode it to capture audio. |
playableExtension | boolean playableExtension(String ext) | Can a media file with this extension be played? |
stateName | String stateName(int state) | No description in source. |
playableCount | int playableCount() | How many codecs are actually playable (native/backend/container decode). |
SLGuiCodecs #sleela 2.5 (lib/gui/version-dual/SLGuiCodecs.sleela)
SLGuiCodecs class
Defines SLGuiCodecs — the GUI-facing view of the SLeeLa codec registry in /codecs. It mirrors codecs/include/sleela_codecs.h exactly (the 20 audio-codec ids, their capability STATE — native/backend/recognized/ container/event — MIME type, and file extensions) so GUI components can SEE what the system supports before offering media: a video canvas or audio recorder asks "can we play/record this?" and the URL bar / HTML renderer asks "is this <audio>/<source> type supported?". SLeeLa names the codecs here; the native /codecs backend (sleela_codec_* C ABI) does the actual encode/decode. Capability semantics (from codecs/CODECS.md): native = in-tree encode/ decode; backend = handler contract needs an approved library; recognized = identified only; container = carries audio but is not a codec; event = musical events, not PCM. "supported for playback" means native or backend. Family: gui. The SLeeLa-source mirror of /codecs; consulted by SLGuiVideoCanvas, SLGuiAudioRecorder, and SLGuiHtmlRenderer media elements.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
STATE_NATIVE | static final int STATE_NATIVE = 0 | Capability state (mirrors sleela_codec_state). |
STATE_BACKEND | static final int STATE_BACKEND = 1 | No description in source. |
STATE_RECOGNIZED | static final int STATE_RECOGNIZED = 2 | No description in source. |
STATE_CONTAINER | static final int STATE_CONTAINER = 3 | No description in source. |
STATE_EVENT | static final int STATE_EVENT = 4 | No description in source. |
CODEC_COUNT | static final int CODEC_COUNT = 20 | == SLEELA_CODEC_COUNT |
names | String[] names | Parallel registry arrays (the surface language has no record arrays). Index is the sleela_codec_id ordinal, so by-id lookup is O(1). |
mimes | String[] mimes | No description in source. |
exts | String[] exts | No description in source. |
states | int[] states | No description in source. |
decode | int[] decode | 1 = can decode |
encode | int[] encode | 1 = can encode |
count | int count | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
add | void add(String name, String mime, String ext, int state, int dec, int enc) | No description in source. |
codecCount | int codecCount() | No description in source. |
idOf | int idOf(String name) | ---- lookup (mirrors sleela_codec_by_id / _by_extension) ---------------- |
nameAt | String nameAt(int id) | No description in source. |
mimeAt | String mimeAt(int id) | No description in source. |
stateAt | int stateAt(int id) | No description in source. |
has | boolean has(String name) | No description in source. |
byExtension | int byExtension(String ext) | Find the codec id whose extension list contains `ext` (e.g. ".mp3"); -1 none. |
byMime | int byMime(String mime) | Find a codec id by MIME type; -1 if none matches. |
contains | boolean contains(String csv, String token) | No description in source. |
indexOfSub | int indexOfSub(String hay, String needle) | No description in source. |
canDecode | boolean canDecode(String name) | ---- capability questions GUI components ask ---------------------------- |
canEncode | boolean canEncode(String name) | No description in source. |
playable | boolean playable(String name) | "Playable" = the system can actually decode it (native or backend). |
recordable | boolean recordable(String name) | "Recordable" = the system can encode it to capture audio. |
playableExtension | boolean playableExtension(String ext) | Can a media file with this extension be played? |
stateName | String stateName(int state) | No description in source. |
playableCount | int playableCount() | How many codecs are actually playable (native/backend/container decode). |
SLGuiCryptoSelector #sleela 2.5 (lib/gui/version-military/SLGuiCryptoSelector.sleela)
SLGuiCryptoSelector class
Defines SLGuiCryptoSelector — a military-line COMPONENT that lets a program choose its cryptography: a careful catalog of named suites (key-exchange + signature + cipher + hash), each with a security STRENGTH class (legacy / standard / strong / top-secret) so the UI can present and gate them. SLeeLa owns the catalog and the SELECTION; the host/crypto layer performs the actual cryptography. The selector is fail-closed: nothing is selected until an available suite is chosen, and a suite below a required minimum strength cannot be selected. The catalog names standards (not implementations) — e.g. AES-256-GCM, ChaCha20-Poly1305, X25519, Ed25519, ML-KEM/ML-DSA (post-quantum). Listing a suite does not imply a bundled implementation; availability is reported separately so the component only offers what the platform can actually run. Family: gui. A "cryptoselector" node's backing model; the host supplies which suites are actually available and performs the selected cryptography.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_SUITES | static final int MAX_SUITES = 32 | No description in source. |
STRENGTH_LEGACY | static final int STRENGTH_LEGACY = 0 | Security strength classes (ascending). deprecated, interop only |
STRENGTH_STANDARD | static final int STRENGTH_STANDARD = 1 | No description in source. |
STRENGTH_STRONG | static final int STRENGTH_STRONG = 2 | No description in source. |
STRENGTH_TOPSECRET | static final int STRENGTH_TOPSECRET = 3 | suite-B / PQC grade |
names | String[] names | suite name, e.g. "AES-256-GCM + X25519 + Ed25519" |
strength | int[] strength | STRENGTH_* |
available | int[] available | 1 = the platform can actually run this suite |
pqc | int[] pqc | 1 = post-quantum |
count | int count | No description in source. |
selected | int selected | index of the chosen suite (-1 = none) |
minStrength | int minStrength | a suite below this cannot be selected |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
add | void add(String name, int str, int avail, int isPqc) | No description in source. |
suiteCount | int suiteCount() | No description in source. |
suiteName | String suiteName(int i) | No description in source. |
suiteStrength | int suiteStrength(int i) | No description in source. |
suiteAvailable | boolean suiteAvailable(int i) | No description in source. |
suitePostQuantum | boolean suitePostQuantum(int i) | No description in source. |
indexOf | int indexOf(String name) | No description in source. |
requireMinStrength | void requireMinStrength(int s) | Require a minimum strength; any current selection below it is cleared. |
selectable | boolean selectable(int i) | A suite is selectable when it exists, is available, and meets the minimum. |
select | boolean select(int i) | Select by index or name. Fail-closed: returns false (and selects nothing) if the suite is unavailable or below the required strength. |
selectByName | boolean selectByName(String name) | No description in source. |
clear | void clear() | No description in source. |
hasSelection | boolean hasSelection() | No description in source. |
selectedIndex | int selectedIndex() | No description in source. |
selectedSuite | String selectedSuite() | No description in source. |
selectedStrength | int selectedStrength() | No description in source. |
selectedIsPostQuantum | boolean selectedIsPostQuantum() | No description in source. |
strengthName | String strengthName(int s) | No description in source. |
SLGuiDocument #sleela 2.5 (lib/gui/version-gual/SLGuiDocument.sleela)
SLGuiDocument class
Defines SLGuiDocument — one document watched by the GUI document listener. Mirrors SleelaDocument in gui/: a stable id, a resolved host path, and an OS-derived revision fingerprint (lastModifiedMillis:size, or "absent" when the file is gone). A change is a same-id/same-path document whose revision moved; an OS event that does not move the revision is coalesced away.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
id | String id | SLeeLa-facing identity, stable across revisions |
path | String path | resolved, normalized host path |
revision | String revision | "lastModifiedMillis:size", or "absent" |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String docId, String docPath, String rev) | No description in source. |
getId | String getId() | No description in source. |
getPath | String getPath() | No description in source. |
getRevision | String getRevision() | No description in source. |
absent | boolean absent() | Absent means the file was gone/unreadable at snapshot time; appearance or disappearance is itself a detectable change. |
present | boolean present() | No description in source. |
changedFrom | boolean changedFrom(SLGuiDocument other) | True when `other` names the same document at a different revision. |
SLGuiDocument #sleela 2.5 (lib/gui/version-mual/SLGuiDocument.sleela)
SLGuiDocument class
Defines SLGuiDocument — one document watched by the GUI document listener. Mirrors SleelaDocument in gui/: a stable id, a resolved host path, and an OS-derived revision fingerprint (lastModifiedMillis:size, or "absent" when the file is gone). A change is a same-id/same-path document whose revision moved; an OS event that does not move the revision is coalesced away.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
id | String id | SLeeLa-facing identity, stable across revisions |
path | String path | resolved, normalized host path |
revision | String revision | "lastModifiedMillis:size", or "absent" |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String docId, String docPath, String rev) | No description in source. |
getId | String getId() | No description in source. |
getPath | String getPath() | No description in source. |
getRevision | String getRevision() | No description in source. |
absent | boolean absent() | Absent means the file was gone/unreadable at snapshot time; appearance or disappearance is itself a detectable change. |
present | boolean present() | No description in source. |
changedFrom | boolean changedFrom(SLGuiDocument other) | True when `other` names the same document at a different revision. |
SLGuiDocument #sleela 2.5 (lib/gui/version-thual/SLGuiDocument.sleela)
SLGuiDocument class
Defines SLGuiDocument — one document watched by the GUI document listener. Mirrors SleelaDocument in gui/: a stable id, a resolved host path, and an OS-derived revision fingerprint (lastModifiedMillis:size, or "absent" when the file is gone). A change is a same-id/same-path document whose revision moved; an OS event that does not move the revision is coalesced away.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
id | String id | SLeeLa-facing identity, stable across revisions |
path | String path | resolved, normalized host path |
revision | String revision | "lastModifiedMillis:size", or "absent" |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String docId, String docPath, String rev) | No description in source. |
getId | String getId() | No description in source. |
getPath | String getPath() | No description in source. |
getRevision | String getRevision() | No description in source. |
absent | boolean absent() | Absent means the file was gone/unreadable at snapshot time; appearance or disappearance is itself a detectable change. |
present | boolean present() | No description in source. |
changedFrom | boolean changedFrom(SLGuiDocument other) | True when `other` names the same document at a different revision. |
SLGuiDocument #sleela 2.5 (lib/gui/version-military/SLGuiDocument.sleela)
SLGuiDocument class
Defines SLGuiDocument — one document watched by the GUI document listener. Mirrors SleelaDocument in gui/: a stable id, a resolved host path, and an OS-derived revision fingerprint (lastModifiedMillis:size, or "absent" when the file is gone). A change is a same-id/same-path document whose revision moved; an OS event that does not move the revision is coalesced away.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
id | String id | SLeeLa-facing identity, stable across revisions |
path | String path | resolved, normalized host path |
revision | String revision | "lastModifiedMillis:size", or "absent" |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String docId, String docPath, String rev) | No description in source. |
getId | String getId() | No description in source. |
getPath | String getPath() | No description in source. |
getRevision | String getRevision() | No description in source. |
absent | boolean absent() | Absent means the file was gone/unreadable at snapshot time; appearance or disappearance is itself a detectable change. |
present | boolean present() | No description in source. |
changedFrom | boolean changedFrom(SLGuiDocument other) | True when `other` names the same document at a different revision. |
SLGuiDocument #sleela 2.5 (lib/gui/version-dual/SLGuiDocument.sleela)
SLGuiDocument class
Defines SLGuiDocument — one document watched by the GUI document listener. Mirrors SleelaDocument in gui/: a stable id, a resolved host path, and an OS-derived revision fingerprint (lastModifiedMillis:size, or "absent" when the file is gone). A change is a same-id/same-path document whose revision moved; an OS event that does not move the revision is coalesced away.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
id | String id | SLeeLa-facing identity, stable across revisions |
path | String path | resolved, normalized host path |
revision | String revision | "lastModifiedMillis:size", or "absent" |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String docId, String docPath, String rev) | No description in source. |
getId | String getId() | No description in source. |
getPath | String getPath() | No description in source. |
getRevision | String getRevision() | No description in source. |
absent | boolean absent() | Absent means the file was gone/unreadable at snapshot time; appearance or disappearance is itself a detectable change. |
present | boolean present() | No description in source. |
changedFrom | boolean changedFrom(SLGuiDocument other) | True when `other` names the same document at a different revision. |
SLGuiDocumentListener #sleela 2.5 (lib/gui/version-gual/SLGuiDocumentListener.sleela)
SLGuiDocumentListener class
Defines SLGuiDocumentListener — the SLeeLa GUI document-change listener option. Mirrors DocumentListener in gui/: watch 1..14 documents and refresh the running GUI whenever any changes on an OS call. Detection is OS-driven (WatchService over inotify / ReadDirectoryChangesW / kqueue/FSEvents), not polling; an OS event that does not move a document's revision is coalesced away. The 1..14 bound is a hard contract.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MIN_DOCUMENTS | int MIN_DOCUMENTS = 1 | lower bound (inclusive) |
MAX_DOCUMENTS | int MAX_DOCUMENTS = 14 | upper bound (inclusive) |
watched | int watched | how many documents are attached (1..14) |
running | int running | 1 while the OS watch loop is active |
changes | int changes | total real changes emitted |
coalesced | int coalesced | total OS wakes coalesced away (no revision move) |
pollMillis | int pollMillis | OS wake cadence / coalescing window |
debounceMillis | int debounceMillis | settle window after a change before emitting |
coalesceQueueMax | int coalesceQueueMax | max pending changes before backpressure applies |
backpressure | int backpressure | 0 coalesce / 1 drop-oldest / 2 block |
dropped | int dropped | changes shed by backpressure |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int documentCount) | 2.0: configure CLAMPS the attached count to the 1..14 contract rather than trusting the caller — withinBound() then always holds after configure(). |
clampCount | int clampCount(int n) | No description in source. |
applySettings | void applySettings(SLGuiSettings s) | Adopt the package settings' listener-timing knobs (poll/debounce/queue/bp). |
count | int count() | No description in source. |
minDocuments | int minDocuments() | No description in source. |
maxDocuments | int maxDocuments() | No description in source. |
withinBound | boolean withinBound() | The hard 1..14 contract, enforced at construction and on watch(). |
watch | boolean watch() | Start the OS-backed watch; a no-op unless the bound holds and not running. |
isRunning | boolean isRunning() | No description in source. |
onOsCall | int onOsCall(int realChanges) | One OS-call wake delivered `realChanges` revision moves (0 is coalesced away and emits nothing). Returns the number emitted this wake, after the queue cap / backpressure policy is applied. A wake with no revision move is counted as a coalesced no-op. |
refreshNow | int refreshNow(int realChanges) | Force an immediate re-evaluation (an explicit OS/lifecycle refresh). |
totalChanges | int totalChanges() | No description in source. |
totalCoalesced | int totalCoalesced() | No description in source. |
totalDropped | int totalDropped() | No description in source. |
setPollMillis | void setPollMillis(int ms) | No description in source. |
getPollMillis | int getPollMillis() | No description in source. |
setDebounceMillis | void setDebounceMillis(int ms) | No description in source. |
getDebounceMillis | int getDebounceMillis() | No description in source. |
setCoalesceQueueMax | void setCoalesceQueueMax(int n) | No description in source. |
getCoalesceQueueMax | int getCoalesceQueueMax() | No description in source. |
setBackpressure | void setBackpressure(int policy) | No description in source. |
getBackpressure | int getBackpressure() | No description in source. |
close | void close() | Stop the watch and release the OS watch handle. Idempotent. |
SLGuiDocumentListener #sleela 2.5 (lib/gui/version-mual/SLGuiDocumentListener.sleela)
SLGuiDocumentListener class
Defines SLGuiDocumentListener — the SLeeLa GUI document-change listener option. Mirrors DocumentListener in gui/: watch 1..14 documents and refresh the running GUI whenever any changes on an OS call. Detection is OS-driven (WatchService over inotify / ReadDirectoryChangesW / kqueue/FSEvents), not polling; an OS event that does not move a document's revision is coalesced away. The 1..14 bound is a hard contract.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MIN_DOCUMENTS | int MIN_DOCUMENTS = 1 | lower bound (inclusive) |
MAX_DOCUMENTS | int MAX_DOCUMENTS = 14 | upper bound (inclusive) |
watched | int watched | how many documents are attached (1..14) |
running | int running | 1 while the OS watch loop is active |
changes | int changes | total real changes emitted |
pollMillis | int pollMillis | OS wake cadence / coalescing window |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int documentCount) | No description in source. |
count | int count() | No description in source. |
minDocuments | int minDocuments() | No description in source. |
maxDocuments | int maxDocuments() | No description in source. |
withinBound | boolean withinBound() | The hard 1..14 contract, enforced at construction and on watch(). |
watch | boolean watch() | Start the OS-backed watch; a no-op unless the bound holds and not running. |
isRunning | boolean isRunning() | No description in source. |
onOsCall | int onOsCall(int realChanges) | One OS-call wake delivered `realChanges` revision moves (0 is coalesced away and emits nothing). Returns the number emitted this wake. |
refreshNow | int refreshNow(int realChanges) | Force an immediate re-evaluation (an explicit OS/lifecycle refresh). |
totalChanges | int totalChanges() | No description in source. |
setPollMillis | void setPollMillis(int ms) | No description in source. |
getPollMillis | int getPollMillis() | No description in source. |
close | void close() | Stop the watch and release the OS watch handle. Idempotent. |
SLGuiDocumentListener #sleela 2.5 (lib/gui/version-thual/SLGuiDocumentListener.sleela)
SLGuiDocumentListener class
Defines SLGuiDocumentListener — the SLeeLa GUI document-change listener option. Mirrors DocumentListener in gui/: watch 1..14 documents and refresh the running GUI whenever any changes on an OS call. Detection is OS-driven (WatchService over inotify / ReadDirectoryChangesW / kqueue/FSEvents), not polling; an OS event that does not move a document's revision is coalesced away. The 1..14 bound is a hard contract.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MIN_DOCUMENTS | int MIN_DOCUMENTS = 1 | lower bound (inclusive) |
MAX_DOCUMENTS | int MAX_DOCUMENTS = 14 | upper bound (inclusive) |
watched | int watched | how many documents are attached (1..14) |
running | int running | 1 while the OS watch loop is active |
changes | int changes | total real changes emitted |
coalesced | int coalesced | total OS wakes coalesced away (no revision move) |
pollMillis | int pollMillis | OS wake cadence / coalescing window |
debounceMillis | int debounceMillis | settle window after a change before emitting |
coalesceQueueMax | int coalesceQueueMax | max pending changes before backpressure applies |
backpressure | int backpressure | 0 coalesce / 1 drop-oldest / 2 block |
dropped | int dropped | changes shed by backpressure |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int documentCount) | 2.0: configure CLAMPS the attached count to the 1..14 contract rather than trusting the caller — withinBound() then always holds after configure(). |
clampCount | int clampCount(int n) | No description in source. |
applySettings | void applySettings(SLGuiSettings s) | Adopt the package settings' listener-timing knobs (poll/debounce/queue/bp). |
count | int count() | No description in source. |
minDocuments | int minDocuments() | No description in source. |
maxDocuments | int maxDocuments() | No description in source. |
withinBound | boolean withinBound() | The hard 1..14 contract, enforced at construction and on watch(). |
watch | boolean watch() | Start the OS-backed watch; a no-op unless the bound holds and not running. |
isRunning | boolean isRunning() | No description in source. |
onOsCall | int onOsCall(int realChanges) | One OS-call wake delivered `realChanges` revision moves (0 is coalesced away and emits nothing). Returns the number emitted this wake, after the queue cap / backpressure policy is applied. A wake with no revision move is counted as a coalesced no-op. |
refreshNow | int refreshNow(int realChanges) | Force an immediate re-evaluation (an explicit OS/lifecycle refresh). |
totalChanges | int totalChanges() | No description in source. |
totalCoalesced | int totalCoalesced() | No description in source. |
totalDropped | int totalDropped() | No description in source. |
setPollMillis | void setPollMillis(int ms) | No description in source. |
getPollMillis | int getPollMillis() | No description in source. |
setDebounceMillis | void setDebounceMillis(int ms) | No description in source. |
getDebounceMillis | int getDebounceMillis() | No description in source. |
setCoalesceQueueMax | void setCoalesceQueueMax(int n) | No description in source. |
getCoalesceQueueMax | int getCoalesceQueueMax() | No description in source. |
setBackpressure | void setBackpressure(int policy) | No description in source. |
getBackpressure | int getBackpressure() | No description in source. |
close | void close() | Stop the watch and release the OS watch handle. Idempotent. |
SLGuiDocumentListener #sleela 2.5 (lib/gui/version-military/SLGuiDocumentListener.sleela)
SLGuiDocumentListener class
Defines SLGuiDocumentListener — the SLeeLa GUI document-change listener option. Mirrors DocumentListener in gui/: watch 1..14 documents and refresh the running GUI whenever any changes on an OS call. Detection is OS-driven (WatchService over inotify / ReadDirectoryChangesW / kqueue/FSEvents), not polling; an OS event that does not move a document's revision is coalesced away. The 1..14 bound is a hard contract.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MIN_DOCUMENTS | int MIN_DOCUMENTS = 1 | lower bound (inclusive) |
MAX_DOCUMENTS | int MAX_DOCUMENTS = 14 | upper bound (inclusive) |
watched | int watched | how many documents are attached (1..14) |
running | int running | 1 while the OS watch loop is active |
changes | int changes | total real changes emitted |
coalesced | int coalesced | total OS wakes coalesced away (no revision move) |
pollMillis | int pollMillis | OS wake cadence / coalescing window |
debounceMillis | int debounceMillis | settle window after a change before emitting |
coalesceQueueMax | int coalesceQueueMax | max pending changes before backpressure applies |
backpressure | int backpressure | 0 coalesce / 1 drop-oldest / 2 block |
dropped | int dropped | changes shed by backpressure |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int documentCount) | 2.0: configure CLAMPS the attached count to the 1..14 contract rather than trusting the caller — withinBound() then always holds after configure(). |
clampCount | int clampCount(int n) | No description in source. |
applySettings | void applySettings(SLGuiSettings s) | Adopt the package settings' listener-timing knobs (poll/debounce/queue/bp). |
count | int count() | No description in source. |
minDocuments | int minDocuments() | No description in source. |
maxDocuments | int maxDocuments() | No description in source. |
withinBound | boolean withinBound() | The hard 1..14 contract, enforced at construction and on watch(). |
watch | boolean watch() | Start the OS-backed watch; a no-op unless the bound holds and not running. |
isRunning | boolean isRunning() | No description in source. |
onOsCall | int onOsCall(int realChanges) | One OS-call wake delivered `realChanges` revision moves (0 is coalesced away and emits nothing). Returns the number emitted this wake, after the queue cap / backpressure policy is applied. A wake with no revision move is counted as a coalesced no-op. |
refreshNow | int refreshNow(int realChanges) | Force an immediate re-evaluation (an explicit OS/lifecycle refresh). |
totalChanges | int totalChanges() | No description in source. |
totalCoalesced | int totalCoalesced() | No description in source. |
totalDropped | int totalDropped() | No description in source. |
setPollMillis | void setPollMillis(int ms) | No description in source. |
getPollMillis | int getPollMillis() | No description in source. |
setDebounceMillis | void setDebounceMillis(int ms) | No description in source. |
getDebounceMillis | int getDebounceMillis() | No description in source. |
setCoalesceQueueMax | void setCoalesceQueueMax(int n) | No description in source. |
getCoalesceQueueMax | int getCoalesceQueueMax() | No description in source. |
setBackpressure | void setBackpressure(int policy) | No description in source. |
getBackpressure | int getBackpressure() | No description in source. |
close | void close() | Stop the watch and release the OS watch handle. Idempotent. |
SLGuiDocumentListener #sleela 2.5 (lib/gui/version-dual/SLGuiDocumentListener.sleela)
SLGuiDocumentListener class
Defines SLGuiDocumentListener — the SLeeLa GUI document-change listener option. Mirrors DocumentListener in gui/: watch 1..14 documents and refresh the running GUI whenever any changes on an OS call. Detection is OS-driven (WatchService over inotify / ReadDirectoryChangesW / kqueue/FSEvents), not polling; an OS event that does not move a document's revision is coalesced away. The 1..14 bound is a hard contract.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MIN_DOCUMENTS | int MIN_DOCUMENTS = 1 | lower bound (inclusive) |
MAX_DOCUMENTS | int MAX_DOCUMENTS = 14 | upper bound (inclusive) |
watched | int watched | how many documents are attached (1..14) |
running | int running | 1 while the OS watch loop is active |
changes | int changes | total real changes emitted |
coalesced | int coalesced | total OS wakes coalesced away (no revision move) |
pollMillis | int pollMillis | OS wake cadence / coalescing window |
debounceMillis | int debounceMillis | settle window after a change before emitting |
coalesceQueueMax | int coalesceQueueMax | max pending changes before backpressure applies |
backpressure | int backpressure | 0 coalesce / 1 drop-oldest / 2 block |
dropped | int dropped | changes shed by backpressure |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int documentCount) | 2.0: configure CLAMPS the attached count to the 1..14 contract rather than trusting the caller — withinBound() then always holds after configure(). |
clampCount | int clampCount(int n) | No description in source. |
applySettings | void applySettings(SLGuiSettings s) | Adopt the package settings' listener-timing knobs (poll/debounce/queue/bp). |
count | int count() | No description in source. |
minDocuments | int minDocuments() | No description in source. |
maxDocuments | int maxDocuments() | No description in source. |
withinBound | boolean withinBound() | The hard 1..14 contract, enforced at construction and on watch(). |
watch | boolean watch() | Start the OS-backed watch; a no-op unless the bound holds and not running. |
isRunning | boolean isRunning() | No description in source. |
onOsCall | int onOsCall(int realChanges) | One OS-call wake delivered `realChanges` revision moves (0 is coalesced away and emits nothing). Returns the number emitted this wake, after the queue cap / backpressure policy is applied. A wake with no revision move is counted as a coalesced no-op. |
refreshNow | int refreshNow(int realChanges) | Force an immediate re-evaluation (an explicit OS/lifecycle refresh). |
totalChanges | int totalChanges() | No description in source. |
totalCoalesced | int totalCoalesced() | No description in source. |
totalDropped | int totalDropped() | No description in source. |
setPollMillis | void setPollMillis(int ms) | No description in source. |
getPollMillis | int getPollMillis() | No description in source. |
setDebounceMillis | void setDebounceMillis(int ms) | No description in source. |
getDebounceMillis | int getDebounceMillis() | No description in source. |
setCoalesceQueueMax | void setCoalesceQueueMax(int n) | No description in source. |
getCoalesceQueueMax | int getCoalesceQueueMax() | No description in source. |
setBackpressure | void setBackpressure(int policy) | No description in source. |
getBackpressure | int getBackpressure() | No description in source. |
close | void close() | Stop the watch and release the OS watch handle. Idempotent. |
SLGuiDom #sleela 2.5 (lib/gui/version-gual/SLGuiDom.sleela)
SLGuiDom class
Defines SLGuiDom — the DHTML-style document model for /lib/gui: a flat registry of SLGuiNode elements forming a tree, plus the manipulation API a browser DOM exposes — createElement, getElementById, appendChild, removeChild, setText/setAttribute/setStyle on an id, show/hide, and a simple getElementsByTag / querySelector-by-attribute lookup. It owns an SLGuiEventBus so handlers bind to node ids (onClick, onInput, on(type,...), addEventListener) and raised events route to SLeeLa operations. The DOM is the single SLeeLa-owned source of truth; a host walks the dirty nodes and mirrors them onto real SleelaUI widgets. Family: gui. SLeeLa owns the document and dispatch; the host mounts and paints it.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_NODES | static final int MAX_NODES = 65536 | No description in source. |
nodes | SLGuiNode[] nodes | No description in source. |
count | int count | No description in source. |
rootId | String rootId | No description in source. |
bus | SLGuiEventBus bus | No description in source. |
types | SLGuiEventType types | name<->ordinal helper |
idSeq | int idSeq | auto-id counter for createElement without an id |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init() | No description in source. |
events | SLGuiEventBus events() | No description in source. |
size | int size() | No description in source. |
createElement | SLGuiNode createElement(String tag, String id) | createElement(tag, id): id "" generates a stable auto id ("n<seq>"). |
createRoot | SLGuiNode createRoot(String tag, String id) | The document root (the window element). Created once. |
root | SLGuiNode root() | No description in source. |
getElementById | SLGuiNode getElementById(String id) | No description in source. |
indexOfId | int indexOfId(String id) | No description in source. |
appendChild | boolean appendChild(String parentId, String childId) | appendChild(parentId, childId): link child under parent in both directions. |
appendElement | SLGuiNode appendElement(String parentId, String tag, String id) | Convenience: create a child element already appended to a parent. |
removeChild | boolean removeChild(String childId) | removeChild: detach from parent, remove its handlers, and drop the node (and recursively its subtree). |
setText | void setText(String id, String text) | No description in source. |
setAttribute | void setAttribute(String id, String name, String value) | No description in source. |
setStyle | void setStyle(String id, String prop, String value) | No description in source. |
show | void show(String id) | No description in source. |
hide | void hide(String id) | No description in source. |
setEnabled | void setEnabled(String id, boolean on) | No description in source. |
getElementsByTag | int getElementsByTag(String tag, String[] out, int cap) | Fill `out` with the ids of every node with the given tag; returns the count. |
querySelectorByAttr | String querySelectorByAttr(String name, String value) | Return the first node id whose attribute `name` equals `value` (or null). |
addEventListener | SLGuiHandler addEventListener(String id, String eventName, String operation) | No description in source. |
removeEventListener | boolean removeEventListener(String id, String eventName, String operation) | No description in source. |
onClick | SLGuiHandler onClick(String id, String operation) | Shorthands mirroring onclick=/oninput= style bindings. |
onInput | SLGuiHandler onInput(String id, String operation) | No description in source. |
onChange | SLGuiHandler onChange(String id, String operation) | No description in source. |
onKeyDown | SLGuiHandler onKeyDown(String id, String operation) | No description in source. |
onSubmit | SLGuiHandler onSubmit(String id, String operation) | No description in source. |
dispatchEvent | int dispatchEvent(SLGuiEvent event) | The host raises an activation on a node; dispatch it through the bus. Returns how many handlers fired. |
fire | int fire(int eventType, String targetId, String value) | No description in source. |
dirtyCount | int dirtyCount() | The number of nodes needing a host re-sync (dirty), for the mount walk. |
nodeAt | SLGuiNode nodeAt(int i) | No description in source. |
autoId | String autoId() | No description in source. |
removeSubtree | void removeSubtree(String id) | No description in source. |
removeNode | void removeNode(String id) | No description in source. |
SLGuiDom #sleela 2.5 (lib/gui/version-mual/SLGuiDom.sleela)
SLGuiDom class
Defines SLGuiDom — the DHTML-style document model for /lib/gui: a flat registry of SLGuiNode elements forming a tree, plus the manipulation API a browser DOM exposes — createElement, getElementById, appendChild, removeChild, setText/setAttribute/setStyle on an id, show/hide, and a simple getElementsByTag / querySelector-by-attribute lookup. It owns an SLGuiEventBus so handlers bind to node ids (onClick, onInput, on(type,...), addEventListener) and raised events route to SLeeLa operations. The DOM is the single SLeeLa-owned source of truth; a host walks the dirty nodes and mirrors them onto real SleelaUI widgets. Family: gui. SLeeLa owns the document and dispatch; the host mounts and paints it.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_NODES | static final int MAX_NODES = 65536 | No description in source. |
nodes | SLGuiNode[] nodes | No description in source. |
count | int count | No description in source. |
rootId | String rootId | No description in source. |
bus | SLGuiEventBus bus | No description in source. |
types | SLGuiEventType types | name<->ordinal helper |
idSeq | int idSeq | auto-id counter for createElement without an id |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init() | No description in source. |
events | SLGuiEventBus events() | No description in source. |
size | int size() | No description in source. |
createElement | SLGuiNode createElement(String tag, String id) | createElement(tag, id): id "" generates a stable auto id ("n<seq>"). |
createRoot | SLGuiNode createRoot(String tag, String id) | The document root (the window element). Created once. |
root | SLGuiNode root() | No description in source. |
getElementById | SLGuiNode getElementById(String id) | No description in source. |
indexOfId | int indexOfId(String id) | No description in source. |
appendChild | boolean appendChild(String parentId, String childId) | appendChild(parentId, childId): link child under parent in both directions. |
appendElement | SLGuiNode appendElement(String parentId, String tag, String id) | Convenience: create a child element already appended to a parent. |
removeChild | boolean removeChild(String childId) | removeChild: detach from parent, remove its handlers, and drop the node (and recursively its subtree). |
setText | void setText(String id, String text) | No description in source. |
setAttribute | void setAttribute(String id, String name, String value) | No description in source. |
setStyle | void setStyle(String id, String prop, String value) | No description in source. |
show | void show(String id) | No description in source. |
hide | void hide(String id) | No description in source. |
setEnabled | void setEnabled(String id, boolean on) | No description in source. |
getElementsByTag | int getElementsByTag(String tag, String[] out, int cap) | Fill `out` with the ids of every node with the given tag; returns the count. |
querySelectorByAttr | String querySelectorByAttr(String name, String value) | Return the first node id whose attribute `name` equals `value` (or null). |
addEventListener | SLGuiHandler addEventListener(String id, String eventName, String operation) | No description in source. |
removeEventListener | boolean removeEventListener(String id, String eventName, String operation) | No description in source. |
onClick | SLGuiHandler onClick(String id, String operation) | Shorthands mirroring onclick=/oninput= style bindings. |
onInput | SLGuiHandler onInput(String id, String operation) | No description in source. |
onChange | SLGuiHandler onChange(String id, String operation) | No description in source. |
onKeyDown | SLGuiHandler onKeyDown(String id, String operation) | No description in source. |
onSubmit | SLGuiHandler onSubmit(String id, String operation) | No description in source. |
dispatchEvent | int dispatchEvent(SLGuiEvent event) | The host raises an activation on a node; dispatch it through the bus. Returns how many handlers fired. |
fire | int fire(int eventType, String targetId, String value) | No description in source. |
dirtyCount | int dirtyCount() | The number of nodes needing a host re-sync (dirty), for the mount walk. |
nodeAt | SLGuiNode nodeAt(int i) | No description in source. |
autoId | String autoId() | No description in source. |
removeSubtree | void removeSubtree(String id) | No description in source. |
removeNode | void removeNode(String id) | No description in source. |
SLGuiDom #sleela 2.5 (lib/gui/version-thual/SLGuiDom.sleela)
SLGuiDom class
Defines SLGuiDom — the DHTML-style document model for /lib/gui: a flat registry of SLGuiNode elements forming a tree, plus the manipulation API a browser DOM exposes — createElement, getElementById, appendChild, removeChild, setText/setAttribute/setStyle on an id, show/hide, and a simple getElementsByTag / querySelector-by-attribute lookup. It owns an SLGuiEventBus so handlers bind to node ids (onClick, onInput, on(type,...), addEventListener) and raised events route to SLeeLa operations. The DOM is the single SLeeLa-owned source of truth; a host walks the dirty nodes and mirrors them onto real SleelaUI widgets. Family: gui. SLeeLa owns the document and dispatch; the host mounts and paints it.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_NODES | static final int MAX_NODES = 65536 | No description in source. |
nodes | SLGuiNode[] nodes | No description in source. |
count | int count | No description in source. |
rootId | String rootId | No description in source. |
bus | SLGuiEventBus bus | No description in source. |
types | SLGuiEventType types | name<->ordinal helper |
idSeq | int idSeq | auto-id counter for createElement without an id |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init() | No description in source. |
events | SLGuiEventBus events() | No description in source. |
size | int size() | No description in source. |
createElement | SLGuiNode createElement(String tag, String id) | createElement(tag, id): id "" generates a stable auto id ("n<seq>"). |
createRoot | SLGuiNode createRoot(String tag, String id) | The document root (the window element). Created once. |
root | SLGuiNode root() | No description in source. |
getElementById | SLGuiNode getElementById(String id) | No description in source. |
indexOfId | int indexOfId(String id) | No description in source. |
appendChild | boolean appendChild(String parentId, String childId) | appendChild(parentId, childId): link child under parent in both directions. |
appendElement | SLGuiNode appendElement(String parentId, String tag, String id) | Convenience: create a child element already appended to a parent. |
removeChild | boolean removeChild(String childId) | removeChild: detach from parent, remove its handlers, and drop the node (and recursively its subtree). |
setText | void setText(String id, String text) | No description in source. |
setAttribute | void setAttribute(String id, String name, String value) | No description in source. |
setStyle | void setStyle(String id, String prop, String value) | No description in source. |
show | void show(String id) | No description in source. |
hide | void hide(String id) | No description in source. |
setEnabled | void setEnabled(String id, boolean on) | No description in source. |
getElementsByTag | int getElementsByTag(String tag, String[] out, int cap) | Fill `out` with the ids of every node with the given tag; returns the count. |
querySelectorByAttr | String querySelectorByAttr(String name, String value) | Return the first node id whose attribute `name` equals `value` (or null). |
addEventListener | SLGuiHandler addEventListener(String id, String eventName, String operation) | No description in source. |
removeEventListener | boolean removeEventListener(String id, String eventName, String operation) | No description in source. |
onClick | SLGuiHandler onClick(String id, String operation) | Shorthands mirroring onclick=/oninput= style bindings. |
onInput | SLGuiHandler onInput(String id, String operation) | No description in source. |
onChange | SLGuiHandler onChange(String id, String operation) | No description in source. |
onKeyDown | SLGuiHandler onKeyDown(String id, String operation) | No description in source. |
onSubmit | SLGuiHandler onSubmit(String id, String operation) | No description in source. |
dispatchEvent | int dispatchEvent(SLGuiEvent event) | The host raises an activation on a node; dispatch it through the bus. Returns how many handlers fired. |
fire | int fire(int eventType, String targetId, String value) | No description in source. |
dirtyCount | int dirtyCount() | The number of nodes needing a host re-sync (dirty), for the mount walk. |
nodeAt | SLGuiNode nodeAt(int i) | No description in source. |
autoId | String autoId() | No description in source. |
removeSubtree | void removeSubtree(String id) | No description in source. |
removeNode | void removeNode(String id) | No description in source. |
SLGuiDom #sleela 2.5 (lib/gui/version-military/SLGuiDom.sleela)
SLGuiDom class
Defines SLGuiDom — the DHTML-style document model for /lib/gui: a flat registry of SLGuiNode elements forming a tree, plus the manipulation API a browser DOM exposes — createElement, getElementById, appendChild, removeChild, setText/setAttribute/setStyle on an id, show/hide, and a simple getElementsByTag / querySelector-by-attribute lookup. It owns an SLGuiEventBus so handlers bind to node ids (onClick, onInput, on(type,...), addEventListener) and raised events route to SLeeLa operations. The DOM is the single SLeeLa-owned source of truth; a host walks the dirty nodes and mirrors them onto real SleelaUI widgets. Family: gui. SLeeLa owns the document and dispatch; the host mounts and paints it.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_NODES | static final int MAX_NODES = 65536 | No description in source. |
nodes | SLGuiNode[] nodes | No description in source. |
count | int count | No description in source. |
rootId | String rootId | No description in source. |
bus | SLGuiEventBus bus | No description in source. |
types | SLGuiEventType types | name<->ordinal helper |
idSeq | int idSeq | auto-id counter for createElement without an id |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init() | No description in source. |
events | SLGuiEventBus events() | No description in source. |
size | int size() | No description in source. |
createElement | SLGuiNode createElement(String tag, String id) | createElement(tag, id): id "" generates a stable auto id ("n<seq>"). |
createRoot | SLGuiNode createRoot(String tag, String id) | The document root (the window element). Created once. |
root | SLGuiNode root() | No description in source. |
getElementById | SLGuiNode getElementById(String id) | No description in source. |
indexOfId | int indexOfId(String id) | No description in source. |
appendChild | boolean appendChild(String parentId, String childId) | appendChild(parentId, childId): link child under parent in both directions. |
appendElement | SLGuiNode appendElement(String parentId, String tag, String id) | Convenience: create a child element already appended to a parent. |
removeChild | boolean removeChild(String childId) | removeChild: detach from parent, remove its handlers, and drop the node (and recursively its subtree). |
setText | void setText(String id, String text) | No description in source. |
setAttribute | void setAttribute(String id, String name, String value) | No description in source. |
setStyle | void setStyle(String id, String prop, String value) | No description in source. |
show | void show(String id) | No description in source. |
hide | void hide(String id) | No description in source. |
setEnabled | void setEnabled(String id, boolean on) | No description in source. |
getElementsByTag | int getElementsByTag(String tag, String[] out, int cap) | Fill `out` with the ids of every node with the given tag; returns the count. |
querySelectorByAttr | String querySelectorByAttr(String name, String value) | Return the first node id whose attribute `name` equals `value` (or null). |
addEventListener | SLGuiHandler addEventListener(String id, String eventName, String operation) | No description in source. |
removeEventListener | boolean removeEventListener(String id, String eventName, String operation) | No description in source. |
onClick | SLGuiHandler onClick(String id, String operation) | Shorthands mirroring onclick=/oninput= style bindings. |
onInput | SLGuiHandler onInput(String id, String operation) | No description in source. |
onChange | SLGuiHandler onChange(String id, String operation) | No description in source. |
onKeyDown | SLGuiHandler onKeyDown(String id, String operation) | No description in source. |
onSubmit | SLGuiHandler onSubmit(String id, String operation) | No description in source. |
dispatchEvent | int dispatchEvent(SLGuiEvent event) | The host raises an activation on a node; dispatch it through the bus. Returns how many handlers fired. |
fire | int fire(int eventType, String targetId, String value) | No description in source. |
dirtyCount | int dirtyCount() | The number of nodes needing a host re-sync (dirty), for the mount walk. |
nodeAt | SLGuiNode nodeAt(int i) | No description in source. |
autoId | String autoId() | No description in source. |
removeSubtree | void removeSubtree(String id) | No description in source. |
removeNode | void removeNode(String id) | No description in source. |
SLGuiDom #sleela 2.5 (lib/gui/version-dual/SLGuiDom.sleela)
SLGuiDom class
Defines SLGuiDom — the DHTML-style document model for /lib/gui: a flat registry of SLGuiNode elements forming a tree, plus the manipulation API a browser DOM exposes — createElement, getElementById, appendChild, removeChild, setText/setAttribute/setStyle on an id, show/hide, and a simple getElementsByTag / querySelector-by-attribute lookup. It owns an SLGuiEventBus so handlers bind to node ids (onClick, onInput, on(type,...), addEventListener) and raised events route to SLeeLa operations. The DOM is the single SLeeLa-owned source of truth; a host walks the dirty nodes and mirrors them onto real SleelaUI widgets. Family: gui. SLeeLa owns the document and dispatch; the host mounts and paints it.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_NODES | static final int MAX_NODES = 65536 | No description in source. |
nodes | SLGuiNode[] nodes | No description in source. |
count | int count | No description in source. |
rootId | String rootId | No description in source. |
bus | SLGuiEventBus bus | No description in source. |
types | SLGuiEventType types | name<->ordinal helper |
idSeq | int idSeq | auto-id counter for createElement without an id |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init() | No description in source. |
events | SLGuiEventBus events() | No description in source. |
size | int size() | No description in source. |
createElement | SLGuiNode createElement(String tag, String id) | createElement(tag, id): id "" generates a stable auto id ("n<seq>"). |
createRoot | SLGuiNode createRoot(String tag, String id) | The document root (the window element). Created once. |
root | SLGuiNode root() | No description in source. |
getElementById | SLGuiNode getElementById(String id) | No description in source. |
indexOfId | int indexOfId(String id) | No description in source. |
appendChild | boolean appendChild(String parentId, String childId) | appendChild(parentId, childId): link child under parent in both directions. |
appendElement | SLGuiNode appendElement(String parentId, String tag, String id) | Convenience: create a child element already appended to a parent. |
removeChild | boolean removeChild(String childId) | removeChild: detach from parent, remove its handlers, and drop the node (and recursively its subtree). |
setText | void setText(String id, String text) | No description in source. |
setAttribute | void setAttribute(String id, String name, String value) | No description in source. |
setStyle | void setStyle(String id, String prop, String value) | No description in source. |
show | void show(String id) | No description in source. |
hide | void hide(String id) | No description in source. |
setEnabled | void setEnabled(String id, boolean on) | No description in source. |
getElementsByTag | int getElementsByTag(String tag, String[] out, int cap) | Fill `out` with the ids of every node with the given tag; returns the count. |
querySelectorByAttr | String querySelectorByAttr(String name, String value) | Return the first node id whose attribute `name` equals `value` (or null). |
addEventListener | SLGuiHandler addEventListener(String id, String eventName, String operation) | No description in source. |
removeEventListener | boolean removeEventListener(String id, String eventName, String operation) | No description in source. |
onClick | SLGuiHandler onClick(String id, String operation) | Shorthands mirroring onclick=/oninput= style bindings. |
onInput | SLGuiHandler onInput(String id, String operation) | No description in source. |
onChange | SLGuiHandler onChange(String id, String operation) | No description in source. |
onKeyDown | SLGuiHandler onKeyDown(String id, String operation) | No description in source. |
onSubmit | SLGuiHandler onSubmit(String id, String operation) | No description in source. |
dispatchEvent | int dispatchEvent(SLGuiEvent event) | The host raises an activation on a node; dispatch it through the bus. Returns how many handlers fired. |
fire | int fire(int eventType, String targetId, String value) | No description in source. |
dirtyCount | int dirtyCount() | The number of nodes needing a host re-sync (dirty), for the mount walk. |
nodeAt | SLGuiNode nodeAt(int i) | No description in source. |
autoId | String autoId() | No description in source. |
removeSubtree | void removeSubtree(String id) | No description in source. |
removeNode | void removeNode(String id) | No description in source. |
SLGuiEffects #sleela 2.5 (lib/gui/version-thual/SLGuiEffects.sleela)
SLGuiEffects class
Defines SLGuiEffects — the 3.0 (thual) per-component visual-effect bundle. A node may carry one of these to request clean, professional presentation the host renders onto the live widget: lighting + glow, a 3D shine highlight, a drop shadow, a metal look-and-feel, a rotation (fixed or on a schedule), and a fade in/out. Every knob is CLAMPED to a safe window, so a dialed value is never out of range, and toStyle() flattens the bundle into the node's inline-style map (effect-* properties) the SLGuiMount reconciler pushes to the toolkit. SLeeLa owns the intent; the host owns the pixels. The audio-on-activation hook is intentionally a NAME here (a cue the host plays through the audio stack); SLGuiEffects carries the cue + gain, not the sample. Rotation scheduling ("schene") is carried as an SLGuiRotationSchedule so a component can rotate on a cadence; see that class for the crypto-framed internal-memorandum rationale. Family: gui. Attached to SLGuiNode; flattened to style; realized by the host.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
glow | int glow | --- lighting / glow --- 1 = glow enabled |
glowRadiusPx | int glowRadiusPx | glow spread, 0..64 px |
glowIntensityPct | int glowIntensityPct | glow strength, 0..100 % |
glowColor | String glowColor | "#rrggbb" or a named accent ("accent"/"warning"/...) |
shine | int shine | --- 3D shine highlight --- 1 = 3D specular shine enabled |
shineAngleDeg | int shineAngleDeg | highlight light angle, 0..359 deg |
shineIntensityPct | int shineIntensityPct | 0..100 % |
shadow | int shadow | --- drop shadow --- 1 = shadow enabled |
shadowOffsetX | int shadowOffsetX | -32..32 px |
shadowOffsetY | int shadowOffsetY | -32..32 px |
shadowBlurPx | int shadowBlurPx | 0..64 px |
shadowOpacityPct | int shadowOpacityPct | 0..100 % |
metal | int metal | --- metal look-and-feel --- 1 = brushed/metal surface enabled |
metalSheenPct | int metalSheenPct | 0..100 % (how reflective the surface reads) |
rotationDeg | int rotationDeg | --- rotation --- current fixed rotation, 0..359 deg |
schedule | SLGuiRotationSchedule schedule | optional scheduled "schene" rotation (null = static) |
opacityPct | int opacityPct | --- fade --- 0..100 % current opacity |
fadeMillis | int fadeMillis | transition duration for fade in/out, 0..10000 ms |
activationCue | String activationCue | --- activation audio --- host audio cue name played on activation ("" = silent) |
activationGainPct | int activationGainPct | 0..100 % playback gain |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
clamp | int clamp(int v, int lo, int hi) | No description in source. |
wrapDeg | int wrapDeg(int d) | No description in source. |
enableGlow | void enableGlow(int radiusPx, int intensityPct, String color) | ---- lighting / glow ---------------------------------------------------- |
disableGlow | void disableGlow() | No description in source. |
glowOn | boolean glowOn() | No description in source. |
enableShine | void enableShine(int angleDeg, int intensityPct) | ---- 3D shine ----------------------------------------------------------- |
disableShine | void disableShine() | No description in source. |
shineOn | boolean shineOn() | No description in source. |
enableShadow | void enableShadow(int offX, int offY, int blurPx, int opacityPct) | ---- shadow ------------------------------------------------------------- |
disableShadow | void disableShadow() | No description in source. |
shadowOn | boolean shadowOn() | No description in source. |
enableMetal | void enableMetal(int sheenPct) | ---- metal look-and-feel ------------------------------------------------ |
disableMetal | void disableMetal() | No description in source. |
metalOn | boolean metalOn() | No description in source. |
rotateTo | void rotateTo(int deg) | ---- rotation ----------------------------------------------------------- |
rotateBy | void rotateBy(int deltaDeg) | No description in source. |
rotation | int rotation() | No description in source. |
setSchedule | void setSchedule(SLGuiRotationSchedule s) | Attach a scheduled rotation ("schene"): the component rotates on a cadence. |
rotationSchedule | SLGuiRotationSchedule rotationSchedule() | No description in source. |
scheduledRotation | boolean scheduledRotation() | No description in source. |
tickRotation | boolean tickRotation(int elapsedMillis) | Advance a scheduled rotation by `elapsedMillis`; applies the schedule's step when its interval elapses. Returns true when the rotation moved this tick. |
setOpacity | void setOpacity(int pct) | ---- fade --------------------------------------------------------------- |
opacity | int opacity() | No description in source. |
setFadeMillis | void setFadeMillis(int ms) | No description in source. |
getFadeMillis | int getFadeMillis() | No description in source. |
fadeIn | void fadeIn() | Fade intents: the host animates opacity 0<->100 over fadeMillis. These set the TARGET; a reconciler/host interpolates toward it over the duration. |
fadeOut | void fadeOut() | No description in source. |
faded | boolean faded() | No description in source. |
setActivationCue | void setActivationCue(String cue, int gainPct) | ---- activation audio --------------------------------------------------- |
getActivationCue | String getActivationCue() | No description in source. |
getActivationGainPct | int getActivationGainPct() | No description in source. |
hasActivationAudio | boolean hasActivationAudio() | No description in source. |
honored | boolean honored() | Internally consistent when every knob sits in its clamped window. |
toStyle | String toStyle() | Flatten the enabled effects into a node's inline style map via the callback- free convention the mount reconciler reads: the caller applies each returned "effect-*" property. Here we return a single compact descriptor string the host parses; SLGuiMount copies it onto the widget. |
SLGuiEffects #sleela 2.5 (lib/gui/version-military/SLGuiEffects.sleela)
SLGuiEffects class
Defines SLGuiEffects — the 3.0 (thual) per-component visual-effect bundle. A node may carry one of these to request clean, professional presentation the host renders onto the live widget: lighting + glow, a 3D shine highlight, a drop shadow, a metal look-and-feel, a rotation (fixed or on a schedule), and a fade in/out. Every knob is CLAMPED to a safe window, so a dialed value is never out of range, and toStyle() flattens the bundle into the node's inline-style map (effect-* properties) the SLGuiMount reconciler pushes to the toolkit. SLeeLa owns the intent; the host owns the pixels. The audio-on-activation hook is intentionally a NAME here (a cue the host plays through the audio stack); SLGuiEffects carries the cue + gain, not the sample. Rotation scheduling ("schene") is carried as an SLGuiRotationSchedule so a component can rotate on a cadence; see that class for the crypto-framed internal-memorandum rationale. Family: gui. Attached to SLGuiNode; flattened to style; realized by the host.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
glow | int glow | --- lighting / glow --- 1 = glow enabled |
glowRadiusPx | int glowRadiusPx | glow spread, 0..64 px |
glowIntensityPct | int glowIntensityPct | glow strength, 0..100 % |
glowColor | String glowColor | "#rrggbb" or a named accent ("accent"/"warning"/...) |
shine | int shine | --- 3D shine highlight --- 1 = 3D specular shine enabled |
shineAngleDeg | int shineAngleDeg | highlight light angle, 0..359 deg |
shineIntensityPct | int shineIntensityPct | 0..100 % |
shadow | int shadow | --- drop shadow --- 1 = shadow enabled |
shadowOffsetX | int shadowOffsetX | -32..32 px |
shadowOffsetY | int shadowOffsetY | -32..32 px |
shadowBlurPx | int shadowBlurPx | 0..64 px |
shadowOpacityPct | int shadowOpacityPct | 0..100 % |
metal | int metal | --- metal look-and-feel --- 1 = brushed/metal surface enabled |
metalSheenPct | int metalSheenPct | 0..100 % (how reflective the surface reads) |
rotationDeg | int rotationDeg | --- rotation --- current fixed rotation, 0..359 deg |
schedule | SLGuiRotationSchedule schedule | optional scheduled "schene" rotation (null = static) |
opacityPct | int opacityPct | --- fade --- 0..100 % current opacity |
fadeMillis | int fadeMillis | transition duration for fade in/out, 0..10000 ms |
activationCue | String activationCue | --- activation audio --- host audio cue name played on activation ("" = silent) |
activationGainPct | int activationGainPct | 0..100 % playback gain |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
clamp | int clamp(int v, int lo, int hi) | No description in source. |
wrapDeg | int wrapDeg(int d) | No description in source. |
enableGlow | void enableGlow(int radiusPx, int intensityPct, String color) | ---- lighting / glow ---------------------------------------------------- |
disableGlow | void disableGlow() | No description in source. |
glowOn | boolean glowOn() | No description in source. |
enableShine | void enableShine(int angleDeg, int intensityPct) | ---- 3D shine ----------------------------------------------------------- |
disableShine | void disableShine() | No description in source. |
shineOn | boolean shineOn() | No description in source. |
enableShadow | void enableShadow(int offX, int offY, int blurPx, int opacityPct) | ---- shadow ------------------------------------------------------------- |
disableShadow | void disableShadow() | No description in source. |
shadowOn | boolean shadowOn() | No description in source. |
enableMetal | void enableMetal(int sheenPct) | ---- metal look-and-feel ------------------------------------------------ |
disableMetal | void disableMetal() | No description in source. |
metalOn | boolean metalOn() | No description in source. |
rotateTo | void rotateTo(int deg) | ---- rotation ----------------------------------------------------------- |
rotateBy | void rotateBy(int deltaDeg) | No description in source. |
rotation | int rotation() | No description in source. |
setSchedule | void setSchedule(SLGuiRotationSchedule s) | Attach a scheduled rotation ("schene"): the component rotates on a cadence. |
rotationSchedule | SLGuiRotationSchedule rotationSchedule() | No description in source. |
scheduledRotation | boolean scheduledRotation() | No description in source. |
tickRotation | boolean tickRotation(int elapsedMillis) | Advance a scheduled rotation by `elapsedMillis`; applies the schedule's step when its interval elapses. Returns true when the rotation moved this tick. |
setOpacity | void setOpacity(int pct) | ---- fade --------------------------------------------------------------- |
opacity | int opacity() | No description in source. |
setFadeMillis | void setFadeMillis(int ms) | No description in source. |
getFadeMillis | int getFadeMillis() | No description in source. |
fadeIn | void fadeIn() | Fade intents: the host animates opacity 0<->100 over fadeMillis. These set the TARGET; a reconciler/host interpolates toward it over the duration. |
fadeOut | void fadeOut() | No description in source. |
faded | boolean faded() | No description in source. |
setActivationCue | void setActivationCue(String cue, int gainPct) | ---- activation audio --------------------------------------------------- |
getActivationCue | String getActivationCue() | No description in source. |
getActivationGainPct | int getActivationGainPct() | No description in source. |
hasActivationAudio | boolean hasActivationAudio() | No description in source. |
honored | boolean honored() | Internally consistent when every knob sits in its clamped window. |
toStyle | String toStyle() | Flatten the enabled effects into a node's inline style map via the callback- free convention the mount reconciler reads: the caller applies each returned "effect-*" property. Here we return a single compact descriptor string the host parses; SLGuiMount copies it onto the widget. |
SLGuiEffects #sleela 2.5 (lib/gui/version-dual/SLGuiEffects.sleela)
SLGuiEffects class
Defines SLGuiEffects — the 3.0 (thual) per-component visual-effect bundle. A node may carry one of these to request clean, professional presentation the host renders onto the live widget: lighting + glow, a 3D shine highlight, a drop shadow, a metal look-and-feel, a rotation (fixed or on a schedule), and a fade in/out. Every knob is CLAMPED to a safe window, so a dialed value is never out of range, and toStyle() flattens the bundle into the node's inline-style map (effect-* properties) the SLGuiMount reconciler pushes to the toolkit. SLeeLa owns the intent; the host owns the pixels. The audio-on-activation hook is intentionally a NAME here (a cue the host plays through the audio stack); SLGuiEffects carries the cue + gain, not the sample. Rotation scheduling ("schene") is carried as an SLGuiRotationSchedule so a component can rotate on a cadence; see that class for the crypto-framed internal-memorandum rationale. Family: gui. Attached to SLGuiNode; flattened to style; realized by the host.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
glow | int glow | --- lighting / glow --- 1 = glow enabled |
glowRadiusPx | int glowRadiusPx | glow spread, 0..64 px |
glowIntensityPct | int glowIntensityPct | glow strength, 0..100 % |
glowColor | String glowColor | "#rrggbb" or a named accent ("accent"/"warning"/...) |
shine | int shine | --- 3D shine highlight --- 1 = 3D specular shine enabled |
shineAngleDeg | int shineAngleDeg | highlight light angle, 0..359 deg |
shineIntensityPct | int shineIntensityPct | 0..100 % |
shadow | int shadow | --- drop shadow --- 1 = shadow enabled |
shadowOffsetX | int shadowOffsetX | -32..32 px |
shadowOffsetY | int shadowOffsetY | -32..32 px |
shadowBlurPx | int shadowBlurPx | 0..64 px |
shadowOpacityPct | int shadowOpacityPct | 0..100 % |
metal | int metal | --- metal look-and-feel --- 1 = brushed/metal surface enabled |
metalSheenPct | int metalSheenPct | 0..100 % (how reflective the surface reads) |
rotationDeg | int rotationDeg | --- rotation --- current fixed rotation, 0..359 deg |
schedule | SLGuiRotationSchedule schedule | optional scheduled "schene" rotation (null = static) |
opacityPct | int opacityPct | --- fade --- 0..100 % current opacity |
fadeMillis | int fadeMillis | transition duration for fade in/out, 0..10000 ms |
activationCue | String activationCue | --- activation audio --- host audio cue name played on activation ("" = silent) |
activationGainPct | int activationGainPct | 0..100 % playback gain |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
clamp | int clamp(int v, int lo, int hi) | No description in source. |
wrapDeg | int wrapDeg(int d) | No description in source. |
enableGlow | void enableGlow(int radiusPx, int intensityPct, String color) | ---- lighting / glow ---------------------------------------------------- |
disableGlow | void disableGlow() | No description in source. |
glowOn | boolean glowOn() | No description in source. |
enableShine | void enableShine(int angleDeg, int intensityPct) | ---- 3D shine ----------------------------------------------------------- |
disableShine | void disableShine() | No description in source. |
shineOn | boolean shineOn() | No description in source. |
enableShadow | void enableShadow(int offX, int offY, int blurPx, int opacityPct) | ---- shadow ------------------------------------------------------------- |
disableShadow | void disableShadow() | No description in source. |
shadowOn | boolean shadowOn() | No description in source. |
enableMetal | void enableMetal(int sheenPct) | ---- metal look-and-feel ------------------------------------------------ |
disableMetal | void disableMetal() | No description in source. |
metalOn | boolean metalOn() | No description in source. |
rotateTo | void rotateTo(int deg) | ---- rotation ----------------------------------------------------------- |
rotateBy | void rotateBy(int deltaDeg) | No description in source. |
rotation | int rotation() | No description in source. |
setSchedule | void setSchedule(SLGuiRotationSchedule s) | Attach a scheduled rotation ("schene"): the component rotates on a cadence. |
rotationSchedule | SLGuiRotationSchedule rotationSchedule() | No description in source. |
scheduledRotation | boolean scheduledRotation() | No description in source. |
tickRotation | boolean tickRotation(int elapsedMillis) | Advance a scheduled rotation by `elapsedMillis`; applies the schedule's step when its interval elapses. Returns true when the rotation moved this tick. |
setOpacity | void setOpacity(int pct) | ---- fade --------------------------------------------------------------- |
opacity | int opacity() | No description in source. |
setFadeMillis | void setFadeMillis(int ms) | No description in source. |
getFadeMillis | int getFadeMillis() | No description in source. |
fadeIn | void fadeIn() | Fade intents: the host animates opacity 0<->100 over fadeMillis. These set the TARGET; a reconciler/host interpolates toward it over the duration. |
fadeOut | void fadeOut() | No description in source. |
faded | boolean faded() | No description in source. |
setActivationCue | void setActivationCue(String cue, int gainPct) | ---- activation audio --------------------------------------------------- |
getActivationCue | String getActivationCue() | No description in source. |
getActivationGainPct | int getActivationGainPct() | No description in source. |
hasActivationAudio | boolean hasActivationAudio() | No description in source. |
honored | boolean honored() | Internally consistent when every knob sits in its clamped window. |
toStyle | String toStyle() | Flatten the enabled effects into a node's inline style map via the callback- free convention the mount reconciler reads: the caller applies each returned "effect-*" property. Here we return a single compact descriptor string the host parses; SLGuiMount copies it onto the widget. |
SLGuiEvent #sleela 2.5 (lib/gui/version-gual/SLGuiEvent.sleela)
SLGuiEvent class
Defines SLGuiEvent — one dispatched GUI event, the DHTML-style event object a handler receives. It names the event type (an SLGuiEventType ordinal), the target node id it was raised on, and the payload the kind carries: a string value (entry text / changed value), a key name (for key events), pointer coordinates (for pointer events), and a toggle state. It also carries the two propagation controls a handler can set — preventDefault() and stopPropagation() — exactly like a browser event, so SLeeLa handlers can cancel the host's default action or halt bubbling. Family: gui. The host raises the activation; SLeeLa reads this event and decides what it means.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
type | int type | SLGuiEventType ordinal |
targetId | String targetId | the node id the event was raised on |
value | String value | string payload (entry text, changed value, custom data) |
key | String key | key name for KEYDOWN/KEYUP (e.g. "Enter", "a") |
x | int x | pointer x within the target (pointer events) |
y | int y | pointer y within the target (pointer events) |
toggleState | int toggleState | 1/0 for TOGGLE events |
defaultPrevented | int defaultPrevented | 1 once preventDefault() is called |
propagationStopped | int propagationStopped | 1 once stopPropagation() is called |
timestamp | int timestamp | host-supplied monotonic tick (0 if unknown) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int eventType, String target) | No description in source. |
getType | int getType() | No description in source. |
target | String target() | No description in source. |
setValue | void setValue(String v) | Payload setters (the host fills in what the kind carries). |
getValue | String getValue() | No description in source. |
setKey | void setKey(String k) | No description in source. |
getKey | String getKey() | No description in source. |
setPointer | void setPointer(int px, int py) | No description in source. |
pointerX | int pointerX() | No description in source. |
pointerY | int pointerY() | No description in source. |
setToggle | void setToggle(int on) | No description in source. |
toggledOn | boolean toggledOn() | No description in source. |
setTimestamp | void setTimestamp(int t) | No description in source. |
when | int when() | No description in source. |
preventDefault | void preventDefault() | DHTML-style propagation controls. |
isDefaultPrevented | boolean isDefaultPrevented() | No description in source. |
stopPropagation | void stopPropagation() | No description in source. |
isPropagationStopped | boolean isPropagationStopped() | No description in source. |
SLGuiEvent #sleela 2.5 (lib/gui/version-mual/SLGuiEvent.sleela)
SLGuiEvent class
Defines SLGuiEvent — one dispatched GUI event, the DHTML-style event object a handler receives. It names the event type (an SLGuiEventType ordinal), the target node id it was raised on, and the payload the kind carries: a string value (entry text / changed value), a key name (for key events), pointer coordinates (for pointer events), and a toggle state. It also carries the two propagation controls a handler can set — preventDefault() and stopPropagation() — exactly like a browser event, so SLeeLa handlers can cancel the host's default action or halt bubbling. Family: gui. The host raises the activation; SLeeLa reads this event and decides what it means.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
type | int type | SLGuiEventType ordinal |
targetId | String targetId | the node id the event was raised on |
value | String value | string payload (entry text, changed value, custom data) |
key | String key | key name for KEYDOWN/KEYUP (e.g. "Enter", "a") |
x | int x | pointer x within the target (pointer events) |
y | int y | pointer y within the target (pointer events) |
toggleState | int toggleState | 1/0 for TOGGLE events |
defaultPrevented | int defaultPrevented | 1 once preventDefault() is called |
propagationStopped | int propagationStopped | 1 once stopPropagation() is called |
timestamp | int timestamp | host-supplied monotonic tick (0 if unknown) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int eventType, String target) | No description in source. |
getType | int getType() | No description in source. |
target | String target() | No description in source. |
setValue | void setValue(String v) | Payload setters (the host fills in what the kind carries). |
getValue | String getValue() | No description in source. |
setKey | void setKey(String k) | No description in source. |
getKey | String getKey() | No description in source. |
setPointer | void setPointer(int px, int py) | No description in source. |
pointerX | int pointerX() | No description in source. |
pointerY | int pointerY() | No description in source. |
setToggle | void setToggle(int on) | No description in source. |
toggledOn | boolean toggledOn() | No description in source. |
setTimestamp | void setTimestamp(int t) | No description in source. |
when | int when() | No description in source. |
preventDefault | void preventDefault() | DHTML-style propagation controls. |
isDefaultPrevented | boolean isDefaultPrevented() | No description in source. |
stopPropagation | void stopPropagation() | No description in source. |
isPropagationStopped | boolean isPropagationStopped() | No description in source. |
SLGuiEvent #sleela 2.5 (lib/gui/version-thual/SLGuiEvent.sleela)
SLGuiEvent class
Defines SLGuiEvent — one dispatched GUI event, the DHTML-style event object a handler receives. It names the event type (an SLGuiEventType ordinal), the target node id it was raised on, and the payload the kind carries: a string value (entry text / changed value), a key name (for key events), pointer coordinates (for pointer events), and a toggle state. It also carries the two propagation controls a handler can set — preventDefault() and stopPropagation() — exactly like a browser event, so SLeeLa handlers can cancel the host's default action or halt bubbling. Family: gui. The host raises the activation; SLeeLa reads this event and decides what it means.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
type | int type | SLGuiEventType ordinal |
targetId | String targetId | the node id the event was raised on |
value | String value | string payload (entry text, changed value, custom data) |
key | String key | key name for KEYDOWN/KEYUP (e.g. "Enter", "a") |
x | int x | pointer x within the target (pointer events) |
y | int y | pointer y within the target (pointer events) |
toggleState | int toggleState | 1/0 for TOGGLE events |
defaultPrevented | int defaultPrevented | 1 once preventDefault() is called |
propagationStopped | int propagationStopped | 1 once stopPropagation() is called |
timestamp | int timestamp | host-supplied monotonic tick (0 if unknown) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int eventType, String target) | No description in source. |
getType | int getType() | No description in source. |
target | String target() | No description in source. |
setValue | void setValue(String v) | Payload setters (the host fills in what the kind carries). |
getValue | String getValue() | No description in source. |
setKey | void setKey(String k) | No description in source. |
getKey | String getKey() | No description in source. |
setPointer | void setPointer(int px, int py) | No description in source. |
pointerX | int pointerX() | No description in source. |
pointerY | int pointerY() | No description in source. |
setToggle | void setToggle(int on) | No description in source. |
toggledOn | boolean toggledOn() | No description in source. |
setTimestamp | void setTimestamp(int t) | No description in source. |
when | int when() | No description in source. |
preventDefault | void preventDefault() | DHTML-style propagation controls. |
isDefaultPrevented | boolean isDefaultPrevented() | No description in source. |
stopPropagation | void stopPropagation() | No description in source. |
isPropagationStopped | boolean isPropagationStopped() | No description in source. |
SLGuiEvent #sleela 2.5 (lib/gui/version-military/SLGuiEvent.sleela)
SLGuiEvent class
Defines SLGuiEvent — one dispatched GUI event, the DHTML-style event object a handler receives. It names the event type (an SLGuiEventType ordinal), the target node id it was raised on, and the payload the kind carries: a string value (entry text / changed value), a key name (for key events), pointer coordinates (for pointer events), and a toggle state. It also carries the two propagation controls a handler can set — preventDefault() and stopPropagation() — exactly like a browser event, so SLeeLa handlers can cancel the host's default action or halt bubbling. Family: gui. The host raises the activation; SLeeLa reads this event and decides what it means.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
type | int type | SLGuiEventType ordinal |
targetId | String targetId | the node id the event was raised on |
value | String value | string payload (entry text, changed value, custom data) |
key | String key | key name for KEYDOWN/KEYUP (e.g. "Enter", "a") |
x | int x | pointer x within the target (pointer events) |
y | int y | pointer y within the target (pointer events) |
toggleState | int toggleState | 1/0 for TOGGLE events |
defaultPrevented | int defaultPrevented | 1 once preventDefault() is called |
propagationStopped | int propagationStopped | 1 once stopPropagation() is called |
timestamp | int timestamp | host-supplied monotonic tick (0 if unknown) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int eventType, String target) | No description in source. |
getType | int getType() | No description in source. |
target | String target() | No description in source. |
setValue | void setValue(String v) | Payload setters (the host fills in what the kind carries). |
getValue | String getValue() | No description in source. |
setKey | void setKey(String k) | No description in source. |
getKey | String getKey() | No description in source. |
setPointer | void setPointer(int px, int py) | No description in source. |
pointerX | int pointerX() | No description in source. |
pointerY | int pointerY() | No description in source. |
setToggle | void setToggle(int on) | No description in source. |
toggledOn | boolean toggledOn() | No description in source. |
setTimestamp | void setTimestamp(int t) | No description in source. |
when | int when() | No description in source. |
preventDefault | void preventDefault() | DHTML-style propagation controls. |
isDefaultPrevented | boolean isDefaultPrevented() | No description in source. |
stopPropagation | void stopPropagation() | No description in source. |
isPropagationStopped | boolean isPropagationStopped() | No description in source. |
SLGuiEvent #sleela 2.5 (lib/gui/version-dual/SLGuiEvent.sleela)
SLGuiEvent class
Defines SLGuiEvent — one dispatched GUI event, the DHTML-style event object a handler receives. It names the event type (an SLGuiEventType ordinal), the target node id it was raised on, and the payload the kind carries: a string value (entry text / changed value), a key name (for key events), pointer coordinates (for pointer events), and a toggle state. It also carries the two propagation controls a handler can set — preventDefault() and stopPropagation() — exactly like a browser event, so SLeeLa handlers can cancel the host's default action or halt bubbling. Family: gui. The host raises the activation; SLeeLa reads this event and decides what it means.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
type | int type | SLGuiEventType ordinal |
targetId | String targetId | the node id the event was raised on |
value | String value | string payload (entry text, changed value, custom data) |
key | String key | key name for KEYDOWN/KEYUP (e.g. "Enter", "a") |
x | int x | pointer x within the target (pointer events) |
y | int y | pointer y within the target (pointer events) |
toggleState | int toggleState | 1/0 for TOGGLE events |
defaultPrevented | int defaultPrevented | 1 once preventDefault() is called |
propagationStopped | int propagationStopped | 1 once stopPropagation() is called |
timestamp | int timestamp | host-supplied monotonic tick (0 if unknown) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int eventType, String target) | No description in source. |
getType | int getType() | No description in source. |
target | String target() | No description in source. |
setValue | void setValue(String v) | Payload setters (the host fills in what the kind carries). |
getValue | String getValue() | No description in source. |
setKey | void setKey(String k) | No description in source. |
getKey | String getKey() | No description in source. |
setPointer | void setPointer(int px, int py) | No description in source. |
pointerX | int pointerX() | No description in source. |
pointerY | int pointerY() | No description in source. |
setToggle | void setToggle(int on) | No description in source. |
toggledOn | boolean toggledOn() | No description in source. |
setTimestamp | void setTimestamp(int t) | No description in source. |
when | int when() | No description in source. |
preventDefault | void preventDefault() | DHTML-style propagation controls. |
isDefaultPrevented | boolean isDefaultPrevented() | No description in source. |
stopPropagation | void stopPropagation() | No description in source. |
isPropagationStopped | boolean isPropagationStopped() | No description in source. |
SLGuiEventBus #sleela 2.5 (lib/gui/version-gual/SLGuiEventBus.sleela)
SLGuiEventBus class
Defines SLGuiEventBus — the event dispatcher and listener table for the /lib/gui event layer. It is the engine behind addEventListener / removeEventListener and the onClick/onInput shorthands: handlers register against a (type, target) pair, and dispatch(event) delivers a raised SLGuiEvent to every matching SLGuiHandler, honouring the DHTML-style phase order (capture handlers first, then target/bubble), stopPropagation() to halt delivery, and once handlers that auto-remove after firing. The bus is the SLeeLa-owned meaning layer: the host raises typed activations, the bus routes them to the bound operations. Family: gui. SLeeLa owns dispatch and the meaning of events; the host only raises them.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_HANDLERS | static final int MAX_HANDLERS = 8192 | No description in source. |
handlers | SLGuiHandler[] handlers | No description in source. |
count | int count | No description in source. |
lastDelivered | int lastDelivered | how many handlers the last dispatch fired |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init() | No description in source. |
size | int size() | No description in source. |
addListener | SLGuiHandler addListener(String targetId, int eventType, String operation) | addEventListener(target, type, operation): register a handler and return it. |
addListenerEx | SLGuiHandler addListenerEx(String targetId, int eventType, String operation, | addEventListener with options (once / capture). |
removeListener | boolean removeListener(String targetId, int eventType, String operation) | removeEventListener: drop the first handler matching (target, type, op). |
removeTarget | int removeTarget(String targetId) | Remove every handler bound to a target (used when a node is destroyed). |
dispatch | int dispatch(SLGuiEvent event) | Dispatch a raised event: capture-phase handlers first, then bubble-phase, stopping early if a handler calls stopPropagation(). once handlers are removed after they fire. Returns the number of handlers that fired. |
deliverPhase | void deliverPhase(SLGuiEvent event, boolean capturePhase) | No description in source. |
raise | int raise(int eventType, String targetId, String value) | Convenience: build and dispatch a simple typed event with a string value. |
poll | boolean poll(SLGuiHandler handler) | Poll a handler's latch (for hosts that poll rather than get called back). |
deliveredLast | int deliveredLast() | No description in source. |
removeAt | void removeAt(int index) | No description in source. |
sweepOnce | void sweepOnce() | Remove handlers flagged once that have fired at least once. |
SLGuiEventBus #sleela 2.5 (lib/gui/version-mual/SLGuiEventBus.sleela)
SLGuiEventBus class
Defines SLGuiEventBus — the event dispatcher and listener table for the /lib/gui event layer. It is the engine behind addEventListener / removeEventListener and the onClick/onInput shorthands: handlers register against a (type, target) pair, and dispatch(event) delivers a raised SLGuiEvent to every matching SLGuiHandler, honouring the DHTML-style phase order (capture handlers first, then target/bubble), stopPropagation() to halt delivery, and once handlers that auto-remove after firing. The bus is the SLeeLa-owned meaning layer: the host raises typed activations, the bus routes them to the bound operations. Family: gui. SLeeLa owns dispatch and the meaning of events; the host only raises them.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_HANDLERS | static final int MAX_HANDLERS = 8192 | No description in source. |
handlers | SLGuiHandler[] handlers | No description in source. |
count | int count | No description in source. |
lastDelivered | int lastDelivered | how many handlers the last dispatch fired |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init() | No description in source. |
size | int size() | No description in source. |
addListener | SLGuiHandler addListener(String targetId, int eventType, String operation) | addEventListener(target, type, operation): register a handler and return it. |
addListenerEx | SLGuiHandler addListenerEx(String targetId, int eventType, String operation, | addEventListener with options (once / capture). |
removeListener | boolean removeListener(String targetId, int eventType, String operation) | removeEventListener: drop the first handler matching (target, type, op). |
removeTarget | int removeTarget(String targetId) | Remove every handler bound to a target (used when a node is destroyed). |
dispatch | int dispatch(SLGuiEvent event) | Dispatch a raised event: capture-phase handlers first, then bubble-phase, stopping early if a handler calls stopPropagation(). once handlers are removed after they fire. Returns the number of handlers that fired. |
deliverPhase | void deliverPhase(SLGuiEvent event, boolean capturePhase) | No description in source. |
raise | int raise(int eventType, String targetId, String value) | Convenience: build and dispatch a simple typed event with a string value. |
poll | boolean poll(SLGuiHandler handler) | Poll a handler's latch (for hosts that poll rather than get called back). |
deliveredLast | int deliveredLast() | No description in source. |
removeAt | void removeAt(int index) | No description in source. |
sweepOnce | void sweepOnce() | Remove handlers flagged once that have fired at least once. |
SLGuiEventBus #sleela 2.5 (lib/gui/version-thual/SLGuiEventBus.sleela)
SLGuiEventBus class
Defines SLGuiEventBus — the event dispatcher and listener table for the /lib/gui event layer. It is the engine behind addEventListener / removeEventListener and the onClick/onInput shorthands: handlers register against a (type, target) pair, and dispatch(event) delivers a raised SLGuiEvent to every matching SLGuiHandler, honouring the DHTML-style phase order (capture handlers first, then target/bubble), stopPropagation() to halt delivery, and once handlers that auto-remove after firing. The bus is the SLeeLa-owned meaning layer: the host raises typed activations, the bus routes them to the bound operations. Family: gui. SLeeLa owns dispatch and the meaning of events; the host only raises them.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_HANDLERS | static final int MAX_HANDLERS = 8192 | No description in source. |
handlers | SLGuiHandler[] handlers | No description in source. |
count | int count | No description in source. |
lastDelivered | int lastDelivered | how many handlers the last dispatch fired |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init() | No description in source. |
size | int size() | No description in source. |
addListener | SLGuiHandler addListener(String targetId, int eventType, String operation) | addEventListener(target, type, operation): register a handler and return it. |
addListenerEx | SLGuiHandler addListenerEx(String targetId, int eventType, String operation, | addEventListener with options (once / capture). |
removeListener | boolean removeListener(String targetId, int eventType, String operation) | removeEventListener: drop the first handler matching (target, type, op). |
removeTarget | int removeTarget(String targetId) | Remove every handler bound to a target (used when a node is destroyed). |
dispatch | int dispatch(SLGuiEvent event) | Dispatch a raised event: capture-phase handlers first, then bubble-phase, stopping early if a handler calls stopPropagation(). once handlers are removed after they fire. Returns the number of handlers that fired. |
deliverPhase | void deliverPhase(SLGuiEvent event, boolean capturePhase) | No description in source. |
raise | int raise(int eventType, String targetId, String value) | Convenience: build and dispatch a simple typed event with a string value. |
poll | boolean poll(SLGuiHandler handler) | Poll a handler's latch (for hosts that poll rather than get called back). |
deliveredLast | int deliveredLast() | No description in source. |
removeAt | void removeAt(int index) | No description in source. |
sweepOnce | void sweepOnce() | Remove handlers flagged once that have fired at least once. |
SLGuiEventBus #sleela 2.5 (lib/gui/version-military/SLGuiEventBus.sleela)
SLGuiEventBus class
Defines SLGuiEventBus — the event dispatcher and listener table for the /lib/gui event layer. It is the engine behind addEventListener / removeEventListener and the onClick/onInput shorthands: handlers register against a (type, target) pair, and dispatch(event) delivers a raised SLGuiEvent to every matching SLGuiHandler, honouring the DHTML-style phase order (capture handlers first, then target/bubble), stopPropagation() to halt delivery, and once handlers that auto-remove after firing. The bus is the SLeeLa-owned meaning layer: the host raises typed activations, the bus routes them to the bound operations. Family: gui. SLeeLa owns dispatch and the meaning of events; the host only raises them.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_HANDLERS | static final int MAX_HANDLERS = 8192 | No description in source. |
handlers | SLGuiHandler[] handlers | No description in source. |
count | int count | No description in source. |
lastDelivered | int lastDelivered | how many handlers the last dispatch fired |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init() | No description in source. |
size | int size() | No description in source. |
addListener | SLGuiHandler addListener(String targetId, int eventType, String operation) | addEventListener(target, type, operation): register a handler and return it. |
addListenerEx | SLGuiHandler addListenerEx(String targetId, int eventType, String operation, | addEventListener with options (once / capture). |
removeListener | boolean removeListener(String targetId, int eventType, String operation) | removeEventListener: drop the first handler matching (target, type, op). |
removeTarget | int removeTarget(String targetId) | Remove every handler bound to a target (used when a node is destroyed). |
dispatch | int dispatch(SLGuiEvent event) | Dispatch a raised event: capture-phase handlers first, then bubble-phase, stopping early if a handler calls stopPropagation(). once handlers are removed after they fire. Returns the number of handlers that fired. |
deliverPhase | void deliverPhase(SLGuiEvent event, boolean capturePhase) | No description in source. |
raise | int raise(int eventType, String targetId, String value) | Convenience: build and dispatch a simple typed event with a string value. |
poll | boolean poll(SLGuiHandler handler) | Poll a handler's latch (for hosts that poll rather than get called back). |
deliveredLast | int deliveredLast() | No description in source. |
removeAt | void removeAt(int index) | No description in source. |
sweepOnce | void sweepOnce() | Remove handlers flagged once that have fired at least once. |
SLGuiEventBus #sleela 2.5 (lib/gui/version-dual/SLGuiEventBus.sleela)
SLGuiEventBus class
Defines SLGuiEventBus — the event dispatcher and listener table for the /lib/gui event layer. It is the engine behind addEventListener / removeEventListener and the onClick/onInput shorthands: handlers register against a (type, target) pair, and dispatch(event) delivers a raised SLGuiEvent to every matching SLGuiHandler, honouring the DHTML-style phase order (capture handlers first, then target/bubble), stopPropagation() to halt delivery, and once handlers that auto-remove after firing. The bus is the SLeeLa-owned meaning layer: the host raises typed activations, the bus routes them to the bound operations. Family: gui. SLeeLa owns dispatch and the meaning of events; the host only raises them.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_HANDLERS | static final int MAX_HANDLERS = 8192 | No description in source. |
handlers | SLGuiHandler[] handlers | No description in source. |
count | int count | No description in source. |
lastDelivered | int lastDelivered | how many handlers the last dispatch fired |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init() | No description in source. |
size | int size() | No description in source. |
addListener | SLGuiHandler addListener(String targetId, int eventType, String operation) | addEventListener(target, type, operation): register a handler and return it. |
addListenerEx | SLGuiHandler addListenerEx(String targetId, int eventType, String operation, | addEventListener with options (once / capture). |
removeListener | boolean removeListener(String targetId, int eventType, String operation) | removeEventListener: drop the first handler matching (target, type, op). |
removeTarget | int removeTarget(String targetId) | Remove every handler bound to a target (used when a node is destroyed). |
dispatch | int dispatch(SLGuiEvent event) | Dispatch a raised event: capture-phase handlers first, then bubble-phase, stopping early if a handler calls stopPropagation(). once handlers are removed after they fire. Returns the number of handlers that fired. |
deliverPhase | void deliverPhase(SLGuiEvent event, boolean capturePhase) | No description in source. |
raise | int raise(int eventType, String targetId, String value) | Convenience: build and dispatch a simple typed event with a string value. |
poll | boolean poll(SLGuiHandler handler) | Poll a handler's latch (for hosts that poll rather than get called back). |
deliveredLast | int deliveredLast() | No description in source. |
removeAt | void removeAt(int index) | No description in source. |
sweepOnce | void sweepOnce() | Remove handlers flagged once that have fired at least once. |
SLGuiEventType #sleela 2.5 (lib/gui/version-gual/SLGuiEventType.sleela)
SLGuiEventType class
Defines SLGuiEventType — the catalogue of GUI event kinds the /lib/gui event layer understands. These are the SLeeLa-facing names a handler binds to (the DHTML-style "click", "input", "change", "keydown", ...). The host raises one of these on a target; SLeeLa decides what it means. Each kind has a stable ordinal (used by the dispatch tables) and a canonical lowercase name (the string an onX binding or addEventListener uses), mirroring the activation model already in SLGuiAction. Family: gui. Java/native raise typed activations; SLeeLa owns their meaning.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
CLICK | static final int CLICK = 0 | Ordinals (stable; used as table indices). a primary activation (click / Enter / Space) |
DBLCLICK | static final int DBLCLICK = 1 | a double activation |
INPUT | static final int INPUT = 2 | live text input (per keystroke) |
CHANGE | static final int CHANGE = 3 | a committed value change (blur/Enter) |
FOCUS | static final int FOCUS = 4 | the target gained focus |
BLUR | static final int BLUR = 5 | the target lost focus |
KEYDOWN | static final int KEYDOWN = 6 | a key went down while focused |
KEYUP | static final int KEYUP = 7 | a key came up while focused |
POINTERDOWN | static final int POINTERDOWN= 8 | a pointer press began on the target |
POINTERUP | static final int POINTERUP = 9 | a pointer press ended on the target |
POINTERMOVE | static final int POINTERMOVE=10 | the pointer moved over the target |
SCROLL | static final int SCROLL =11 | the target scrolled |
SUBMIT | static final int SUBMIT =12 | a form-like submit (Enter in an entry) |
TOGGLE | static final int TOGGLE =13 | a toggle/checkbox flipped |
CUSTOM | static final int CUSTOM =14 | a host- or script-defined event |
COUNT | static final int COUNT =15 | number of defined event kinds |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
nameOf | String nameOf(int type) | The canonical lowercase name for an ordinal (the addEventListener string). |
typeOf | int typeOf(String name) | The ordinal for a canonical name (-1 when the name is not recognised). |
valid | boolean valid(int type) | No description in source. |
SLGuiEventType #sleela 2.5 (lib/gui/version-mual/SLGuiEventType.sleela)
SLGuiEventType class
Defines SLGuiEventType — the catalogue of GUI event kinds the /lib/gui event layer understands. These are the SLeeLa-facing names a handler binds to (the DHTML-style "click", "input", "change", "keydown", ...). The host raises one of these on a target; SLeeLa decides what it means. Each kind has a stable ordinal (used by the dispatch tables) and a canonical lowercase name (the string an onX binding or addEventListener uses), mirroring the activation model already in SLGuiAction. Family: gui. Java/native raise typed activations; SLeeLa owns their meaning.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
CLICK | static final int CLICK = 0 | Ordinals (stable; used as table indices). a primary activation (click / Enter / Space) |
DBLCLICK | static final int DBLCLICK = 1 | a double activation |
INPUT | static final int INPUT = 2 | live text input (per keystroke) |
CHANGE | static final int CHANGE = 3 | a committed value change (blur/Enter) |
FOCUS | static final int FOCUS = 4 | the target gained focus |
BLUR | static final int BLUR = 5 | the target lost focus |
KEYDOWN | static final int KEYDOWN = 6 | a key went down while focused |
KEYUP | static final int KEYUP = 7 | a key came up while focused |
POINTERDOWN | static final int POINTERDOWN= 8 | a pointer press began on the target |
POINTERUP | static final int POINTERUP = 9 | a pointer press ended on the target |
POINTERMOVE | static final int POINTERMOVE=10 | the pointer moved over the target |
SCROLL | static final int SCROLL =11 | the target scrolled |
SUBMIT | static final int SUBMIT =12 | a form-like submit (Enter in an entry) |
TOGGLE | static final int TOGGLE =13 | a toggle/checkbox flipped |
CUSTOM | static final int CUSTOM =14 | a host- or script-defined event |
COUNT | static final int COUNT =15 | number of defined event kinds |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
nameOf | String nameOf(int type) | The canonical lowercase name for an ordinal (the addEventListener string). |
typeOf | int typeOf(String name) | The ordinal for a canonical name (-1 when the name is not recognised). |
valid | boolean valid(int type) | No description in source. |
SLGuiEventType #sleela 2.5 (lib/gui/version-thual/SLGuiEventType.sleela)
SLGuiEventType class
Defines SLGuiEventType — the catalogue of GUI event kinds the /lib/gui event layer understands. These are the SLeeLa-facing names a handler binds to (the DHTML-style "click", "input", "change", "keydown", ...). The host raises one of these on a target; SLeeLa decides what it means. Each kind has a stable ordinal (used by the dispatch tables) and a canonical lowercase name (the string an onX binding or addEventListener uses), mirroring the activation model already in SLGuiAction. Family: gui. Java/native raise typed activations; SLeeLa owns their meaning.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
CLICK | static final int CLICK = 0 | Ordinals (stable; used as table indices). a primary activation (click / Enter / Space) |
DBLCLICK | static final int DBLCLICK = 1 | a double activation |
INPUT | static final int INPUT = 2 | live text input (per keystroke) |
CHANGE | static final int CHANGE = 3 | a committed value change (blur/Enter) |
FOCUS | static final int FOCUS = 4 | the target gained focus |
BLUR | static final int BLUR = 5 | the target lost focus |
KEYDOWN | static final int KEYDOWN = 6 | a key went down while focused |
KEYUP | static final int KEYUP = 7 | a key came up while focused |
POINTERDOWN | static final int POINTERDOWN= 8 | a pointer press began on the target |
POINTERUP | static final int POINTERUP = 9 | a pointer press ended on the target |
POINTERMOVE | static final int POINTERMOVE=10 | the pointer moved over the target |
SCROLL | static final int SCROLL =11 | the target scrolled |
SUBMIT | static final int SUBMIT =12 | a form-like submit (Enter in an entry) |
TOGGLE | static final int TOGGLE =13 | a toggle/checkbox flipped |
CUSTOM | static final int CUSTOM =14 | a host- or script-defined event |
COUNT | static final int COUNT =15 | number of defined event kinds |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
nameOf | String nameOf(int type) | The canonical lowercase name for an ordinal (the addEventListener string). |
typeOf | int typeOf(String name) | The ordinal for a canonical name (-1 when the name is not recognised). |
valid | boolean valid(int type) | No description in source. |
SLGuiEventType #sleela 2.5 (lib/gui/version-military/SLGuiEventType.sleela)
SLGuiEventType class
Defines SLGuiEventType — the catalogue of GUI event kinds the /lib/gui event layer understands. These are the SLeeLa-facing names a handler binds to (the DHTML-style "click", "input", "change", "keydown", ...). The host raises one of these on a target; SLeeLa decides what it means. Each kind has a stable ordinal (used by the dispatch tables) and a canonical lowercase name (the string an onX binding or addEventListener uses), mirroring the activation model already in SLGuiAction. Family: gui. Java/native raise typed activations; SLeeLa owns their meaning.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
CLICK | static final int CLICK = 0 | Ordinals (stable; used as table indices). a primary activation (click / Enter / Space) |
DBLCLICK | static final int DBLCLICK = 1 | a double activation |
INPUT | static final int INPUT = 2 | live text input (per keystroke) |
CHANGE | static final int CHANGE = 3 | a committed value change (blur/Enter) |
FOCUS | static final int FOCUS = 4 | the target gained focus |
BLUR | static final int BLUR = 5 | the target lost focus |
KEYDOWN | static final int KEYDOWN = 6 | a key went down while focused |
KEYUP | static final int KEYUP = 7 | a key came up while focused |
POINTERDOWN | static final int POINTERDOWN= 8 | a pointer press began on the target |
POINTERUP | static final int POINTERUP = 9 | a pointer press ended on the target |
POINTERMOVE | static final int POINTERMOVE=10 | the pointer moved over the target |
SCROLL | static final int SCROLL =11 | the target scrolled |
SUBMIT | static final int SUBMIT =12 | a form-like submit (Enter in an entry) |
TOGGLE | static final int TOGGLE =13 | a toggle/checkbox flipped |
CUSTOM | static final int CUSTOM =14 | a host- or script-defined event |
COUNT | static final int COUNT =15 | number of defined event kinds |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
nameOf | String nameOf(int type) | The canonical lowercase name for an ordinal (the addEventListener string). |
typeOf | int typeOf(String name) | The ordinal for a canonical name (-1 when the name is not recognised). |
valid | boolean valid(int type) | No description in source. |
SLGuiEventType #sleela 2.5 (lib/gui/version-dual/SLGuiEventType.sleela)
SLGuiEventType class
Defines SLGuiEventType — the catalogue of GUI event kinds the /lib/gui event layer understands. These are the SLeeLa-facing names a handler binds to (the DHTML-style "click", "input", "change", "keydown", ...). The host raises one of these on a target; SLeeLa decides what it means. Each kind has a stable ordinal (used by the dispatch tables) and a canonical lowercase name (the string an onX binding or addEventListener uses), mirroring the activation model already in SLGuiAction. Family: gui. Java/native raise typed activations; SLeeLa owns their meaning.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
CLICK | static final int CLICK = 0 | Ordinals (stable; used as table indices). a primary activation (click / Enter / Space) |
DBLCLICK | static final int DBLCLICK = 1 | a double activation |
INPUT | static final int INPUT = 2 | live text input (per keystroke) |
CHANGE | static final int CHANGE = 3 | a committed value change (blur/Enter) |
FOCUS | static final int FOCUS = 4 | the target gained focus |
BLUR | static final int BLUR = 5 | the target lost focus |
KEYDOWN | static final int KEYDOWN = 6 | a key went down while focused |
KEYUP | static final int KEYUP = 7 | a key came up while focused |
POINTERDOWN | static final int POINTERDOWN= 8 | a pointer press began on the target |
POINTERUP | static final int POINTERUP = 9 | a pointer press ended on the target |
POINTERMOVE | static final int POINTERMOVE=10 | the pointer moved over the target |
SCROLL | static final int SCROLL =11 | the target scrolled |
SUBMIT | static final int SUBMIT =12 | a form-like submit (Enter in an entry) |
TOGGLE | static final int TOGGLE =13 | a toggle/checkbox flipped |
CUSTOM | static final int CUSTOM =14 | a host- or script-defined event |
COUNT | static final int COUNT =15 | number of defined event kinds |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
nameOf | String nameOf(int type) | The canonical lowercase name for an ordinal (the addEventListener string). |
typeOf | int typeOf(String name) | The ordinal for a canonical name (-1 when the name is not recognised). |
valid | boolean valid(int type) | No description in source. |
SLGuiGraphics #sleela 2.5 (lib/gui/version-military/SLGuiGraphics.sleela)
SLGuiGraphics class
Defines SLGuiGraphics — the 4.0 graphics facility AND its control layer for a canvas node. The facility is a bounded, auditable DRAW-COMMAND list (clear / line / rect / circle / arc / text / image) with stroke-width, fill/stroke colors, and opacity state; a command records the current state so the host replays the list deterministically. The control layer carries render quality, antialiasing, a layer index, and a dirty redraw region, so a program can tune how the facility is realised. SLeeLa owns the command list + control state; the host rasterises onto the real surface. This is a graphics *description*, not a general interpreter — a fixed verb set that can do no more than the canvas API allows. Family: gui. Backs a "canvas"/"graphics" node; replayed by the host renderer.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_COMMANDS | static final int MAX_COMMANDS = 1024 | No description in source. |
OP_CLEAR | static final int OP_CLEAR = 0 | Draw verbs. |
OP_LINE | static final int OP_LINE = 1 | No description in source. |
OP_RECT | static final int OP_RECT = 2 | No description in source. |
OP_CIRCLE | static final int OP_CIRCLE = 3 | No description in source. |
OP_ARC | static final int OP_ARC = 4 | No description in source. |
OP_TEXT | static final int OP_TEXT = 5 | No description in source. |
OP_IMAGE | static final int OP_IMAGE = 6 | No description in source. |
QUALITY_LOW | static final int QUALITY_LOW = 0 | Render quality (control layer). |
QUALITY_MED | static final int QUALITY_MED = 1 | No description in source. |
QUALITY_HIGH | static final int QUALITY_HIGH = 2 | No description in source. |
op | int[] op | Command list (parallel arrays; the surface language has no record arrays). |
arg | String[] arg | string operand (text / image asset / color) |
count | int count | No description in source. |
strokeWidth | int strokeWidth | Current pen/brush state applied to each appended command. 1..64 |
strokeColor | String strokeColor | "#rrggbb" / named |
fillColor | String fillColor | "#rrggbb" / named / "" = no fill |
opacityPct | int opacityPct | 0..100 |
quality | int quality | Control layer. |
antialias | int antialias | 1 = AA on |
layer | int layer | z layer, 0..15 |
dirty | int dirty | 1 when the command list changed since last replay |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int w, int h) | No description in source. |
clamp | int clamp(int v, int lo, int hi) | No description in source. |
setStrokeWidth | void setStrokeWidth(int px) | ---- pen / brush state -------------------------------------------------- |
setStrokeColor | void setStrokeColor(String color) | No description in source. |
setFillColor | void setFillColor(String color) | No description in source. |
setOpacity | void setOpacity(int pct) | No description in source. |
setQuality | void setQuality(int q) | ---- control layer ------------------------------------------------------ |
setAntialias | void setAntialias(boolean on) | No description in source. |
setLayer | void setLayer(int z) | No description in source. |
markRegion | void markRegion(int rx, int ry, int rw, int rh) | No description in source. |
clearRegion | void clearRegion() | No description in source. |
push | boolean push(int verb, int p0, int p1, int p2, int p3, String s) | ---- draw commands ------------------------------------------------------ |
clear | boolean clear() | No description in source. |
line | boolean line(int x1, int y1, int x2, int y2) | No description in source. |
rect | boolean rect(int rx, int ry, int rw, int rh) | No description in source. |
circle | boolean circle(int cx, int cy, int r) | No description in source. |
arc | boolean arc(int cx, int cy, int r, int sweepDeg) | No description in source. |
text | boolean text(int tx, int ty, String s) | No description in source. |
image | boolean image(int ix, int iy, int iw, int ih, String asset) | No description in source. |
reset | void reset() | No description in source. |
commands | int commands() | ---- readers (host replays these) --------------------------------------- |
opAt | int opAt(int i) | No description in source. |
aAt | int aAt(int i) | No description in source. |
bAt | int bAt(int i) | No description in source. |
cAt | int cAt(int i) | No description in source. |
dAt | int dAt(int i) | No description in source. |
argAt | String argAt(int i) | No description in source. |
getQuality | int getQuality() | No description in source. |
antialiasOn | boolean antialiasOn() | No description in source. |
getLayer | int getLayer() | No description in source. |
isDirty | boolean isDirty() | No description in source. |
clearDirty | void clearDirty() | No description in source. |
getWidth | int getWidth() | No description in source. |
getHeight | int getHeight() | No description in source. |
qualityName | String qualityName() | No description in source. |
honored | boolean honored() | No description in source. |
SLGuiGraphics #sleela 2.5 (lib/gui/version-dual/SLGuiGraphics.sleela)
SLGuiGraphics class
Defines SLGuiGraphics — the 4.0 graphics facility AND its control layer for a canvas node. The facility is a bounded, auditable DRAW-COMMAND list (clear / line / rect / circle / arc / text / image) with stroke-width, fill/stroke colors, and opacity state; a command records the current state so the host replays the list deterministically. The control layer carries render quality, antialiasing, a layer index, and a dirty redraw region, so a program can tune how the facility is realised. SLeeLa owns the command list + control state; the host rasterises onto the real surface. This is a graphics *description*, not a general interpreter — a fixed verb set that can do no more than the canvas API allows. Family: gui. Backs a "canvas"/"graphics" node; replayed by the host renderer.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_COMMANDS | static final int MAX_COMMANDS = 1024 | No description in source. |
OP_CLEAR | static final int OP_CLEAR = 0 | Draw verbs. |
OP_LINE | static final int OP_LINE = 1 | No description in source. |
OP_RECT | static final int OP_RECT = 2 | No description in source. |
OP_CIRCLE | static final int OP_CIRCLE = 3 | No description in source. |
OP_ARC | static final int OP_ARC = 4 | No description in source. |
OP_TEXT | static final int OP_TEXT = 5 | No description in source. |
OP_IMAGE | static final int OP_IMAGE = 6 | No description in source. |
QUALITY_LOW | static final int QUALITY_LOW = 0 | Render quality (control layer). |
QUALITY_MED | static final int QUALITY_MED = 1 | No description in source. |
QUALITY_HIGH | static final int QUALITY_HIGH = 2 | No description in source. |
op | int[] op | Command list (parallel arrays; the surface language has no record arrays). |
arg | String[] arg | string operand (text / image asset / color) |
count | int count | No description in source. |
strokeWidth | int strokeWidth | Current pen/brush state applied to each appended command. 1..64 |
strokeColor | String strokeColor | "#rrggbb" / named |
fillColor | String fillColor | "#rrggbb" / named / "" = no fill |
opacityPct | int opacityPct | 0..100 |
quality | int quality | Control layer. |
antialias | int antialias | 1 = AA on |
layer | int layer | z layer, 0..15 |
dirty | int dirty | 1 when the command list changed since last replay |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int w, int h) | No description in source. |
clamp | int clamp(int v, int lo, int hi) | No description in source. |
setStrokeWidth | void setStrokeWidth(int px) | ---- pen / brush state -------------------------------------------------- |
setStrokeColor | void setStrokeColor(String color) | No description in source. |
setFillColor | void setFillColor(String color) | No description in source. |
setOpacity | void setOpacity(int pct) | No description in source. |
setQuality | void setQuality(int q) | ---- control layer ------------------------------------------------------ |
setAntialias | void setAntialias(boolean on) | No description in source. |
setLayer | void setLayer(int z) | No description in source. |
markRegion | void markRegion(int rx, int ry, int rw, int rh) | No description in source. |
clearRegion | void clearRegion() | No description in source. |
push | boolean push(int verb, int p0, int p1, int p2, int p3, String s) | ---- draw commands ------------------------------------------------------ |
clear | boolean clear() | No description in source. |
line | boolean line(int x1, int y1, int x2, int y2) | No description in source. |
rect | boolean rect(int rx, int ry, int rw, int rh) | No description in source. |
circle | boolean circle(int cx, int cy, int r) | No description in source. |
arc | boolean arc(int cx, int cy, int r, int sweepDeg) | No description in source. |
text | boolean text(int tx, int ty, String s) | No description in source. |
image | boolean image(int ix, int iy, int iw, int ih, String asset) | No description in source. |
reset | void reset() | No description in source. |
commands | int commands() | ---- readers (host replays these) --------------------------------------- |
opAt | int opAt(int i) | No description in source. |
aAt | int aAt(int i) | No description in source. |
bAt | int bAt(int i) | No description in source. |
cAt | int cAt(int i) | No description in source. |
dAt | int dAt(int i) | No description in source. |
argAt | String argAt(int i) | No description in source. |
getQuality | int getQuality() | No description in source. |
antialiasOn | boolean antialiasOn() | No description in source. |
getLayer | int getLayer() | No description in source. |
isDirty | boolean isDirty() | No description in source. |
clearDirty | void clearDirty() | No description in source. |
getWidth | int getWidth() | No description in source. |
getHeight | int getHeight() | No description in source. |
qualityName | String qualityName() | No description in source. |
honored | boolean honored() | No description in source. |
SLGuiHandler #sleela 2.5 (lib/gui/version-gual/SLGuiHandler.sleela)
SLGuiHandler class
Defines SLGuiHandler — one registered event callback: the triple (event type, target node id, SLeeLa operation). It is the /lib/gui generalisation of SLGuiAction from a single click to any SLGuiEventType, and it is what addEventListener(target, type, operation) and the onClick/onInput shorthands create. When the dispatcher matches a raised SLGuiEvent to this handler it invokes the bound operation; the handler latches each fire so a host that polls (rather than calls back) still observes each activation exactly once, the same take-the-latch discipline as SLGuiAction. Family: gui. The host raises activations; this binding maps them to a SLeeLa operation whose meaning SLeeLa owns.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
type | int type | SLGuiEventType ordinal this handler listens for |
targetId | String targetId | node id it is bound to ("*" matches any target) |
operation | String operation | the SLeeLa operation invoked when it fires |
once | int once | 1 = auto-remove after the first fire |
capture | int capture | 1 = fire during capture phase, 0 = bubble phase |
enabled | int enabled | 1 while active |
pending | int pending | activation latch (set on fire, cleared on take) |
fired | int fired | total times fired |
lastValue | String lastValue | the value carried by the most recent matching event |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int eventType, String target, String op) | No description in source. |
getType | int getType() | No description in source. |
getTarget | String getTarget() | No description in source. |
getOperation | String getOperation() | No description in source. |
bound | boolean bound() | No description in source. |
setOnce | void setOnce(boolean on) | No description in source. |
isOnce | boolean isOnce() | No description in source. |
setCapture | void setCapture(boolean on) | No description in source. |
isCapture | boolean isCapture() | No description in source. |
setEnabled | void setEnabled(boolean on) | No description in source. |
isEnabled | boolean isEnabled() | No description in source. |
matches | boolean matches(SLGuiEvent event) | Does this handler match the given event? "*" target is a wildcard. |
fire | void fire(SLGuiEvent event) | Fire against a matching event: record it and raise the latch. The dispatcher calls this; a host that polls then reads it with take(). |
take | boolean take() | Take-the-latch read: true once per fire, then cleared. |
activations | int activations() | No description in source. |
value | String value() | No description in source. |
SLGuiHandler #sleela 2.5 (lib/gui/version-mual/SLGuiHandler.sleela)
SLGuiHandler class
Defines SLGuiHandler — one registered event callback: the triple (event type, target node id, SLeeLa operation). It is the /lib/gui generalisation of SLGuiAction from a single click to any SLGuiEventType, and it is what addEventListener(target, type, operation) and the onClick/onInput shorthands create. When the dispatcher matches a raised SLGuiEvent to this handler it invokes the bound operation; the handler latches each fire so a host that polls (rather than calls back) still observes each activation exactly once, the same take-the-latch discipline as SLGuiAction. Family: gui. The host raises activations; this binding maps them to a SLeeLa operation whose meaning SLeeLa owns.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
type | int type | SLGuiEventType ordinal this handler listens for |
targetId | String targetId | node id it is bound to ("*" matches any target) |
operation | String operation | the SLeeLa operation invoked when it fires |
once | int once | 1 = auto-remove after the first fire |
capture | int capture | 1 = fire during capture phase, 0 = bubble phase |
enabled | int enabled | 1 while active |
pending | int pending | activation latch (set on fire, cleared on take) |
fired | int fired | total times fired |
lastValue | String lastValue | the value carried by the most recent matching event |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int eventType, String target, String op) | No description in source. |
getType | int getType() | No description in source. |
getTarget | String getTarget() | No description in source. |
getOperation | String getOperation() | No description in source. |
bound | boolean bound() | No description in source. |
setOnce | void setOnce(boolean on) | No description in source. |
isOnce | boolean isOnce() | No description in source. |
setCapture | void setCapture(boolean on) | No description in source. |
isCapture | boolean isCapture() | No description in source. |
setEnabled | void setEnabled(boolean on) | No description in source. |
isEnabled | boolean isEnabled() | No description in source. |
matches | boolean matches(SLGuiEvent event) | Does this handler match the given event? "*" target is a wildcard. |
fire | void fire(SLGuiEvent event) | Fire against a matching event: record it and raise the latch. The dispatcher calls this; a host that polls then reads it with take(). |
take | boolean take() | Take-the-latch read: true once per fire, then cleared. |
activations | int activations() | No description in source. |
value | String value() | No description in source. |
SLGuiHandler #sleela 2.5 (lib/gui/version-thual/SLGuiHandler.sleela)
SLGuiHandler class
Defines SLGuiHandler — one registered event callback: the triple (event type, target node id, SLeeLa operation). It is the /lib/gui generalisation of SLGuiAction from a single click to any SLGuiEventType, and it is what addEventListener(target, type, operation) and the onClick/onInput shorthands create. When the dispatcher matches a raised SLGuiEvent to this handler it invokes the bound operation; the handler latches each fire so a host that polls (rather than calls back) still observes each activation exactly once, the same take-the-latch discipline as SLGuiAction. Family: gui. The host raises activations; this binding maps them to a SLeeLa operation whose meaning SLeeLa owns.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
type | int type | SLGuiEventType ordinal this handler listens for |
targetId | String targetId | node id it is bound to ("*" matches any target) |
operation | String operation | the SLeeLa operation invoked when it fires |
once | int once | 1 = auto-remove after the first fire |
capture | int capture | 1 = fire during capture phase, 0 = bubble phase |
enabled | int enabled | 1 while active |
pending | int pending | activation latch (set on fire, cleared on take) |
fired | int fired | total times fired |
lastValue | String lastValue | the value carried by the most recent matching event |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int eventType, String target, String op) | No description in source. |
getType | int getType() | No description in source. |
getTarget | String getTarget() | No description in source. |
getOperation | String getOperation() | No description in source. |
bound | boolean bound() | No description in source. |
setOnce | void setOnce(boolean on) | No description in source. |
isOnce | boolean isOnce() | No description in source. |
setCapture | void setCapture(boolean on) | No description in source. |
isCapture | boolean isCapture() | No description in source. |
setEnabled | void setEnabled(boolean on) | No description in source. |
isEnabled | boolean isEnabled() | No description in source. |
matches | boolean matches(SLGuiEvent event) | Does this handler match the given event? "*" target is a wildcard. |
fire | void fire(SLGuiEvent event) | Fire against a matching event: record it and raise the latch. The dispatcher calls this; a host that polls then reads it with take(). |
take | boolean take() | Take-the-latch read: true once per fire, then cleared. |
activations | int activations() | No description in source. |
value | String value() | No description in source. |
SLGuiHandler #sleela 2.5 (lib/gui/version-military/SLGuiHandler.sleela)
SLGuiHandler class
Defines SLGuiHandler — one registered event callback: the triple (event type, target node id, SLeeLa operation). It is the /lib/gui generalisation of SLGuiAction from a single click to any SLGuiEventType, and it is what addEventListener(target, type, operation) and the onClick/onInput shorthands create. When the dispatcher matches a raised SLGuiEvent to this handler it invokes the bound operation; the handler latches each fire so a host that polls (rather than calls back) still observes each activation exactly once, the same take-the-latch discipline as SLGuiAction. Family: gui. The host raises activations; this binding maps them to a SLeeLa operation whose meaning SLeeLa owns.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
type | int type | SLGuiEventType ordinal this handler listens for |
targetId | String targetId | node id it is bound to ("*" matches any target) |
operation | String operation | the SLeeLa operation invoked when it fires |
once | int once | 1 = auto-remove after the first fire |
capture | int capture | 1 = fire during capture phase, 0 = bubble phase |
enabled | int enabled | 1 while active |
pending | int pending | activation latch (set on fire, cleared on take) |
fired | int fired | total times fired |
lastValue | String lastValue | the value carried by the most recent matching event |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int eventType, String target, String op) | No description in source. |
getType | int getType() | No description in source. |
getTarget | String getTarget() | No description in source. |
getOperation | String getOperation() | No description in source. |
bound | boolean bound() | No description in source. |
setOnce | void setOnce(boolean on) | No description in source. |
isOnce | boolean isOnce() | No description in source. |
setCapture | void setCapture(boolean on) | No description in source. |
isCapture | boolean isCapture() | No description in source. |
setEnabled | void setEnabled(boolean on) | No description in source. |
isEnabled | boolean isEnabled() | No description in source. |
matches | boolean matches(SLGuiEvent event) | Does this handler match the given event? "*" target is a wildcard. |
fire | void fire(SLGuiEvent event) | Fire against a matching event: record it and raise the latch. The dispatcher calls this; a host that polls then reads it with take(). |
take | boolean take() | Take-the-latch read: true once per fire, then cleared. |
activations | int activations() | No description in source. |
value | String value() | No description in source. |
SLGuiHandler #sleela 2.5 (lib/gui/version-dual/SLGuiHandler.sleela)
SLGuiHandler class
Defines SLGuiHandler — one registered event callback: the triple (event type, target node id, SLeeLa operation). It is the /lib/gui generalisation of SLGuiAction from a single click to any SLGuiEventType, and it is what addEventListener(target, type, operation) and the onClick/onInput shorthands create. When the dispatcher matches a raised SLGuiEvent to this handler it invokes the bound operation; the handler latches each fire so a host that polls (rather than calls back) still observes each activation exactly once, the same take-the-latch discipline as SLGuiAction. Family: gui. The host raises activations; this binding maps them to a SLeeLa operation whose meaning SLeeLa owns.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
type | int type | SLGuiEventType ordinal this handler listens for |
targetId | String targetId | node id it is bound to ("*" matches any target) |
operation | String operation | the SLeeLa operation invoked when it fires |
once | int once | 1 = auto-remove after the first fire |
capture | int capture | 1 = fire during capture phase, 0 = bubble phase |
enabled | int enabled | 1 while active |
pending | int pending | activation latch (set on fire, cleared on take) |
fired | int fired | total times fired |
lastValue | String lastValue | the value carried by the most recent matching event |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int eventType, String target, String op) | No description in source. |
getType | int getType() | No description in source. |
getTarget | String getTarget() | No description in source. |
getOperation | String getOperation() | No description in source. |
bound | boolean bound() | No description in source. |
setOnce | void setOnce(boolean on) | No description in source. |
isOnce | boolean isOnce() | No description in source. |
setCapture | void setCapture(boolean on) | No description in source. |
isCapture | boolean isCapture() | No description in source. |
setEnabled | void setEnabled(boolean on) | No description in source. |
isEnabled | boolean isEnabled() | No description in source. |
matches | boolean matches(SLGuiEvent event) | Does this handler match the given event? "*" target is a wildcard. |
fire | void fire(SLGuiEvent event) | Fire against a matching event: record it and raise the latch. The dispatcher calls this; a host that polls then reads it with take(). |
take | boolean take() | Take-the-latch read: true once per fire, then cleared. |
activations | int activations() | No description in source. |
value | String value() | No description in source. |
SLGuiHost #sleela 2.5 (lib/gui/version-gual/SLGuiHost.sleela)
SLGuiHost class
Defines SLGuiHost — Path 1 of gui/INTEGRATION.md: a Java host owns the process and desktop lifecycle while SLeeLa owns business logic. Mirrors SleelaGuiHost: show(title,w,h, actionOperation) binds the window's action to a SLeeLa operation, and listen(...) ties each document change to a SLeeLa operation whose result is published to the window.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
window | SLGuiWindow window | No description in source. |
action | SLGuiAction action | No description in source. |
listener | SLGuiDocumentListener listener | No description in source. |
changeOperation | String changeOperation | SLeeLa operation invoked on each doc change |
listening | int listening | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(SLGuiWindow w, SLGuiAction a) | No description in source. |
show | void show(String title, int width, int height, String actionOperation) | Show the window and bind its action to a SLeeLa operation. |
onAction | boolean onAction(String result) | The host raised the window's action; it maps to the SLeeLa operation whose (non-null) result is published to the window. |
listen | boolean listen(SLGuiDocumentListener l, String operation) | Enable the document-change listener option on the Java host path: SLeeLa stays authoritative for what a change means. |
isListening | boolean isListening() | No description in source. |
onDocumentChange | int onDocumentChange(String documentId, String revision, int realChanges, String operationResult) | On a change the host calls `changeOperation`; its result is published, or the window's default refresh is used when the operation returns null. |
refreshNow | int refreshNow(int realChanges) | No description in source. |
stopListening | void stopListening() | No description in source. |
close | void close() | No description in source. |
SLGuiHost #sleela 2.5 (lib/gui/version-mual/SLGuiHost.sleela)
SLGuiHost class
Defines SLGuiHost — Path 1 of gui/INTEGRATION.md: a Java host owns the process and desktop lifecycle while SLeeLa owns business logic. Mirrors SleelaGuiHost: show(title,w,h, actionOperation) binds the window's action to a SLeeLa operation, and listen(...) ties each document change to a SLeeLa operation whose result is published to the window.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
window | SLGuiWindow window | No description in source. |
action | SLGuiAction action | No description in source. |
listener | SLGuiDocumentListener listener | No description in source. |
changeOperation | String changeOperation | SLeeLa operation invoked on each doc change |
listening | int listening | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(SLGuiWindow w, SLGuiAction a) | No description in source. |
show | void show(String title, int width, int height, String actionOperation) | Show the window and bind its action to a SLeeLa operation. |
onAction | boolean onAction(String result) | The host raised the window's action; it maps to the SLeeLa operation whose (non-null) result is published to the window. |
listen | boolean listen(SLGuiDocumentListener l, String operation) | Enable the document-change listener option on the Java host path: SLeeLa stays authoritative for what a change means. |
isListening | boolean isListening() | No description in source. |
onDocumentChange | int onDocumentChange(String documentId, String revision, int realChanges, String operationResult) | On a change the host calls `changeOperation`; its result is published, or the window's default refresh is used when the operation returns null. |
refreshNow | int refreshNow(int realChanges) | No description in source. |
stopListening | void stopListening() | No description in source. |
close | void close() | No description in source. |
SLGuiHost #sleela 2.5 (lib/gui/version-thual/SLGuiHost.sleela)
SLGuiHost class
Defines SLGuiHost — Path 1 of gui/INTEGRATION.md: a Java host owns the process and desktop lifecycle while SLeeLa owns business logic. Mirrors SleelaGuiHost: show(title,w,h, actionOperation) binds the window's action to a SLeeLa operation, and listen(...) ties each document change to a SLeeLa operation whose result is published to the window.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
window | SLGuiWindow window | No description in source. |
action | SLGuiAction action | No description in source. |
listener | SLGuiDocumentListener listener | No description in source. |
changeOperation | String changeOperation | SLeeLa operation invoked on each doc change |
listening | int listening | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(SLGuiWindow w, SLGuiAction a) | No description in source. |
show | void show(String title, int width, int height, String actionOperation) | Show the window and bind its action to a SLeeLa operation. |
onAction | boolean onAction(String result) | The host raised the window's action; it maps to the SLeeLa operation whose (non-null) result is published to the window. |
listen | boolean listen(SLGuiDocumentListener l, String operation) | Enable the document-change listener option on the Java host path: SLeeLa stays authoritative for what a change means. |
isListening | boolean isListening() | No description in source. |
onDocumentChange | int onDocumentChange(String documentId, String revision, int realChanges, String operationResult) | On a change the host calls `changeOperation`; its result is published, or the window's default refresh is used when the operation returns null. |
refreshNow | int refreshNow(int realChanges) | No description in source. |
stopListening | void stopListening() | No description in source. |
close | void close() | No description in source. |
SLGuiHost #sleela 2.5 (lib/gui/version-military/SLGuiHost.sleela)
SLGuiHost class
Defines SLGuiHost — Path 1 of gui/INTEGRATION.md: a Java host owns the process and desktop lifecycle while SLeeLa owns business logic. Mirrors SleelaGuiHost: show(title,w,h, actionOperation) binds the window's action to a SLeeLa operation, and listen(...) ties each document change to a SLeeLa operation whose result is published to the window.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
window | SLGuiWindow window | No description in source. |
action | SLGuiAction action | No description in source. |
listener | SLGuiDocumentListener listener | No description in source. |
changeOperation | String changeOperation | SLeeLa operation invoked on each doc change |
listening | int listening | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(SLGuiWindow w, SLGuiAction a) | No description in source. |
show | void show(String title, int width, int height, String actionOperation) | Show the window and bind its action to a SLeeLa operation. |
onAction | boolean onAction(String result) | The host raised the window's action; it maps to the SLeeLa operation whose (non-null) result is published to the window. |
listen | boolean listen(SLGuiDocumentListener l, String operation) | Enable the document-change listener option on the Java host path: SLeeLa stays authoritative for what a change means. |
isListening | boolean isListening() | No description in source. |
onDocumentChange | int onDocumentChange(String documentId, String revision, int realChanges, String operationResult) | On a change the host calls `changeOperation`; its result is published, or the window's default refresh is used when the operation returns null. |
refreshNow | int refreshNow(int realChanges) | No description in source. |
stopListening | void stopListening() | No description in source. |
close | void close() | No description in source. |
SLGuiHost #sleela 2.5 (lib/gui/version-dual/SLGuiHost.sleela)
SLGuiHost class
Defines SLGuiHost — Path 1 of gui/INTEGRATION.md: a Java host owns the process and desktop lifecycle while SLeeLa owns business logic. Mirrors SleelaGuiHost: show(title,w,h, actionOperation) binds the window's action to a SLeeLa operation, and listen(...) ties each document change to a SLeeLa operation whose result is published to the window.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
window | SLGuiWindow window | No description in source. |
action | SLGuiAction action | No description in source. |
listener | SLGuiDocumentListener listener | No description in source. |
changeOperation | String changeOperation | SLeeLa operation invoked on each doc change |
listening | int listening | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(SLGuiWindow w, SLGuiAction a) | No description in source. |
show | void show(String title, int width, int height, String actionOperation) | Show the window and bind its action to a SLeeLa operation. |
onAction | boolean onAction(String result) | The host raised the window's action; it maps to the SLeeLa operation whose (non-null) result is published to the window. |
listen | boolean listen(SLGuiDocumentListener l, String operation) | Enable the document-change listener option on the Java host path: SLeeLa stays authoritative for what a change means. |
isListening | boolean isListening() | No description in source. |
onDocumentChange | int onDocumentChange(String documentId, String revision, int realChanges, String operationResult) | On a change the host calls `changeOperation`; its result is published, or the window's default refresh is used when the operation returns null. |
refreshNow | int refreshNow(int realChanges) | No description in source. |
stopListening | void stopListening() | No description in source. |
close | void close() | No description in source. |
SLGuiHostAdapter #sleela 2.5 (lib/gui/version-gual/SLGuiHostAdapter.sleela)
SLGuiHostAdapter class
Defines SLGuiHostAdapter — the toolkit->SLeeLa half of the loop. Where SLGuiMount pushes DOM state onto widgets, the host adapter reads the widgets back: once per frame it polls each mounted interactive node's widget activation latch (uiWidgetTakeActivated, the same latch SLButton and SLEntry expose) and, when a widget fired, builds the matching SLGuiEvent (CLICK for a button, SUBMIT for an entry, TOGGLE for a toggle — carrying the widget's current text/toggle state as the event value) and dispatches it through the DOM's SLGuiEventBus so the bound onClick/onSubmit/onToggle handlers fire. This is what turns a real user interaction into a SLeeLa event; the DOM stays authoritative for what the event means. Family: gui. The adapter crosses the `ui*` SLVM bridge inbound; dispatch and meaning stay SLeeLa-owned.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
dom | SLGuiDom dom | No description in source. |
mount | SLGuiMount mount | No description in source. |
factory | SLGuiWidgetFactory factory | No description in source. |
tick | int tick | monotonic frame counter stamped onto events |
raisedLast | int raisedLast | events raised on the last poll pass |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init(SLGuiDom document, SLGuiMount mountEngine) | No description in source. |
poll | int poll() | Poll every mounted interactive node once; raise an SLGuiEvent for each that fired since the last poll. Returns the number of events dispatched. |
raiseFor | void raiseFor(SLGuiNode node, int widgetHandle) | Build and dispatch the event a fired widget implies. |
raiseInput | int raiseInput(String nodeId, String text) | Also feed a synthetic input event (per-keystroke) for an entry, used by a host that wants live INPUT handlers in addition to the committed SUBMIT. |
raisedCount | int raisedCount() | No description in source. |
frame | int frame() | No description in source. |
SLGuiHostAdapter #sleela 2.5 (lib/gui/version-mual/SLGuiHostAdapter.sleela)
SLGuiHostAdapter class
Defines SLGuiHostAdapter — the toolkit->SLeeLa half of the loop. Where SLGuiMount pushes DOM state onto widgets, the host adapter reads the widgets back: once per frame it polls each mounted interactive node's widget activation latch (uiWidgetTakeActivated, the same latch SLButton and SLEntry expose) and, when a widget fired, builds the matching SLGuiEvent (CLICK for a button, SUBMIT for an entry, TOGGLE for a toggle — carrying the widget's current text/toggle state as the event value) and dispatches it through the DOM's SLGuiEventBus so the bound onClick/onSubmit/onToggle handlers fire. This is what turns a real user interaction into a SLeeLa event; the DOM stays authoritative for what the event means. Family: gui. The adapter crosses the `ui*` SLVM bridge inbound; dispatch and meaning stay SLeeLa-owned.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
dom | SLGuiDom dom | No description in source. |
mount | SLGuiMount mount | No description in source. |
factory | SLGuiWidgetFactory factory | No description in source. |
tick | int tick | monotonic frame counter stamped onto events |
raisedLast | int raisedLast | events raised on the last poll pass |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init(SLGuiDom document, SLGuiMount mountEngine) | No description in source. |
poll | int poll() | Poll every mounted interactive node once; raise an SLGuiEvent for each that fired since the last poll. Returns the number of events dispatched. |
raiseFor | void raiseFor(SLGuiNode node, int widgetHandle) | Build and dispatch the event a fired widget implies. |
raiseInput | int raiseInput(String nodeId, String text) | Also feed a synthetic input event (per-keystroke) for an entry, used by a host that wants live INPUT handlers in addition to the committed SUBMIT. |
raisedCount | int raisedCount() | No description in source. |
frame | int frame() | No description in source. |
SLGuiHostAdapter #sleela 2.5 (lib/gui/version-thual/SLGuiHostAdapter.sleela)
SLGuiHostAdapter class
Defines SLGuiHostAdapter — the toolkit->SLeeLa half of the loop. Where SLGuiMount pushes DOM state onto widgets, the host adapter reads the widgets back: once per frame it polls each mounted interactive node's widget activation latch (uiWidgetTakeActivated, the same latch SLButton and SLEntry expose) and, when a widget fired, builds the matching SLGuiEvent (CLICK for a button, SUBMIT for an entry, TOGGLE for a toggle — carrying the widget's current text/toggle state as the event value) and dispatches it through the DOM's SLGuiEventBus so the bound onClick/onSubmit/onToggle handlers fire. This is what turns a real user interaction into a SLeeLa event; the DOM stays authoritative for what the event means. Family: gui. The adapter crosses the `ui*` SLVM bridge inbound; dispatch and meaning stay SLeeLa-owned.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
dom | SLGuiDom dom | No description in source. |
mount | SLGuiMount mount | No description in source. |
factory | SLGuiWidgetFactory factory | No description in source. |
tick | int tick | monotonic frame counter stamped onto events |
raisedLast | int raisedLast | events raised on the last poll pass |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init(SLGuiDom document, SLGuiMount mountEngine) | No description in source. |
poll | int poll() | Poll every mounted interactive node once; raise an SLGuiEvent for each that fired since the last poll. Returns the number of events dispatched. |
raiseFor | void raiseFor(SLGuiNode node, int widgetHandle) | Build and dispatch the event a fired widget implies. |
raiseInput | int raiseInput(String nodeId, String text) | Also feed a synthetic input event (per-keystroke) for an entry, used by a host that wants live INPUT handlers in addition to the committed SUBMIT. |
raisedCount | int raisedCount() | No description in source. |
frame | int frame() | No description in source. |
SLGuiHostAdapter #sleela 2.5 (lib/gui/version-military/SLGuiHostAdapter.sleela)
SLGuiHostAdapter class
Defines SLGuiHostAdapter — the toolkit->SLeeLa half of the loop. Where SLGuiMount pushes DOM state onto widgets, the host adapter reads the widgets back: once per frame it polls each mounted interactive node's widget activation latch (uiWidgetTakeActivated, the same latch SLButton and SLEntry expose) and, when a widget fired, builds the matching SLGuiEvent (CLICK for a button, SUBMIT for an entry, TOGGLE for a toggle — carrying the widget's current text/toggle state as the event value) and dispatches it through the DOM's SLGuiEventBus so the bound onClick/onSubmit/onToggle handlers fire. This is what turns a real user interaction into a SLeeLa event; the DOM stays authoritative for what the event means. Family: gui. The adapter crosses the `ui*` SLVM bridge inbound; dispatch and meaning stay SLeeLa-owned.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
dom | SLGuiDom dom | No description in source. |
mount | SLGuiMount mount | No description in source. |
factory | SLGuiWidgetFactory factory | No description in source. |
tick | int tick | monotonic frame counter stamped onto events |
raisedLast | int raisedLast | events raised on the last poll pass |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init(SLGuiDom document, SLGuiMount mountEngine) | No description in source. |
poll | int poll() | Poll every mounted interactive node once; raise an SLGuiEvent for each that fired since the last poll. Returns the number of events dispatched. |
raiseFor | void raiseFor(SLGuiNode node, int widgetHandle) | Build and dispatch the event a fired widget implies. |
raiseInput | int raiseInput(String nodeId, String text) | Also feed a synthetic input event (per-keystroke) for an entry, used by a host that wants live INPUT handlers in addition to the committed SUBMIT. |
raisedCount | int raisedCount() | No description in source. |
frame | int frame() | No description in source. |
SLGuiHostAdapter #sleela 2.5 (lib/gui/version-dual/SLGuiHostAdapter.sleela)
SLGuiHostAdapter class
Defines SLGuiHostAdapter — the toolkit->SLeeLa half of the loop. Where SLGuiMount pushes DOM state onto widgets, the host adapter reads the widgets back: once per frame it polls each mounted interactive node's widget activation latch (uiWidgetTakeActivated, the same latch SLButton and SLEntry expose) and, when a widget fired, builds the matching SLGuiEvent (CLICK for a button, SUBMIT for an entry, TOGGLE for a toggle — carrying the widget's current text/toggle state as the event value) and dispatches it through the DOM's SLGuiEventBus so the bound onClick/onSubmit/onToggle handlers fire. This is what turns a real user interaction into a SLeeLa event; the DOM stays authoritative for what the event means. Family: gui. The adapter crosses the `ui*` SLVM bridge inbound; dispatch and meaning stay SLeeLa-owned.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
dom | SLGuiDom dom | No description in source. |
mount | SLGuiMount mount | No description in source. |
factory | SLGuiWidgetFactory factory | No description in source. |
tick | int tick | monotonic frame counter stamped onto events |
raisedLast | int raisedLast | events raised on the last poll pass |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init(SLGuiDom document, SLGuiMount mountEngine) | No description in source. |
poll | int poll() | Poll every mounted interactive node once; raise an SLGuiEvent for each that fired since the last poll. Returns the number of events dispatched. |
raiseFor | void raiseFor(SLGuiNode node, int widgetHandle) | Build and dispatch the event a fired widget implies. |
raiseInput | int raiseInput(String nodeId, String text) | Also feed a synthetic input event (per-keystroke) for an entry, used by a host that wants live INPUT handlers in addition to the committed SUBMIT. |
raisedCount | int raisedCount() | No description in source. |
frame | int frame() | No description in source. |
SLGuiHtmlRenderer #sleela 2.5 (lib/gui/version-military/SLGuiHtmlRenderer.sleela)
SLGuiHtmlRenderer class
Defines SLGuiHtmlRenderer — the 4.0 HTML renderer surface: a
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
PHASE_IDLE | static final int PHASE_IDLE = 0 | Pipeline phases. |
PHASE_PARSE | static final int PHASE_PARSE = 1 | parsing HTML into a document |
PHASE_STYLE | static final int PHASE_STYLE = 2 | applying CSS |
PHASE_LAYOUT | static final int PHASE_LAYOUT = 3 | computing geometry |
PHASE_SCRIPT | static final int PHASE_SCRIPT = 4 | running JavaScript |
PHASE_PAINT | static final int PHASE_PAINT = 5 | painting |
PHASE_DONE | static final int PHASE_DONE = 6 | No description in source. |
codecs | SLGuiCodecs codecs | the codec registry the renderer consults for media |
cssEnabled | int cssEnabled | Capability/policy settings. 1 = apply author CSS |
jsEnabled | int jsEnabled | 1 = run page JavaScript |
quickResponse | int quickResponse | 1 = paint first meaningful content before full layout |
quickPaintMs | int quickPaintMs | target time-to-first-paint budget (ms), 1..5000 |
jsTimeoutMs | int jsTimeoutMs | per-script budget before the host aborts it, 0..60000 |
incremental | int incremental | 1 = stream/parse incrementally for responsiveness |
phase | int phase | Pipeline state (host-reported progress). |
domNodes | int domNodes | host-reported element count |
styleRules | int styleRules | host-reported CSS rule count |
scriptsRun | int scriptsRun | JS scripts executed |
firstPaintMs | int firstPaintMs | measured time to first paint (0 until painted) |
mediaBlocked | int mediaBlocked | count of media elements refused for missing codec |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
clamp | int clamp(int v, int lo, int hi) | No description in source. |
setCssEnabled | void setCssEnabled(boolean on) | ---- policy ------------------------------------------------------------- |
setJsEnabled | void setJsEnabled(boolean on) | No description in source. |
setQuickResponse | void setQuickResponse(boolean on) | No description in source. |
setQuickPaintMs | void setQuickPaintMs(int ms) | No description in source. |
setJsTimeoutMs | void setJsTimeoutMs(int ms) | No description in source. |
setIncremental | void setIncremental(boolean on) | No description in source. |
cssOn | boolean cssOn() | No description in source. |
jsOn | boolean jsOn() | No description in source. |
quickResponseOn | boolean quickResponseOn() | No description in source. |
getQuickPaintMs | int getQuickPaintMs() | No description in source. |
getJsTimeoutMs | int getJsTimeoutMs() | No description in source. |
codecRegistry | SLGuiCodecs codecRegistry() | No description in source. |
render | void render() | ---- the render pipeline ------------------------------------------------ Begin rendering an HTML document (called by the URL bar on an HTML 200). |
onParsed | void onParsed(int nodeCount) | Host progress callbacks as it works the pipeline. |
onStyled | void onStyled(int ruleCount) | No description in source. |
onFirstPaint | void onFirstPaint(int atMs) | Quick-response fast path: the host reports first meaningful paint early. |
runScript | boolean runScript() | Run one script (gated by jsEnabled); the host enforces jsTimeoutMs. |
onPainted | void onPainted() | No description in source. |
responsive | boolean responsive() | Is first paint within the quick-response budget? (responsiveness check) |
acceptMediaCodec | boolean acceptMediaCodec(String codecName) | ---- codec-aware media gate --------------------------------------------- Before the host builds a media control for a <video>/<audio>/<source>, the renderer asks whether the system can play the named codec. A refused media element increments mediaBlocked so the page can show a graceful fallback. |
acceptMediaExtension | boolean acceptMediaExtension(String ext) | Same, resolved from a source URL/file extension (e.g. ".opus"). |
supportedCodecCount | int supportedCodecCount() | Expose the codec list to the page's capability query (navigator-style). |
canPlayType | boolean canPlayType(String mime) | No description in source. |
getPhase | int getPhase() | ---- readers ------------------------------------------------------------ |
rendering | boolean rendering() | No description in source. |
done | boolean done() | No description in source. |
nodes | int nodes() | No description in source. |
rules | int rules() | No description in source. |
scripts | int scripts() | No description in source. |
firstPaint | int firstPaint() | No description in source. |
blockedMedia | int blockedMedia() | No description in source. |
phaseName | String phaseName() | No description in source. |
honored | boolean honored() | No description in source. |
SLGuiHtmlRenderer #sleela 2.5 (lib/gui/version-dual/SLGuiHtmlRenderer.sleela)
SLGuiHtmlRenderer class
Defines SLGuiHtmlRenderer — the 4.0 HTML renderer surface: a
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
PHASE_IDLE | static final int PHASE_IDLE = 0 | Pipeline phases. |
PHASE_PARSE | static final int PHASE_PARSE = 1 | parsing HTML into a document |
PHASE_STYLE | static final int PHASE_STYLE = 2 | applying CSS |
PHASE_LAYOUT | static final int PHASE_LAYOUT = 3 | computing geometry |
PHASE_SCRIPT | static final int PHASE_SCRIPT = 4 | running JavaScript |
PHASE_PAINT | static final int PHASE_PAINT = 5 | painting |
PHASE_DONE | static final int PHASE_DONE = 6 | No description in source. |
codecs | SLGuiCodecs codecs | the codec registry the renderer consults for media |
cssEnabled | int cssEnabled | Capability/policy settings. 1 = apply author CSS |
jsEnabled | int jsEnabled | 1 = run page JavaScript |
quickResponse | int quickResponse | 1 = paint first meaningful content before full layout |
quickPaintMs | int quickPaintMs | target time-to-first-paint budget (ms), 1..5000 |
jsTimeoutMs | int jsTimeoutMs | per-script budget before the host aborts it, 0..60000 |
incremental | int incremental | 1 = stream/parse incrementally for responsiveness |
phase | int phase | Pipeline state (host-reported progress). |
domNodes | int domNodes | host-reported element count |
styleRules | int styleRules | host-reported CSS rule count |
scriptsRun | int scriptsRun | JS scripts executed |
firstPaintMs | int firstPaintMs | measured time to first paint (0 until painted) |
mediaBlocked | int mediaBlocked | count of media elements refused for missing codec |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
clamp | int clamp(int v, int lo, int hi) | No description in source. |
setCssEnabled | void setCssEnabled(boolean on) | ---- policy ------------------------------------------------------------- |
setJsEnabled | void setJsEnabled(boolean on) | No description in source. |
setQuickResponse | void setQuickResponse(boolean on) | No description in source. |
setQuickPaintMs | void setQuickPaintMs(int ms) | No description in source. |
setJsTimeoutMs | void setJsTimeoutMs(int ms) | No description in source. |
setIncremental | void setIncremental(boolean on) | No description in source. |
cssOn | boolean cssOn() | No description in source. |
jsOn | boolean jsOn() | No description in source. |
quickResponseOn | boolean quickResponseOn() | No description in source. |
getQuickPaintMs | int getQuickPaintMs() | No description in source. |
getJsTimeoutMs | int getJsTimeoutMs() | No description in source. |
codecRegistry | SLGuiCodecs codecRegistry() | No description in source. |
render | void render() | ---- the render pipeline ------------------------------------------------ Begin rendering an HTML document (called by the URL bar on an HTML 200). |
onParsed | void onParsed(int nodeCount) | Host progress callbacks as it works the pipeline. |
onStyled | void onStyled(int ruleCount) | No description in source. |
onFirstPaint | void onFirstPaint(int atMs) | Quick-response fast path: the host reports first meaningful paint early. |
runScript | boolean runScript() | Run one script (gated by jsEnabled); the host enforces jsTimeoutMs. |
onPainted | void onPainted() | No description in source. |
responsive | boolean responsive() | Is first paint within the quick-response budget? (responsiveness check) |
acceptMediaCodec | boolean acceptMediaCodec(String codecName) | ---- codec-aware media gate --------------------------------------------- Before the host builds a media control for a <video>/<audio>/<source>, the renderer asks whether the system can play the named codec. A refused media element increments mediaBlocked so the page can show a graceful fallback. |
acceptMediaExtension | boolean acceptMediaExtension(String ext) | Same, resolved from a source URL/file extension (e.g. ".opus"). |
supportedCodecCount | int supportedCodecCount() | Expose the codec list to the page's capability query (navigator-style). |
canPlayType | boolean canPlayType(String mime) | No description in source. |
getPhase | int getPhase() | ---- readers ------------------------------------------------------------ |
rendering | boolean rendering() | No description in source. |
done | boolean done() | No description in source. |
nodes | int nodes() | No description in source. |
rules | int rules() | No description in source. |
scripts | int scripts() | No description in source. |
firstPaint | int firstPaint() | No description in source. |
blockedMedia | int blockedMedia() | No description in source. |
phaseName | String phaseName() | No description in source. |
honored | boolean honored() | No description in source. |
SLGuiIcon #sleela 2.5 (lib/gui/version-military/SLGuiIcon.sleela)
SLGuiIcon class
Defines SLGuiIcon — a carefully sized, precisely placed icon that can be attached to a button, a menu item, or any clickable component. It carries an asset name, a size TIER (a small set of calm, matched sizes so icons read consistently across the UI rather than at arbitrary pixel sizes), a POSITION relative to the label (leading / trailing / top / icon- only), a gap between icon and label, a tint, and an optical-alignment nudge so an icon sits visually centred (not just geometrically). The point is aesthetic calm: every icon is one of a few matched sizes, placed perfectly for the component it rides on. Family: gui. Attached to a node (via SLGuiIconHost / effects) on buttons, menu items, and clickables; the host paints the asset at the computed rect.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
SIZE_XS | static final int SIZE_XS = 0 | Matched size tiers (px) — a calm, consistent scale, not arbitrary sizes. 12 px (dense toolbars / inline) |
SIZE_SM | static final int SIZE_SM = 1 | 16 px (menu items) |
SIZE_MD | static final int SIZE_MD = 2 | 20 px (standard buttons) |
SIZE_LG | static final int SIZE_LG = 3 | 28 px (primary actions) |
SIZE_XL | static final int SIZE_XL = 4 | 40 px (feature tiles) |
POS_LEADING | static final int POS_LEADING = 0 | Placement of the icon relative to the component's label. before the label (default LTR) |
POS_TRAILING | static final int POS_TRAILING = 1 | after the label |
POS_TOP | static final int POS_TOP = 2 | above the label (stacked) |
POS_ONLY | static final int POS_ONLY = 3 | icon only, no label |
asset | String asset | host-resolvable icon name/path |
sizeTier | int sizeTier | SIZE_* |
position | int position | POS_* |
gapPx | int gapPx | gap between icon and label, 0..24 |
tint | String tint | color tint ("accent"/"#rrggbb"/"" = asset's own color) |
opticalDx | int opticalDx | horizontal optical-centering nudge, -6..6 px |
opticalDy | int opticalDy | vertical optical-centering nudge, -6..6 px |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String iconAsset) | No description in source. |
clamp | int clamp(int v, int lo, int hi) | No description in source. |
setSizeTier | void setSizeTier(int t) | No description in source. |
setPosition | void setPosition(int p) | No description in source. |
setGapPx | void setGapPx(int px) | No description in source. |
setTint | void setTint(String color) | No description in source. |
setOpticalNudge | void setOpticalNudge(int dx, int dy) | Nudge the icon a few px for true optical centering (not just geometric). |
sizePx | int sizePx() | The matched pixel size for the tier. |
asset_ | String asset_() | No description in source. |
hasAsset | boolean hasAsset() | No description in source. |
getSizeTier | int getSizeTier() | No description in source. |
getPosition | int getPosition() | No description in source. |
getGapPx | int getGapPx() | No description in source. |
getTint | String getTint() | No description in source. |
iconOnly | boolean iconOnly() | No description in source. |
positionName | String positionName() | No description in source. |
sizeName | String sizeName() | No description in source. |
toStyle | String toStyle() | Serialize to a node style descriptor the reconciler applies ("icon:..."). |
valid | boolean valid() | No description in source. |
SLGuiIntegration #sleela 2.5 (lib/gui/version-gual/SLGuiIntegration.sleela)
SLGuiIntegration class
Defines SLGuiIntegration — the recommended combined architecture from gui/INTEGRATION.md. The three complementary paths are not mutually exclusive: SLeeLa owns business logic, state transitions, and the meaning of events; Java owns Swing/JavaFX presentation and desktop lifecycle; the native bridge provides a stable low-level boundary to the C/C++ core.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
PATH_JAVA_HOST | int PATH_JAVA_HOST = 1 | Path 1: Java host -> SLeeLa business logic |
PATH_SLEELA_INTENT | int PATH_SLEELA_INTENT = 2 | Path 2: SLeeLa intent -> Java GUI |
PATH_NATIVE_ABI | int PATH_NATIVE_ABI = 3 | Path 3: shared native ABI bridge |
path1 | int path1 | enabled flags for the three paths |
path2 | int path2 | No description in source. |
path3 | int path3 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
enableJavaHost | void enableJavaHost() | No description in source. |
enableSleelaIntent | void enableSleelaIntent() | No description in source. |
enableNativeAbi | void enableNativeAbi() | No description in source. |
javaHost | boolean javaHost() | No description in source. |
sleelaIntent | boolean sleelaIntent() | No description in source. |
nativeAbi | boolean nativeAbi() | No description in source. |
recommended | boolean recommended() | The preferred long-term architecture uses all three layers. |
enabledPaths | int enabledPaths() | No description in source. |
businessLogicOwner | String businessLogicOwner() | Who owns business logic in this posture (always SLeeLa, by contract). |
presentationOwner | String presentationOwner() | Who owns presentation / desktop lifecycle. |
nativeBoundaryOwner | String nativeBoundaryOwner() | Who owns the low-level boundary to the execution core. |
SLGuiIntegration #sleela 2.5 (lib/gui/version-mual/SLGuiIntegration.sleela)
SLGuiIntegration class
Defines SLGuiIntegration — the recommended combined architecture from gui/INTEGRATION.md. The three complementary paths are not mutually exclusive: SLeeLa owns business logic, state transitions, and the meaning of events; Java owns Swing/JavaFX presentation and desktop lifecycle; the native bridge provides a stable low-level boundary to the C/C++ core.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
PATH_JAVA_HOST | int PATH_JAVA_HOST = 1 | Path 1: Java host -> SLeeLa business logic |
PATH_SLEELA_INTENT | int PATH_SLEELA_INTENT = 2 | Path 2: SLeeLa intent -> Java GUI |
PATH_NATIVE_ABI | int PATH_NATIVE_ABI = 3 | Path 3: shared native ABI bridge |
path1 | int path1 | enabled flags for the three paths |
path2 | int path2 | No description in source. |
path3 | int path3 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
enableJavaHost | void enableJavaHost() | No description in source. |
enableSleelaIntent | void enableSleelaIntent() | No description in source. |
enableNativeAbi | void enableNativeAbi() | No description in source. |
javaHost | boolean javaHost() | No description in source. |
sleelaIntent | boolean sleelaIntent() | No description in source. |
nativeAbi | boolean nativeAbi() | No description in source. |
recommended | boolean recommended() | The preferred long-term architecture uses all three layers. |
enabledPaths | int enabledPaths() | No description in source. |
businessLogicOwner | String businessLogicOwner() | Who owns business logic in this posture (always SLeeLa, by contract). |
presentationOwner | String presentationOwner() | Who owns presentation / desktop lifecycle. |
nativeBoundaryOwner | String nativeBoundaryOwner() | Who owns the low-level boundary to the execution core. |
SLGuiIntegration #sleela 2.5 (lib/gui/version-thual/SLGuiIntegration.sleela)
SLGuiIntegration class
Defines SLGuiIntegration — the recommended combined architecture from gui/INTEGRATION.md. The three complementary paths are not mutually exclusive: SLeeLa owns business logic, state transitions, and the meaning of events; Java owns Swing/JavaFX presentation and desktop lifecycle; the native bridge provides a stable low-level boundary to the C/C++ core.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
PATH_JAVA_HOST | int PATH_JAVA_HOST = 1 | Path 1: Java host -> SLeeLa business logic |
PATH_SLEELA_INTENT | int PATH_SLEELA_INTENT = 2 | Path 2: SLeeLa intent -> Java GUI |
PATH_NATIVE_ABI | int PATH_NATIVE_ABI = 3 | Path 3: shared native ABI bridge |
path1 | int path1 | enabled flags for the three paths |
path2 | int path2 | No description in source. |
path3 | int path3 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
enableJavaHost | void enableJavaHost() | No description in source. |
enableSleelaIntent | void enableSleelaIntent() | No description in source. |
enableNativeAbi | void enableNativeAbi() | No description in source. |
javaHost | boolean javaHost() | No description in source. |
sleelaIntent | boolean sleelaIntent() | No description in source. |
nativeAbi | boolean nativeAbi() | No description in source. |
recommended | boolean recommended() | The preferred long-term architecture uses all three layers. |
enabledPaths | int enabledPaths() | No description in source. |
businessLogicOwner | String businessLogicOwner() | Who owns business logic in this posture (always SLeeLa, by contract). |
presentationOwner | String presentationOwner() | Who owns presentation / desktop lifecycle. |
nativeBoundaryOwner | String nativeBoundaryOwner() | Who owns the low-level boundary to the execution core. |
SLGuiIntegration #sleela 2.5 (lib/gui/version-military/SLGuiIntegration.sleela)
SLGuiIntegration class
Defines SLGuiIntegration — the recommended combined architecture from gui/INTEGRATION.md. The three complementary paths are not mutually exclusive: SLeeLa owns business logic, state transitions, and the meaning of events; Java owns Swing/JavaFX presentation and desktop lifecycle; the native bridge provides a stable low-level boundary to the C/C++ core.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
PATH_JAVA_HOST | int PATH_JAVA_HOST = 1 | Path 1: Java host -> SLeeLa business logic |
PATH_SLEELA_INTENT | int PATH_SLEELA_INTENT = 2 | Path 2: SLeeLa intent -> Java GUI |
PATH_NATIVE_ABI | int PATH_NATIVE_ABI = 3 | Path 3: shared native ABI bridge |
path1 | int path1 | enabled flags for the three paths |
path2 | int path2 | No description in source. |
path3 | int path3 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
enableJavaHost | void enableJavaHost() | No description in source. |
enableSleelaIntent | void enableSleelaIntent() | No description in source. |
enableNativeAbi | void enableNativeAbi() | No description in source. |
javaHost | boolean javaHost() | No description in source. |
sleelaIntent | boolean sleelaIntent() | No description in source. |
nativeAbi | boolean nativeAbi() | No description in source. |
recommended | boolean recommended() | The preferred long-term architecture uses all three layers. |
enabledPaths | int enabledPaths() | No description in source. |
businessLogicOwner | String businessLogicOwner() | Who owns business logic in this posture (always SLeeLa, by contract). |
presentationOwner | String presentationOwner() | Who owns presentation / desktop lifecycle. |
nativeBoundaryOwner | String nativeBoundaryOwner() | Who owns the low-level boundary to the execution core. |
SLGuiIntegration #sleela 2.5 (lib/gui/version-dual/SLGuiIntegration.sleela)
SLGuiIntegration class
Defines SLGuiIntegration — the recommended combined architecture from gui/INTEGRATION.md. The three complementary paths are not mutually exclusive: SLeeLa owns business logic, state transitions, and the meaning of events; Java owns Swing/JavaFX presentation and desktop lifecycle; the native bridge provides a stable low-level boundary to the C/C++ core.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
PATH_JAVA_HOST | int PATH_JAVA_HOST = 1 | Path 1: Java host -> SLeeLa business logic |
PATH_SLEELA_INTENT | int PATH_SLEELA_INTENT = 2 | Path 2: SLeeLa intent -> Java GUI |
PATH_NATIVE_ABI | int PATH_NATIVE_ABI = 3 | Path 3: shared native ABI bridge |
path1 | int path1 | enabled flags for the three paths |
path2 | int path2 | No description in source. |
path3 | int path3 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
enableJavaHost | void enableJavaHost() | No description in source. |
enableSleelaIntent | void enableSleelaIntent() | No description in source. |
enableNativeAbi | void enableNativeAbi() | No description in source. |
javaHost | boolean javaHost() | No description in source. |
sleelaIntent | boolean sleelaIntent() | No description in source. |
nativeAbi | boolean nativeAbi() | No description in source. |
recommended | boolean recommended() | The preferred long-term architecture uses all three layers. |
enabledPaths | int enabledPaths() | No description in source. |
businessLogicOwner | String businessLogicOwner() | Who owns business logic in this posture (always SLeeLa, by contract). |
presentationOwner | String presentationOwner() | Who owns presentation / desktop lifecycle. |
nativeBoundaryOwner | String nativeBoundaryOwner() | Who owns the low-level boundary to the execution core. |
SLGuiKind #sleela 2.5 (lib/gui/version-military/SLGuiKind.sleela)
SLGuiKind class
Defines SLGuiKind — the explicit CONTAINER vs COMPONENT taxonomy for the military GUI line. Every node tag is classified as either a CONTAINER (it holds and lays out children — window, box, frame, header, status, grid) or a COMPONENT (a leaf control the user interacts with or reads — button, label, entry, toggle, recorder, video, urlbar, circle, canvas, html, crypto selector, certificate store, menu item). It also states which kinds may carry an ICON (buttons, menu items, and clickable components), so icons are only offered where they belong. This makes the distinction a first-class, queryable fact rather than something implied by the widget factory's construction branch. Family: gui. Pure classification; consulted by the factory, mount, and the icon system to decide layout role and icon eligibility.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
KIND_UNKNOWN | static final int KIND_UNKNOWN = 0 | No description in source. |
KIND_CONTAINER | static final int KIND_CONTAINER = 1 | holds + lays out children |
KIND_COMPONENT | static final int KIND_COMPONENT = 2 | a leaf control |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
kindOf | int kindOf(String tag) | Classify a tag as a container or a component. |
isContainer | boolean isContainer(String tag) | No description in source. |
isComponent | boolean isComponent(String tag) | No description in source. |
isClickable | boolean isClickable(String tag) | Interactive = a component the user activates (not a static label/spacer). |
iconEligible | boolean iconEligible(String tag) | Icons are allowed on buttons, menu items, and clickable components. |
kindName | String kindName(int kind) | No description in source. |
describe | String describe(String tag) | No description in source. |
SLGuiLayout #sleela 2.5 (lib/gui/version-military/SLGuiLayout.sleela)
SLGuiLayout class
Defines SLGuiLayout — the 4.0 layout + exact-positioning surface. It lets a component be placed EXACTLY (absolute x/y/width/height in px) or be governed by a layout MODE (flow / grid / anchor / dock) with alignment, padding, and inter-child gap. It also carries anchor edges (left/top/right/ bottom) and a dock side so a child tracks its parent's resize predictably. SLeeLa declares the geometry intent precisely; the host realises it on the toolkit. Every value is validated/clamped; honored() checks consistency. Family: gui. Attached to a node (or a container) to drive placement; read by SLGuiMount when it positions the widget.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MODE_FLOW | static final int MODE_FLOW = 0 | Layout mode for a container's children. pack children in order (box-like) |
MODE_GRID | static final int MODE_GRID = 1 | rows x cols grid |
MODE_ANCHOR | static final int MODE_ANCHOR = 2 | anchor edges to the parent |
MODE_ABSOLUTE | static final int MODE_ABSOLUTE = 3 | exact x/y/w/h, no auto layout |
MODE_DOCK | static final int MODE_DOCK = 4 | dock to a parent side |
ALIGN_START | static final int ALIGN_START = 0 | Alignment within the available space. |
ALIGN_CENTER | static final int ALIGN_CENTER = 1 | No description in source. |
ALIGN_END | static final int ALIGN_END = 2 | No description in source. |
ALIGN_STRETCH | static final int ALIGN_STRETCH= 3 | No description in source. |
DOCK_NONE | static final int DOCK_NONE = 0 | Dock sides. |
DOCK_LEFT | static final int DOCK_LEFT = 1; static final int DOCK_TOP = 2 | No description in source. |
DOCK_RIGHT | static final int DOCK_RIGHT = 3; static final int DOCK_BOTTOM = 4 | No description in source. |
DOCK_FILL | static final int DOCK_FILL = 5 | No description in source. |
mode | int mode | No description in source. |
gapPx | int gapPx | gap between children, 0..256 |
dock | int dock | DOCK_* for MODE_DOCK |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
clamp | int clamp(int v, int lo, int hi) | No description in source. |
placeExact | void placeExact(int px, int py, int w, int h) | ---- exact positioning -------------------------------------------------- Place a component exactly (switches the mode to ABSOLUTE). |
moveTo | void moveTo(int px, int py) | No description in source. |
resizeTo | void resizeTo(int w, int h) | No description in source. |
getX | int getX() | No description in source. |
getY | int getY() | No description in source. |
getWidth | int getWidth() | No description in source. |
getHeight | int getHeight() | No description in source. |
flow | void flow(int horizontalAlign, int verticalAlign) | ---- layout modes ------------------------------------------------------- |
grid | void grid(int r, int c) | No description in source. |
anchor | void anchor(boolean left, boolean top, boolean right, boolean bottom) | No description in source. |
dockTo | void dockTo(int side) | No description in source. |
validAlign | int validAlign(int a) | No description in source. |
setGap | void setGap(int px) | ---- spacing ------------------------------------------------------------ |
setPadding | void setPadding(int l, int t, int r, int b) | No description in source. |
setPaddingAll | void setPaddingAll(int p) | No description in source. |
getMode | int getMode() | ---- readers ------------------------------------------------------------ |
getRows | int getRows() | No description in source. |
getCols | int getCols() | No description in source. |
getGap | int getGap() | No description in source. |
getAlignH | int getAlignH() | No description in source. |
getAlignV | int getAlignV() | No description in source. |
getDock | int getDock() | No description in source. |
absolute | boolean absolute() | No description in source. |
modeName | String modeName() | No description in source. |
toStyle | String toStyle() | Serialize to a style descriptor the reconciler applies ("layout:..."). |
honored | boolean honored() | No description in source. |
SLGuiLayout #sleela 2.5 (lib/gui/version-dual/SLGuiLayout.sleela)
SLGuiLayout class
Defines SLGuiLayout — the 4.0 layout + exact-positioning surface. It lets a component be placed EXACTLY (absolute x/y/width/height in px) or be governed by a layout MODE (flow / grid / anchor / dock) with alignment, padding, and inter-child gap. It also carries anchor edges (left/top/right/ bottom) and a dock side so a child tracks its parent's resize predictably. SLeeLa declares the geometry intent precisely; the host realises it on the toolkit. Every value is validated/clamped; honored() checks consistency. Family: gui. Attached to a node (or a container) to drive placement; read by SLGuiMount when it positions the widget.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MODE_FLOW | static final int MODE_FLOW = 0 | Layout mode for a container's children. pack children in order (box-like) |
MODE_GRID | static final int MODE_GRID = 1 | rows x cols grid |
MODE_ANCHOR | static final int MODE_ANCHOR = 2 | anchor edges to the parent |
MODE_ABSOLUTE | static final int MODE_ABSOLUTE = 3 | exact x/y/w/h, no auto layout |
MODE_DOCK | static final int MODE_DOCK = 4 | dock to a parent side |
ALIGN_START | static final int ALIGN_START = 0 | Alignment within the available space. |
ALIGN_CENTER | static final int ALIGN_CENTER = 1 | No description in source. |
ALIGN_END | static final int ALIGN_END = 2 | No description in source. |
ALIGN_STRETCH | static final int ALIGN_STRETCH= 3 | No description in source. |
DOCK_NONE | static final int DOCK_NONE = 0 | Dock sides. |
DOCK_LEFT | static final int DOCK_LEFT = 1; static final int DOCK_TOP = 2 | No description in source. |
DOCK_RIGHT | static final int DOCK_RIGHT = 3; static final int DOCK_BOTTOM = 4 | No description in source. |
DOCK_FILL | static final int DOCK_FILL = 5 | No description in source. |
mode | int mode | No description in source. |
gapPx | int gapPx | gap between children, 0..256 |
dock | int dock | DOCK_* for MODE_DOCK |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | No description in source. |
clamp | int clamp(int v, int lo, int hi) | No description in source. |
placeExact | void placeExact(int px, int py, int w, int h) | ---- exact positioning -------------------------------------------------- Place a component exactly (switches the mode to ABSOLUTE). |
moveTo | void moveTo(int px, int py) | No description in source. |
resizeTo | void resizeTo(int w, int h) | No description in source. |
getX | int getX() | No description in source. |
getY | int getY() | No description in source. |
getWidth | int getWidth() | No description in source. |
getHeight | int getHeight() | No description in source. |
flow | void flow(int horizontalAlign, int verticalAlign) | ---- layout modes ------------------------------------------------------- |
grid | void grid(int r, int c) | No description in source. |
anchor | void anchor(boolean left, boolean top, boolean right, boolean bottom) | No description in source. |
dockTo | void dockTo(int side) | No description in source. |
validAlign | int validAlign(int a) | No description in source. |
setGap | void setGap(int px) | ---- spacing ------------------------------------------------------------ |
setPadding | void setPadding(int l, int t, int r, int b) | No description in source. |
setPaddingAll | void setPaddingAll(int p) | No description in source. |
getMode | int getMode() | ---- readers ------------------------------------------------------------ |
getRows | int getRows() | No description in source. |
getCols | int getCols() | No description in source. |
getGap | int getGap() | No description in source. |
getAlignH | int getAlignH() | No description in source. |
getAlignV | int getAlignV() | No description in source. |
getDock | int getDock() | No description in source. |
absolute | boolean absolute() | No description in source. |
modeName | String modeName() | No description in source. |
toStyle | String toStyle() | Serialize to a style descriptor the reconciler applies ("layout:..."). |
honored | boolean honored() | No description in source. |
SLGuiMenu #sleela 2.5 (lib/gui/version-gual/SLGuiMenu.sleela)
SLGuiMenu class
SLGuiMenu Menu state model with stable action names and predictable dismissal.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
id | String id | No description in source. |
label | String label | No description in source. |
itemCount | int itemCount | No description in source. |
visible | int visible | No description in source. |
opened | int opened | No description in source. |
activeIndex | int activeIndex | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String menuId, String menuLabel) | No description in source. |
getId | String getId() | No description in source. |
getLabel | String getLabel() | No description in source. |
setItemCount | void setItemCount(int count) | No description in source. |
count | int count() | No description in source. |
setVisible | void setVisible(boolean value) | No description in source. |
isVisible | boolean isVisible() | No description in source. |
open | void open() | No description in source. |
dismiss | void dismiss() | No description in source. |
isOpen | boolean isOpen() | No description in source. |
move | void move(int direction) | No description in source. |
selectedIndex | int selectedIndex() | No description in source. |
select | boolean select(int index) | No description in source. |
SLGuiMenu #sleela 2.5 (lib/gui/version-mual/SLGuiMenu.sleela)
SLGuiMenu class
SLGuiMenu Menu state model with stable action names and predictable dismissal.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
id | String id | No description in source. |
label | String label | No description in source. |
itemCount | int itemCount | No description in source. |
visible | int visible | No description in source. |
opened | int opened | No description in source. |
activeIndex | int activeIndex | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String menuId, String menuLabel) | No description in source. |
getId | String getId() | No description in source. |
getLabel | String getLabel() | No description in source. |
setItemCount | void setItemCount(int count) | No description in source. |
count | int count() | No description in source. |
setVisible | void setVisible(boolean value) | No description in source. |
isVisible | boolean isVisible() | No description in source. |
open | void open() | No description in source. |
dismiss | void dismiss() | No description in source. |
isOpen | boolean isOpen() | No description in source. |
move | void move(int direction) | No description in source. |
selectedIndex | int selectedIndex() | No description in source. |
select | boolean select(int index) | No description in source. |
SLGuiMenu #sleela 2.5 (lib/gui/version-thual/SLGuiMenu.sleela)
SLGuiMenu class
SLGuiMenu Menu state model with stable action names and predictable dismissal.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
id | String id | No description in source. |
label | String label | No description in source. |
itemCount | int itemCount | No description in source. |
visible | int visible | No description in source. |
opened | int opened | No description in source. |
activeIndex | int activeIndex | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String menuId, String menuLabel) | No description in source. |
getId | String getId() | No description in source. |
getLabel | String getLabel() | No description in source. |
setItemCount | void setItemCount(int count) | No description in source. |
count | int count() | No description in source. |
setVisible | void setVisible(boolean value) | No description in source. |
isVisible | boolean isVisible() | No description in source. |
open | void open() | No description in source. |
dismiss | void dismiss() | No description in source. |
isOpen | boolean isOpen() | No description in source. |
move | void move(int direction) | No description in source. |
selectedIndex | int selectedIndex() | No description in source. |
select | boolean select(int index) | No description in source. |
SLGuiMenu #sleela 2.5 (lib/gui/version-military/SLGuiMenu.sleela)
SLGuiMenu class
SLGuiMenu Menu state model with stable action names and predictable dismissal.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
id | String id | No description in source. |
label | String label | No description in source. |
itemCount | int itemCount | No description in source. |
visible | int visible | No description in source. |
opened | int opened | No description in source. |
activeIndex | int activeIndex | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String menuId, String menuLabel) | No description in source. |
getId | String getId() | No description in source. |
getLabel | String getLabel() | No description in source. |
setItemCount | void setItemCount(int count) | No description in source. |
count | int count() | No description in source. |
setVisible | void setVisible(boolean value) | No description in source. |
isVisible | boolean isVisible() | No description in source. |
open | void open() | No description in source. |
dismiss | void dismiss() | No description in source. |
isOpen | boolean isOpen() | No description in source. |
move | void move(int direction) | No description in source. |
selectedIndex | int selectedIndex() | No description in source. |
select | boolean select(int index) | No description in source. |
SLGuiMenu #sleela 2.5 (lib/gui/version-dual/SLGuiMenu.sleela)
SLGuiMenu class
SLGuiMenu Menu state model with stable action names and predictable dismissal.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
id | String id | No description in source. |
label | String label | No description in source. |
itemCount | int itemCount | No description in source. |
visible | int visible | No description in source. |
opened | int opened | No description in source. |
activeIndex | int activeIndex | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String menuId, String menuLabel) | No description in source. |
getId | String getId() | No description in source. |
getLabel | String getLabel() | No description in source. |
setItemCount | void setItemCount(int count) | No description in source. |
count | int count() | No description in source. |
setVisible | void setVisible(boolean value) | No description in source. |
isVisible | boolean isVisible() | No description in source. |
open | void open() | No description in source. |
dismiss | void dismiss() | No description in source. |
isOpen | boolean isOpen() | No description in source. |
move | void move(int direction) | No description in source. |
selectedIndex | int selectedIndex() | No description in source. |
select | boolean select(int index) | No description in source. |
SLGuiMenuBar #sleela 2.5 (lib/gui/version-gual/SLGuiMenuBar.sleela)
SLGuiMenuBar class
SLGuiMenuBar Toolkit-neutral menu-bar model. Rendering belongs to the selected GUI host.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
BACKGROUND_COLOR | static final String BACKGROUND_COLOR = "#2b2f32" | Shared menu-bar base colour used by the GUI host. |
name | String name | No description in source. |
menuCount | int menuCount | No description in source. |
visible | int visible | No description in source. |
focused | int focused | No description in source. |
openedIndex | int openedIndex | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String id) | No description in source. |
getName | String getName() | No description in source. |
setMenuCount | void setMenuCount(int count) | No description in source. |
count | int count() | No description in source. |
setVisible | void setVisible(boolean value) | No description in source. |
isVisible | boolean isVisible() | No description in source. |
focus | void focus() | No description in source. |
blur | void blur() | No description in source. |
hasFocus | boolean hasFocus() | No description in source. |
open | void open(int index) | No description in source. |
close | void close() | No description in source. |
isOpen | boolean isOpen() | No description in source. |
activeIndex | int activeIndex() | No description in source. |
toggle | void toggle(int index) | No description in source. |
dismissIfOutside | boolean dismissIfOutside(boolean pointerInsideMenuRegion) | No description in source. |
escape | boolean escape() | Escape dismisses the popup and restores the menu bar's focus state. |
activated | void activated() | A successful ordinary menu-item activation closes the popup. |
navigate | void navigate(int direction) | No description in source. |
next | void next(int direction) | No description in source. |
SLGuiMenuBar #sleela 2.5 (lib/gui/version-mual/SLGuiMenuBar.sleela)
SLGuiMenuBar class
SLGuiMenuBar Toolkit-neutral menu-bar model. Rendering belongs to the selected GUI host.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
BACKGROUND_COLOR | static final String BACKGROUND_COLOR = "#2b2f32" | Shared menu-bar base colour used by the GUI host. |
name | String name | No description in source. |
menuCount | int menuCount | No description in source. |
visible | int visible | No description in source. |
focused | int focused | No description in source. |
openedIndex | int openedIndex | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String id) | No description in source. |
getName | String getName() | No description in source. |
setMenuCount | void setMenuCount(int count) | No description in source. |
count | int count() | No description in source. |
setVisible | void setVisible(boolean value) | No description in source. |
isVisible | boolean isVisible() | No description in source. |
focus | void focus() | No description in source. |
blur | void blur() | No description in source. |
hasFocus | boolean hasFocus() | No description in source. |
open | void open(int index) | No description in source. |
close | void close() | No description in source. |
isOpen | boolean isOpen() | No description in source. |
activeIndex | int activeIndex() | No description in source. |
toggle | void toggle(int index) | No description in source. |
dismissIfOutside | boolean dismissIfOutside(boolean pointerInsideMenuRegion) | No description in source. |
escape | boolean escape() | Escape dismisses the popup and restores the menu bar's focus state. |
activated | void activated() | A successful ordinary menu-item activation closes the popup. |
navigate | void navigate(int direction) | No description in source. |
next | void next(int direction) | No description in source. |
SLGuiMenuBar #sleela 2.5 (lib/gui/version-thual/SLGuiMenuBar.sleela)
SLGuiMenuBar class
SLGuiMenuBar Toolkit-neutral menu-bar model. Rendering belongs to the selected GUI host.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
BACKGROUND_COLOR | static final String BACKGROUND_COLOR = "#2b2f32" | Shared menu-bar base colour used by the GUI host. |
name | String name | No description in source. |
menuCount | int menuCount | No description in source. |
visible | int visible | No description in source. |
focused | int focused | No description in source. |
openedIndex | int openedIndex | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String id) | No description in source. |
getName | String getName() | No description in source. |
setMenuCount | void setMenuCount(int count) | No description in source. |
count | int count() | No description in source. |
setVisible | void setVisible(boolean value) | No description in source. |
isVisible | boolean isVisible() | No description in source. |
focus | void focus() | No description in source. |
blur | void blur() | No description in source. |
hasFocus | boolean hasFocus() | No description in source. |
open | void open(int index) | No description in source. |
close | void close() | No description in source. |
isOpen | boolean isOpen() | No description in source. |
activeIndex | int activeIndex() | No description in source. |
toggle | void toggle(int index) | No description in source. |
dismissIfOutside | boolean dismissIfOutside(boolean pointerInsideMenuRegion) | No description in source. |
escape | boolean escape() | Escape dismisses the popup and restores the menu bar's focus state. |
activated | void activated() | A successful ordinary menu-item activation closes the popup. |
navigate | void navigate(int direction) | No description in source. |
next | void next(int direction) | No description in source. |
SLGuiMenuBar #sleela 2.5 (lib/gui/version-military/SLGuiMenuBar.sleela)
SLGuiMenuBar class
SLGuiMenuBar Toolkit-neutral menu-bar model. Rendering belongs to the selected GUI host.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
BACKGROUND_COLOR | static final String BACKGROUND_COLOR = "#2b2f32" | Shared menu-bar base colour used by the GUI host. |
name | String name | No description in source. |
menuCount | int menuCount | No description in source. |
visible | int visible | No description in source. |
focused | int focused | No description in source. |
openedIndex | int openedIndex | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String id) | No description in source. |
getName | String getName() | No description in source. |
setMenuCount | void setMenuCount(int count) | No description in source. |
count | int count() | No description in source. |
setVisible | void setVisible(boolean value) | No description in source. |
isVisible | boolean isVisible() | No description in source. |
focus | void focus() | No description in source. |
blur | void blur() | No description in source. |
hasFocus | boolean hasFocus() | No description in source. |
open | void open(int index) | No description in source. |
close | void close() | No description in source. |
isOpen | boolean isOpen() | No description in source. |
activeIndex | int activeIndex() | No description in source. |
toggle | void toggle(int index) | No description in source. |
dismissIfOutside | boolean dismissIfOutside(boolean pointerInsideMenuRegion) | No description in source. |
escape | boolean escape() | Escape dismisses the popup and restores the menu bar's focus state. |
activated | void activated() | A successful ordinary menu-item activation closes the popup. |
navigate | void navigate(int direction) | No description in source. |
next | void next(int direction) | No description in source. |
SLGuiMenuBar #sleela 2.5 (lib/gui/version-dual/SLGuiMenuBar.sleela)
SLGuiMenuBar class
SLGuiMenuBar Toolkit-neutral menu-bar model. Rendering belongs to the selected GUI host.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
BACKGROUND_COLOR | static final String BACKGROUND_COLOR = "#2b2f32" | Shared menu-bar base colour used by the GUI host. |
name | String name | No description in source. |
menuCount | int menuCount | No description in source. |
visible | int visible | No description in source. |
focused | int focused | No description in source. |
openedIndex | int openedIndex | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String id) | No description in source. |
getName | String getName() | No description in source. |
setMenuCount | void setMenuCount(int count) | No description in source. |
count | int count() | No description in source. |
setVisible | void setVisible(boolean value) | No description in source. |
isVisible | boolean isVisible() | No description in source. |
focus | void focus() | No description in source. |
blur | void blur() | No description in source. |
hasFocus | boolean hasFocus() | No description in source. |
open | void open(int index) | No description in source. |
close | void close() | No description in source. |
isOpen | boolean isOpen() | No description in source. |
activeIndex | int activeIndex() | No description in source. |
toggle | void toggle(int index) | No description in source. |
dismissIfOutside | boolean dismissIfOutside(boolean pointerInsideMenuRegion) | No description in source. |
escape | boolean escape() | Escape dismisses the popup and restores the menu bar's focus state. |
activated | void activated() | A successful ordinary menu-item activation closes the popup. |
navigate | void navigate(int direction) | No description in source. |
next | void next(int direction) | No description in source. |
SLGuiMenuItem #sleela 2.5 (lib/gui/version-gual/SLGuiMenuItem.sleela)
SLGuiMenuItem class
SLGuiMenuItem A menu entry binds presentation state to a named SLGuiAction operation.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
id | String id | No description in source. |
label | String label | No description in source. |
actionName | String actionName | No description in source. |
operation | String operation | No description in source. |
shortcut | String shortcut | No description in source. |
iconName | String iconName | No description in source. |
enabled | int enabled | No description in source. |
checked | int checked | No description in source. |
checkable | int checkable | No description in source. |
separator | int separator | No description in source. |
pending | int pending | No description in source. |
activationCount | int activationCount | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String itemId, String itemLabel, String action, String op) | No description in source. |
getId | String getId() | No description in source. |
getLabel | String getLabel() | No description in source. |
getActionName | String getActionName() | No description in source. |
getOperation | String getOperation() | No description in source. |
setShortcut | void setShortcut(String value) | No description in source. |
getShortcut | String getShortcut() | No description in source. |
setIcon | void setIcon(String value) | No description in source. |
getIcon | String getIcon() | No description in source. |
setEnabled | void setEnabled(boolean value) | No description in source. |
isEnabled | boolean isEnabled() | No description in source. |
setCheckable | void setCheckable(boolean value) | No description in source. |
isCheckable | boolean isCheckable() | No description in source. |
setChecked | void setChecked(boolean value) | No description in source. |
isChecked | boolean isChecked() | No description in source. |
makeSeparator | void makeSeparator() | No description in source. |
isSeparator | boolean isSeparator() | No description in source. |
activate | boolean activate() | No description in source. |
takeActivation | boolean takeActivation() | No description in source. |
activations | int activations() | No description in source. |
SLGuiMenuItem #sleela 2.5 (lib/gui/version-mual/SLGuiMenuItem.sleela)
SLGuiMenuItem class
SLGuiMenuItem A menu entry binds presentation state to a named SLGuiAction operation.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
id | String id | No description in source. |
label | String label | No description in source. |
actionName | String actionName | No description in source. |
operation | String operation | No description in source. |
shortcut | String shortcut | No description in source. |
iconName | String iconName | No description in source. |
enabled | int enabled | No description in source. |
checked | int checked | No description in source. |
checkable | int checkable | No description in source. |
separator | int separator | No description in source. |
pending | int pending | No description in source. |
activationCount | int activationCount | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String itemId, String itemLabel, String action, String op) | No description in source. |
getId | String getId() | No description in source. |
getLabel | String getLabel() | No description in source. |
getActionName | String getActionName() | No description in source. |
getOperation | String getOperation() | No description in source. |
setShortcut | void setShortcut(String value) | No description in source. |
getShortcut | String getShortcut() | No description in source. |
setIcon | void setIcon(String value) | No description in source. |
getIcon | String getIcon() | No description in source. |
setEnabled | void setEnabled(boolean value) | No description in source. |
isEnabled | boolean isEnabled() | No description in source. |
setCheckable | void setCheckable(boolean value) | No description in source. |
isCheckable | boolean isCheckable() | No description in source. |
setChecked | void setChecked(boolean value) | No description in source. |
isChecked | boolean isChecked() | No description in source. |
makeSeparator | void makeSeparator() | No description in source. |
isSeparator | boolean isSeparator() | No description in source. |
activate | boolean activate() | No description in source. |
takeActivation | boolean takeActivation() | No description in source. |
activations | int activations() | No description in source. |
SLGuiMenuItem #sleela 2.5 (lib/gui/version-thual/SLGuiMenuItem.sleela)
SLGuiMenuItem class
SLGuiMenuItem A menu entry binds presentation state to a named SLGuiAction operation.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
id | String id | No description in source. |
label | String label | No description in source. |
actionName | String actionName | No description in source. |
operation | String operation | No description in source. |
shortcut | String shortcut | No description in source. |
iconName | String iconName | No description in source. |
enabled | int enabled | No description in source. |
checked | int checked | No description in source. |
checkable | int checkable | No description in source. |
separator | int separator | No description in source. |
pending | int pending | No description in source. |
activationCount | int activationCount | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String itemId, String itemLabel, String action, String op) | No description in source. |
getId | String getId() | No description in source. |
getLabel | String getLabel() | No description in source. |
getActionName | String getActionName() | No description in source. |
getOperation | String getOperation() | No description in source. |
setShortcut | void setShortcut(String value) | No description in source. |
getShortcut | String getShortcut() | No description in source. |
setIcon | void setIcon(String value) | No description in source. |
getIcon | String getIcon() | No description in source. |
setEnabled | void setEnabled(boolean value) | No description in source. |
isEnabled | boolean isEnabled() | No description in source. |
setCheckable | void setCheckable(boolean value) | No description in source. |
isCheckable | boolean isCheckable() | No description in source. |
setChecked | void setChecked(boolean value) | No description in source. |
isChecked | boolean isChecked() | No description in source. |
makeSeparator | void makeSeparator() | No description in source. |
isSeparator | boolean isSeparator() | No description in source. |
activate | boolean activate() | No description in source. |
takeActivation | boolean takeActivation() | No description in source. |
activations | int activations() | No description in source. |
SLGuiMenuItem #sleela 2.5 (lib/gui/version-military/SLGuiMenuItem.sleela)
SLGuiMenuItem class
SLGuiMenuItem A menu entry binds presentation state to a named SLGuiAction operation.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
id | String id | No description in source. |
label | String label | No description in source. |
actionName | String actionName | No description in source. |
operation | String operation | No description in source. |
shortcut | String shortcut | No description in source. |
iconName | String iconName | No description in source. |
enabled | int enabled | No description in source. |
checked | int checked | No description in source. |
checkable | int checkable | No description in source. |
separator | int separator | No description in source. |
pending | int pending | No description in source. |
activationCount | int activationCount | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String itemId, String itemLabel, String action, String op) | No description in source. |
getId | String getId() | No description in source. |
getLabel | String getLabel() | No description in source. |
getActionName | String getActionName() | No description in source. |
getOperation | String getOperation() | No description in source. |
setShortcut | void setShortcut(String value) | No description in source. |
getShortcut | String getShortcut() | No description in source. |
setIcon | void setIcon(String value) | No description in source. |
getIcon | String getIcon() | No description in source. |
setEnabled | void setEnabled(boolean value) | No description in source. |
isEnabled | boolean isEnabled() | No description in source. |
setCheckable | void setCheckable(boolean value) | No description in source. |
isCheckable | boolean isCheckable() | No description in source. |
setChecked | void setChecked(boolean value) | No description in source. |
isChecked | boolean isChecked() | No description in source. |
makeSeparator | void makeSeparator() | No description in source. |
isSeparator | boolean isSeparator() | No description in source. |
activate | boolean activate() | No description in source. |
takeActivation | boolean takeActivation() | No description in source. |
activations | int activations() | No description in source. |
SLGuiMenuItem #sleela 2.5 (lib/gui/version-dual/SLGuiMenuItem.sleela)
SLGuiMenuItem class
SLGuiMenuItem A menu entry binds presentation state to a named SLGuiAction operation.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
id | String id | No description in source. |
label | String label | No description in source. |
actionName | String actionName | No description in source. |
operation | String operation | No description in source. |
shortcut | String shortcut | No description in source. |
iconName | String iconName | No description in source. |
enabled | int enabled | No description in source. |
checked | int checked | No description in source. |
checkable | int checkable | No description in source. |
separator | int separator | No description in source. |
pending | int pending | No description in source. |
activationCount | int activationCount | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String itemId, String itemLabel, String action, String op) | No description in source. |
getId | String getId() | No description in source. |
getLabel | String getLabel() | No description in source. |
getActionName | String getActionName() | No description in source. |
getOperation | String getOperation() | No description in source. |
setShortcut | void setShortcut(String value) | No description in source. |
getShortcut | String getShortcut() | No description in source. |
setIcon | void setIcon(String value) | No description in source. |
getIcon | String getIcon() | No description in source. |
setEnabled | void setEnabled(boolean value) | No description in source. |
isEnabled | boolean isEnabled() | No description in source. |
setCheckable | void setCheckable(boolean value) | No description in source. |
isCheckable | boolean isCheckable() | No description in source. |
setChecked | void setChecked(boolean value) | No description in source. |
isChecked | boolean isChecked() | No description in source. |
makeSeparator | void makeSeparator() | No description in source. |
isSeparator | boolean isSeparator() | No description in source. |
activate | boolean activate() | No description in source. |
takeActivation | boolean takeActivation() | No description in source. |
activations | int activations() | No description in source. |
SLGuiModal #sleela 2.5 (lib/gui/version-gual/SLGuiModal.sleela)
SLGuiModal class
Defines SLGuiModal — the MODAL / OVERLAY component: a dialog that sits on top of the main application view and fades IN alongside a DARKENED backdrop (the scrim), then fades OUT on close. It is a pure model + lifecycle state machine: closed -> opening -> open -> closing -> closed, driven by tick(elapsed). The dialog and the scrim each fade through an SLGuiTransition (the scrim only to its target dim level, never fully opaque). SLeeLa owns the title, the dismiss policy, and the timing; the host paints the scrim over the view and the dialog over the scrim. Family: gui. A view-blocking overlay; this model decides when the dialog and its backdrop are visible and how opaque each is.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
STATE_CLOSED | static final int STATE_CLOSED = 0 | Lifecycle states. |
STATE_OPENING | static final int STATE_OPENING = 1 | enter transition running |
STATE_OPEN | static final int STATE_OPEN = 2 | fully shown, awaiting dismissal |
STATE_CLOSING | static final int STATE_CLOSING = 3 | exit transition running |
title | String title | No description in source. |
state | int state | STATE_* |
scrimDimPct | int scrimDimPct | backdrop darkness target, 0..100 % (how dark it gets) |
dismissOnBackdrop | int dismissOnBackdrop | 1 = clicking the darkened backdrop closes it |
dismissOnEscape | int dismissOnEscape | 1 = pressing Escape closes it |
dialogFx | SLGuiTransition dialogFx | the dialog's enter/exit fade (and scale feel) |
scrimFx | SLGuiTransition scrimFx | the backdrop's fade (0 -> scrimDimPct) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure(String dialogTitle) | Safe defaults: a 220ms ease-out dialog fade-in, a 55% dark scrim fading in with it, dismissable by backdrop click and Escape. |
setTitle | void setTitle(String t) | No description in source. |
setScrimDim | void setScrimDim(int pct) | No description in source. |
setDismissOnBackdrop | void setDismissOnBackdrop(boolean on) | No description in source. |
setDismissOnEscape | void setDismissOnEscape(boolean on) | No description in source. |
setFadeMillis | void setFadeMillis(int ms) | No description in source. |
setFadeEasing | void setFadeEasing(int ease) | No description in source. |
open | void open() | ---- lifecycle ---------------------------------------------------------- |
requestClose | void requestClose() | Begin closing (named requestClose, not close: `close` is a reserved SLeeLa built-in — the OS/pipe handle close — so a method named close() would collide with it). |
closeNow | void closeNow() | No description in source. |
onBackdropClick | boolean onBackdropClick() | Host input hooks: return true when the event actually dismissed the modal. |
onEscape | boolean onEscape() | No description in source. |
tick | boolean tick(int deltaMs) | Advance the lifecycle by `deltaMs`. Returns true while the modal still occupies the screen (any non-closed state), false once fully closed. |
dialogOpacityPct | int dialogOpacityPct() | ---- presentation ------------------------------------------------------- Opacity (0..100 %) to paint the DIALOG surface at right now. |
scrimOpacityPct | int scrimOpacityPct() | Opacity (0..100 %) to paint the darkened BACKDROP/scrim at right now; this tops out at scrimDimPct, never fully opaque. |
onScreen | boolean onScreen() | No description in source. |
isOpen | boolean isOpen() | No description in source. |
getTitle | String getTitle() | ---- readers ------------------------------------------------------------ |
getState | int getState() | No description in source. |
getScrimDim | int getScrimDim() | No description in source. |
dismissableByBackdrop | boolean dismissableByBackdrop() | No description in source. |
dismissableByEscape | boolean dismissableByEscape() | No description in source. |
dialogTransition | SLGuiTransition dialogTransition() | No description in source. |
scrimTransition | SLGuiTransition scrimTransition() | No description in source. |
stateName | String stateName() | No description in source. |
honored | boolean honored() | No description in source. |
toStyle | String toStyle() | Flatten into the reconciler's style descriptor. Shape: "modal:\"<title>\";scrim:<dim>%;dialog-<fade>;scrim-<fade>" |
report | String report() | No description in source. |
SLGuiModal #sleela 2.5 (lib/gui/version-mual/SLGuiModal.sleela)
SLGuiModal class
Defines SLGuiModal — the MODAL / OVERLAY component: a dialog that sits on top of the main application view and fades IN alongside a DARKENED backdrop (the scrim), then fades OUT on close. It is a pure model + lifecycle state machine: closed -> opening -> open -> closing -> closed, driven by tick(elapsed). The dialog and the scrim each fade through an SLGuiTransition (the scrim only to its target dim level, never fully opaque). SLeeLa owns the title, the dismiss policy, and the timing; the host paints the scrim over the view and the dialog over the scrim. Family: gui. A view-blocking overlay; this model decides when the dialog and its backdrop are visible and how opaque each is.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
STATE_CLOSED | static final int STATE_CLOSED = 0 | Lifecycle states. |
STATE_OPENING | static final int STATE_OPENING = 1 | enter transition running |
STATE_OPEN | static final int STATE_OPEN = 2 | fully shown, awaiting dismissal |
STATE_CLOSING | static final int STATE_CLOSING = 3 | exit transition running |
title | String title | No description in source. |
state | int state | STATE_* |
scrimDimPct | int scrimDimPct | backdrop darkness target, 0..100 % (how dark it gets) |
dismissOnBackdrop | int dismissOnBackdrop | 1 = clicking the darkened backdrop closes it |
dismissOnEscape | int dismissOnEscape | 1 = pressing Escape closes it |
dialogFx | SLGuiTransition dialogFx | the dialog's enter/exit fade (and scale feel) |
scrimFx | SLGuiTransition scrimFx | the backdrop's fade (0 -> scrimDimPct) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure(String dialogTitle) | Safe defaults: a 220ms ease-out dialog fade-in, a 55% dark scrim fading in with it, dismissable by backdrop click and Escape. |
setTitle | void setTitle(String t) | No description in source. |
setScrimDim | void setScrimDim(int pct) | No description in source. |
setDismissOnBackdrop | void setDismissOnBackdrop(boolean on) | No description in source. |
setDismissOnEscape | void setDismissOnEscape(boolean on) | No description in source. |
setFadeMillis | void setFadeMillis(int ms) | No description in source. |
setFadeEasing | void setFadeEasing(int ease) | No description in source. |
open | void open() | ---- lifecycle ---------------------------------------------------------- |
requestClose | void requestClose() | Begin closing (named requestClose, not close: `close` is a reserved SLeeLa built-in — the OS/pipe handle close — so a method named close() would collide with it). |
closeNow | void closeNow() | No description in source. |
onBackdropClick | boolean onBackdropClick() | Host input hooks: return true when the event actually dismissed the modal. |
onEscape | boolean onEscape() | No description in source. |
tick | boolean tick(int deltaMs) | Advance the lifecycle by `deltaMs`. Returns true while the modal still occupies the screen (any non-closed state), false once fully closed. |
dialogOpacityPct | int dialogOpacityPct() | ---- presentation ------------------------------------------------------- Opacity (0..100 %) to paint the DIALOG surface at right now. |
scrimOpacityPct | int scrimOpacityPct() | Opacity (0..100 %) to paint the darkened BACKDROP/scrim at right now; this tops out at scrimDimPct, never fully opaque. |
onScreen | boolean onScreen() | No description in source. |
isOpen | boolean isOpen() | No description in source. |
getTitle | String getTitle() | ---- readers ------------------------------------------------------------ |
getState | int getState() | No description in source. |
getScrimDim | int getScrimDim() | No description in source. |
dismissableByBackdrop | boolean dismissableByBackdrop() | No description in source. |
dismissableByEscape | boolean dismissableByEscape() | No description in source. |
dialogTransition | SLGuiTransition dialogTransition() | No description in source. |
scrimTransition | SLGuiTransition scrimTransition() | No description in source. |
stateName | String stateName() | No description in source. |
honored | boolean honored() | No description in source. |
toStyle | String toStyle() | Flatten into the reconciler's style descriptor. Shape: "modal:\"<title>\";scrim:<dim>%;dialog-<fade>;scrim-<fade>" |
report | String report() | No description in source. |
SLGuiModal #sleela 2.5 (lib/gui/version-thual/SLGuiModal.sleela)
SLGuiModal class
Defines SLGuiModal — the MODAL / OVERLAY component: a dialog that sits on top of the main application view and fades IN alongside a DARKENED backdrop (the scrim), then fades OUT on close. It is a pure model + lifecycle state machine: closed -> opening -> open -> closing -> closed, driven by tick(elapsed). The dialog and the scrim each fade through an SLGuiTransition (the scrim only to its target dim level, never fully opaque). SLeeLa owns the title, the dismiss policy, and the timing; the host paints the scrim over the view and the dialog over the scrim. Family: gui. A view-blocking overlay; this model decides when the dialog and its backdrop are visible and how opaque each is.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
STATE_CLOSED | static final int STATE_CLOSED = 0 | Lifecycle states. |
STATE_OPENING | static final int STATE_OPENING = 1 | enter transition running |
STATE_OPEN | static final int STATE_OPEN = 2 | fully shown, awaiting dismissal |
STATE_CLOSING | static final int STATE_CLOSING = 3 | exit transition running |
title | String title | No description in source. |
state | int state | STATE_* |
scrimDimPct | int scrimDimPct | backdrop darkness target, 0..100 % (how dark it gets) |
dismissOnBackdrop | int dismissOnBackdrop | 1 = clicking the darkened backdrop closes it |
dismissOnEscape | int dismissOnEscape | 1 = pressing Escape closes it |
dialogFx | SLGuiTransition dialogFx | the dialog's enter/exit fade (and scale feel) |
scrimFx | SLGuiTransition scrimFx | the backdrop's fade (0 -> scrimDimPct) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure(String dialogTitle) | Safe defaults: a 220ms ease-out dialog fade-in, a 55% dark scrim fading in with it, dismissable by backdrop click and Escape. |
setTitle | void setTitle(String t) | No description in source. |
setScrimDim | void setScrimDim(int pct) | No description in source. |
setDismissOnBackdrop | void setDismissOnBackdrop(boolean on) | No description in source. |
setDismissOnEscape | void setDismissOnEscape(boolean on) | No description in source. |
setFadeMillis | void setFadeMillis(int ms) | No description in source. |
setFadeEasing | void setFadeEasing(int ease) | No description in source. |
open | void open() | ---- lifecycle ---------------------------------------------------------- |
requestClose | void requestClose() | Begin closing (named requestClose, not close: `close` is a reserved SLeeLa built-in — the OS/pipe handle close — so a method named close() would collide with it). |
closeNow | void closeNow() | No description in source. |
onBackdropClick | boolean onBackdropClick() | Host input hooks: return true when the event actually dismissed the modal. |
onEscape | boolean onEscape() | No description in source. |
tick | boolean tick(int deltaMs) | Advance the lifecycle by `deltaMs`. Returns true while the modal still occupies the screen (any non-closed state), false once fully closed. |
dialogOpacityPct | int dialogOpacityPct() | ---- presentation ------------------------------------------------------- Opacity (0..100 %) to paint the DIALOG surface at right now. |
scrimOpacityPct | int scrimOpacityPct() | Opacity (0..100 %) to paint the darkened BACKDROP/scrim at right now; this tops out at scrimDimPct, never fully opaque. |
onScreen | boolean onScreen() | No description in source. |
isOpen | boolean isOpen() | No description in source. |
getTitle | String getTitle() | ---- readers ------------------------------------------------------------ |
getState | int getState() | No description in source. |
getScrimDim | int getScrimDim() | No description in source. |
dismissableByBackdrop | boolean dismissableByBackdrop() | No description in source. |
dismissableByEscape | boolean dismissableByEscape() | No description in source. |
dialogTransition | SLGuiTransition dialogTransition() | No description in source. |
scrimTransition | SLGuiTransition scrimTransition() | No description in source. |
stateName | String stateName() | No description in source. |
honored | boolean honored() | No description in source. |
toStyle | String toStyle() | Flatten into the reconciler's style descriptor. Shape: "modal:\"<title>\";scrim:<dim>%;dialog-<fade>;scrim-<fade>" |
report | String report() | No description in source. |
SLGuiModal #sleela 2.5 (lib/gui/version-military/SLGuiModal.sleela)
SLGuiModal class
Defines SLGuiModal — the MODAL / OVERLAY component: a dialog that sits on top of the main application view and fades IN alongside a DARKENED backdrop (the scrim), then fades OUT on close. It is a pure model + lifecycle state machine: closed -> opening -> open -> closing -> closed, driven by tick(elapsed). The dialog and the scrim each fade through an SLGuiTransition (the scrim only to its target dim level, never fully opaque). SLeeLa owns the title, the dismiss policy, and the timing; the host paints the scrim over the view and the dialog over the scrim. Family: gui. A view-blocking overlay; this model decides when the dialog and its backdrop are visible and how opaque each is.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
STATE_CLOSED | static final int STATE_CLOSED = 0 | Lifecycle states. |
STATE_OPENING | static final int STATE_OPENING = 1 | enter transition running |
STATE_OPEN | static final int STATE_OPEN = 2 | fully shown, awaiting dismissal |
STATE_CLOSING | static final int STATE_CLOSING = 3 | exit transition running |
title | String title | No description in source. |
state | int state | STATE_* |
scrimDimPct | int scrimDimPct | backdrop darkness target, 0..100 % (how dark it gets) |
dismissOnBackdrop | int dismissOnBackdrop | 1 = clicking the darkened backdrop closes it |
dismissOnEscape | int dismissOnEscape | 1 = pressing Escape closes it |
dialogFx | SLGuiTransition dialogFx | the dialog's enter/exit fade (and scale feel) |
scrimFx | SLGuiTransition scrimFx | the backdrop's fade (0 -> scrimDimPct) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure(String dialogTitle) | Safe defaults: a 220ms ease-out dialog fade-in, a 55% dark scrim fading in with it, dismissable by backdrop click and Escape. |
setTitle | void setTitle(String t) | No description in source. |
setScrimDim | void setScrimDim(int pct) | No description in source. |
setDismissOnBackdrop | void setDismissOnBackdrop(boolean on) | No description in source. |
setDismissOnEscape | void setDismissOnEscape(boolean on) | No description in source. |
setFadeMillis | void setFadeMillis(int ms) | No description in source. |
setFadeEasing | void setFadeEasing(int ease) | No description in source. |
open | void open() | ---- lifecycle ---------------------------------------------------------- |
requestClose | void requestClose() | Begin closing (named requestClose, not close: `close` is a reserved SLeeLa built-in — the OS/pipe handle close — so a method named close() would collide with it). |
closeNow | void closeNow() | No description in source. |
onBackdropClick | boolean onBackdropClick() | Host input hooks: return true when the event actually dismissed the modal. |
onEscape | boolean onEscape() | No description in source. |
tick | boolean tick(int deltaMs) | Advance the lifecycle by `deltaMs`. Returns true while the modal still occupies the screen (any non-closed state), false once fully closed. |
dialogOpacityPct | int dialogOpacityPct() | ---- presentation ------------------------------------------------------- Opacity (0..100 %) to paint the DIALOG surface at right now. |
scrimOpacityPct | int scrimOpacityPct() | Opacity (0..100 %) to paint the darkened BACKDROP/scrim at right now; this tops out at scrimDimPct, never fully opaque. |
onScreen | boolean onScreen() | No description in source. |
isOpen | boolean isOpen() | No description in source. |
getTitle | String getTitle() | ---- readers ------------------------------------------------------------ |
getState | int getState() | No description in source. |
getScrimDim | int getScrimDim() | No description in source. |
dismissableByBackdrop | boolean dismissableByBackdrop() | No description in source. |
dismissableByEscape | boolean dismissableByEscape() | No description in source. |
dialogTransition | SLGuiTransition dialogTransition() | No description in source. |
scrimTransition | SLGuiTransition scrimTransition() | No description in source. |
stateName | String stateName() | No description in source. |
honored | boolean honored() | No description in source. |
toStyle | String toStyle() | Flatten into the reconciler's style descriptor. Shape: "modal:\"<title>\";scrim:<dim>%;dialog-<fade>;scrim-<fade>" |
report | String report() | No description in source. |
SLGuiModal #sleela 2.5 (lib/gui/version-dual/SLGuiModal.sleela)
SLGuiModal class
Defines SLGuiModal — the MODAL / OVERLAY component: a dialog that sits on top of the main application view and fades IN alongside a DARKENED backdrop (the scrim), then fades OUT on close. It is a pure model + lifecycle state machine: closed -> opening -> open -> closing -> closed, driven by tick(elapsed). The dialog and the scrim each fade through an SLGuiTransition (the scrim only to its target dim level, never fully opaque). SLeeLa owns the title, the dismiss policy, and the timing; the host paints the scrim over the view and the dialog over the scrim. Family: gui. A view-blocking overlay; this model decides when the dialog and its backdrop are visible and how opaque each is.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
STATE_CLOSED | static final int STATE_CLOSED = 0 | Lifecycle states. |
STATE_OPENING | static final int STATE_OPENING = 1 | enter transition running |
STATE_OPEN | static final int STATE_OPEN = 2 | fully shown, awaiting dismissal |
STATE_CLOSING | static final int STATE_CLOSING = 3 | exit transition running |
title | String title | No description in source. |
state | int state | STATE_* |
scrimDimPct | int scrimDimPct | backdrop darkness target, 0..100 % (how dark it gets) |
dismissOnBackdrop | int dismissOnBackdrop | 1 = clicking the darkened backdrop closes it |
dismissOnEscape | int dismissOnEscape | 1 = pressing Escape closes it |
dialogFx | SLGuiTransition dialogFx | the dialog's enter/exit fade (and scale feel) |
scrimFx | SLGuiTransition scrimFx | the backdrop's fade (0 -> scrimDimPct) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure(String dialogTitle) | Safe defaults: a 220ms ease-out dialog fade-in, a 55% dark scrim fading in with it, dismissable by backdrop click and Escape. |
setTitle | void setTitle(String t) | No description in source. |
setScrimDim | void setScrimDim(int pct) | No description in source. |
setDismissOnBackdrop | void setDismissOnBackdrop(boolean on) | No description in source. |
setDismissOnEscape | void setDismissOnEscape(boolean on) | No description in source. |
setFadeMillis | void setFadeMillis(int ms) | No description in source. |
setFadeEasing | void setFadeEasing(int ease) | No description in source. |
open | void open() | ---- lifecycle ---------------------------------------------------------- |
requestClose | void requestClose() | Begin closing (named requestClose, not close: `close` is a reserved SLeeLa built-in — the OS/pipe handle close — so a method named close() would collide with it). |
closeNow | void closeNow() | No description in source. |
onBackdropClick | boolean onBackdropClick() | Host input hooks: return true when the event actually dismissed the modal. |
onEscape | boolean onEscape() | No description in source. |
tick | boolean tick(int deltaMs) | Advance the lifecycle by `deltaMs`. Returns true while the modal still occupies the screen (any non-closed state), false once fully closed. |
dialogOpacityPct | int dialogOpacityPct() | ---- presentation ------------------------------------------------------- Opacity (0..100 %) to paint the DIALOG surface at right now. |
scrimOpacityPct | int scrimOpacityPct() | Opacity (0..100 %) to paint the darkened BACKDROP/scrim at right now; this tops out at scrimDimPct, never fully opaque. |
onScreen | boolean onScreen() | No description in source. |
isOpen | boolean isOpen() | No description in source. |
getTitle | String getTitle() | ---- readers ------------------------------------------------------------ |
getState | int getState() | No description in source. |
getScrimDim | int getScrimDim() | No description in source. |
dismissableByBackdrop | boolean dismissableByBackdrop() | No description in source. |
dismissableByEscape | boolean dismissableByEscape() | No description in source. |
dialogTransition | SLGuiTransition dialogTransition() | No description in source. |
scrimTransition | SLGuiTransition scrimTransition() | No description in source. |
stateName | String stateName() | No description in source. |
honored | boolean honored() | No description in source. |
toStyle | String toStyle() | Flatten into the reconciler's style descriptor. Shape: "modal:\"<title>\";scrim:<dim>%;dialog-<fade>;scrim-<fade>" |
report | String report() | No description in source. |
SLGuiMount #sleela 2.5 (lib/gui/version-gual/SLGuiMount.sleela)
SLGuiMount class
Defines SLGuiMount — the reconciler that reflects the SLeeLa-owned DOM (SLGuiDom / SLGuiNode) onto real SleelaUI widgets. It mounts the tree depth-first (a parent is constructed before its children so each child has a real parent handle), records an id->widget-handle map, and on each pass applies every dirty node's state to its widget through the `ui*` built-ins: text (uiWidgetSetText), visibility (uiWidgetVisible), sensitivity (uiWidgetSensitive), and the style-derived accents (suggested/destructive) and minimum size. This is the one-way SLeeLa->toolkit half of the loop (SLGuiHostAdapter is the toolkit->SLeeLa half). The DOM stays the single source of truth; the widgets are its projection. Family: gui. The reconciler crosses the `ui*` SLVM bridge; SLeeLa owns the document it mirrors.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_NODES | static final int MAX_NODES = 65536 | No description in source. |
dom | SLGuiDom dom | No description in source. |
factory | SLGuiWidgetFactory factory | No description in source. |
ids | String[] ids | id -> widget handle map (parallel arrays). |
handles | int[] handles | No description in source. |
mapCount | int mapCount | No description in source. |
rootHandle | int rootHandle | the host-supplied root container the window gives us |
mounted | int mounted | total nodes mounted so far |
applied | int applied | dirty nodes applied on the last reconcile pass |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init(SLGuiDom document, int windowRootHandle) | No description in source. |
handleOf | int handleOf(String id) | No description in source. |
mapId | void mapId(String id, int handle) | No description in source. |
indexOf | int indexOf(String id) | No description in source. |
isMounted | boolean isMounted(String id) | No description in source. |
mountAll | void mountAll() | Mount the whole document under the window root, depth-first. |
mountChildren | void mountChildren(SLGuiNode parent) | Recursively construct and mount every child of `parent`. |
mountNew | void mountNew() | Mount any nodes added since the last pass (nodes the DOM grew via script or SLeeLa after the initial mountAll). |
reconcile | int reconcile() | Push every dirty node's state onto its widget, then clear the dirty flag. Returns how many nodes were applied this pass. |
apply | void apply(SLGuiNode node) | Apply one node's state to its live widget via the `ui*` built-ins. |
mountedCount | int mountedCount() | No description in source. |
appliedLast | int appliedLast() | No description in source. |
constructWithOverflow | int constructWithOverflow(int parentHandle, SLGuiNode child, String label) | Construct a child's widget, honouring an `overflow` intent. A container whose tag is already a scrolled view (scrolled/scrollview/scrollarea) is built by the factory as usual. Otherwise, if the node carries an `overflow` attribute (or per-axis `overflow-x` / `overflow-y`), build a native scrolled viewport with the mapped policy instead of a plain container, so the content scrolls and scrollbars appear automatically on overflow. The node's children then mount inside the viewport as its scroll content. overflow / overflow-x / overflow-y : auto | scroll | always | hidden | visible | clip | none (auto is the default when the attr is present without a value). A per-axis attr overrides the shorthand for that axis. |
labelFor | String labelFor(SLGuiNode node) | The construction label for a node: its text, or its "placeholder" attr for entries, or empty. |
intAttr | int intAttr(String s) | Parse a non-negative integer from a decimal string ("" / null -> 0). |
digit | int digit(String ch) | No description in source. |
SLGuiMount #sleela 2.5 (lib/gui/version-mual/SLGuiMount.sleela)
SLGuiMount class
Defines SLGuiMount — the reconciler that reflects the SLeeLa-owned DOM (SLGuiDom / SLGuiNode) onto real SleelaUI widgets. It mounts the tree depth-first (a parent is constructed before its children so each child has a real parent handle), records an id->widget-handle map, and on each pass applies every dirty node's state to its widget through the `ui*` built-ins: text (uiWidgetSetText), visibility (uiWidgetVisible), sensitivity (uiWidgetSensitive), and the style-derived accents (suggested/destructive) and minimum size. This is the one-way SLeeLa->toolkit half of the loop (SLGuiHostAdapter is the toolkit->SLeeLa half). The DOM stays the single source of truth; the widgets are its projection. Family: gui. The reconciler crosses the `ui*` SLVM bridge; SLeeLa owns the document it mirrors.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_NODES | static final int MAX_NODES = 65536 | No description in source. |
dom | SLGuiDom dom | No description in source. |
factory | SLGuiWidgetFactory factory | No description in source. |
ids | String[] ids | id -> widget handle map (parallel arrays). |
handles | int[] handles | No description in source. |
mapCount | int mapCount | No description in source. |
rootHandle | int rootHandle | the host-supplied root container the window gives us |
mounted | int mounted | total nodes mounted so far |
applied | int applied | dirty nodes applied on the last reconcile pass |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init(SLGuiDom document, int windowRootHandle) | No description in source. |
handleOf | int handleOf(String id) | No description in source. |
mapId | void mapId(String id, int handle) | No description in source. |
indexOf | int indexOf(String id) | No description in source. |
isMounted | boolean isMounted(String id) | No description in source. |
mountAll | void mountAll() | Mount the whole document under the window root, depth-first. |
mountChildren | void mountChildren(SLGuiNode parent) | Recursively construct and mount every child of `parent`. |
mountNew | void mountNew() | Mount any nodes added since the last pass (nodes the DOM grew via script or SLeeLa after the initial mountAll). |
reconcile | int reconcile() | Push every dirty node's state onto its widget, then clear the dirty flag. Returns how many nodes were applied this pass. |
apply | void apply(SLGuiNode node) | Apply one node's state to its live widget via the `ui*` built-ins. |
mountedCount | int mountedCount() | No description in source. |
appliedLast | int appliedLast() | No description in source. |
constructWithOverflow | int constructWithOverflow(int parentHandle, SLGuiNode child, String label) | Construct a child's widget, honouring an `overflow` intent. A container whose tag is already a scrolled view (scrolled/scrollview/scrollarea) is built by the factory as usual. Otherwise, if the node carries an `overflow` attribute (or per-axis `overflow-x` / `overflow-y`), build a native scrolled viewport with the mapped policy instead of a plain container, so the content scrolls and scrollbars appear automatically on overflow. The node's children then mount inside the viewport as its scroll content. overflow / overflow-x / overflow-y : auto | scroll | always | hidden | visible | clip | none (auto is the default when the attr is present without a value). A per-axis attr overrides the shorthand for that axis. |
labelFor | String labelFor(SLGuiNode node) | The construction label for a node: its text, or its "placeholder" attr for entries, or empty. |
intAttr | int intAttr(String s) | Parse a non-negative integer from a decimal string ("" / null -> 0). |
digit | int digit(String ch) | No description in source. |
SLGuiMount #sleela 2.5 (lib/gui/version-thual/SLGuiMount.sleela)
SLGuiMount class
Defines SLGuiMount — the reconciler that reflects the SLeeLa-owned DOM (SLGuiDom / SLGuiNode) onto real SleelaUI widgets. It mounts the tree depth-first (a parent is constructed before its children so each child has a real parent handle), records an id->widget-handle map, and on each pass applies every dirty node's state to its widget through the `ui*` built-ins: text (uiWidgetSetText), visibility (uiWidgetVisible), sensitivity (uiWidgetSensitive), and the style-derived accents (suggested/destructive) and minimum size. This is the one-way SLeeLa->toolkit half of the loop (SLGuiHostAdapter is the toolkit->SLeeLa half). The DOM stays the single source of truth; the widgets are its projection. Family: gui. The reconciler crosses the `ui*` SLVM bridge; SLeeLa owns the document it mirrors.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_NODES | static final int MAX_NODES = 65536 | No description in source. |
dom | SLGuiDom dom | No description in source. |
factory | SLGuiWidgetFactory factory | No description in source. |
ids | String[] ids | id -> widget handle map (parallel arrays). |
handles | int[] handles | No description in source. |
mapCount | int mapCount | No description in source. |
rootHandle | int rootHandle | the host-supplied root container the window gives us |
mounted | int mounted | total nodes mounted so far |
applied | int applied | dirty nodes applied on the last reconcile pass |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init(SLGuiDom document, int windowRootHandle) | No description in source. |
handleOf | int handleOf(String id) | No description in source. |
mapId | void mapId(String id, int handle) | No description in source. |
indexOf | int indexOf(String id) | No description in source. |
isMounted | boolean isMounted(String id) | No description in source. |
mountAll | void mountAll() | Mount the whole document under the window root, depth-first. |
mountChildren | void mountChildren(SLGuiNode parent) | Recursively construct and mount every child of `parent`. |
mountNew | void mountNew() | Mount any nodes added since the last pass (nodes the DOM grew via script or SLeeLa after the initial mountAll). |
reconcile | int reconcile() | Push every dirty node's state onto its widget, then clear the dirty flag. Returns how many nodes were applied this pass. |
apply | void apply(SLGuiNode node) | Apply one node's state to its live widget via the `ui*` built-ins. |
mountedCount | int mountedCount() | No description in source. |
appliedLast | int appliedLast() | No description in source. |
constructWithOverflow | int constructWithOverflow(int parentHandle, SLGuiNode child, String label) | Construct a child's widget, honouring an `overflow` intent. A container whose tag is already a scrolled view (scrolled/scrollview/scrollarea) is built by the factory as usual. Otherwise, if the node carries an `overflow` attribute (or per-axis `overflow-x` / `overflow-y`), build a native scrolled viewport with the mapped policy instead of a plain container, so the content scrolls and scrollbars appear automatically on overflow. The node's children then mount inside the viewport as its scroll content. overflow / overflow-x / overflow-y : auto | scroll | always | hidden | visible | clip | none (auto is the default when the attr is present without a value). A per-axis attr overrides the shorthand for that axis. |
labelFor | String labelFor(SLGuiNode node) | The construction label for a node: its text, or its "placeholder" attr for entries, or empty. |
intAttr | int intAttr(String s) | Parse a non-negative integer from a decimal string ("" / null -> 0). |
digit | int digit(String ch) | No description in source. |
SLGuiMount #sleela 2.5 (lib/gui/version-military/SLGuiMount.sleela)
SLGuiMount class
Defines SLGuiMount — the reconciler that reflects the SLeeLa-owned DOM (SLGuiDom / SLGuiNode) onto real SleelaUI widgets. It mounts the tree depth-first (a parent is constructed before its children so each child has a real parent handle), records an id->widget-handle map, and on each pass applies every dirty node's state to its widget through the `ui*` built-ins: text (uiWidgetSetText), visibility (uiWidgetVisible), sensitivity (uiWidgetSensitive), and the style-derived accents (suggested/destructive) and minimum size. This is the one-way SLeeLa->toolkit half of the loop (SLGuiHostAdapter is the toolkit->SLeeLa half). The DOM stays the single source of truth; the widgets are its projection. Family: gui. The reconciler crosses the `ui*` SLVM bridge; SLeeLa owns the document it mirrors.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_NODES | static final int MAX_NODES = 65536 | No description in source. |
dom | SLGuiDom dom | No description in source. |
factory | SLGuiWidgetFactory factory | No description in source. |
ids | String[] ids | id -> widget handle map (parallel arrays). |
handles | int[] handles | No description in source. |
mapCount | int mapCount | No description in source. |
rootHandle | int rootHandle | the host-supplied root container the window gives us |
mounted | int mounted | total nodes mounted so far |
applied | int applied | dirty nodes applied on the last reconcile pass |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init(SLGuiDom document, int windowRootHandle) | No description in source. |
handleOf | int handleOf(String id) | No description in source. |
mapId | void mapId(String id, int handle) | No description in source. |
indexOf | int indexOf(String id) | No description in source. |
isMounted | boolean isMounted(String id) | No description in source. |
mountAll | void mountAll() | Mount the whole document under the window root, depth-first. |
mountChildren | void mountChildren(SLGuiNode parent) | Recursively construct and mount every child of `parent`. |
mountNew | void mountNew() | Mount any nodes added since the last pass (nodes the DOM grew via script or SLeeLa after the initial mountAll). |
reconcile | int reconcile() | Push every dirty node's state onto its widget, then clear the dirty flag. Returns how many nodes were applied this pass. |
apply | void apply(SLGuiNode node) | Apply one node's state to its live widget via the `ui*` built-ins. |
mountedCount | int mountedCount() | No description in source. |
appliedLast | int appliedLast() | No description in source. |
constructWithOverflow | int constructWithOverflow(int parentHandle, SLGuiNode child, String label) | Construct a child's widget, honouring an `overflow` intent. A container whose tag is already a scrolled view (scrolled/scrollview/scrollarea) is built by the factory as usual. Otherwise, if the node carries an `overflow` attribute (or per-axis `overflow-x` / `overflow-y`), build a native scrolled viewport with the mapped policy instead of a plain container, so the content scrolls and scrollbars appear automatically on overflow. The node's children then mount inside the viewport as its scroll content. overflow / overflow-x / overflow-y : auto | scroll | always | hidden | visible | clip | none (auto is the default when the attr is present without a value). A per-axis attr overrides the shorthand for that axis. |
labelFor | String labelFor(SLGuiNode node) | The construction label for a node: its text, or its "placeholder" attr for entries, or empty. |
intAttr | int intAttr(String s) | Parse a non-negative integer from a decimal string ("" / null -> 0). |
digit | int digit(String ch) | No description in source. |
SLGuiMount #sleela 2.5 (lib/gui/version-dual/SLGuiMount.sleela)
SLGuiMount class
Defines SLGuiMount — the reconciler that reflects the SLeeLa-owned DOM (SLGuiDom / SLGuiNode) onto real SleelaUI widgets. It mounts the tree depth-first (a parent is constructed before its children so each child has a real parent handle), records an id->widget-handle map, and on each pass applies every dirty node's state to its widget through the `ui*` built-ins: text (uiWidgetSetText), visibility (uiWidgetVisible), sensitivity (uiWidgetSensitive), and the style-derived accents (suggested/destructive) and minimum size. This is the one-way SLeeLa->toolkit half of the loop (SLGuiHostAdapter is the toolkit->SLeeLa half). The DOM stays the single source of truth; the widgets are its projection. Family: gui. The reconciler crosses the `ui*` SLVM bridge; SLeeLa owns the document it mirrors.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_NODES | static final int MAX_NODES = 65536 | No description in source. |
dom | SLGuiDom dom | No description in source. |
factory | SLGuiWidgetFactory factory | No description in source. |
ids | String[] ids | id -> widget handle map (parallel arrays). |
handles | int[] handles | No description in source. |
mapCount | int mapCount | No description in source. |
rootHandle | int rootHandle | the host-supplied root container the window gives us |
mounted | int mounted | total nodes mounted so far |
applied | int applied | dirty nodes applied on the last reconcile pass |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init(SLGuiDom document, int windowRootHandle) | No description in source. |
handleOf | int handleOf(String id) | No description in source. |
mapId | void mapId(String id, int handle) | No description in source. |
indexOf | int indexOf(String id) | No description in source. |
isMounted | boolean isMounted(String id) | No description in source. |
mountAll | void mountAll() | Mount the whole document under the window root, depth-first. |
mountChildren | void mountChildren(SLGuiNode parent) | Recursively construct and mount every child of `parent`. |
mountNew | void mountNew() | Mount any nodes added since the last pass (nodes the DOM grew via script or SLeeLa after the initial mountAll). |
reconcile | int reconcile() | Push every dirty node's state onto its widget, then clear the dirty flag. Returns how many nodes were applied this pass. |
apply | void apply(SLGuiNode node) | Apply one node's state to its live widget via the `ui*` built-ins. |
mountedCount | int mountedCount() | No description in source. |
appliedLast | int appliedLast() | No description in source. |
constructWithOverflow | int constructWithOverflow(int parentHandle, SLGuiNode child, String label) | Construct a child's widget, honouring an `overflow` intent. A container whose tag is already a scrolled view (scrolled/scrollview/scrollarea) is built by the factory as usual. Otherwise, if the node carries an `overflow` attribute (or per-axis `overflow-x` / `overflow-y`), build a native scrolled viewport with the mapped policy instead of a plain container, so the content scrolls and scrollbars appear automatically on overflow. The node's children then mount inside the viewport as its scroll content. overflow / overflow-x / overflow-y : auto | scroll | always | hidden | visible | clip | none (auto is the default when the attr is present without a value). A per-axis attr overrides the shorthand for that axis. |
labelFor | String labelFor(SLGuiNode node) | The construction label for a node: its text, or its "placeholder" attr for entries, or empty. |
intAttr | int intAttr(String s) | Parse a non-negative integer from a decimal string ("" / null -> 0). |
digit | int digit(String ch) | No description in source. |
SLGuiNode #sleela 2.5 (lib/gui/version-gual/SLGuiNode.sleela)
SLGuiNode class
Defines SLGuiNode — a DHTML-style element node in the /lib/gui document model. Like a DOM element it has a tag (e.g. "window", "box", "button", "label", "entry"), a unique id, text content, a parent id, an ordered list of child ids, a flat attribute map, a flat style map, and a visibility/enabled state. SLeeLa code (or a script) manipulates the tree through these — setAttribute, setStyle, show/hide, enable/disable, setText — and the host reflects the node onto a real SleelaUI widget. A node carries an optional widget handle so a change can be pushed to the live control, but the node itself is the SLeeLa-owned source of truth. Family: gui. The DOM is SLeeLa-owned; the host mirrors it onto widgets.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_CHILDREN | static final int MAX_CHILDREN = 4096 | No description in source. |
MAX_PAIRS | static final int MAX_PAIRS = 64 | attributes / style entries per node |
id | String id | No description in source. |
tag | String tag | No description in source. |
textContent | String textContent | No description in source. |
parentId | String parentId | "" for the root |
childIds | String[] childIds | No description in source. |
childCount | int childCount | No description in source. |
attrNames | String[] attrNames | Attribute map (name -> value). |
attrValues | String[] attrValues | No description in source. |
attrCount | int attrCount | No description in source. |
styleProps | String[] styleProps | Style map (property -> value), the DHTML inline-style equivalent. |
styleValues | String[] styleValues | No description in source. |
styleCount | int styleCount | No description in source. |
visible | int visible | 1 = shown |
enabled | int enabled | 1 = sensitive |
widget | int widget | live SleelaUI widget handle (-1 = not mounted) |
dirty | int dirty | 1 when the host must re-sync this node |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String nodeId, String nodeTag, String parent) | No description in source. |
getId | String getId() | No description in source. |
getTag | String getTag() | No description in source. |
getParent | String getParent() | No description in source. |
setParent | void setParent(String p) | No description in source. |
appendChild | boolean appendChild(String childId) | ---- children ----------------------------------------------------------- |
removeChild | boolean removeChild(String childId) | No description in source. |
children | int children() | No description in source. |
childAt | String childAt(int i) | No description in source. |
setText | void setText(String t) | ---- text --------------------------------------------------------------- |
text | String text() | No description in source. |
setAttribute | void setAttribute(String name, String value) | ---- attributes --------------------------------------------------------- |
getAttribute | String getAttribute(String name) | No description in source. |
hasAttribute | boolean hasAttribute(String name) | No description in source. |
attrIndex | int attrIndex(String name) | No description in source. |
setStyle | void setStyle(String prop, String value) | ---- style (DHTML inline style) ----------------------------------------- |
getStyle | String getStyle(String prop) | No description in source. |
styleIndex | int styleIndex(String prop) | No description in source. |
styleEntries | int styleEntries() | No description in source. |
show | void show() | ---- visibility / enabled ----------------------------------------------- |
hide | void hide() | No description in source. |
isVisible | boolean isVisible() | No description in source. |
setEnabled | void setEnabled(boolean on) | No description in source. |
isEnabled | boolean isEnabled() | No description in source. |
mount | void mount(int widgetHandle) | ---- host mount --------------------------------------------------------- |
widgetHandle | int widgetHandle() | No description in source. |
mounted | boolean mounted() | No description in source. |
isDirty | boolean isDirty() | No description in source. |
clearDirty | void clearDirty() | No description in source. |
SLGuiNode #sleela 2.5 (lib/gui/version-mual/SLGuiNode.sleela)
SLGuiNode class
Defines SLGuiNode — a DHTML-style element node in the /lib/gui document model. Like a DOM element it has a tag (e.g. "window", "box", "button", "label", "entry"), a unique id, text content, a parent id, an ordered list of child ids, a flat attribute map, a flat style map, and a visibility/enabled state. SLeeLa code (or a script) manipulates the tree through these — setAttribute, setStyle, show/hide, enable/disable, setText — and the host reflects the node onto a real SleelaUI widget. A node carries an optional widget handle so a change can be pushed to the live control, but the node itself is the SLeeLa-owned source of truth. Family: gui. The DOM is SLeeLa-owned; the host mirrors it onto widgets.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_CHILDREN | static final int MAX_CHILDREN = 4096 | No description in source. |
MAX_PAIRS | static final int MAX_PAIRS = 64 | attributes / style entries per node |
id | String id | No description in source. |
tag | String tag | No description in source. |
textContent | String textContent | No description in source. |
parentId | String parentId | "" for the root |
childIds | String[] childIds | No description in source. |
childCount | int childCount | No description in source. |
attrNames | String[] attrNames | Attribute map (name -> value). |
attrValues | String[] attrValues | No description in source. |
attrCount | int attrCount | No description in source. |
styleProps | String[] styleProps | Style map (property -> value), the DHTML inline-style equivalent. |
styleValues | String[] styleValues | No description in source. |
styleCount | int styleCount | No description in source. |
visible | int visible | 1 = shown |
enabled | int enabled | 1 = sensitive |
widget | int widget | live SleelaUI widget handle (-1 = not mounted) |
dirty | int dirty | 1 when the host must re-sync this node |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String nodeId, String nodeTag, String parent) | No description in source. |
getId | String getId() | No description in source. |
getTag | String getTag() | No description in source. |
getParent | String getParent() | No description in source. |
setParent | void setParent(String p) | No description in source. |
appendChild | boolean appendChild(String childId) | ---- children ----------------------------------------------------------- |
removeChild | boolean removeChild(String childId) | No description in source. |
children | int children() | No description in source. |
childAt | String childAt(int i) | No description in source. |
setText | void setText(String t) | ---- text --------------------------------------------------------------- |
text | String text() | No description in source. |
setAttribute | void setAttribute(String name, String value) | ---- attributes --------------------------------------------------------- |
getAttribute | String getAttribute(String name) | No description in source. |
hasAttribute | boolean hasAttribute(String name) | No description in source. |
attrIndex | int attrIndex(String name) | No description in source. |
setStyle | void setStyle(String prop, String value) | ---- style (DHTML inline style) ----------------------------------------- |
getStyle | String getStyle(String prop) | No description in source. |
styleIndex | int styleIndex(String prop) | No description in source. |
styleEntries | int styleEntries() | No description in source. |
show | void show() | ---- visibility / enabled ----------------------------------------------- |
hide | void hide() | No description in source. |
isVisible | boolean isVisible() | No description in source. |
setEnabled | void setEnabled(boolean on) | No description in source. |
isEnabled | boolean isEnabled() | No description in source. |
mount | void mount(int widgetHandle) | ---- host mount --------------------------------------------------------- |
widgetHandle | int widgetHandle() | No description in source. |
mounted | boolean mounted() | No description in source. |
isDirty | boolean isDirty() | No description in source. |
clearDirty | void clearDirty() | No description in source. |
SLGuiNode #sleela 2.5 (lib/gui/version-thual/SLGuiNode.sleela)
SLGuiNode class
Defines SLGuiNode — a DHTML-style element node in the /lib/gui document model. Like a DOM element it has a tag (e.g. "window", "box", "button", "label", "entry"), a unique id, text content, a parent id, an ordered list of child ids, a flat attribute map, a flat style map, and a visibility/enabled state. SLeeLa code (or a script) manipulates the tree through these — setAttribute, setStyle, show/hide, enable/disable, setText — and the host reflects the node onto a real SleelaUI widget. A node carries an optional widget handle so a change can be pushed to the live control, but the node itself is the SLeeLa-owned source of truth. In the 3.0 (thual) line a node may also carry an SLGuiEffects bundle (lighting/glow, 3D shine, shadow, metal, rotation incl. scheduled "schene" rotation, fade in/out, activation audio); effects() lazily creates it and applyEffects() flattens it into the node's style for the reconciler. Family: gui. The DOM is SLeeLa-owned; the host mirrors it onto widgets.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_CHILDREN | static final int MAX_CHILDREN = 4096 | No description in source. |
MAX_PAIRS | static final int MAX_PAIRS = 64 | attributes / style entries per node |
id | String id | No description in source. |
tag | String tag | No description in source. |
textContent | String textContent | No description in source. |
parentId | String parentId | "" for the root |
childIds | String[] childIds | No description in source. |
childCount | int childCount | No description in source. |
attrNames | String[] attrNames | Attribute map (name -> value). |
attrValues | String[] attrValues | No description in source. |
attrCount | int attrCount | No description in source. |
styleProps | String[] styleProps | Style map (property -> value), the DHTML inline-style equivalent. |
styleValues | String[] styleValues | No description in source. |
styleCount | int styleCount | No description in source. |
visible | int visible | 1 = shown |
enabled | int enabled | 1 = sensitive |
widget | int widget | live SleelaUI widget handle (-1 = not mounted) |
dirty | int dirty | 1 when the host must re-sync this node |
fx | SLGuiEffects fx | 3.0 (thual): an optional visual-effects bundle (lighting/glow/shine/shadow/ metal/rotation/fade/activation-audio). Null until effects() is requested. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String nodeId, String nodeTag, String parent) | No description in source. |
getId | String getId() | No description in source. |
getTag | String getTag() | No description in source. |
getParent | String getParent() | No description in source. |
setParent | void setParent(String p) | No description in source. |
appendChild | boolean appendChild(String childId) | ---- children ----------------------------------------------------------- |
removeChild | boolean removeChild(String childId) | No description in source. |
children | int children() | No description in source. |
childAt | String childAt(int i) | No description in source. |
setText | void setText(String t) | ---- text --------------------------------------------------------------- |
text | String text() | No description in source. |
setAttribute | void setAttribute(String name, String value) | ---- attributes --------------------------------------------------------- |
getAttribute | String getAttribute(String name) | No description in source. |
hasAttribute | boolean hasAttribute(String name) | No description in source. |
attrIndex | int attrIndex(String name) | No description in source. |
setStyle | void setStyle(String prop, String value) | ---- style (DHTML inline style) ----------------------------------------- |
getStyle | String getStyle(String prop) | No description in source. |
styleIndex | int styleIndex(String prop) | No description in source. |
styleEntries | int styleEntries() | No description in source. |
show | void show() | ---- visibility / enabled ----------------------------------------------- |
hide | void hide() | No description in source. |
isVisible | boolean isVisible() | No description in source. |
setEnabled | void setEnabled(boolean on) | No description in source. |
isEnabled | boolean isEnabled() | No description in source. |
mount | void mount(int widgetHandle) | ---- host mount --------------------------------------------------------- |
widgetHandle | int widgetHandle() | No description in source. |
mounted | boolean mounted() | No description in source. |
effects | SLGuiEffects effects() | ---- 3.0 visual effects ------------------------------------------------- Lazily create and return this node's effects bundle; marks the node dirty so the host re-syncs its presentation. |
hasEffects | boolean hasEffects() | No description in source. |
effectsOrNull | SLGuiEffects effectsOrNull() | No description in source. |
applyEffects | void applyEffects() | Flatten the effects bundle into the node's "effect" style property so the SLGuiMount reconciler pushes it to the live widget on the next pass. A node with no effects clears the property. |
tickEffects | boolean tickEffects(int elapsedMillis) | Advance any scheduled ("schene") rotation by elapsed time, reflecting the new angle into the style. Returns true when the rotation moved. |
isDirty | boolean isDirty() | No description in source. |
clearDirty | void clearDirty() | No description in source. |
SLGuiNode #sleela 2.5 (lib/gui/version-military/SLGuiNode.sleela)
SLGuiNode class
Defines SLGuiNode — a DHTML-style element node in the /lib/gui document model. Like a DOM element it has a tag (e.g. "window", "box", "button", "label", "entry"), a unique id, text content, a parent id, an ordered list of child ids, a flat attribute map, a flat style map, and a visibility/enabled state. SLeeLa code (or a script) manipulates the tree through these — setAttribute, setStyle, show/hide, enable/disable, setText — and the host reflects the node onto a real SleelaUI widget. A node carries an optional widget handle so a change can be pushed to the live control, but the node itself is the SLeeLa-owned source of truth. In the 3.0 (thual) line a node may also carry an SLGuiEffects bundle (lighting/glow, 3D shine, shadow, metal, rotation incl. scheduled "schene" rotation, fade in/out, activation audio); effects() lazily creates it and applyEffects() flattens it into the node's style for the reconciler. Family: gui. The DOM is SLeeLa-owned; the host mirrors it onto widgets.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_CHILDREN | static final int MAX_CHILDREN = 4096 | No description in source. |
MAX_PAIRS | static final int MAX_PAIRS = 64 | attributes / style entries per node |
id | String id | No description in source. |
tag | String tag | No description in source. |
textContent | String textContent | No description in source. |
parentId | String parentId | "" for the root |
childIds | String[] childIds | No description in source. |
childCount | int childCount | No description in source. |
attrNames | String[] attrNames | Attribute map (name -> value). |
attrValues | String[] attrValues | No description in source. |
attrCount | int attrCount | No description in source. |
styleProps | String[] styleProps | Style map (property -> value), the DHTML inline-style equivalent. |
styleValues | String[] styleValues | No description in source. |
styleCount | int styleCount | No description in source. |
visible | int visible | 1 = shown |
enabled | int enabled | 1 = sensitive |
widget | int widget | live SleelaUI widget handle (-1 = not mounted) |
dirty | int dirty | 1 when the host must re-sync this node |
fx | SLGuiEffects fx | 3.0 (thual): an optional visual-effects bundle (lighting/glow/shine/shadow/ metal/rotation/fade/activation-audio). Null until effects() is requested. |
icon | SLGuiIcon icon | 5.0 (military): an optional icon on buttons / menu items / clickables. Null until setIcon() attaches one; gated by SLGuiKind.iconEligible(tag). |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String nodeId, String nodeTag, String parent) | No description in source. |
getId | String getId() | No description in source. |
getTag | String getTag() | No description in source. |
getParent | String getParent() | No description in source. |
setParent | void setParent(String p) | No description in source. |
appendChild | boolean appendChild(String childId) | ---- children ----------------------------------------------------------- |
removeChild | boolean removeChild(String childId) | No description in source. |
children | int children() | No description in source. |
childAt | String childAt(int i) | No description in source. |
setText | void setText(String t) | ---- text --------------------------------------------------------------- |
text | String text() | No description in source. |
setAttribute | void setAttribute(String name, String value) | ---- attributes --------------------------------------------------------- |
getAttribute | String getAttribute(String name) | No description in source. |
hasAttribute | boolean hasAttribute(String name) | No description in source. |
attrIndex | int attrIndex(String name) | No description in source. |
setStyle | void setStyle(String prop, String value) | ---- style (DHTML inline style) ----------------------------------------- |
getStyle | String getStyle(String prop) | No description in source. |
styleIndex | int styleIndex(String prop) | No description in source. |
styleEntries | int styleEntries() | No description in source. |
show | void show() | ---- visibility / enabled ----------------------------------------------- |
hide | void hide() | No description in source. |
isVisible | boolean isVisible() | No description in source. |
setEnabled | void setEnabled(boolean on) | No description in source. |
isEnabled | boolean isEnabled() | No description in source. |
mount | void mount(int widgetHandle) | ---- host mount --------------------------------------------------------- |
widgetHandle | int widgetHandle() | No description in source. |
mounted | boolean mounted() | No description in source. |
effects | SLGuiEffects effects() | ---- 3.0 visual effects ------------------------------------------------- Lazily create and return this node's effects bundle; marks the node dirty so the host re-syncs its presentation. |
hasEffects | boolean hasEffects() | No description in source. |
effectsOrNull | SLGuiEffects effectsOrNull() | No description in source. |
applyEffects | void applyEffects() | Flatten the effects bundle into the node's "effect" style property so the SLGuiMount reconciler pushes it to the live widget on the next pass. A node with no effects clears the property. |
tickEffects | boolean tickEffects(int elapsedMillis) | Advance any scheduled ("schene") rotation by elapsed time, reflecting the new angle into the style. Returns true when the rotation moved. |
setIcon | void setIcon(SLGuiIcon ic) | ---- 5.0 icon (buttons / menu items / clickables) ---------------------- Attach an icon. Eligibility (iconEligible for the tag) is enforced by the caller (SLGuiApp.setIcon) via SLGuiKind; the node stores whatever it is given and flattens it into its style for the reconciler. |
getIcon | SLGuiIcon getIcon() | No description in source. |
hasIcon | boolean hasIcon() | No description in source. |
applyIcon | void applyIcon() | No description in source. |
isDirty | boolean isDirty() | No description in source. |
clearDirty | void clearDirty() | No description in source. |
SLGuiNode #sleela 2.5 (lib/gui/version-dual/SLGuiNode.sleela)
SLGuiNode class
Defines SLGuiNode — a DHTML-style element node in the /lib/gui document model. Like a DOM element it has a tag (e.g. "window", "box", "button", "label", "entry"), a unique id, text content, a parent id, an ordered list of child ids, a flat attribute map, a flat style map, and a visibility/enabled state. SLeeLa code (or a script) manipulates the tree through these — setAttribute, setStyle, show/hide, enable/disable, setText — and the host reflects the node onto a real SleelaUI widget. A node carries an optional widget handle so a change can be pushed to the live control, but the node itself is the SLeeLa-owned source of truth. In the 3.0 (thual) line a node may also carry an SLGuiEffects bundle (lighting/glow, 3D shine, shadow, metal, rotation incl. scheduled "schene" rotation, fade in/out, activation audio); effects() lazily creates it and applyEffects() flattens it into the node's style for the reconciler. Family: gui. The DOM is SLeeLa-owned; the host mirrors it onto widgets.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_CHILDREN | static final int MAX_CHILDREN = 4096 | No description in source. |
MAX_PAIRS | static final int MAX_PAIRS = 64 | attributes / style entries per node |
id | String id | No description in source. |
tag | String tag | No description in source. |
textContent | String textContent | No description in source. |
parentId | String parentId | "" for the root |
childIds | String[] childIds | No description in source. |
childCount | int childCount | No description in source. |
attrNames | String[] attrNames | Attribute map (name -> value). |
attrValues | String[] attrValues | No description in source. |
attrCount | int attrCount | No description in source. |
styleProps | String[] styleProps | Style map (property -> value), the DHTML inline-style equivalent. |
styleValues | String[] styleValues | No description in source. |
styleCount | int styleCount | No description in source. |
visible | int visible | 1 = shown |
enabled | int enabled | 1 = sensitive |
widget | int widget | live SleelaUI widget handle (-1 = not mounted) |
dirty | int dirty | 1 when the host must re-sync this node |
fx | SLGuiEffects fx | 3.0 (thual): an optional visual-effects bundle (lighting/glow/shine/shadow/ metal/rotation/fade/activation-audio). Null until effects() is requested. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String nodeId, String nodeTag, String parent) | No description in source. |
getId | String getId() | No description in source. |
getTag | String getTag() | No description in source. |
getParent | String getParent() | No description in source. |
setParent | void setParent(String p) | No description in source. |
appendChild | boolean appendChild(String childId) | ---- children ----------------------------------------------------------- |
removeChild | boolean removeChild(String childId) | No description in source. |
children | int children() | No description in source. |
childAt | String childAt(int i) | No description in source. |
setText | void setText(String t) | ---- text --------------------------------------------------------------- |
text | String text() | No description in source. |
setAttribute | void setAttribute(String name, String value) | ---- attributes --------------------------------------------------------- |
getAttribute | String getAttribute(String name) | No description in source. |
hasAttribute | boolean hasAttribute(String name) | No description in source. |
attrIndex | int attrIndex(String name) | No description in source. |
setStyle | void setStyle(String prop, String value) | ---- style (DHTML inline style) ----------------------------------------- |
getStyle | String getStyle(String prop) | No description in source. |
styleIndex | int styleIndex(String prop) | No description in source. |
styleEntries | int styleEntries() | No description in source. |
show | void show() | ---- visibility / enabled ----------------------------------------------- |
hide | void hide() | No description in source. |
isVisible | boolean isVisible() | No description in source. |
setEnabled | void setEnabled(boolean on) | No description in source. |
isEnabled | boolean isEnabled() | No description in source. |
mount | void mount(int widgetHandle) | ---- host mount --------------------------------------------------------- |
widgetHandle | int widgetHandle() | No description in source. |
mounted | boolean mounted() | No description in source. |
effects | SLGuiEffects effects() | ---- 3.0 visual effects ------------------------------------------------- Lazily create and return this node's effects bundle; marks the node dirty so the host re-syncs its presentation. |
hasEffects | boolean hasEffects() | No description in source. |
effectsOrNull | SLGuiEffects effectsOrNull() | No description in source. |
applyEffects | void applyEffects() | Flatten the effects bundle into the node's "effect" style property so the SLGuiMount reconciler pushes it to the live widget on the next pass. A node with no effects clears the property. |
tickEffects | boolean tickEffects(int elapsedMillis) | Advance any scheduled ("schene") rotation by elapsed time, reflecting the new angle into the style. Returns true when the rotation moved. |
isDirty | boolean isDirty() | No description in source. |
clearDirty | void clearDirty() | No description in source. |
SLGuiRotationSchedule #sleela 2.5 (lib/gui/version-thual/SLGuiRotationSchedule.sleela)
SLGuiRotationSchedule class
Defines SLGuiRotationSchedule — a "schene": a scheduled rotation cadence for a UI component. On its face it rotates a component by a fixed step every interval (a clean, professional motion accent). Its second, deliberate role is a CRYPTOGRAPHIC ROTATION CADENCE for an internal memorandum: the same tick that advances the visible angle also advances a key epoch, so "the component is rotating" and "the memo's internal key has rotated to a new epoch" are one observable event. The visible rotation is the honest, external signal of an internal key rotation — rotation you can see maps to rotation you can trust. This class carries ONLY the cadence/accounting (interval, step, epoch, bounded total turns); it does not implement a cipher. It states how often the memorandum's key epoch turns and lets a consumer read epoch()/turns() to drive the actual key schedule elsewhere. Every value is clamped. Family: gui. Carried by SLGuiEffects; advanced by the app/mount loop tick.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
intervalMillis | int intervalMillis | time between rotation steps, 50..3600000 ms |
stepDeg | int stepDeg | degrees added each interval, -359..359 |
running | int running | 1 while the cadence advances |
accumMillis | int accumMillis | elapsed time banked toward the next step |
epoch | int epoch | key epoch: increments once per completed step |
turns | int turns | total steps applied |
maxTurns | int maxTurns | 0 = unbounded; else stop after maxTurns steps |
memoLabel | String memoLabel | the internal memorandum this cadence rotates the key for |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int intervalMs, int degPerStep) | No description in source. |
clampInterval | int clampInterval(int ms) | No description in source. |
clampStep | int clampStep(int d) | No description in source. |
bindMemorandum | void bindMemorandum(String label, int epochCap) | Name the internal memorandum whose key epoch this schene rotates, and optionally cap how many epochs it will turn through (0 = unbounded). |
start | void start() | No description in source. |
stop | void stop() | No description in source. |
active | boolean active() | No description in source. |
advance | int advance(int elapsedMillis) | Advance by `elapsedMillis`. When a full interval banks (and the turn cap is not reached), apply one step: bump the epoch + turns and return the degree step to add. Returns 0 when no step fired this tick. |
getIntervalMillis | int getIntervalMillis() | No description in source. |
getStepDeg | int getStepDeg() | No description in source. |
epochNow | int epochNow() | No description in source. |
totalTurns | int totalTurns() | No description in source. |
getMaxTurns | int getMaxTurns() | No description in source. |
memorandum | String memorandum() | No description in source. |
boundToMemorandum | boolean boundToMemorandum() | No description in source. |
honored | boolean honored() | No description in source. |
SLGuiRotationSchedule #sleela 2.5 (lib/gui/version-military/SLGuiRotationSchedule.sleela)
SLGuiRotationSchedule class
Defines SLGuiRotationSchedule — a "schene": a scheduled rotation cadence for a UI component. On its face it rotates a component by a fixed step every interval (a clean, professional motion accent). Its second, deliberate role is a CRYPTOGRAPHIC ROTATION CADENCE for an internal memorandum: the same tick that advances the visible angle also advances a key epoch, so "the component is rotating" and "the memo's internal key has rotated to a new epoch" are one observable event. The visible rotation is the honest, external signal of an internal key rotation — rotation you can see maps to rotation you can trust. This class carries ONLY the cadence/accounting (interval, step, epoch, bounded total turns); it does not implement a cipher. It states how often the memorandum's key epoch turns and lets a consumer read epoch()/turns() to drive the actual key schedule elsewhere. Every value is clamped. Family: gui. Carried by SLGuiEffects; advanced by the app/mount loop tick.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
intervalMillis | int intervalMillis | time between rotation steps, 50..3600000 ms |
stepDeg | int stepDeg | degrees added each interval, -359..359 |
running | int running | 1 while the cadence advances |
accumMillis | int accumMillis | elapsed time banked toward the next step |
epoch | int epoch | key epoch: increments once per completed step |
turns | int turns | total steps applied |
maxTurns | int maxTurns | 0 = unbounded; else stop after maxTurns steps |
memoLabel | String memoLabel | the internal memorandum this cadence rotates the key for |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int intervalMs, int degPerStep) | No description in source. |
clampInterval | int clampInterval(int ms) | No description in source. |
clampStep | int clampStep(int d) | No description in source. |
bindMemorandum | void bindMemorandum(String label, int epochCap) | Name the internal memorandum whose key epoch this schene rotates, and optionally cap how many epochs it will turn through (0 = unbounded). |
start | void start() | No description in source. |
stop | void stop() | No description in source. |
active | boolean active() | No description in source. |
advance | int advance(int elapsedMillis) | Advance by `elapsedMillis`. When a full interval banks (and the turn cap is not reached), apply one step: bump the epoch + turns and return the degree step to add. Returns 0 when no step fired this tick. |
getIntervalMillis | int getIntervalMillis() | No description in source. |
getStepDeg | int getStepDeg() | No description in source. |
epochNow | int epochNow() | No description in source. |
totalTurns | int totalTurns() | No description in source. |
getMaxTurns | int getMaxTurns() | No description in source. |
memorandum | String memorandum() | No description in source. |
boundToMemorandum | boolean boundToMemorandum() | No description in source. |
honored | boolean honored() | No description in source. |
SLGuiRotationSchedule #sleela 2.5 (lib/gui/version-dual/SLGuiRotationSchedule.sleela)
SLGuiRotationSchedule class
Defines SLGuiRotationSchedule — a "schene": a scheduled rotation cadence for a UI component. On its face it rotates a component by a fixed step every interval (a clean, professional motion accent). Its second, deliberate role is a CRYPTOGRAPHIC ROTATION CADENCE for an internal memorandum: the same tick that advances the visible angle also advances a key epoch, so "the component is rotating" and "the memo's internal key has rotated to a new epoch" are one observable event. The visible rotation is the honest, external signal of an internal key rotation — rotation you can see maps to rotation you can trust. This class carries ONLY the cadence/accounting (interval, step, epoch, bounded total turns); it does not implement a cipher. It states how often the memorandum's key epoch turns and lets a consumer read epoch()/turns() to drive the actual key schedule elsewhere. Every value is clamped. Family: gui. Carried by SLGuiEffects; advanced by the app/mount loop tick.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
intervalMillis | int intervalMillis | time between rotation steps, 50..3600000 ms |
stepDeg | int stepDeg | degrees added each interval, -359..359 |
running | int running | 1 while the cadence advances |
accumMillis | int accumMillis | elapsed time banked toward the next step |
epoch | int epoch | key epoch: increments once per completed step |
turns | int turns | total steps applied |
maxTurns | int maxTurns | 0 = unbounded; else stop after maxTurns steps |
memoLabel | String memoLabel | the internal memorandum this cadence rotates the key for |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int intervalMs, int degPerStep) | No description in source. |
clampInterval | int clampInterval(int ms) | No description in source. |
clampStep | int clampStep(int d) | No description in source. |
bindMemorandum | void bindMemorandum(String label, int epochCap) | Name the internal memorandum whose key epoch this schene rotates, and optionally cap how many epochs it will turn through (0 = unbounded). |
start | void start() | No description in source. |
stop | void stop() | No description in source. |
active | boolean active() | No description in source. |
advance | int advance(int elapsedMillis) | Advance by `elapsedMillis`. When a full interval banks (and the turn cap is not reached), apply one step: bump the epoch + turns and return the degree step to add. Returns 0 when no step fired this tick. |
getIntervalMillis | int getIntervalMillis() | No description in source. |
getStepDeg | int getStepDeg() | No description in source. |
epochNow | int epochNow() | No description in source. |
totalTurns | int totalTurns() | No description in source. |
getMaxTurns | int getMaxTurns() | No description in source. |
memorandum | String memorandum() | No description in source. |
boundToMemorandum | boolean boundToMemorandum() | No description in source. |
honored | boolean honored() | No description in source. |
SLGuiRuntime #sleela 2.5 (lib/gui/version-gual/SLGuiRuntime.sleela)
SLGuiRuntime class
Defines SLGuiRuntime — Path 2 of gui/INTEGRATION.md: SLeeLa owns GUI intent and the host (Swing/JavaFX) supplies the desktop controls. Mirrors SleelaGuiRuntime: window(title,w,h), text(...), action(name,op), and the listen(...) document-change option that refreshes the running window directly on an OS call.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
window | SLGuiWindow window | No description in source. |
listener | SLGuiDocumentListener listener | No description in source. |
listening | int listening | 1 when the listen option is enabled |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(SLGuiWindow w) | No description in source. |
openWindow | void openWindow(String title, int width, int height) | Open/describe the window at the requested size. |
text | void text(String value) | Publish text to the running window. |
listen | boolean listen(SLGuiDocumentListener l) | Enable the document-change listener option over 1..14 documents; the listener refreshes the running window directly when a document changes. |
isListening | boolean isListening() | No description in source. |
onDocumentChange | int onDocumentChange(String documentId, String revision, int realChanges) | An OS call reports `realChanges`; refresh the window for the change. |
refreshNow | int refreshNow(int realChanges) | No description in source. |
stopListening | void stopListening() | No description in source. |
close | void close() | No description in source. |
SLGuiRuntime #sleela 2.5 (lib/gui/version-mual/SLGuiRuntime.sleela)
SLGuiRuntime class
Defines SLGuiRuntime — Path 2 of gui/INTEGRATION.md: SLeeLa owns GUI intent and the host (Swing/JavaFX) supplies the desktop controls. Mirrors SleelaGuiRuntime: window(title,w,h), text(...), action(name,op), and the listen(...) document-change option that refreshes the running window directly on an OS call.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
window | SLGuiWindow window | No description in source. |
listener | SLGuiDocumentListener listener | No description in source. |
listening | int listening | 1 when the listen option is enabled |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(SLGuiWindow w) | No description in source. |
openWindow | void openWindow(String title, int width, int height) | Open/describe the window at the requested size. |
text | void text(String value) | Publish text to the running window. |
listen | boolean listen(SLGuiDocumentListener l) | Enable the document-change listener option over 1..14 documents; the listener refreshes the running window directly when a document changes. |
isListening | boolean isListening() | No description in source. |
onDocumentChange | int onDocumentChange(String documentId, String revision, int realChanges) | An OS call reports `realChanges`; refresh the window for the change. |
refreshNow | int refreshNow(int realChanges) | No description in source. |
stopListening | void stopListening() | No description in source. |
close | void close() | No description in source. |
SLGuiRuntime #sleela 2.5 (lib/gui/version-thual/SLGuiRuntime.sleela)
SLGuiRuntime class
Defines SLGuiRuntime — Path 2 of gui/INTEGRATION.md: SLeeLa owns GUI intent and the host (Swing/JavaFX) supplies the desktop controls. Mirrors SleelaGuiRuntime: window(title,w,h), text(...), action(name,op), and the listen(...) document-change option that refreshes the running window directly on an OS call.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
window | SLGuiWindow window | No description in source. |
listener | SLGuiDocumentListener listener | No description in source. |
listening | int listening | 1 when the listen option is enabled |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(SLGuiWindow w) | No description in source. |
openWindow | void openWindow(String title, int width, int height) | Open/describe the window at the requested size. |
text | void text(String value) | Publish text to the running window. |
listen | boolean listen(SLGuiDocumentListener l) | Enable the document-change listener option over 1..14 documents; the listener refreshes the running window directly when a document changes. |
isListening | boolean isListening() | No description in source. |
onDocumentChange | int onDocumentChange(String documentId, String revision, int realChanges) | An OS call reports `realChanges`; refresh the window for the change. |
refreshNow | int refreshNow(int realChanges) | No description in source. |
stopListening | void stopListening() | No description in source. |
close | void close() | No description in source. |
SLGuiRuntime #sleela 2.5 (lib/gui/version-military/SLGuiRuntime.sleela)
SLGuiRuntime class
Defines SLGuiRuntime — Path 2 of gui/INTEGRATION.md: SLeeLa owns GUI intent and the host (Swing/JavaFX) supplies the desktop controls. Mirrors SleelaGuiRuntime: window(title,w,h), text(...), action(name,op), and the listen(...) document-change option that refreshes the running window directly on an OS call.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
window | SLGuiWindow window | No description in source. |
listener | SLGuiDocumentListener listener | No description in source. |
listening | int listening | 1 when the listen option is enabled |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(SLGuiWindow w) | No description in source. |
openWindow | void openWindow(String title, int width, int height) | Open/describe the window at the requested size. |
text | void text(String value) | Publish text to the running window. |
listen | boolean listen(SLGuiDocumentListener l) | Enable the document-change listener option over 1..14 documents; the listener refreshes the running window directly when a document changes. |
isListening | boolean isListening() | No description in source. |
onDocumentChange | int onDocumentChange(String documentId, String revision, int realChanges) | An OS call reports `realChanges`; refresh the window for the change. |
refreshNow | int refreshNow(int realChanges) | No description in source. |
stopListening | void stopListening() | No description in source. |
close | void close() | No description in source. |
SLGuiRuntime #sleela 2.5 (lib/gui/version-dual/SLGuiRuntime.sleela)
SLGuiRuntime class
Defines SLGuiRuntime — Path 2 of gui/INTEGRATION.md: SLeeLa owns GUI intent and the host (Swing/JavaFX) supplies the desktop controls. Mirrors SleelaGuiRuntime: window(title,w,h), text(...), action(name,op), and the listen(...) document-change option that refreshes the running window directly on an OS call.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
window | SLGuiWindow window | No description in source. |
listener | SLGuiDocumentListener listener | No description in source. |
listening | int listening | 1 when the listen option is enabled |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(SLGuiWindow w) | No description in source. |
openWindow | void openWindow(String title, int width, int height) | Open/describe the window at the requested size. |
text | void text(String value) | Publish text to the running window. |
listen | boolean listen(SLGuiDocumentListener l) | Enable the document-change listener option over 1..14 documents; the listener refreshes the running window directly when a document changes. |
isListening | boolean isListening() | No description in source. |
onDocumentChange | int onDocumentChange(String documentId, String revision, int realChanges) | An OS call reports `realChanges`; refresh the window for the change. |
refreshNow | int refreshNow(int realChanges) | No description in source. |
stopListening | void stopListening() | No description in source. |
close | void close() | No description in source. |
SLGuiScreenFit #sleela 2.5 (lib/gui/version-gual/SLGuiScreenFit.sleela)
SLGuiScreenFit class
Defines SLGuiScreenFit — the helper that sizes a
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
TIER_BASIC | static final int TIER_BASIC = 0 | Support tiers. |
TIER_MODERATE | static final int TIER_MODERATE = 1 | No description in source. |
TIER_ADVANCED | static final int TIER_ADVANCED = 2 | No description in source. |
RES_SD | static final int RES_SD = 0 | Resolution classes (ADVANCED tier buckets), by the SHORTER screen edge. ≤ 720 (SD / small) |
RES_HD | static final int RES_HD = 1 | ≤ 1080 (Full HD) |
RES_QHD | static final int RES_QHD = 2 | ≤ 1440 (QHD) |
RES_UHD | static final int RES_UHD = 3 | > 1440 (4K+ / ultra) |
tier | int tier | No description in source. |
screenKnown | int screenKnown | 1 when a real screen was reported |
marginPx | int marginPx | work-area inset kept clear on every side |
fillPct | int fillPct | BASIC/MODERATE: % of screen to occupy |
MODEL_W | static final int MODEL_W = 1920 | modeled fallback resolution |
MODEL_H | static final int MODEL_H = 1080 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
imin | int imin(int a, int b) | No description in source. |
imax | int imax(int a, int b) | No description in source. |
configure | void configure(int supportTier) | Install documented defaults. `supportTier` picks basic/moderate/advanced. |
setScreen | void setScreen(int w, int h) | Feed the ACTUAL screen from uiScreenWidth/uiScreenHeight. A non-positive value means "unknown" (headless), so we keep the modeled fallback. |
setFillPct | void setFillPct(int pct) | No description in source. |
setMargin | void setMargin(int px) | No description in source. |
setMinSize | void setMinSize(int w, int h) | Keep the min/max interval valid when a caller raises the minimum. The minimum is authoritative: if it overtakes the old maximum, advance the maximum with it instead of leaving fit()/honored() contradictory. |
setMaxSize | void setMaxSize(int w, int h) | No description in source. |
workW | int workW() | The usable work area = screen minus the margin on each side. |
workH | int workH() | No description in source. |
resolutionClass | int resolutionClass() | ADVANCED: classify the screen by its shorter edge. |
classFillPct | int classFillPct() | ADVANCED: the target fill % for a resolution class — larger screens give the window proportionally LESS of the glass (a 4K window at 90% is huge). |
classCapW | int classCapW() | ADVANCED: an absolute cap per class so a window never becomes unwieldy. |
classCapH | int classCapH() | No description in source. |
fit | int fit() | Compute the window size+position for the configured tier. Returns the resolved width; outW/outH/outX/outY hold the full result. |
width | int width() | ---- readers ------------------------------------------------------------ |
height | int height() | No description in source. |
x | int x() | No description in source. |
y | int y() | No description in source. |
getTier | int getTier() | No description in source. |
screenIsKnown | boolean screenIsKnown() | No description in source. |
tierName | String tierName() | No description in source. |
resolutionClassName | String resolutionClassName() | No description in source. |
honored | boolean honored() | Internally consistent: a positive, in-range result that fits the screen. |
report | String report() | No description in source. |
SLGuiScreenFit #sleela 2.5 (lib/gui/version-mual/SLGuiScreenFit.sleela)
SLGuiScreenFit class
Defines SLGuiScreenFit — the helper that sizes a
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
TIER_BASIC | static final int TIER_BASIC = 0 | Support tiers. |
TIER_MODERATE | static final int TIER_MODERATE = 1 | No description in source. |
TIER_ADVANCED | static final int TIER_ADVANCED = 2 | No description in source. |
RES_SD | static final int RES_SD = 0 | Resolution classes (ADVANCED tier buckets), by the SHORTER screen edge. ≤ 720 (SD / small) |
RES_HD | static final int RES_HD = 1 | ≤ 1080 (Full HD) |
RES_QHD | static final int RES_QHD = 2 | ≤ 1440 (QHD) |
RES_UHD | static final int RES_UHD = 3 | > 1440 (4K+ / ultra) |
tier | int tier | No description in source. |
screenKnown | int screenKnown | 1 when a real screen was reported |
marginPx | int marginPx | work-area inset kept clear on every side |
fillPct | int fillPct | BASIC/MODERATE: % of screen to occupy |
MODEL_W | static final int MODEL_W = 1920 | modeled fallback resolution |
MODEL_H | static final int MODEL_H = 1080 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
imin | int imin(int a, int b) | No description in source. |
imax | int imax(int a, int b) | No description in source. |
configure | void configure(int supportTier) | Install documented defaults. `supportTier` picks basic/moderate/advanced. |
setScreen | void setScreen(int w, int h) | Feed the ACTUAL screen from uiScreenWidth/uiScreenHeight. A non-positive value means "unknown" (headless), so we keep the modeled fallback. |
setFillPct | void setFillPct(int pct) | No description in source. |
setMargin | void setMargin(int px) | No description in source. |
setMinSize | void setMinSize(int w, int h) | Keep the min/max interval valid when a caller raises the minimum. The minimum is authoritative: if it overtakes the old maximum, advance the maximum with it instead of leaving fit()/honored() contradictory. |
setMaxSize | void setMaxSize(int w, int h) | No description in source. |
workW | int workW() | The usable work area = screen minus the margin on each side. |
workH | int workH() | No description in source. |
resolutionClass | int resolutionClass() | ADVANCED: classify the screen by its shorter edge. |
classFillPct | int classFillPct() | ADVANCED: the target fill % for a resolution class — larger screens give the window proportionally LESS of the glass (a 4K window at 90% is huge). |
classCapW | int classCapW() | ADVANCED: an absolute cap per class so a window never becomes unwieldy. |
classCapH | int classCapH() | No description in source. |
fit | int fit() | Compute the window size+position for the configured tier. Returns the resolved width; outW/outH/outX/outY hold the full result. |
width | int width() | ---- readers ------------------------------------------------------------ |
height | int height() | No description in source. |
x | int x() | No description in source. |
y | int y() | No description in source. |
getTier | int getTier() | No description in source. |
screenIsKnown | boolean screenIsKnown() | No description in source. |
tierName | String tierName() | No description in source. |
resolutionClassName | String resolutionClassName() | No description in source. |
honored | boolean honored() | Internally consistent: a positive, in-range result that fits the screen. |
report | String report() | No description in source. |
SLGuiScreenFit #sleela 2.5 (lib/gui/version-thual/SLGuiScreenFit.sleela)
SLGuiScreenFit class
Defines SLGuiScreenFit — the helper that sizes a
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
TIER_BASIC | static final int TIER_BASIC = 0 | Support tiers. |
TIER_MODERATE | static final int TIER_MODERATE = 1 | No description in source. |
TIER_ADVANCED | static final int TIER_ADVANCED = 2 | No description in source. |
RES_SD | static final int RES_SD = 0 | Resolution classes (ADVANCED tier buckets), by the SHORTER screen edge. ≤ 720 (SD / small) |
RES_HD | static final int RES_HD = 1 | ≤ 1080 (Full HD) |
RES_QHD | static final int RES_QHD = 2 | ≤ 1440 (QHD) |
RES_UHD | static final int RES_UHD = 3 | > 1440 (4K+ / ultra) |
tier | int tier | No description in source. |
screenKnown | int screenKnown | 1 when a real screen was reported |
marginPx | int marginPx | work-area inset kept clear on every side |
fillPct | int fillPct | BASIC/MODERATE: % of screen to occupy |
MODEL_W | static final int MODEL_W = 1920 | modeled fallback resolution |
MODEL_H | static final int MODEL_H = 1080 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
imin | int imin(int a, int b) | No description in source. |
imax | int imax(int a, int b) | No description in source. |
configure | void configure(int supportTier) | Install documented defaults. `supportTier` picks basic/moderate/advanced. |
setScreen | void setScreen(int w, int h) | Feed the ACTUAL screen from uiScreenWidth/uiScreenHeight. A non-positive value means "unknown" (headless), so we keep the modeled fallback. |
setFillPct | void setFillPct(int pct) | No description in source. |
setMargin | void setMargin(int px) | No description in source. |
setMinSize | void setMinSize(int w, int h) | Keep the min/max interval valid when a caller raises the minimum. The minimum is authoritative: if it overtakes the old maximum, advance the maximum with it instead of leaving fit()/honored() contradictory. |
setMaxSize | void setMaxSize(int w, int h) | No description in source. |
workW | int workW() | The usable work area = screen minus the margin on each side. |
workH | int workH() | No description in source. |
resolutionClass | int resolutionClass() | ADVANCED: classify the screen by its shorter edge. |
classFillPct | int classFillPct() | ADVANCED: the target fill % for a resolution class — larger screens give the window proportionally LESS of the glass (a 4K window at 90% is huge). |
classCapW | int classCapW() | ADVANCED: an absolute cap per class so a window never becomes unwieldy. |
classCapH | int classCapH() | No description in source. |
fit | int fit() | Compute the window size+position for the configured tier. Returns the resolved width; outW/outH/outX/outY hold the full result. |
width | int width() | ---- readers ------------------------------------------------------------ |
height | int height() | No description in source. |
x | int x() | No description in source. |
y | int y() | No description in source. |
getTier | int getTier() | No description in source. |
screenIsKnown | boolean screenIsKnown() | No description in source. |
tierName | String tierName() | No description in source. |
resolutionClassName | String resolutionClassName() | No description in source. |
honored | boolean honored() | Internally consistent: a positive, in-range result that fits the screen. |
report | String report() | No description in source. |
SLGuiScreenFit #sleela 2.5 (lib/gui/version-military/SLGuiScreenFit.sleela)
SLGuiScreenFit class
Defines SLGuiScreenFit — the military-line helper that sizes a
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
TIER_BASIC | static final int TIER_BASIC = 0 | Support tiers. |
TIER_MODERATE | static final int TIER_MODERATE = 1 | No description in source. |
TIER_ADVANCED | static final int TIER_ADVANCED = 2 | No description in source. |
RES_SD | static final int RES_SD = 0 | Resolution classes (ADVANCED tier buckets), by the SHORTER screen edge. ≤ 720 (SD / small) |
RES_HD | static final int RES_HD = 1 | ≤ 1080 (Full HD) |
RES_QHD | static final int RES_QHD = 2 | ≤ 1440 (QHD) |
RES_UHD | static final int RES_UHD = 3 | > 1440 (4K+ / ultra) |
tier | int tier | No description in source. |
screenKnown | int screenKnown | 1 when a real screen was reported |
marginPx | int marginPx | work-area inset kept clear on every side |
fillPct | int fillPct | BASIC/MODERATE: % of screen to occupy |
MODEL_W | static final int MODEL_W = 1920 | modeled fallback resolution |
MODEL_H | static final int MODEL_H = 1080 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
imin | int imin(int a, int b) | No description in source. |
imax | int imax(int a, int b) | No description in source. |
configure | void configure(int supportTier) | Install documented defaults. `supportTier` picks basic/moderate/advanced. |
setScreen | void setScreen(int w, int h) | Feed the ACTUAL screen from uiScreenWidth/uiScreenHeight. A non-positive value means "unknown" (headless), so we keep the modeled fallback. |
setFillPct | void setFillPct(int pct) | No description in source. |
setMargin | void setMargin(int px) | No description in source. |
setMinSize | void setMinSize(int w, int h) | Keep the min/max interval valid when a caller raises the minimum. The minimum is authoritative: if it overtakes the old maximum, advance the maximum with it instead of leaving fit()/honored() contradictory. |
setMaxSize | void setMaxSize(int w, int h) | No description in source. |
workW | int workW() | The usable work area = screen minus the margin on each side. |
workH | int workH() | No description in source. |
resolutionClass | int resolutionClass() | ADVANCED: classify the screen by its shorter edge. |
classFillPct | int classFillPct() | ADVANCED: the target fill % for a resolution class — larger screens give the window proportionally LESS of the glass (a 4K window at 90% is huge). |
classCapW | int classCapW() | ADVANCED: an absolute cap per class so a window never becomes unwieldy. |
classCapH | int classCapH() | No description in source. |
fit | int fit() | Compute the window size+position for the configured tier. Returns the resolved width; outW/outH/outX/outY hold the full result. |
width | int width() | ---- readers ------------------------------------------------------------ |
height | int height() | No description in source. |
x | int x() | No description in source. |
y | int y() | No description in source. |
getTier | int getTier() | No description in source. |
screenIsKnown | boolean screenIsKnown() | No description in source. |
tierName | String tierName() | No description in source. |
resolutionClassName | String resolutionClassName() | No description in source. |
honored | boolean honored() | Internally consistent: a positive, in-range result that fits the screen. |
report | String report() | No description in source. |
SLGuiScreenFit #sleela 2.5 (lib/gui/version-dual/SLGuiScreenFit.sleela)
SLGuiScreenFit class
Defines SLGuiScreenFit — the helper that sizes a
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
TIER_BASIC | static final int TIER_BASIC = 0 | Support tiers. |
TIER_MODERATE | static final int TIER_MODERATE = 1 | No description in source. |
TIER_ADVANCED | static final int TIER_ADVANCED = 2 | No description in source. |
RES_SD | static final int RES_SD = 0 | Resolution classes (ADVANCED tier buckets), by the SHORTER screen edge. ≤ 720 (SD / small) |
RES_HD | static final int RES_HD = 1 | ≤ 1080 (Full HD) |
RES_QHD | static final int RES_QHD = 2 | ≤ 1440 (QHD) |
RES_UHD | static final int RES_UHD = 3 | > 1440 (4K+ / ultra) |
tier | int tier | No description in source. |
screenKnown | int screenKnown | 1 when a real screen was reported |
marginPx | int marginPx | work-area inset kept clear on every side |
fillPct | int fillPct | BASIC/MODERATE: % of screen to occupy |
MODEL_W | static final int MODEL_W = 1920 | modeled fallback resolution |
MODEL_H | static final int MODEL_H = 1080 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
imin | int imin(int a, int b) | No description in source. |
imax | int imax(int a, int b) | No description in source. |
configure | void configure(int supportTier) | Install documented defaults. `supportTier` picks basic/moderate/advanced. |
setScreen | void setScreen(int w, int h) | Feed the ACTUAL screen from uiScreenWidth/uiScreenHeight. A non-positive value means "unknown" (headless), so we keep the modeled fallback. |
setFillPct | void setFillPct(int pct) | No description in source. |
setMargin | void setMargin(int px) | No description in source. |
setMinSize | void setMinSize(int w, int h) | Keep the min/max interval valid when a caller raises the minimum. The minimum is authoritative: if it overtakes the old maximum, advance the maximum with it instead of leaving fit()/honored() contradictory. |
setMaxSize | void setMaxSize(int w, int h) | No description in source. |
workW | int workW() | The usable work area = screen minus the margin on each side. |
workH | int workH() | No description in source. |
resolutionClass | int resolutionClass() | ADVANCED: classify the screen by its shorter edge. |
classFillPct | int classFillPct() | ADVANCED: the target fill % for a resolution class — larger screens give the window proportionally LESS of the glass (a 4K window at 90% is huge). |
classCapW | int classCapW() | ADVANCED: an absolute cap per class so a window never becomes unwieldy. |
classCapH | int classCapH() | No description in source. |
fit | int fit() | Compute the window size+position for the configured tier. Returns the resolved width; outW/outH/outX/outY hold the full result. |
width | int width() | ---- readers ------------------------------------------------------------ |
height | int height() | No description in source. |
x | int x() | No description in source. |
y | int y() | No description in source. |
getTier | int getTier() | No description in source. |
screenIsKnown | boolean screenIsKnown() | No description in source. |
tierName | String tierName() | No description in source. |
resolutionClassName | String resolutionClassName() | No description in source. |
honored | boolean honored() | Internally consistent: a positive, in-range result that fits the screen. |
report | String report() | No description in source. |
SLGuiScript #sleela 2.5 (lib/gui/version-gual/SLGuiScript.sleela)
SLGuiScript class
Defines SLGuiScript — the scripting engine for /lib/gui. It holds an ordered list of SLGuiScriptCommands and runs them against an SLGuiDom (and, for the `call` verb, across the native boundary via SLGuiBridge). This is the "support for scripting" layer: a UI can be described and driven by a command list rather than hand-written SLeeLa, which is what makes DHTML-style authoring and tooling (serialising a UI, replaying interactions, data-driven screens) possible. The engine is deliberately NOT a general interpreter — it is a bounded, auditable verb list that only touches the SLeeLa-owned DOM/event bus and the documented operation bridge, so a script can never do more than the DOM API already allows. Family: gui. SLeeLa owns execution; scripts express UI intent declaratively.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_COMMANDS | static final int MAX_COMMANDS = 65536 | No description in source. |
commands | SLGuiScriptCommand[] commands | No description in source. |
count | int count | No description in source. |
dom | SLGuiDom dom | the document the script manipulates |
bridge | SLGuiBridge bridge | native boundary for the `call` verb (may be null) |
types | SLGuiEventType types | event-name -> ordinal |
pc | int pc | program counter of the last executed command |
executed | int executed | total commands executed |
lastError | String lastError | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init(SLGuiDom document) | No description in source. |
attachBridge | void attachBridge(SLGuiBridge b) | Attach a created native bridge so `call` can cross to a SLeeLa operation. |
size | int size() | No description in source. |
add | SLGuiScriptCommand add(int verb, String a, String b, String c, String d) | No description in source. |
create | void create(String tag, String id, String parentId) | Typed builders (the common verbs) for readable script assembly. |
append | void append(String parentId, String childId) | No description in source. |
text | void text(String id, String value) | No description in source. |
attr | void attr(String id, String name, String value) | No description in source. |
style | void style(String id, String prop, String value) | No description in source. |
show | void show(String id) | No description in source. |
hide | void hide(String id) | No description in source. |
enable | void enable(String id, boolean on) | No description in source. |
on | void on(String id, String eventName, String op) | No description in source. |
fire | void fire(String id, String eventName, String value) | No description in source. |
call | void call(String operation, String arguments) | No description in source. |
remove | void remove(String id) | No description in source. |
run | int run() | Run the whole script top-down against the DOM. Returns the number of commands that executed successfully; stops and records lastError on the first command that fails. |
step | boolean step(SLGuiScriptCommand cmd) | Execute one command against the DOM / bridge. Returns false on failure. |
programCounter | int programCounter() | No description in source. |
executedCount | int executedCount() | No description in source. |
error | String error() | No description in source. |
ok | boolean ok() | No description in source. |
SLGuiScript #sleela 2.5 (lib/gui/version-mual/SLGuiScript.sleela)
SLGuiScript class
Defines SLGuiScript — the scripting engine for /lib/gui. It holds an ordered list of SLGuiScriptCommands and runs them against an SLGuiDom (and, for the `call` verb, across the native boundary via SLGuiBridge). This is the "support for scripting" layer: a UI can be described and driven by a command list rather than hand-written SLeeLa, which is what makes DHTML-style authoring and tooling (serialising a UI, replaying interactions, data-driven screens) possible. The engine is deliberately NOT a general interpreter — it is a bounded, auditable verb list that only touches the SLeeLa-owned DOM/event bus and the documented operation bridge, so a script can never do more than the DOM API already allows. Family: gui. SLeeLa owns execution; scripts express UI intent declaratively.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_COMMANDS | static final int MAX_COMMANDS = 65536 | No description in source. |
commands | SLGuiScriptCommand[] commands | No description in source. |
count | int count | No description in source. |
dom | SLGuiDom dom | the document the script manipulates |
bridge | SLGuiBridge bridge | native boundary for the `call` verb (may be null) |
types | SLGuiEventType types | event-name -> ordinal |
pc | int pc | program counter of the last executed command |
executed | int executed | total commands executed |
lastError | String lastError | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init(SLGuiDom document) | No description in source. |
attachBridge | void attachBridge(SLGuiBridge b) | Attach a created native bridge so `call` can cross to a SLeeLa operation. |
size | int size() | No description in source. |
add | SLGuiScriptCommand add(int verb, String a, String b, String c, String d) | No description in source. |
create | void create(String tag, String id, String parentId) | Typed builders (the common verbs) for readable script assembly. |
append | void append(String parentId, String childId) | No description in source. |
text | void text(String id, String value) | No description in source. |
attr | void attr(String id, String name, String value) | No description in source. |
style | void style(String id, String prop, String value) | No description in source. |
show | void show(String id) | No description in source. |
hide | void hide(String id) | No description in source. |
enable | void enable(String id, boolean on) | No description in source. |
on | void on(String id, String eventName, String op) | No description in source. |
fire | void fire(String id, String eventName, String value) | No description in source. |
call | void call(String operation, String arguments) | No description in source. |
remove | void remove(String id) | No description in source. |
run | int run() | Run the whole script top-down against the DOM. Returns the number of commands that executed successfully; stops and records lastError on the first command that fails. |
step | boolean step(SLGuiScriptCommand cmd) | Execute one command against the DOM / bridge. Returns false on failure. |
programCounter | int programCounter() | No description in source. |
executedCount | int executedCount() | No description in source. |
error | String error() | No description in source. |
ok | boolean ok() | No description in source. |
SLGuiScript #sleela 2.5 (lib/gui/version-thual/SLGuiScript.sleela)
SLGuiScript class
Defines SLGuiScript — the scripting engine for /lib/gui. It holds an ordered list of SLGuiScriptCommands and runs them against an SLGuiDom (and, for the `call` verb, across the native boundary via SLGuiBridge). This is the "support for scripting" layer: a UI can be described and driven by a command list rather than hand-written SLeeLa, which is what makes DHTML-style authoring and tooling (serialising a UI, replaying interactions, data-driven screens) possible. The engine is deliberately NOT a general interpreter — it is a bounded, auditable verb list that only touches the SLeeLa-owned DOM/event bus and the documented operation bridge, so a script can never do more than the DOM API already allows. Family: gui. SLeeLa owns execution; scripts express UI intent declaratively.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_COMMANDS | static final int MAX_COMMANDS = 65536 | No description in source. |
commands | SLGuiScriptCommand[] commands | No description in source. |
count | int count | No description in source. |
dom | SLGuiDom dom | the document the script manipulates |
bridge | SLGuiBridge bridge | native boundary for the `call` verb (may be null) |
types | SLGuiEventType types | event-name -> ordinal |
pc | int pc | program counter of the last executed command |
executed | int executed | total commands executed |
lastError | String lastError | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init(SLGuiDom document) | No description in source. |
attachBridge | void attachBridge(SLGuiBridge b) | Attach a created native bridge so `call` can cross to a SLeeLa operation. |
size | int size() | No description in source. |
add | SLGuiScriptCommand add(int verb, String a, String b, String c, String d) | No description in source. |
create | void create(String tag, String id, String parentId) | Typed builders (the common verbs) for readable script assembly. |
append | void append(String parentId, String childId) | No description in source. |
text | void text(String id, String value) | No description in source. |
attr | void attr(String id, String name, String value) | No description in source. |
style | void style(String id, String prop, String value) | No description in source. |
show | void show(String id) | No description in source. |
hide | void hide(String id) | No description in source. |
enable | void enable(String id, boolean on) | No description in source. |
on | void on(String id, String eventName, String op) | No description in source. |
fire | void fire(String id, String eventName, String value) | No description in source. |
call | void call(String operation, String arguments) | No description in source. |
remove | void remove(String id) | No description in source. |
run | int run() | Run the whole script top-down against the DOM. Returns the number of commands that executed successfully; stops and records lastError on the first command that fails. |
step | boolean step(SLGuiScriptCommand cmd) | Execute one command against the DOM / bridge. Returns false on failure. |
programCounter | int programCounter() | No description in source. |
executedCount | int executedCount() | No description in source. |
error | String error() | No description in source. |
ok | boolean ok() | No description in source. |
SLGuiScript #sleela 2.5 (lib/gui/version-military/SLGuiScript.sleela)
SLGuiScript class
Defines SLGuiScript — the scripting engine for /lib/gui. It holds an ordered list of SLGuiScriptCommands and runs them against an SLGuiDom (and, for the `call` verb, across the native boundary via SLGuiBridge). This is the "support for scripting" layer: a UI can be described and driven by a command list rather than hand-written SLeeLa, which is what makes DHTML-style authoring and tooling (serialising a UI, replaying interactions, data-driven screens) possible. The engine is deliberately NOT a general interpreter — it is a bounded, auditable verb list that only touches the SLeeLa-owned DOM/event bus and the documented operation bridge, so a script can never do more than the DOM API already allows. Family: gui. SLeeLa owns execution; scripts express UI intent declaratively.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_COMMANDS | static final int MAX_COMMANDS = 65536 | No description in source. |
commands | SLGuiScriptCommand[] commands | No description in source. |
count | int count | No description in source. |
dom | SLGuiDom dom | the document the script manipulates |
bridge | SLGuiBridge bridge | native boundary for the `call` verb (may be null) |
types | SLGuiEventType types | event-name -> ordinal |
pc | int pc | program counter of the last executed command |
executed | int executed | total commands executed |
lastError | String lastError | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init(SLGuiDom document) | No description in source. |
attachBridge | void attachBridge(SLGuiBridge b) | Attach a created native bridge so `call` can cross to a SLeeLa operation. |
size | int size() | No description in source. |
add | SLGuiScriptCommand add(int verb, String a, String b, String c, String d) | No description in source. |
create | void create(String tag, String id, String parentId) | Typed builders (the common verbs) for readable script assembly. |
append | void append(String parentId, String childId) | No description in source. |
text | void text(String id, String value) | No description in source. |
attr | void attr(String id, String name, String value) | No description in source. |
style | void style(String id, String prop, String value) | No description in source. |
show | void show(String id) | No description in source. |
hide | void hide(String id) | No description in source. |
enable | void enable(String id, boolean on) | No description in source. |
on | void on(String id, String eventName, String op) | No description in source. |
fire | void fire(String id, String eventName, String value) | No description in source. |
call | void call(String operation, String arguments) | No description in source. |
remove | void remove(String id) | No description in source. |
run | int run() | Run the whole script top-down against the DOM. Returns the number of commands that executed successfully; stops and records lastError on the first command that fails. |
step | boolean step(SLGuiScriptCommand cmd) | Execute one command against the DOM / bridge. Returns false on failure. |
programCounter | int programCounter() | No description in source. |
executedCount | int executedCount() | No description in source. |
error | String error() | No description in source. |
ok | boolean ok() | No description in source. |
SLGuiScript #sleela 2.5 (lib/gui/version-dual/SLGuiScript.sleela)
SLGuiScript class
Defines SLGuiScript — the scripting engine for /lib/gui. It holds an ordered list of SLGuiScriptCommands and runs them against an SLGuiDom (and, for the `call` verb, across the native boundary via SLGuiBridge). This is the "support for scripting" layer: a UI can be described and driven by a command list rather than hand-written SLeeLa, which is what makes DHTML-style authoring and tooling (serialising a UI, replaying interactions, data-driven screens) possible. The engine is deliberately NOT a general interpreter — it is a bounded, auditable verb list that only touches the SLeeLa-owned DOM/event bus and the documented operation bridge, so a script can never do more than the DOM API already allows. Family: gui. SLeeLa owns execution; scripts express UI intent declaratively.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_COMMANDS | static final int MAX_COMMANDS = 65536 | No description in source. |
commands | SLGuiScriptCommand[] commands | No description in source. |
count | int count | No description in source. |
dom | SLGuiDom dom | the document the script manipulates |
bridge | SLGuiBridge bridge | native boundary for the `call` verb (may be null) |
types | SLGuiEventType types | event-name -> ordinal |
pc | int pc | program counter of the last executed command |
executed | int executed | total commands executed |
lastError | String lastError | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
init | void init(SLGuiDom document) | No description in source. |
attachBridge | void attachBridge(SLGuiBridge b) | Attach a created native bridge so `call` can cross to a SLeeLa operation. |
size | int size() | No description in source. |
add | SLGuiScriptCommand add(int verb, String a, String b, String c, String d) | No description in source. |
create | void create(String tag, String id, String parentId) | Typed builders (the common verbs) for readable script assembly. |
append | void append(String parentId, String childId) | No description in source. |
text | void text(String id, String value) | No description in source. |
attr | void attr(String id, String name, String value) | No description in source. |
style | void style(String id, String prop, String value) | No description in source. |
show | void show(String id) | No description in source. |
hide | void hide(String id) | No description in source. |
enable | void enable(String id, boolean on) | No description in source. |
on | void on(String id, String eventName, String op) | No description in source. |
fire | void fire(String id, String eventName, String value) | No description in source. |
call | void call(String operation, String arguments) | No description in source. |
remove | void remove(String id) | No description in source. |
run | int run() | Run the whole script top-down against the DOM. Returns the number of commands that executed successfully; stops and records lastError on the first command that fails. |
step | boolean step(SLGuiScriptCommand cmd) | Execute one command against the DOM / bridge. Returns false on failure. |
programCounter | int programCounter() | No description in source. |
executedCount | int executedCount() | No description in source. |
error | String error() | No description in source. |
ok | boolean ok() | No description in source. |
SLGuiScriptCommand #sleela 2.5 (lib/gui/version-gual/SLGuiScriptCommand.sleela)
SLGuiScriptCommand class
Defines SLGuiScriptCommand — one instruction of a /lib/gui UI script. The scripting support is a small, safe, declarative command list (not an arbitrary interpreter): each command is a verb plus up to four string operands. The verbs mirror the DOM/event API so a script can build and drive an interface without native code — create, append, text, attr, style, show, hide, enable, on (bind a handler), fire (raise an event), and call (cross the native bridge to a SLeeLa operation). An ordinal verb keeps dispatch cheap; the operands are interpreted per verb by SLGuiScript. Family: gui. Scripts describe UI intent; SLeeLa (via SLGuiScript) executes it against the SLeeLa-owned DOM and event bus.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
CREATE | static final int CREATE = 0 | Verb ordinals. create <tag> <id> [parentId] |
APPEND | static final int APPEND = 1 | append <parentId> <childId> |
TEXT | static final int TEXT = 2 | text <id> <value> |
ATTR | static final int ATTR = 3 | attr <id> <name> <value> |
STYLE | static final int STYLE = 4 | style <id> <prop> <value> |
SHOW | static final int SHOW = 5 | show <id> |
HIDE | static final int HIDE = 6 | hide <id> |
ENABLE | static final int ENABLE = 7 | enable <id> <"1"|"0"> |
ON | static final int ON = 8 | on <id> <eventName> <operation> |
FIRE | static final int FIRE = 9 | fire <id> <eventName> [value] |
CALL | static final int CALL =10 | call <operation> [arguments] |
REMOVE | static final int REMOVE =11 | remove <id> |
NOP | static final int NOP =12 | no-op / comment |
verb | int verb | No description in source. |
a | String a | operand 1 |
b | String b | operand 2 |
c | String c | operand 3 |
d | String d | operand 4 |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int v, String o1, String o2, String o3, String o4) | No description in source. |
getVerb | int getVerb() | No description in source. |
op1 | String op1() | No description in source. |
op2 | String op2() | No description in source. |
op3 | String op3() | No description in source. |
op4 | String op4() | No description in source. |
verbOf | int verbOf(String word) | Map a verb keyword to its ordinal (-1 when unknown). |
valid | boolean valid() | No description in source. |
SLGuiScriptCommand #sleela 2.5 (lib/gui/version-mual/SLGuiScriptCommand.sleela)
SLGuiScriptCommand class
Defines SLGuiScriptCommand — one instruction of a /lib/gui UI script. The scripting support is a small, safe, declarative command list (not an arbitrary interpreter): each command is a verb plus up to four string operands. The verbs mirror the DOM/event API so a script can build and drive an interface without native code — create, append, text, attr, style, show, hide, enable, on (bind a handler), fire (raise an event), and call (cross the native bridge to a SLeeLa operation). An ordinal verb keeps dispatch cheap; the operands are interpreted per verb by SLGuiScript. Family: gui. Scripts describe UI intent; SLeeLa (via SLGuiScript) executes it against the SLeeLa-owned DOM and event bus.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
CREATE | static final int CREATE = 0 | Verb ordinals. create <tag> <id> [parentId] |
APPEND | static final int APPEND = 1 | append <parentId> <childId> |
TEXT | static final int TEXT = 2 | text <id> <value> |
ATTR | static final int ATTR = 3 | attr <id> <name> <value> |
STYLE | static final int STYLE = 4 | style <id> <prop> <value> |
SHOW | static final int SHOW = 5 | show <id> |
HIDE | static final int HIDE = 6 | hide <id> |
ENABLE | static final int ENABLE = 7 | enable <id> <"1"|"0"> |
ON | static final int ON = 8 | on <id> <eventName> <operation> |
FIRE | static final int FIRE = 9 | fire <id> <eventName> [value] |
CALL | static final int CALL =10 | call <operation> [arguments] |
REMOVE | static final int REMOVE =11 | remove <id> |
NOP | static final int NOP =12 | no-op / comment |
verb | int verb | No description in source. |
a | String a | operand 1 |
b | String b | operand 2 |
c | String c | operand 3 |
d | String d | operand 4 |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int v, String o1, String o2, String o3, String o4) | No description in source. |
getVerb | int getVerb() | No description in source. |
op1 | String op1() | No description in source. |
op2 | String op2() | No description in source. |
op3 | String op3() | No description in source. |
op4 | String op4() | No description in source. |
verbOf | int verbOf(String word) | Map a verb keyword to its ordinal (-1 when unknown). |
valid | boolean valid() | No description in source. |
SLGuiScriptCommand #sleela 2.5 (lib/gui/version-thual/SLGuiScriptCommand.sleela)
SLGuiScriptCommand class
Defines SLGuiScriptCommand — one instruction of a /lib/gui UI script. The scripting support is a small, safe, declarative command list (not an arbitrary interpreter): each command is a verb plus up to four string operands. The verbs mirror the DOM/event API so a script can build and drive an interface without native code — create, append, text, attr, style, show, hide, enable, on (bind a handler), fire (raise an event), and call (cross the native bridge to a SLeeLa operation). An ordinal verb keeps dispatch cheap; the operands are interpreted per verb by SLGuiScript. Family: gui. Scripts describe UI intent; SLeeLa (via SLGuiScript) executes it against the SLeeLa-owned DOM and event bus.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
CREATE | static final int CREATE = 0 | Verb ordinals. create <tag> <id> [parentId] |
APPEND | static final int APPEND = 1 | append <parentId> <childId> |
TEXT | static final int TEXT = 2 | text <id> <value> |
ATTR | static final int ATTR = 3 | attr <id> <name> <value> |
STYLE | static final int STYLE = 4 | style <id> <prop> <value> |
SHOW | static final int SHOW = 5 | show <id> |
HIDE | static final int HIDE = 6 | hide <id> |
ENABLE | static final int ENABLE = 7 | enable <id> <"1"|"0"> |
ON | static final int ON = 8 | on <id> <eventName> <operation> |
FIRE | static final int FIRE = 9 | fire <id> <eventName> [value] |
CALL | static final int CALL =10 | call <operation> [arguments] |
REMOVE | static final int REMOVE =11 | remove <id> |
NOP | static final int NOP =12 | no-op / comment |
verb | int verb | No description in source. |
a | String a | operand 1 |
b | String b | operand 2 |
c | String c | operand 3 |
d | String d | operand 4 |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int v, String o1, String o2, String o3, String o4) | No description in source. |
getVerb | int getVerb() | No description in source. |
op1 | String op1() | No description in source. |
op2 | String op2() | No description in source. |
op3 | String op3() | No description in source. |
op4 | String op4() | No description in source. |
verbOf | int verbOf(String word) | Map a verb keyword to its ordinal (-1 when unknown). |
valid | boolean valid() | No description in source. |
SLGuiScriptCommand #sleela 2.5 (lib/gui/version-military/SLGuiScriptCommand.sleela)
SLGuiScriptCommand class
Defines SLGuiScriptCommand — one instruction of a /lib/gui UI script. The scripting support is a small, safe, declarative command list (not an arbitrary interpreter): each command is a verb plus up to four string operands. The verbs mirror the DOM/event API so a script can build and drive an interface without native code — create, append, text, attr, style, show, hide, enable, on (bind a handler), fire (raise an event), and call (cross the native bridge to a SLeeLa operation). An ordinal verb keeps dispatch cheap; the operands are interpreted per verb by SLGuiScript. Family: gui. Scripts describe UI intent; SLeeLa (via SLGuiScript) executes it against the SLeeLa-owned DOM and event bus.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
CREATE | static final int CREATE = 0 | Verb ordinals. create <tag> <id> [parentId] |
APPEND | static final int APPEND = 1 | append <parentId> <childId> |
TEXT | static final int TEXT = 2 | text <id> <value> |
ATTR | static final int ATTR = 3 | attr <id> <name> <value> |
STYLE | static final int STYLE = 4 | style <id> <prop> <value> |
SHOW | static final int SHOW = 5 | show <id> |
HIDE | static final int HIDE = 6 | hide <id> |
ENABLE | static final int ENABLE = 7 | enable <id> <"1"|"0"> |
ON | static final int ON = 8 | on <id> <eventName> <operation> |
FIRE | static final int FIRE = 9 | fire <id> <eventName> [value] |
CALL | static final int CALL =10 | call <operation> [arguments] |
REMOVE | static final int REMOVE =11 | remove <id> |
NOP | static final int NOP =12 | no-op / comment |
verb | int verb | No description in source. |
a | String a | operand 1 |
b | String b | operand 2 |
c | String c | operand 3 |
d | String d | operand 4 |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int v, String o1, String o2, String o3, String o4) | No description in source. |
getVerb | int getVerb() | No description in source. |
op1 | String op1() | No description in source. |
op2 | String op2() | No description in source. |
op3 | String op3() | No description in source. |
op4 | String op4() | No description in source. |
verbOf | int verbOf(String word) | Map a verb keyword to its ordinal (-1 when unknown). |
valid | boolean valid() | No description in source. |
SLGuiScriptCommand #sleela 2.5 (lib/gui/version-dual/SLGuiScriptCommand.sleela)
SLGuiScriptCommand class
Defines SLGuiScriptCommand — one instruction of a /lib/gui UI script. The scripting support is a small, safe, declarative command list (not an arbitrary interpreter): each command is a verb plus up to four string operands. The verbs mirror the DOM/event API so a script can build and drive an interface without native code — create, append, text, attr, style, show, hide, enable, on (bind a handler), fire (raise an event), and call (cross the native bridge to a SLeeLa operation). An ordinal verb keeps dispatch cheap; the operands are interpreted per verb by SLGuiScript. Family: gui. Scripts describe UI intent; SLeeLa (via SLGuiScript) executes it against the SLeeLa-owned DOM and event bus.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
CREATE | static final int CREATE = 0 | Verb ordinals. create <tag> <id> [parentId] |
APPEND | static final int APPEND = 1 | append <parentId> <childId> |
TEXT | static final int TEXT = 2 | text <id> <value> |
ATTR | static final int ATTR = 3 | attr <id> <name> <value> |
STYLE | static final int STYLE = 4 | style <id> <prop> <value> |
SHOW | static final int SHOW = 5 | show <id> |
HIDE | static final int HIDE = 6 | hide <id> |
ENABLE | static final int ENABLE = 7 | enable <id> <"1"|"0"> |
ON | static final int ON = 8 | on <id> <eventName> <operation> |
FIRE | static final int FIRE = 9 | fire <id> <eventName> [value] |
CALL | static final int CALL =10 | call <operation> [arguments] |
REMOVE | static final int REMOVE =11 | remove <id> |
NOP | static final int NOP =12 | no-op / comment |
verb | int verb | No description in source. |
a | String a | operand 1 |
b | String b | operand 2 |
c | String c | operand 3 |
d | String d | operand 4 |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int v, String o1, String o2, String o3, String o4) | No description in source. |
getVerb | int getVerb() | No description in source. |
op1 | String op1() | No description in source. |
op2 | String op2() | No description in source. |
op3 | String op3() | No description in source. |
op4 | String op4() | No description in source. |
verbOf | int verbOf(String word) | Map a verb keyword to its ordinal (-1 when unknown). |
valid | boolean valid() | No description in source. |
SLGuiScrollbar #sleela 2.5 (lib/gui/version-gual/SLGuiScrollbar.sleela)
SLGuiScrollbar class
Defines SLGuiScrollbar — the IMPLIED scrollbar model for a scrolled surface, in BOTH axes (vertical and horizontal). It is a pure model: given a viewport extent and the content extent on an axis, it decides whether a scrollbar is IMPLIED (content overflows the viewport), and computes the two normalized [0,1] values the toolkit's drawn scroll bar needs — `page` (the fraction of content the viewport shows, i.e. the thumb size) and `value` (the thumb position from the current scroll offset). It also resolves a visibility policy (auto / always / never) so a host can show the bar only when scrolling is actually implied. SLeeLa owns the geometry + policy; the host paints it with `uiScrollBar(parent, orient, value, page)` and feeds scroll gestures back through `scrollBy` / `scrollTo`. Family: gui. The companion of SLGuiLayout for overflow; the drawn bar is the existing SleelaUI scroll-bar control — this class is the implied geometry.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
AXIS_VERTICAL | static final int AXIS_VERTICAL = 0 | Axis ordinals (mirror SLUIOrientation: VERTICAL=0, HORIZONTAL=1). |
AXIS_HORIZONTAL | static final int AXIS_HORIZONTAL = 1 | No description in source. |
SHOW_AUTO | static final int SHOW_AUTO = 0 | Visibility policy for an implied scrollbar. shown only while content overflows |
SHOW_ALWAYS | static final int SHOW_ALWAYS = 1 | always shown (reserves the gutter) |
SHOW_NEVER | static final int SHOW_NEVER = 2 | never shown (overflow still scrolls) |
axis | int axis | AXIS_VERTICAL / AXIS_HORIZONTAL |
policy | int policy | SHOW_* |
viewport | int viewport | visible extent on this axis (px) |
content | int content | total content extent on this axis (px) |
offset | int offset | current scroll offset from the start (px), clamped |
thicknessPx | int thicknessPx | drawn gutter thickness (px) |
UNIT | static final int UNIT = 1000 | Fixed-point scale for the normalized [0,1] value/page (SLeeLa ints only): we report value/page in PERMILLE (0..1000) so callers can divide by 1000.0 to get the [0,1] double the toolkit wants, with no float fields here. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure(int whichAxis, int viewportPx, int contentPx) | Install safe defaults for an axis; a zero/negative extent is treated as 0. |
setPolicy | void setPolicy(int p) | No description in source. |
setThickness | void setThickness(int px) | No description in source. |
setViewport | void setViewport(int px) | The host reports a new viewport (on resize) and/or content (on relayout). |
setContent | void setContent(int px) | No description in source. |
maxOffset | int maxOffset() | The maximum scrollable offset (0 when content fits the viewport). |
clampOffset | void clampOffset() | No description in source. |
scrollTo | void scrollTo(int px) | ---- scroll gestures (the host raises these) ---------------------------- |
scrollBy | void scrollBy(int deltaPx) | No description in source. |
scrollToStart | void scrollToStart() | No description in source. |
scrollToEnd | void scrollToEnd() | No description in source. |
overflow | boolean overflow() | ---- the IMPLIED decision ----------------------------------------------- Scrolling is implied exactly when the content overflows the viewport. |
implied | boolean implied() | Should the drawn bar be shown, given the policy? |
pagePermille | int pagePermille() | ---- normalized geometry for uiScrollBar(parent, orient, value, page) ---- page = fraction of content currently visible (thumb size), in [0,1]. |
valuePermille | int valuePermille() | value = thumb position from the scroll offset, in [0,1]. |
pageScaled | int pageScaled(int scale) | Convenience: scaled to an arbitrary resolution (e.g. 100 for a percent). |
valueScaled | int valueScaled(int scale) | No description in source. |
getAxis | int getAxis() | ---- readers ------------------------------------------------------------ |
getOffset | int getOffset() | No description in source. |
getViewport | int getViewport() | No description in source. |
getContent | int getContent() | No description in source. |
getThickness | int getThickness() | No description in source. |
getPolicy | int getPolicy() | No description in source. |
orient | int orient() | the SLUIOrientation to pass |
axisName | String axisName() | No description in source. |
policyName | String policyName() | No description in source. |
honored | boolean honored() | Internally consistent: non-negative extents, offset within range, and a page/value pair that stay inside [0,1]. |
report | String report() | No description in source. |
SLGuiScrollbar #sleela 2.5 (lib/gui/version-mual/SLGuiScrollbar.sleela)
SLGuiScrollbar class
Defines SLGuiScrollbar — the IMPLIED scrollbar model for a scrolled surface, in BOTH axes (vertical and horizontal). It is a pure model: given a viewport extent and the content extent on an axis, it decides whether a scrollbar is IMPLIED (content overflows the viewport), and computes the two normalized [0,1] values the toolkit's drawn scroll bar needs — `page` (the fraction of content the viewport shows, i.e. the thumb size) and `value` (the thumb position from the current scroll offset). It also resolves a visibility policy (auto / always / never) so a host can show the bar only when scrolling is actually implied. SLeeLa owns the geometry + policy; the host paints it with `uiScrollBar(parent, orient, value, page)` and feeds scroll gestures back through `scrollBy` / `scrollTo`. Family: gui. The companion of SLGuiLayout for overflow; the drawn bar is the existing SleelaUI scroll-bar control — this class is the implied geometry.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
AXIS_VERTICAL | static final int AXIS_VERTICAL = 0 | Axis ordinals (mirror SLUIOrientation: VERTICAL=0, HORIZONTAL=1). |
AXIS_HORIZONTAL | static final int AXIS_HORIZONTAL = 1 | No description in source. |
SHOW_AUTO | static final int SHOW_AUTO = 0 | Visibility policy for an implied scrollbar. shown only while content overflows |
SHOW_ALWAYS | static final int SHOW_ALWAYS = 1 | always shown (reserves the gutter) |
SHOW_NEVER | static final int SHOW_NEVER = 2 | never shown (overflow still scrolls) |
axis | int axis | AXIS_VERTICAL / AXIS_HORIZONTAL |
policy | int policy | SHOW_* |
viewport | int viewport | visible extent on this axis (px) |
content | int content | total content extent on this axis (px) |
offset | int offset | current scroll offset from the start (px), clamped |
thicknessPx | int thicknessPx | drawn gutter thickness (px) |
UNIT | static final int UNIT = 1000 | Fixed-point scale for the normalized [0,1] value/page (SLeeLa ints only): we report value/page in PERMILLE (0..1000) so callers can divide by 1000.0 to get the [0,1] double the toolkit wants, with no float fields here. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure(int whichAxis, int viewportPx, int contentPx) | Install safe defaults for an axis; a zero/negative extent is treated as 0. |
setPolicy | void setPolicy(int p) | No description in source. |
setThickness | void setThickness(int px) | No description in source. |
setViewport | void setViewport(int px) | The host reports a new viewport (on resize) and/or content (on relayout). |
setContent | void setContent(int px) | No description in source. |
maxOffset | int maxOffset() | The maximum scrollable offset (0 when content fits the viewport). |
clampOffset | void clampOffset() | No description in source. |
scrollTo | void scrollTo(int px) | ---- scroll gestures (the host raises these) ---------------------------- |
scrollBy | void scrollBy(int deltaPx) | No description in source. |
scrollToStart | void scrollToStart() | No description in source. |
scrollToEnd | void scrollToEnd() | No description in source. |
overflow | boolean overflow() | ---- the IMPLIED decision ----------------------------------------------- Scrolling is implied exactly when the content overflows the viewport. |
implied | boolean implied() | Should the drawn bar be shown, given the policy? |
pagePermille | int pagePermille() | ---- normalized geometry for uiScrollBar(parent, orient, value, page) ---- page = fraction of content currently visible (thumb size), in [0,1]. |
valuePermille | int valuePermille() | value = thumb position from the scroll offset, in [0,1]. |
pageScaled | int pageScaled(int scale) | Convenience: scaled to an arbitrary resolution (e.g. 100 for a percent). |
valueScaled | int valueScaled(int scale) | No description in source. |
getAxis | int getAxis() | ---- readers ------------------------------------------------------------ |
getOffset | int getOffset() | No description in source. |
getViewport | int getViewport() | No description in source. |
getContent | int getContent() | No description in source. |
getThickness | int getThickness() | No description in source. |
getPolicy | int getPolicy() | No description in source. |
orient | int orient() | the SLUIOrientation to pass |
axisName | String axisName() | No description in source. |
policyName | String policyName() | No description in source. |
honored | boolean honored() | Internally consistent: non-negative extents, offset within range, and a page/value pair that stay inside [0,1]. |
report | String report() | No description in source. |
SLGuiScrollbar #sleela 2.5 (lib/gui/version-thual/SLGuiScrollbar.sleela)
SLGuiScrollbar class
Defines SLGuiScrollbar — the IMPLIED scrollbar model for a scrolled surface, in BOTH axes (vertical and horizontal). It is a pure model: given a viewport extent and the content extent on an axis, it decides whether a scrollbar is IMPLIED (content overflows the viewport), and computes the two normalized [0,1] values the toolkit's drawn scroll bar needs — `page` (the fraction of content the viewport shows, i.e. the thumb size) and `value` (the thumb position from the current scroll offset). It also resolves a visibility policy (auto / always / never) so a host can show the bar only when scrolling is actually implied. SLeeLa owns the geometry + policy; the host paints it with `uiScrollBar(parent, orient, value, page)` and feeds scroll gestures back through `scrollBy` / `scrollTo`. Family: gui. The companion of SLGuiLayout for overflow; the drawn bar is the existing SleelaUI scroll-bar control — this class is the implied geometry.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
AXIS_VERTICAL | static final int AXIS_VERTICAL = 0 | Axis ordinals (mirror SLUIOrientation: VERTICAL=0, HORIZONTAL=1). |
AXIS_HORIZONTAL | static final int AXIS_HORIZONTAL = 1 | No description in source. |
SHOW_AUTO | static final int SHOW_AUTO = 0 | Visibility policy for an implied scrollbar. shown only while content overflows |
SHOW_ALWAYS | static final int SHOW_ALWAYS = 1 | always shown (reserves the gutter) |
SHOW_NEVER | static final int SHOW_NEVER = 2 | never shown (overflow still scrolls) |
axis | int axis | AXIS_VERTICAL / AXIS_HORIZONTAL |
policy | int policy | SHOW_* |
viewport | int viewport | visible extent on this axis (px) |
content | int content | total content extent on this axis (px) |
offset | int offset | current scroll offset from the start (px), clamped |
thicknessPx | int thicknessPx | drawn gutter thickness (px) |
UNIT | static final int UNIT = 1000 | Fixed-point scale for the normalized [0,1] value/page (SLeeLa ints only): we report value/page in PERMILLE (0..1000) so callers can divide by 1000.0 to get the [0,1] double the toolkit wants, with no float fields here. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure(int whichAxis, int viewportPx, int contentPx) | Install safe defaults for an axis; a zero/negative extent is treated as 0. |
setPolicy | void setPolicy(int p) | No description in source. |
setThickness | void setThickness(int px) | No description in source. |
setViewport | void setViewport(int px) | The host reports a new viewport (on resize) and/or content (on relayout). |
setContent | void setContent(int px) | No description in source. |
maxOffset | int maxOffset() | The maximum scrollable offset (0 when content fits the viewport). |
clampOffset | void clampOffset() | No description in source. |
scrollTo | void scrollTo(int px) | ---- scroll gestures (the host raises these) ---------------------------- |
scrollBy | void scrollBy(int deltaPx) | No description in source. |
scrollToStart | void scrollToStart() | No description in source. |
scrollToEnd | void scrollToEnd() | No description in source. |
overflow | boolean overflow() | ---- the IMPLIED decision ----------------------------------------------- Scrolling is implied exactly when the content overflows the viewport. |
implied | boolean implied() | Should the drawn bar be shown, given the policy? |
pagePermille | int pagePermille() | ---- normalized geometry for uiScrollBar(parent, orient, value, page) ---- page = fraction of content currently visible (thumb size), in [0,1]. |
valuePermille | int valuePermille() | value = thumb position from the scroll offset, in [0,1]. |
pageScaled | int pageScaled(int scale) | Convenience: scaled to an arbitrary resolution (e.g. 100 for a percent). |
valueScaled | int valueScaled(int scale) | No description in source. |
getAxis | int getAxis() | ---- readers ------------------------------------------------------------ |
getOffset | int getOffset() | No description in source. |
getViewport | int getViewport() | No description in source. |
getContent | int getContent() | No description in source. |
getThickness | int getThickness() | No description in source. |
getPolicy | int getPolicy() | No description in source. |
orient | int orient() | the SLUIOrientation to pass |
axisName | String axisName() | No description in source. |
policyName | String policyName() | No description in source. |
honored | boolean honored() | Internally consistent: non-negative extents, offset within range, and a page/value pair that stay inside [0,1]. |
report | String report() | No description in source. |
SLGuiScrollbar #sleela 2.5 (lib/gui/version-military/SLGuiScrollbar.sleela)
SLGuiScrollbar class
Defines SLGuiScrollbar — the military-line IMPLIED scrollbar model for a scrolled surface, in BOTH axes (vertical and horizontal). It is a pure model: given a viewport extent and the content extent on an axis, it decides whether a scrollbar is IMPLIED (content overflows the viewport), and computes the two normalized [0,1] values the toolkit's drawn scroll bar needs — `page` (the fraction of content the viewport shows, i.e. the thumb size) and `value` (the thumb position from the current scroll offset). It also resolves a visibility policy (auto / always / never) so a host can show the bar only when scrolling is actually implied. SLeeLa owns the geometry + policy; the host paints it with `uiScrollBar(parent, orient, value, page)` and feeds scroll gestures back through `scrollBy` / `scrollTo`. Family: gui. The companion of SLGuiLayout for overflow; the drawn bar is the existing SleelaUI scroll-bar control — this class is the implied geometry.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
AXIS_VERTICAL | static final int AXIS_VERTICAL = 0 | Axis ordinals (mirror SLUIOrientation: VERTICAL=0, HORIZONTAL=1). |
AXIS_HORIZONTAL | static final int AXIS_HORIZONTAL = 1 | No description in source. |
SHOW_AUTO | static final int SHOW_AUTO = 0 | Visibility policy for an implied scrollbar. shown only while content overflows |
SHOW_ALWAYS | static final int SHOW_ALWAYS = 1 | always shown (reserves the gutter) |
SHOW_NEVER | static final int SHOW_NEVER = 2 | never shown (overflow still scrolls) |
axis | int axis | AXIS_VERTICAL / AXIS_HORIZONTAL |
policy | int policy | SHOW_* |
viewport | int viewport | visible extent on this axis (px) |
content | int content | total content extent on this axis (px) |
offset | int offset | current scroll offset from the start (px), clamped |
thicknessPx | int thicknessPx | drawn gutter thickness (px) |
UNIT | static final int UNIT = 1000 | Fixed-point scale for the normalized [0,1] value/page (SLeeLa ints only): we report value/page in PERMILLE (0..1000) so callers can divide by 1000.0 to get the [0,1] double the toolkit wants, with no float fields here. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure(int whichAxis, int viewportPx, int contentPx) | Install safe defaults for an axis; a zero/negative extent is treated as 0. |
setPolicy | void setPolicy(int p) | No description in source. |
setThickness | void setThickness(int px) | No description in source. |
setViewport | void setViewport(int px) | The host reports a new viewport (on resize) and/or content (on relayout). |
setContent | void setContent(int px) | No description in source. |
maxOffset | int maxOffset() | The maximum scrollable offset (0 when content fits the viewport). |
clampOffset | void clampOffset() | No description in source. |
scrollTo | void scrollTo(int px) | ---- scroll gestures (the host raises these) ---------------------------- |
scrollBy | void scrollBy(int deltaPx) | No description in source. |
scrollToStart | void scrollToStart() | No description in source. |
scrollToEnd | void scrollToEnd() | No description in source. |
overflow | boolean overflow() | ---- the IMPLIED decision ----------------------------------------------- Scrolling is implied exactly when the content overflows the viewport. |
implied | boolean implied() | Should the drawn bar be shown, given the policy? |
pagePermille | int pagePermille() | ---- normalized geometry for uiScrollBar(parent, orient, value, page) ---- page = fraction of content currently visible (thumb size), in [0,1]. |
valuePermille | int valuePermille() | value = thumb position from the scroll offset, in [0,1]. |
pageScaled | int pageScaled(int scale) | Convenience: scaled to an arbitrary resolution (e.g. 100 for a percent). |
valueScaled | int valueScaled(int scale) | No description in source. |
getAxis | int getAxis() | ---- readers ------------------------------------------------------------ |
getOffset | int getOffset() | No description in source. |
getViewport | int getViewport() | No description in source. |
getContent | int getContent() | No description in source. |
getThickness | int getThickness() | No description in source. |
getPolicy | int getPolicy() | No description in source. |
orient | int orient() | the SLUIOrientation to pass |
axisName | String axisName() | No description in source. |
policyName | String policyName() | No description in source. |
honored | boolean honored() | Internally consistent: non-negative extents, offset within range, and a page/value pair that stay inside [0,1]. |
report | String report() | No description in source. |
SLGuiScrollbar #sleela 2.5 (lib/gui/version-dual/SLGuiScrollbar.sleela)
SLGuiScrollbar class
Defines SLGuiScrollbar — the IMPLIED scrollbar model for a scrolled surface, in BOTH axes (vertical and horizontal). It is a pure model: given a viewport extent and the content extent on an axis, it decides whether a scrollbar is IMPLIED (content overflows the viewport), and computes the two normalized [0,1] values the toolkit's drawn scroll bar needs — `page` (the fraction of content the viewport shows, i.e. the thumb size) and `value` (the thumb position from the current scroll offset). It also resolves a visibility policy (auto / always / never) so a host can show the bar only when scrolling is actually implied. SLeeLa owns the geometry + policy; the host paints it with `uiScrollBar(parent, orient, value, page)` and feeds scroll gestures back through `scrollBy` / `scrollTo`. Family: gui. The companion of SLGuiLayout for overflow; the drawn bar is the existing SleelaUI scroll-bar control — this class is the implied geometry.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
AXIS_VERTICAL | static final int AXIS_VERTICAL = 0 | Axis ordinals (mirror SLUIOrientation: VERTICAL=0, HORIZONTAL=1). |
AXIS_HORIZONTAL | static final int AXIS_HORIZONTAL = 1 | No description in source. |
SHOW_AUTO | static final int SHOW_AUTO = 0 | Visibility policy for an implied scrollbar. shown only while content overflows |
SHOW_ALWAYS | static final int SHOW_ALWAYS = 1 | always shown (reserves the gutter) |
SHOW_NEVER | static final int SHOW_NEVER = 2 | never shown (overflow still scrolls) |
axis | int axis | AXIS_VERTICAL / AXIS_HORIZONTAL |
policy | int policy | SHOW_* |
viewport | int viewport | visible extent on this axis (px) |
content | int content | total content extent on this axis (px) |
offset | int offset | current scroll offset from the start (px), clamped |
thicknessPx | int thicknessPx | drawn gutter thickness (px) |
UNIT | static final int UNIT = 1000 | Fixed-point scale for the normalized [0,1] value/page (SLeeLa ints only): we report value/page in PERMILLE (0..1000) so callers can divide by 1000.0 to get the [0,1] double the toolkit wants, with no float fields here. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure(int whichAxis, int viewportPx, int contentPx) | Install safe defaults for an axis; a zero/negative extent is treated as 0. |
setPolicy | void setPolicy(int p) | No description in source. |
setThickness | void setThickness(int px) | No description in source. |
setViewport | void setViewport(int px) | The host reports a new viewport (on resize) and/or content (on relayout). |
setContent | void setContent(int px) | No description in source. |
maxOffset | int maxOffset() | The maximum scrollable offset (0 when content fits the viewport). |
clampOffset | void clampOffset() | No description in source. |
scrollTo | void scrollTo(int px) | ---- scroll gestures (the host raises these) ---------------------------- |
scrollBy | void scrollBy(int deltaPx) | No description in source. |
scrollToStart | void scrollToStart() | No description in source. |
scrollToEnd | void scrollToEnd() | No description in source. |
overflow | boolean overflow() | ---- the IMPLIED decision ----------------------------------------------- Scrolling is implied exactly when the content overflows the viewport. |
implied | boolean implied() | Should the drawn bar be shown, given the policy? |
pagePermille | int pagePermille() | ---- normalized geometry for uiScrollBar(parent, orient, value, page) ---- page = fraction of content currently visible (thumb size), in [0,1]. |
valuePermille | int valuePermille() | value = thumb position from the scroll offset, in [0,1]. |
pageScaled | int pageScaled(int scale) | Convenience: scaled to an arbitrary resolution (e.g. 100 for a percent). |
valueScaled | int valueScaled(int scale) | No description in source. |
getAxis | int getAxis() | ---- readers ------------------------------------------------------------ |
getOffset | int getOffset() | No description in source. |
getViewport | int getViewport() | No description in source. |
getContent | int getContent() | No description in source. |
getThickness | int getThickness() | No description in source. |
getPolicy | int getPolicy() | No description in source. |
orient | int orient() | the SLUIOrientation to pass |
axisName | String axisName() | No description in source. |
policyName | String policyName() | No description in source. |
honored | boolean honored() | Internally consistent: non-negative extents, offset within range, and a page/value pair that stay inside [0,1]. |
report | String report() | No description in source. |
SLGuiSettings #sleela 2.5 (lib/gui/version-gual/SLGuiSettings.sleela)
SLGuiSettings class
Defines SLGuiSettings — the 2.0 (gual) settings surface for the SLeeLa GUI package. Where the 1.0 (mual) line scattered a few tunables across classes, 2.0 gathers the operating knobs into one validated, nameful object: presentation (theme, DPI scale, reduced-motion / accessibility, vsync), window defaults (min/max size, resizable, decorations), and the document-listener timing (poll cadence, debounce window, coalesce-queue cap, backpressure policy). Every setting is CLAMPED to a safe window when applied — a dialed value is never accepted outside its stated range, and honored()/report() say whether the configuration is internally consistent. This mirrors the quality-first, clamp-to-window discipline used by the lib/cpu timing/voltage layer. Family: gui. A plain settings object; read by SLGuiBackend / SLGuiWindow / SLGuiDocumentListener and by SLGuiApp at boot.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
THEME_SYSTEM | static final int THEME_SYSTEM = 0 | --- theme --- follow the OS theme |
THEME_LIGHT | static final int THEME_LIGHT = 1 | No description in source. |
THEME_DARK | static final int THEME_DARK = 2 | No description in source. |
BACKPRESSURE_COALESCE | static final int BACKPRESSURE_COALESCE = 0 | --- document-listener backpressure policy --- merge overflow into the latest (default) |
BACKPRESSURE_DROP | static final int BACKPRESSURE_DROP = 1 | drop oldest when the queue is full |
BACKPRESSURE_BLOCK | static final int BACKPRESSURE_BLOCK = 2 | block the producer until drained |
BUFFERING_SINGLE | static final int BUFFERING_SINGLE = 0 | --- presentation buffering (mirror native SLUIBufferingMode) --- blit straight to the window (may tear on resize) |
BUFFERING_DOUBLE | static final int BUFFERING_DOUBLE = 1 | one off-screen back buffer; frame lands atomically (default) |
BUFFERING_TRIPLE | static final int BUFFERING_TRIPLE = 2 | a ring of two back buffers; smoother rapid resize/animation |
theme | int theme | --- presentation --- THEME_* |
dpiScalePct | int dpiScalePct | display scale percentage, 50..400 (100 = 1x) |
reducedMotion | int reducedMotion | 1 = minimize animation (accessibility) |
accessible | int accessible | 1 = expose accessibility tree / larger hit targets |
vsync | int vsync | 1 = present synchronized to the display refresh |
bufferingMode | int bufferingMode | BUFFERING_* — how a painted frame reaches the screen |
resizable | int resizable | 1 = user may resize |
decorated | int decorated | 1 = OS title bar / borders |
pollMillis | int pollMillis | --- document-listener timing --- OS wake cadence (ms), 10..60000 |
debounceMillis | int debounceMillis | settle window after a change before emitting, 0..10000 |
coalesceQueueMax | int coalesceQueueMax | max pending change events before backpressure, 1..4096 |
backpressure | int backpressure | BACKPRESSURE_* |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | Apply the documented, careful defaults. Everything here is already in range. |
clamp | int clamp(int v, int lo, int hi) | --- clamped setters: a value out of range is pulled to the nearest bound --- |
setTheme | void setTheme(int t) | No description in source. |
setDpiScalePct | void setDpiScalePct(int pct) | No description in source. |
setReducedMotion | void setReducedMotion(boolean on) | No description in source. |
setAccessible | void setAccessible(boolean on) | No description in source. |
setVsync | void setVsync(boolean on) | No description in source. |
setBufferingMode | void setBufferingMode(int m) | No description in source. |
setMinSize | void setMinSize(int w, int h) | No description in source. |
setMaxSize | void setMaxSize(int w, int h) | Max of 0 means unbounded; a positive max must not fall below the min. |
setResizable | void setResizable(boolean on) | No description in source. |
setDecorated | void setDecorated(boolean on) | No description in source. |
setPollMillis | void setPollMillis(int ms) | No description in source. |
setDebounceMillis | void setDebounceMillis(int ms) | No description in source. |
setCoalesceQueueMax | void setCoalesceQueueMax(int n) | No description in source. |
setBackpressure | void setBackpressure(int policy) | No description in source. |
getTheme | int getTheme() | --- readers --- |
getDpiScalePct | int getDpiScalePct() | No description in source. |
reducedMotionOn | boolean reducedMotionOn() | No description in source. |
accessibleOn | boolean accessibleOn() | No description in source. |
vsyncOn | boolean vsyncOn() | No description in source. |
getBufferingMode | int getBufferingMode() | No description in source. |
getMinWidth | int getMinWidth() | No description in source. |
getMinHeight | int getMinHeight() | No description in source. |
getMaxWidth | int getMaxWidth() | No description in source. |
getMaxHeight | int getMaxHeight() | No description in source. |
resizableOn | boolean resizableOn() | No description in source. |
decoratedOn | boolean decoratedOn() | No description in source. |
getPollMillis | int getPollMillis() | No description in source. |
getDebounceMillis | int getDebounceMillis() | No description in source. |
getCoalesceQueueMax | int getCoalesceQueueMax() | No description in source. |
getBackpressure | int getBackpressure() | No description in source. |
themeName | String themeName() | No description in source. |
backpressureName | String backpressureName() | No description in source. |
bufferingName | String bufferingName() | No description in source. |
honored | boolean honored() | Internally consistent when every clamped field sits in range and a bounded max is not below its min (0 = unbounded always passes). |
report | String report() | No description in source. |
SLGuiSettings #sleela 2.5 (lib/gui/version-thual/SLGuiSettings.sleela)
SLGuiSettings class
Defines SLGuiSettings — the 2.0 (gual) settings surface for the SLeeLa GUI package. Where the 1.0 (mual) line scattered a few tunables across classes, 2.0 gathers the operating knobs into one validated, nameful object: presentation (theme, DPI scale, reduced-motion / accessibility, vsync), window defaults (min/max size, resizable, decorations), and the document-listener timing (poll cadence, debounce window, coalesce-queue cap, backpressure policy). Every setting is CLAMPED to a safe window when applied — a dialed value is never accepted outside its stated range, and honored()/report() say whether the configuration is internally consistent. This mirrors the quality-first, clamp-to-window discipline used by the lib/cpu timing/voltage layer. Family: gui. A plain settings object; read by SLGuiBackend / SLGuiWindow / SLGuiDocumentListener and by SLGuiApp at boot.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
THEME_SYSTEM | static final int THEME_SYSTEM = 0 | --- theme --- follow the OS theme |
THEME_LIGHT | static final int THEME_LIGHT = 1 | No description in source. |
THEME_DARK | static final int THEME_DARK = 2 | No description in source. |
BACKPRESSURE_COALESCE | static final int BACKPRESSURE_COALESCE = 0 | --- document-listener backpressure policy --- merge overflow into the latest (default) |
BACKPRESSURE_DROP | static final int BACKPRESSURE_DROP = 1 | drop oldest when the queue is full |
BACKPRESSURE_BLOCK | static final int BACKPRESSURE_BLOCK = 2 | block the producer until drained |
BUFFERING_SINGLE | static final int BUFFERING_SINGLE = 0 | --- presentation buffering (mirror native SLUIBufferingMode) --- blit straight to the window (may tear on resize) |
BUFFERING_DOUBLE | static final int BUFFERING_DOUBLE = 1 | one off-screen back buffer; frame lands atomically (default) |
BUFFERING_TRIPLE | static final int BUFFERING_TRIPLE = 2 | a ring of two back buffers; smoother rapid resize/animation |
theme | int theme | --- presentation --- THEME_* |
dpiScalePct | int dpiScalePct | display scale percentage, 50..400 (100 = 1x) |
reducedMotion | int reducedMotion | 1 = minimize animation (accessibility) |
accessible | int accessible | 1 = expose accessibility tree / larger hit targets |
vsync | int vsync | 1 = present synchronized to the display refresh |
bufferingMode | int bufferingMode | BUFFERING_* — how a painted frame reaches the screen |
resizable | int resizable | 1 = user may resize |
decorated | int decorated | 1 = OS title bar / borders |
pollMillis | int pollMillis | --- document-listener timing --- OS wake cadence (ms), 10..60000 |
debounceMillis | int debounceMillis | settle window after a change before emitting, 0..10000 |
coalesceQueueMax | int coalesceQueueMax | max pending change events before backpressure, 1..4096 |
backpressure | int backpressure | BACKPRESSURE_* |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | Apply the documented, careful defaults. Everything here is already in range. |
clamp | int clamp(int v, int lo, int hi) | --- clamped setters: a value out of range is pulled to the nearest bound --- |
setTheme | void setTheme(int t) | No description in source. |
setDpiScalePct | void setDpiScalePct(int pct) | No description in source. |
setReducedMotion | void setReducedMotion(boolean on) | No description in source. |
setAccessible | void setAccessible(boolean on) | No description in source. |
setVsync | void setVsync(boolean on) | No description in source. |
setBufferingMode | void setBufferingMode(int m) | No description in source. |
setMinSize | void setMinSize(int w, int h) | No description in source. |
setMaxSize | void setMaxSize(int w, int h) | Max of 0 means unbounded; a positive max must not fall below the min. |
setResizable | void setResizable(boolean on) | No description in source. |
setDecorated | void setDecorated(boolean on) | No description in source. |
setPollMillis | void setPollMillis(int ms) | No description in source. |
setDebounceMillis | void setDebounceMillis(int ms) | No description in source. |
setCoalesceQueueMax | void setCoalesceQueueMax(int n) | No description in source. |
setBackpressure | void setBackpressure(int policy) | No description in source. |
getTheme | int getTheme() | --- readers --- |
getDpiScalePct | int getDpiScalePct() | No description in source. |
reducedMotionOn | boolean reducedMotionOn() | No description in source. |
accessibleOn | boolean accessibleOn() | No description in source. |
vsyncOn | boolean vsyncOn() | No description in source. |
getBufferingMode | int getBufferingMode() | No description in source. |
getMinWidth | int getMinWidth() | No description in source. |
getMinHeight | int getMinHeight() | No description in source. |
getMaxWidth | int getMaxWidth() | No description in source. |
getMaxHeight | int getMaxHeight() | No description in source. |
resizableOn | boolean resizableOn() | No description in source. |
decoratedOn | boolean decoratedOn() | No description in source. |
getPollMillis | int getPollMillis() | No description in source. |
getDebounceMillis | int getDebounceMillis() | No description in source. |
getCoalesceQueueMax | int getCoalesceQueueMax() | No description in source. |
getBackpressure | int getBackpressure() | No description in source. |
themeName | String themeName() | No description in source. |
backpressureName | String backpressureName() | No description in source. |
bufferingName | String bufferingName() | No description in source. |
honored | boolean honored() | Internally consistent when every clamped field sits in range and a bounded max is not below its min (0 = unbounded always passes). |
report | String report() | No description in source. |
SLGuiSettings #sleela 2.5 (lib/gui/version-military/SLGuiSettings.sleela)
SLGuiSettings class
Defines SLGuiSettings — the 2.0 (gual) settings surface for the SLeeLa GUI package. Where the 1.0 (mual) line scattered a few tunables across classes, 2.0 gathers the operating knobs into one validated, nameful object: presentation (theme, DPI scale, reduced-motion / accessibility, vsync), window defaults (min/max size, resizable, decorations), and the document-listener timing (poll cadence, debounce window, coalesce-queue cap, backpressure policy). Every setting is CLAMPED to a safe window when applied — a dialed value is never accepted outside its stated range, and honored()/report() say whether the configuration is internally consistent. This mirrors the quality-first, clamp-to-window discipline used by the lib/cpu timing/voltage layer. Family: gui. A plain settings object; read by SLGuiBackend / SLGuiWindow / SLGuiDocumentListener and by SLGuiApp at boot.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
THEME_SYSTEM | static final int THEME_SYSTEM = 0 | --- theme --- follow the OS theme |
THEME_LIGHT | static final int THEME_LIGHT = 1 | No description in source. |
THEME_DARK | static final int THEME_DARK = 2 | No description in source. |
BACKPRESSURE_COALESCE | static final int BACKPRESSURE_COALESCE = 0 | --- document-listener backpressure policy --- merge overflow into the latest (default) |
BACKPRESSURE_DROP | static final int BACKPRESSURE_DROP = 1 | drop oldest when the queue is full |
BACKPRESSURE_BLOCK | static final int BACKPRESSURE_BLOCK = 2 | block the producer until drained |
BUFFERING_SINGLE | static final int BUFFERING_SINGLE = 0 | --- presentation buffering (mirror native SLUIBufferingMode) --- blit straight to the window (may tear on resize) |
BUFFERING_DOUBLE | static final int BUFFERING_DOUBLE = 1 | one off-screen back buffer; frame lands atomically (default) |
BUFFERING_TRIPLE | static final int BUFFERING_TRIPLE = 2 | a ring of two back buffers; smoother rapid resize/animation |
theme | int theme | --- presentation --- THEME_* |
dpiScalePct | int dpiScalePct | display scale percentage, 50..400 (100 = 1x) |
reducedMotion | int reducedMotion | 1 = minimize animation (accessibility) |
accessible | int accessible | 1 = expose accessibility tree / larger hit targets |
vsync | int vsync | 1 = present synchronized to the display refresh |
bufferingMode | int bufferingMode | BUFFERING_* — how a painted frame reaches the screen |
resizable | int resizable | 1 = user may resize |
decorated | int decorated | 1 = OS title bar / borders |
pollMillis | int pollMillis | --- document-listener timing --- OS wake cadence (ms), 10..60000 |
debounceMillis | int debounceMillis | settle window after a change before emitting, 0..10000 |
coalesceQueueMax | int coalesceQueueMax | max pending change events before backpressure, 1..4096 |
backpressure | int backpressure | BACKPRESSURE_* |
AESTHETIC_FLAT | static final int AESTHETIC_FLAT = 0 | --- 4.0 aesthetic (substantially upgraded look) --- Named aesthetic presets the host maps to a polished design language. minimal, flat |
AESTHETIC_SOFT | static final int AESTHETIC_SOFT = 1 | soft shadows, rounded (default) |
AESTHETIC_GLASS | static final int AESTHETIC_GLASS = 2 | translucent/blurred "glass" |
AESTHETIC_METAL | static final int AESTHETIC_METAL = 3 | brushed metal + specular |
AESTHETIC_NEON | static final int AESTHETIC_NEON = 4 | dark + accent glow |
AESTHETIC_MILITARY | static final int AESTHETIC_MILITARY = 5 | neutral metal-silver + blue hue, 3D-lit frame |
METAL_NEUTRAL | static final int METAL_NEUTRAL = 0 | Metal finish variants for the military aesthetic. neutral brushed steel |
METAL_SILVER | static final int METAL_SILVER = 1 | bright metal-silver |
METAL_BLUE | static final int METAL_BLUE = 2 | metal with a blue hue (default military) |
DENSITY_COMPACT | static final int DENSITY_COMPACT = 0 | Spacing density. |
DENSITY_COMFORT | static final int DENSITY_COMFORT = 1 | default |
DENSITY_SPACIOUS | static final int DENSITY_SPACIOUS = 2 | No description in source. |
aesthetic | int aesthetic | AESTHETIC_* |
cornerRadiusPx | int cornerRadiusPx | widget corner radius, 0..48 |
elevationPct | int elevationPct | shadow/elevation strength, 0..100 |
density | int density | DENSITY_* |
typeScalePct | int typeScalePct | typography scale, 75..200 % (relative to base) |
accentColor | String accentColor | primary accent "#rrggbb" / named |
surfaceColor | String surfaceColor | base surface color |
contrastHigh | int contrastHigh | 1 = high-contrast mode (accessibility aesthetic) |
metalFinish | int metalFinish | --- military metal surface (AESTHETIC_MILITARY) --- METAL_NEUTRAL / METAL_SILVER / METAL_BLUE |
blueHuePct | int blueHuePct | strength of the blue hue over the metal, 0..100 |
frameLit3d | int frameLit3d | 1 = the base frame carries a 3D lighting/bevel effect |
frameLightAngle | int frameLightAngle | key-light angle for the 3D frame, 0..359 deg |
shadowQualityPct | int shadowQualityPct | care/quality of component shadows on the frame, 0..100 |
shadowSoftnessPx | int shadowSoftnessPx | shadow blur softness, 0..48 px |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | Apply the documented, careful defaults. Everything here is already in range. |
clamp | int clamp(int v, int lo, int hi) | --- clamped setters: a value out of range is pulled to the nearest bound --- |
setTheme | void setTheme(int t) | No description in source. |
setDpiScalePct | void setDpiScalePct(int pct) | No description in source. |
setReducedMotion | void setReducedMotion(boolean on) | No description in source. |
setAccessible | void setAccessible(boolean on) | No description in source. |
setVsync | void setVsync(boolean on) | No description in source. |
setBufferingMode | void setBufferingMode(int m) | No description in source. |
setMinSize | void setMinSize(int w, int h) | No description in source. |
setMaxSize | void setMaxSize(int w, int h) | Max of 0 means unbounded; a positive max must not fall below the min. |
setResizable | void setResizable(boolean on) | No description in source. |
setDecorated | void setDecorated(boolean on) | No description in source. |
setPollMillis | void setPollMillis(int ms) | No description in source. |
setDebounceMillis | void setDebounceMillis(int ms) | No description in source. |
setCoalesceQueueMax | void setCoalesceQueueMax(int n) | No description in source. |
setBackpressure | void setBackpressure(int policy) | No description in source. |
setAesthetic | void setAesthetic(int a) | --- 4.0 aesthetic setters (clamped/validated) --- |
setCornerRadiusPx | void setCornerRadiusPx(int px) | No description in source. |
setElevationPct | void setElevationPct(int pct) | No description in source. |
setDensity | void setDensity(int d) | No description in source. |
setTypeScalePct | void setTypeScalePct(int pct) | No description in source. |
setAccentColor | void setAccentColor(String c) | No description in source. |
setSurfaceColor | void setSurfaceColor(String c) | No description in source. |
setContrastHigh | void setContrastHigh(boolean on) | No description in source. |
setMetalFinish | void setMetalFinish(int f) | --- military metal setters (clamped/validated) --- |
setBlueHuePct | void setBlueHuePct(int pct) | No description in source. |
setFrameLit3d | void setFrameLit3d(boolean on) | No description in source. |
setFrameLightAngle | void setFrameLightAngle(int deg) | No description in source. |
setShadowQualityPct | void setShadowQualityPct(int pct) | No description in source. |
setShadowSoftnessPx | void setShadowSoftnessPx(int px) | No description in source. |
getMetalFinish | int getMetalFinish() | No description in source. |
getBlueHuePct | int getBlueHuePct() | No description in source. |
frameLit | boolean frameLit() | No description in source. |
getFrameLightAngle | int getFrameLightAngle() | No description in source. |
getShadowQualityPct | int getShadowQualityPct() | No description in source. |
getShadowSoftnessPx | int getShadowSoftnessPx() | No description in source. |
metalFinishName | String metalFinishName() | No description in source. |
getAesthetic | int getAesthetic() | No description in source. |
getCornerRadiusPx | int getCornerRadiusPx() | No description in source. |
getElevationPct | int getElevationPct() | No description in source. |
getDensity | int getDensity() | No description in source. |
getTypeScalePct | int getTypeScalePct() | No description in source. |
getAccentColor | String getAccentColor() | No description in source. |
getSurfaceColor | String getSurfaceColor() | No description in source. |
contrastHighOn | boolean contrastHighOn() | No description in source. |
aestheticName | String aestheticName() | No description in source. |
densityName | String densityName() | No description in source. |
getTheme | int getTheme() | --- readers --- |
getDpiScalePct | int getDpiScalePct() | No description in source. |
reducedMotionOn | boolean reducedMotionOn() | No description in source. |
accessibleOn | boolean accessibleOn() | No description in source. |
vsyncOn | boolean vsyncOn() | No description in source. |
getBufferingMode | int getBufferingMode() | No description in source. |
getMinWidth | int getMinWidth() | No description in source. |
getMinHeight | int getMinHeight() | No description in source. |
getMaxWidth | int getMaxWidth() | No description in source. |
getMaxHeight | int getMaxHeight() | No description in source. |
resizableOn | boolean resizableOn() | No description in source. |
decoratedOn | boolean decoratedOn() | No description in source. |
getPollMillis | int getPollMillis() | No description in source. |
getDebounceMillis | int getDebounceMillis() | No description in source. |
getCoalesceQueueMax | int getCoalesceQueueMax() | No description in source. |
getBackpressure | int getBackpressure() | No description in source. |
themeName | String themeName() | No description in source. |
backpressureName | String backpressureName() | No description in source. |
bufferingName | String bufferingName() | No description in source. |
honored | boolean honored() | Internally consistent when every clamped field sits in range and a bounded max is not below its min (0 = unbounded always passes). |
report | String report() | No description in source. |
militaryHonored | boolean militaryHonored() | Also extend honored() coverage for the military fields (callers rely on it). |
SLGuiSettings #sleela 2.5 (lib/gui/version-dual/SLGuiSettings.sleela)
SLGuiSettings class
Defines SLGuiSettings — the 2.0 (gual) settings surface for the SLeeLa GUI package. Where the 1.0 (mual) line scattered a few tunables across classes, 2.0 gathers the operating knobs into one validated, nameful object: presentation (theme, DPI scale, reduced-motion / accessibility, vsync), window defaults (min/max size, resizable, decorations), and the document-listener timing (poll cadence, debounce window, coalesce-queue cap, backpressure policy). Every setting is CLAMPED to a safe window when applied — a dialed value is never accepted outside its stated range, and honored()/report() say whether the configuration is internally consistent. This mirrors the quality-first, clamp-to-window discipline used by the lib/cpu timing/voltage layer. Family: gui. A plain settings object; read by SLGuiBackend / SLGuiWindow / SLGuiDocumentListener and by SLGuiApp at boot.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
THEME_SYSTEM | static final int THEME_SYSTEM = 0 | --- theme --- follow the OS theme |
THEME_LIGHT | static final int THEME_LIGHT = 1 | No description in source. |
THEME_DARK | static final int THEME_DARK = 2 | No description in source. |
BACKPRESSURE_COALESCE | static final int BACKPRESSURE_COALESCE = 0 | --- document-listener backpressure policy --- merge overflow into the latest (default) |
BACKPRESSURE_DROP | static final int BACKPRESSURE_DROP = 1 | drop oldest when the queue is full |
BACKPRESSURE_BLOCK | static final int BACKPRESSURE_BLOCK = 2 | block the producer until drained |
BUFFERING_SINGLE | static final int BUFFERING_SINGLE = 0 | --- presentation buffering (mirror native SLUIBufferingMode) --- blit straight to the window (may tear on resize) |
BUFFERING_DOUBLE | static final int BUFFERING_DOUBLE = 1 | one off-screen back buffer; frame lands atomically (default) |
BUFFERING_TRIPLE | static final int BUFFERING_TRIPLE = 2 | a ring of two back buffers; smoother rapid resize/animation |
theme | int theme | --- presentation --- THEME_* |
dpiScalePct | int dpiScalePct | display scale percentage, 50..400 (100 = 1x) |
reducedMotion | int reducedMotion | 1 = minimize animation (accessibility) |
accessible | int accessible | 1 = expose accessibility tree / larger hit targets |
vsync | int vsync | 1 = present synchronized to the display refresh |
bufferingMode | int bufferingMode | BUFFERING_* — how a painted frame reaches the screen |
resizable | int resizable | 1 = user may resize |
decorated | int decorated | 1 = OS title bar / borders |
pollMillis | int pollMillis | --- document-listener timing --- OS wake cadence (ms), 10..60000 |
debounceMillis | int debounceMillis | settle window after a change before emitting, 0..10000 |
coalesceQueueMax | int coalesceQueueMax | max pending change events before backpressure, 1..4096 |
backpressure | int backpressure | BACKPRESSURE_* |
AESTHETIC_FLAT | static final int AESTHETIC_FLAT = 0 | --- 4.0 aesthetic (substantially upgraded look) --- Named aesthetic presets the host maps to a polished design language. minimal, flat |
AESTHETIC_SOFT | static final int AESTHETIC_SOFT = 1 | soft shadows, rounded (default) |
AESTHETIC_GLASS | static final int AESTHETIC_GLASS = 2 | translucent/blurred "glass" |
AESTHETIC_METAL | static final int AESTHETIC_METAL = 3 | brushed metal + specular |
AESTHETIC_NEON | static final int AESTHETIC_NEON = 4 | dark + accent glow |
DENSITY_COMPACT | static final int DENSITY_COMPACT = 0 | Spacing density. |
DENSITY_COMFORT | static final int DENSITY_COMFORT = 1 | default |
DENSITY_SPACIOUS | static final int DENSITY_SPACIOUS = 2 | No description in source. |
aesthetic | int aesthetic | AESTHETIC_* |
cornerRadiusPx | int cornerRadiusPx | widget corner radius, 0..48 |
elevationPct | int elevationPct | shadow/elevation strength, 0..100 |
density | int density | DENSITY_* |
typeScalePct | int typeScalePct | typography scale, 75..200 % (relative to base) |
accentColor | String accentColor | primary accent "#rrggbb" / named |
surfaceColor | String surfaceColor | base surface color |
contrastHigh | int contrastHigh | 1 = high-contrast mode (accessibility aesthetic) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure() | Apply the documented, careful defaults. Everything here is already in range. |
clamp | int clamp(int v, int lo, int hi) | --- clamped setters: a value out of range is pulled to the nearest bound --- |
setTheme | void setTheme(int t) | No description in source. |
setDpiScalePct | void setDpiScalePct(int pct) | No description in source. |
setReducedMotion | void setReducedMotion(boolean on) | No description in source. |
setAccessible | void setAccessible(boolean on) | No description in source. |
setVsync | void setVsync(boolean on) | No description in source. |
setBufferingMode | void setBufferingMode(int m) | No description in source. |
setMinSize | void setMinSize(int w, int h) | No description in source. |
setMaxSize | void setMaxSize(int w, int h) | Max of 0 means unbounded; a positive max must not fall below the min. |
setResizable | void setResizable(boolean on) | No description in source. |
setDecorated | void setDecorated(boolean on) | No description in source. |
setPollMillis | void setPollMillis(int ms) | No description in source. |
setDebounceMillis | void setDebounceMillis(int ms) | No description in source. |
setCoalesceQueueMax | void setCoalesceQueueMax(int n) | No description in source. |
setBackpressure | void setBackpressure(int policy) | No description in source. |
setAesthetic | void setAesthetic(int a) | --- 4.0 aesthetic setters (clamped/validated) --- |
setCornerRadiusPx | void setCornerRadiusPx(int px) | No description in source. |
setElevationPct | void setElevationPct(int pct) | No description in source. |
setDensity | void setDensity(int d) | No description in source. |
setTypeScalePct | void setTypeScalePct(int pct) | No description in source. |
setAccentColor | void setAccentColor(String c) | No description in source. |
setSurfaceColor | void setSurfaceColor(String c) | No description in source. |
setContrastHigh | void setContrastHigh(boolean on) | No description in source. |
getAesthetic | int getAesthetic() | No description in source. |
getCornerRadiusPx | int getCornerRadiusPx() | No description in source. |
getElevationPct | int getElevationPct() | No description in source. |
getDensity | int getDensity() | No description in source. |
getTypeScalePct | int getTypeScalePct() | No description in source. |
getAccentColor | String getAccentColor() | No description in source. |
getSurfaceColor | String getSurfaceColor() | No description in source. |
contrastHighOn | boolean contrastHighOn() | No description in source. |
aestheticName | String aestheticName() | No description in source. |
densityName | String densityName() | No description in source. |
getTheme | int getTheme() | --- readers --- |
getDpiScalePct | int getDpiScalePct() | No description in source. |
reducedMotionOn | boolean reducedMotionOn() | No description in source. |
accessibleOn | boolean accessibleOn() | No description in source. |
vsyncOn | boolean vsyncOn() | No description in source. |
getBufferingMode | int getBufferingMode() | No description in source. |
getMinWidth | int getMinWidth() | No description in source. |
getMinHeight | int getMinHeight() | No description in source. |
getMaxWidth | int getMaxWidth() | No description in source. |
getMaxHeight | int getMaxHeight() | No description in source. |
resizableOn | boolean resizableOn() | No description in source. |
decoratedOn | boolean decoratedOn() | No description in source. |
getPollMillis | int getPollMillis() | No description in source. |
getDebounceMillis | int getDebounceMillis() | No description in source. |
getCoalesceQueueMax | int getCoalesceQueueMax() | No description in source. |
getBackpressure | int getBackpressure() | No description in source. |
themeName | String themeName() | No description in source. |
backpressureName | String backpressureName() | No description in source. |
bufferingName | String bufferingName() | No description in source. |
honored | boolean honored() | Internally consistent when every clamped field sits in range and a bounded max is not below its min (0 = unbounded always passes). |
report | String report() | No description in source. |
SLGuiSkeleton #sleela 2.5 (lib/gui/version-gual/SLGuiSkeleton.sleela)
SLGuiSkeleton class
Defines SLGuiSkeleton — the SKELETON SCREEN / PLACEHOLDER component: a subtle panel that fades IN to stand in for content that is still loading, animates a gentle shimmer/pulse while it waits, and then DISSOLVES to reveal the real content once loading completes. It is a pure model + lifecycle state machine: idle -> loading(shimmer) -> revealing -> revealed, driven by tick(elapsed). The initial appearance and the reveal cross-fade are SLGuiTransitions; the shimmer is a looping 0..100..0 pulse. SLeeLa owns the shape (how many placeholder lines/blocks) and the timing; the host paints the grey blocks, the moving shimmer, and the reveal. Family: gui. A loading placeholder; this model decides shimmer phase, panel opacity, and when the real content is revealed.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
STATE_IDLE | static final int STATE_IDLE = 0 | Lifecycle states. not shown |
STATE_LOADING | static final int STATE_LOADING = 1 | placeholder visible, shimmering |
STATE_REVEALING | static final int STATE_REVEALING = 2 | cross-fading placeholder -> content |
STATE_REVEALED | static final int STATE_REVEALED = 3 | real content shown, placeholder gone |
SHAPE_TEXT | static final int SHAPE_TEXT = 0 | Placeholder shape presets (host maps to a block layout). stacked text lines |
SHAPE_CARD | static final int SHAPE_CARD = 1 | media block + text lines |
SHAPE_AVATAR | static final int SHAPE_AVATAR = 2 | circle + two short lines |
SHAPE_LIST | static final int SHAPE_LIST = 3 | repeated rows |
shape | int shape | SHAPE_* |
lines | int lines | number of placeholder blocks/rows, 1..32 |
state | int state | STATE_* |
shimmerPeriodMs | int shimmerPeriodMs | one full shimmer sweep, 200..10000 ms |
shimmerElapsed | int shimmerElapsed | position within the current sweep |
appearFx | SLGuiTransition appearFx | the placeholder's initial fade-in |
revealFx | SLGuiTransition revealFx | the placeholder -> content dissolve (cross-fade) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure(int shapeVal, int lineCount) | Safe defaults: a 3-line text skeleton, 180ms fade-in, a 1.2s shimmer sweep, a 260ms dissolve reveal. |
setShape | void setShape(int shapeVal) | No description in source. |
setLines | void setLines(int n) | No description in source. |
setShimmerPeriod | void setShimmerPeriod(int ms) | No description in source. |
setAppearMillis | void setAppearMillis(int ms) | No description in source. |
setRevealMillis | void setRevealMillis(int ms) | No description in source. |
beginLoading | void beginLoading() | ---- lifecycle ---------------------------------------------------------- Begin loading: fade the placeholder in and start shimmering. |
complete | void complete() | Content is ready: start the dissolve reveal. |
reset | void reset() | No description in source. |
tick | boolean tick(int deltaMs) | Advance by `deltaMs`. Returns true while the placeholder is still visible (loading or revealing), false once the real content is fully revealed/idle. |
placeholderOpacityPct | int placeholderOpacityPct() | ---- presentation ------------------------------------------------------- Opacity (0..100 %) to paint the PLACEHOLDER panel at. During the reveal the placeholder fades OUT as the content fades in (1 - reveal progress). |
contentOpacityPct | int contentOpacityPct() | Opacity (0..100 %) to paint the real CONTENT at. Rises during the reveal. |
shimmerPhasePct | int shimmerPhasePct() | Shimmer phase as a 0..100 % sweep position (host sweeps a highlight band). |
onScreen | boolean onScreen() | No description in source. |
revealed | boolean revealed() | No description in source. |
getShape | int getShape() | ---- readers ------------------------------------------------------------ |
getLines | int getLines() | No description in source. |
getState | int getState() | No description in source. |
getShimmerPeriod | int getShimmerPeriod() | No description in source. |
appearTransition | SLGuiTransition appearTransition() | No description in source. |
revealTransition | SLGuiTransition revealTransition() | No description in source. |
shapeName | String shapeName() | No description in source. |
stateName | String stateName() | No description in source. |
honored | boolean honored() | No description in source. |
toStyle | String toStyle() | Flatten into the reconciler's style descriptor. Shape: "skeleton:<shape>x<lines>;shimmer:<ms>;<appear>;reveal-<dissolve>" |
report | String report() | No description in source. |
SLGuiSkeleton #sleela 2.5 (lib/gui/version-mual/SLGuiSkeleton.sleela)
SLGuiSkeleton class
Defines SLGuiSkeleton — the SKELETON SCREEN / PLACEHOLDER component: a subtle panel that fades IN to stand in for content that is still loading, animates a gentle shimmer/pulse while it waits, and then DISSOLVES to reveal the real content once loading completes. It is a pure model + lifecycle state machine: idle -> loading(shimmer) -> revealing -> revealed, driven by tick(elapsed). The initial appearance and the reveal cross-fade are SLGuiTransitions; the shimmer is a looping 0..100..0 pulse. SLeeLa owns the shape (how many placeholder lines/blocks) and the timing; the host paints the grey blocks, the moving shimmer, and the reveal. Family: gui. A loading placeholder; this model decides shimmer phase, panel opacity, and when the real content is revealed.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
STATE_IDLE | static final int STATE_IDLE = 0 | Lifecycle states. not shown |
STATE_LOADING | static final int STATE_LOADING = 1 | placeholder visible, shimmering |
STATE_REVEALING | static final int STATE_REVEALING = 2 | cross-fading placeholder -> content |
STATE_REVEALED | static final int STATE_REVEALED = 3 | real content shown, placeholder gone |
SHAPE_TEXT | static final int SHAPE_TEXT = 0 | Placeholder shape presets (host maps to a block layout). stacked text lines |
SHAPE_CARD | static final int SHAPE_CARD = 1 | media block + text lines |
SHAPE_AVATAR | static final int SHAPE_AVATAR = 2 | circle + two short lines |
SHAPE_LIST | static final int SHAPE_LIST = 3 | repeated rows |
shape | int shape | SHAPE_* |
lines | int lines | number of placeholder blocks/rows, 1..32 |
state | int state | STATE_* |
shimmerPeriodMs | int shimmerPeriodMs | one full shimmer sweep, 200..10000 ms |
shimmerElapsed | int shimmerElapsed | position within the current sweep |
appearFx | SLGuiTransition appearFx | the placeholder's initial fade-in |
revealFx | SLGuiTransition revealFx | the placeholder -> content dissolve (cross-fade) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure(int shapeVal, int lineCount) | Safe defaults: a 3-line text skeleton, 180ms fade-in, a 1.2s shimmer sweep, a 260ms dissolve reveal. |
setShape | void setShape(int shapeVal) | No description in source. |
setLines | void setLines(int n) | No description in source. |
setShimmerPeriod | void setShimmerPeriod(int ms) | No description in source. |
setAppearMillis | void setAppearMillis(int ms) | No description in source. |
setRevealMillis | void setRevealMillis(int ms) | No description in source. |
beginLoading | void beginLoading() | ---- lifecycle ---------------------------------------------------------- Begin loading: fade the placeholder in and start shimmering. |
complete | void complete() | Content is ready: start the dissolve reveal. |
reset | void reset() | No description in source. |
tick | boolean tick(int deltaMs) | Advance by `deltaMs`. Returns true while the placeholder is still visible (loading or revealing), false once the real content is fully revealed/idle. |
placeholderOpacityPct | int placeholderOpacityPct() | ---- presentation ------------------------------------------------------- Opacity (0..100 %) to paint the PLACEHOLDER panel at. During the reveal the placeholder fades OUT as the content fades in (1 - reveal progress). |
contentOpacityPct | int contentOpacityPct() | Opacity (0..100 %) to paint the real CONTENT at. Rises during the reveal. |
shimmerPhasePct | int shimmerPhasePct() | Shimmer phase as a 0..100 % sweep position (host sweeps a highlight band). |
onScreen | boolean onScreen() | No description in source. |
revealed | boolean revealed() | No description in source. |
getShape | int getShape() | ---- readers ------------------------------------------------------------ |
getLines | int getLines() | No description in source. |
getState | int getState() | No description in source. |
getShimmerPeriod | int getShimmerPeriod() | No description in source. |
appearTransition | SLGuiTransition appearTransition() | No description in source. |
revealTransition | SLGuiTransition revealTransition() | No description in source. |
shapeName | String shapeName() | No description in source. |
stateName | String stateName() | No description in source. |
honored | boolean honored() | No description in source. |
toStyle | String toStyle() | Flatten into the reconciler's style descriptor. Shape: "skeleton:<shape>x<lines>;shimmer:<ms>;<appear>;reveal-<dissolve>" |
report | String report() | No description in source. |
SLGuiSkeleton #sleela 2.5 (lib/gui/version-thual/SLGuiSkeleton.sleela)
SLGuiSkeleton class
Defines SLGuiSkeleton — the SKELETON SCREEN / PLACEHOLDER component: a subtle panel that fades IN to stand in for content that is still loading, animates a gentle shimmer/pulse while it waits, and then DISSOLVES to reveal the real content once loading completes. It is a pure model + lifecycle state machine: idle -> loading(shimmer) -> revealing -> revealed, driven by tick(elapsed). The initial appearance and the reveal cross-fade are SLGuiTransitions; the shimmer is a looping 0..100..0 pulse. SLeeLa owns the shape (how many placeholder lines/blocks) and the timing; the host paints the grey blocks, the moving shimmer, and the reveal. Family: gui. A loading placeholder; this model decides shimmer phase, panel opacity, and when the real content is revealed.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
STATE_IDLE | static final int STATE_IDLE = 0 | Lifecycle states. not shown |
STATE_LOADING | static final int STATE_LOADING = 1 | placeholder visible, shimmering |
STATE_REVEALING | static final int STATE_REVEALING = 2 | cross-fading placeholder -> content |
STATE_REVEALED | static final int STATE_REVEALED = 3 | real content shown, placeholder gone |
SHAPE_TEXT | static final int SHAPE_TEXT = 0 | Placeholder shape presets (host maps to a block layout). stacked text lines |
SHAPE_CARD | static final int SHAPE_CARD = 1 | media block + text lines |
SHAPE_AVATAR | static final int SHAPE_AVATAR = 2 | circle + two short lines |
SHAPE_LIST | static final int SHAPE_LIST = 3 | repeated rows |
shape | int shape | SHAPE_* |
lines | int lines | number of placeholder blocks/rows, 1..32 |
state | int state | STATE_* |
shimmerPeriodMs | int shimmerPeriodMs | one full shimmer sweep, 200..10000 ms |
shimmerElapsed | int shimmerElapsed | position within the current sweep |
appearFx | SLGuiTransition appearFx | the placeholder's initial fade-in |
revealFx | SLGuiTransition revealFx | the placeholder -> content dissolve (cross-fade) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure(int shapeVal, int lineCount) | Safe defaults: a 3-line text skeleton, 180ms fade-in, a 1.2s shimmer sweep, a 260ms dissolve reveal. |
setShape | void setShape(int shapeVal) | No description in source. |
setLines | void setLines(int n) | No description in source. |
setShimmerPeriod | void setShimmerPeriod(int ms) | No description in source. |
setAppearMillis | void setAppearMillis(int ms) | No description in source. |
setRevealMillis | void setRevealMillis(int ms) | No description in source. |
beginLoading | void beginLoading() | ---- lifecycle ---------------------------------------------------------- Begin loading: fade the placeholder in and start shimmering. |
complete | void complete() | Content is ready: start the dissolve reveal. |
reset | void reset() | No description in source. |
tick | boolean tick(int deltaMs) | Advance by `deltaMs`. Returns true while the placeholder is still visible (loading or revealing), false once the real content is fully revealed/idle. |
placeholderOpacityPct | int placeholderOpacityPct() | ---- presentation ------------------------------------------------------- Opacity (0..100 %) to paint the PLACEHOLDER panel at. During the reveal the placeholder fades OUT as the content fades in (1 - reveal progress). |
contentOpacityPct | int contentOpacityPct() | Opacity (0..100 %) to paint the real CONTENT at. Rises during the reveal. |
shimmerPhasePct | int shimmerPhasePct() | Shimmer phase as a 0..100 % sweep position (host sweeps a highlight band). |
onScreen | boolean onScreen() | No description in source. |
revealed | boolean revealed() | No description in source. |
getShape | int getShape() | ---- readers ------------------------------------------------------------ |
getLines | int getLines() | No description in source. |
getState | int getState() | No description in source. |
getShimmerPeriod | int getShimmerPeriod() | No description in source. |
appearTransition | SLGuiTransition appearTransition() | No description in source. |
revealTransition | SLGuiTransition revealTransition() | No description in source. |
shapeName | String shapeName() | No description in source. |
stateName | String stateName() | No description in source. |
honored | boolean honored() | No description in source. |
toStyle | String toStyle() | Flatten into the reconciler's style descriptor. Shape: "skeleton:<shape>x<lines>;shimmer:<ms>;<appear>;reveal-<dissolve>" |
report | String report() | No description in source. |
SLGuiSkeleton #sleela 2.5 (lib/gui/version-military/SLGuiSkeleton.sleela)
SLGuiSkeleton class
Defines SLGuiSkeleton — the SKELETON SCREEN / PLACEHOLDER component: a subtle panel that fades IN to stand in for content that is still loading, animates a gentle shimmer/pulse while it waits, and then DISSOLVES to reveal the real content once loading completes. It is a pure model + lifecycle state machine: idle -> loading(shimmer) -> revealing -> revealed, driven by tick(elapsed). The initial appearance and the reveal cross-fade are SLGuiTransitions; the shimmer is a looping 0..100..0 pulse. SLeeLa owns the shape (how many placeholder lines/blocks) and the timing; the host paints the grey blocks, the moving shimmer, and the reveal. Family: gui. A loading placeholder; this model decides shimmer phase, panel opacity, and when the real content is revealed.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
STATE_IDLE | static final int STATE_IDLE = 0 | Lifecycle states. not shown |
STATE_LOADING | static final int STATE_LOADING = 1 | placeholder visible, shimmering |
STATE_REVEALING | static final int STATE_REVEALING = 2 | cross-fading placeholder -> content |
STATE_REVEALED | static final int STATE_REVEALED = 3 | real content shown, placeholder gone |
SHAPE_TEXT | static final int SHAPE_TEXT = 0 | Placeholder shape presets (host maps to a block layout). stacked text lines |
SHAPE_CARD | static final int SHAPE_CARD = 1 | media block + text lines |
SHAPE_AVATAR | static final int SHAPE_AVATAR = 2 | circle + two short lines |
SHAPE_LIST | static final int SHAPE_LIST = 3 | repeated rows |
shape | int shape | SHAPE_* |
lines | int lines | number of placeholder blocks/rows, 1..32 |
state | int state | STATE_* |
shimmerPeriodMs | int shimmerPeriodMs | one full shimmer sweep, 200..10000 ms |
shimmerElapsed | int shimmerElapsed | position within the current sweep |
appearFx | SLGuiTransition appearFx | the placeholder's initial fade-in |
revealFx | SLGuiTransition revealFx | the placeholder -> content dissolve (cross-fade) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure(int shapeVal, int lineCount) | Safe defaults: a 3-line text skeleton, 180ms fade-in, a 1.2s shimmer sweep, a 260ms dissolve reveal. |
setShape | void setShape(int shapeVal) | No description in source. |
setLines | void setLines(int n) | No description in source. |
setShimmerPeriod | void setShimmerPeriod(int ms) | No description in source. |
setAppearMillis | void setAppearMillis(int ms) | No description in source. |
setRevealMillis | void setRevealMillis(int ms) | No description in source. |
beginLoading | void beginLoading() | ---- lifecycle ---------------------------------------------------------- Begin loading: fade the placeholder in and start shimmering. |
complete | void complete() | Content is ready: start the dissolve reveal. |
reset | void reset() | No description in source. |
tick | boolean tick(int deltaMs) | Advance by `deltaMs`. Returns true while the placeholder is still visible (loading or revealing), false once the real content is fully revealed/idle. |
placeholderOpacityPct | int placeholderOpacityPct() | ---- presentation ------------------------------------------------------- Opacity (0..100 %) to paint the PLACEHOLDER panel at. During the reveal the placeholder fades OUT as the content fades in (1 - reveal progress). |
contentOpacityPct | int contentOpacityPct() | Opacity (0..100 %) to paint the real CONTENT at. Rises during the reveal. |
shimmerPhasePct | int shimmerPhasePct() | Shimmer phase as a 0..100 % sweep position (host sweeps a highlight band). |
onScreen | boolean onScreen() | No description in source. |
revealed | boolean revealed() | No description in source. |
getShape | int getShape() | ---- readers ------------------------------------------------------------ |
getLines | int getLines() | No description in source. |
getState | int getState() | No description in source. |
getShimmerPeriod | int getShimmerPeriod() | No description in source. |
appearTransition | SLGuiTransition appearTransition() | No description in source. |
revealTransition | SLGuiTransition revealTransition() | No description in source. |
shapeName | String shapeName() | No description in source. |
stateName | String stateName() | No description in source. |
honored | boolean honored() | No description in source. |
toStyle | String toStyle() | Flatten into the reconciler's style descriptor. Shape: "skeleton:<shape>x<lines>;shimmer:<ms>;<appear>;reveal-<dissolve>" |
report | String report() | No description in source. |
SLGuiSkeleton #sleela 2.5 (lib/gui/version-dual/SLGuiSkeleton.sleela)
SLGuiSkeleton class
Defines SLGuiSkeleton — the SKELETON SCREEN / PLACEHOLDER component: a subtle panel that fades IN to stand in for content that is still loading, animates a gentle shimmer/pulse while it waits, and then DISSOLVES to reveal the real content once loading completes. It is a pure model + lifecycle state machine: idle -> loading(shimmer) -> revealing -> revealed, driven by tick(elapsed). The initial appearance and the reveal cross-fade are SLGuiTransitions; the shimmer is a looping 0..100..0 pulse. SLeeLa owns the shape (how many placeholder lines/blocks) and the timing; the host paints the grey blocks, the moving shimmer, and the reveal. Family: gui. A loading placeholder; this model decides shimmer phase, panel opacity, and when the real content is revealed.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
STATE_IDLE | static final int STATE_IDLE = 0 | Lifecycle states. not shown |
STATE_LOADING | static final int STATE_LOADING = 1 | placeholder visible, shimmering |
STATE_REVEALING | static final int STATE_REVEALING = 2 | cross-fading placeholder -> content |
STATE_REVEALED | static final int STATE_REVEALED = 3 | real content shown, placeholder gone |
SHAPE_TEXT | static final int SHAPE_TEXT = 0 | Placeholder shape presets (host maps to a block layout). stacked text lines |
SHAPE_CARD | static final int SHAPE_CARD = 1 | media block + text lines |
SHAPE_AVATAR | static final int SHAPE_AVATAR = 2 | circle + two short lines |
SHAPE_LIST | static final int SHAPE_LIST = 3 | repeated rows |
shape | int shape | SHAPE_* |
lines | int lines | number of placeholder blocks/rows, 1..32 |
state | int state | STATE_* |
shimmerPeriodMs | int shimmerPeriodMs | one full shimmer sweep, 200..10000 ms |
shimmerElapsed | int shimmerElapsed | position within the current sweep |
appearFx | SLGuiTransition appearFx | the placeholder's initial fade-in |
revealFx | SLGuiTransition revealFx | the placeholder -> content dissolve (cross-fade) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure(int shapeVal, int lineCount) | Safe defaults: a 3-line text skeleton, 180ms fade-in, a 1.2s shimmer sweep, a 260ms dissolve reveal. |
setShape | void setShape(int shapeVal) | No description in source. |
setLines | void setLines(int n) | No description in source. |
setShimmerPeriod | void setShimmerPeriod(int ms) | No description in source. |
setAppearMillis | void setAppearMillis(int ms) | No description in source. |
setRevealMillis | void setRevealMillis(int ms) | No description in source. |
beginLoading | void beginLoading() | ---- lifecycle ---------------------------------------------------------- Begin loading: fade the placeholder in and start shimmering. |
complete | void complete() | Content is ready: start the dissolve reveal. |
reset | void reset() | No description in source. |
tick | boolean tick(int deltaMs) | Advance by `deltaMs`. Returns true while the placeholder is still visible (loading or revealing), false once the real content is fully revealed/idle. |
placeholderOpacityPct | int placeholderOpacityPct() | ---- presentation ------------------------------------------------------- Opacity (0..100 %) to paint the PLACEHOLDER panel at. During the reveal the placeholder fades OUT as the content fades in (1 - reveal progress). |
contentOpacityPct | int contentOpacityPct() | Opacity (0..100 %) to paint the real CONTENT at. Rises during the reveal. |
shimmerPhasePct | int shimmerPhasePct() | Shimmer phase as a 0..100 % sweep position (host sweeps a highlight band). |
onScreen | boolean onScreen() | No description in source. |
revealed | boolean revealed() | No description in source. |
getShape | int getShape() | ---- readers ------------------------------------------------------------ |
getLines | int getLines() | No description in source. |
getState | int getState() | No description in source. |
getShimmerPeriod | int getShimmerPeriod() | No description in source. |
appearTransition | SLGuiTransition appearTransition() | No description in source. |
revealTransition | SLGuiTransition revealTransition() | No description in source. |
shapeName | String shapeName() | No description in source. |
stateName | String stateName() | No description in source. |
honored | boolean honored() | No description in source. |
toStyle | String toStyle() | Flatten into the reconciler's style descriptor. Shape: "skeleton:<shape>x<lines>;shimmer:<ms>;<appear>;reveal-<dissolve>" |
report | String report() | No description in source. |
SLGuiTheme #sleela 2.5 (lib/gui/version-gual/SLGuiTheme.sleela)
SLGuiTheme class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
TITLE_BAR | static final String TITLE_BAR = "#1D2025" | No description in source. |
MENU_BAR | static final String MENU_BAR = "#1D2025" | No description in source. |
URL_BAR | static final String URL_BAR = "#383C47" | No description in source. |
PANEL | static final String PANEL = "#292D35" | No description in source. |
SURFACE | static final String SURFACE = "#22262D" | No description in source. |
TEXT | static final String TEXT = "#E8EAED" | No description in source. |
MUTED_TEXT | static final String MUTED_TEXT = "#B0B7C3" | No description in source. |
BORDER | static final String BORDER = "#444A56" | No description in source. |
ACCENT | static final String ACCENT = "#4F8CFF" | No description in source. |
FOCUS | static final String FOCUS = "#8AB4F8" | No description in source. |
DANGER | static final String DANGER = "#D9534F" | No description in source. |
SUCCESS | static final String SUCCESS = "#3FA776" | No description in source. |
MENU_POPUP_SURFACE | static final String MENU_POPUP_SURFACE = "#292D35" | No description in source. |
MENU_POPUP_EDGE | static final String MENU_POPUP_EDGE = "#505866" | No description in source. |
MENU_ITEM_HOVER | static final String MENU_ITEM_HOVER = "#343A44" | No description in source. |
MENU_ITEM_PRESSED | static final String MENU_ITEM_PRESSED = "#252A32" | No description in source. |
MENU_ITEM_HIGHLIGHT | static final String MENU_ITEM_HIGHLIGHT = "#3A404B" | No description in source. |
MENU_POPUP_SHADOW | static final String MENU_POPUP_SHADOW = "0 8px 20px rgba(0,0,0,0.28)" | No description in source. |
MENU_POPUP_RADIUS | static final String MENU_POPUP_RADIUS = "6" | No description in source. |
MENU_ITEM_RAISE | static final String MENU_ITEM_RAISE = "1" | No description in source. |
MENU_TRANSITION_MS | static final String MENU_TRANSITION_MS = "120" | No description in source. |
TITLE_BAR_COLOR | static final int TITLE_BAR_COLOR = 0x1D2025FF | Typed SLColor words (0xRRGGBBAA) used by SLTheme at runtime. |
MENU_BAR_COLOR | static final int MENU_BAR_COLOR = 0x1D2025FF | No description in source. |
URL_BAR_COLOR | static final int URL_BAR_COLOR = 0x383C47FF | No description in source. |
PANEL_COLOR | static final int PANEL_COLOR = 0x292D35FF | No description in source. |
SURFACE_COLOR | static final int SURFACE_COLOR = 0x22262DFF | No description in source. |
TEXT_COLOR | static final int TEXT_COLOR = 0xE8EAEDFF | No description in source. |
MUTED_TEXT_COLOR | static final int MUTED_TEXT_COLOR = 0xB0B7C3FF | No description in source. |
BORDER_COLOR | static final int BORDER_COLOR = 0x444A56FF | No description in source. |
ACCENT_COLOR | static final int ACCENT_COLOR = 0x4F8CFFFF | No description in source. |
FOCUS_COLOR | static final int FOCUS_COLOR = 0x8AB4F8FF | No description in source. |
DANGER_COLOR | static final int DANGER_COLOR = 0xD9534FFF | No description in source. |
SUCCESS_COLOR | static final int SUCCESS_COLOR = 0x3FA776FF | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
titleBar | String titleBar() | No description in source. |
menuBar | String menuBar() | No description in source. |
urlBar | String urlBar() | No description in source. |
panel | String panel() | No description in source. |
surface | String surface() | No description in source. |
text | String text() | No description in source. |
mutedText | String mutedText() | No description in source. |
border | String border() | No description in source. |
accent | String accent() | No description in source. |
focus | String focus() | No description in source. |
danger | String danger() | No description in source. |
success | String success() | No description in source. |
menuPopupSurface | String menuPopupSurface() | No description in source. |
menuPopupEdge | String menuPopupEdge() | No description in source. |
menuItemHover | String menuItemHover() | No description in source. |
menuItemPressed | String menuItemPressed() | No description in source. |
menuItemHighlight | String menuItemHighlight() | No description in source. |
menuPopupShadow | String menuPopupShadow() | No description in source. |
menuPopupRadius | String menuPopupRadius() | No description in source. |
menuItemRaise | String menuItemRaise() | No description in source. |
menuTransitionMs | String menuTransitionMs() | No description in source. |
SLGuiTheme #sleela 2.5 (lib/gui/version-mual/SLGuiTheme.sleela)
SLGuiTheme class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
TITLE_BAR | static final String TITLE_BAR = "#1D2025" | No description in source. |
MENU_BAR | static final String MENU_BAR = "#1D2025" | No description in source. |
URL_BAR | static final String URL_BAR = "#383C47" | No description in source. |
PANEL | static final String PANEL = "#292D35" | No description in source. |
SURFACE | static final String SURFACE = "#22262D" | No description in source. |
TEXT | static final String TEXT = "#E8EAED" | No description in source. |
MUTED_TEXT | static final String MUTED_TEXT = "#B0B7C3" | No description in source. |
BORDER | static final String BORDER = "#444A56" | No description in source. |
ACCENT | static final String ACCENT = "#4F8CFF" | No description in source. |
FOCUS | static final String FOCUS = "#8AB4F8" | No description in source. |
DANGER | static final String DANGER = "#D9534F" | No description in source. |
SUCCESS | static final String SUCCESS = "#3FA776" | No description in source. |
MENU_POPUP_SURFACE | static final String MENU_POPUP_SURFACE = "#292D35" | No description in source. |
MENU_POPUP_EDGE | static final String MENU_POPUP_EDGE = "#505866" | No description in source. |
MENU_ITEM_HOVER | static final String MENU_ITEM_HOVER = "#343A44" | No description in source. |
MENU_ITEM_PRESSED | static final String MENU_ITEM_PRESSED = "#252A32" | No description in source. |
MENU_ITEM_HIGHLIGHT | static final String MENU_ITEM_HIGHLIGHT = "#3A404B" | No description in source. |
MENU_POPUP_SHADOW | static final String MENU_POPUP_SHADOW = "0 8px 20px rgba(0,0,0,0.28)" | No description in source. |
MENU_POPUP_RADIUS | static final String MENU_POPUP_RADIUS = "6" | No description in source. |
MENU_ITEM_RAISE | static final String MENU_ITEM_RAISE = "1" | No description in source. |
MENU_TRANSITION_MS | static final String MENU_TRANSITION_MS = "120" | No description in source. |
TITLE_BAR_COLOR | static final int TITLE_BAR_COLOR = 0x1D2025FF | Typed SLColor words (0xRRGGBBAA) used by SLTheme at runtime. |
MENU_BAR_COLOR | static final int MENU_BAR_COLOR = 0x1D2025FF | No description in source. |
URL_BAR_COLOR | static final int URL_BAR_COLOR = 0x383C47FF | No description in source. |
PANEL_COLOR | static final int PANEL_COLOR = 0x292D35FF | No description in source. |
SURFACE_COLOR | static final int SURFACE_COLOR = 0x22262DFF | No description in source. |
TEXT_COLOR | static final int TEXT_COLOR = 0xE8EAEDFF | No description in source. |
MUTED_TEXT_COLOR | static final int MUTED_TEXT_COLOR = 0xB0B7C3FF | No description in source. |
BORDER_COLOR | static final int BORDER_COLOR = 0x444A56FF | No description in source. |
ACCENT_COLOR | static final int ACCENT_COLOR = 0x4F8CFFFF | No description in source. |
FOCUS_COLOR | static final int FOCUS_COLOR = 0x8AB4F8FF | No description in source. |
DANGER_COLOR | static final int DANGER_COLOR = 0xD9534FFF | No description in source. |
SUCCESS_COLOR | static final int SUCCESS_COLOR = 0x3FA776FF | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
titleBar | String titleBar() | No description in source. |
menuBar | String menuBar() | No description in source. |
urlBar | String urlBar() | No description in source. |
panel | String panel() | No description in source. |
surface | String surface() | No description in source. |
text | String text() | No description in source. |
mutedText | String mutedText() | No description in source. |
border | String border() | No description in source. |
accent | String accent() | No description in source. |
focus | String focus() | No description in source. |
danger | String danger() | No description in source. |
success | String success() | No description in source. |
menuPopupSurface | String menuPopupSurface() | No description in source. |
menuPopupEdge | String menuPopupEdge() | No description in source. |
menuItemHover | String menuItemHover() | No description in source. |
menuItemPressed | String menuItemPressed() | No description in source. |
menuItemHighlight | String menuItemHighlight() | No description in source. |
menuPopupShadow | String menuPopupShadow() | No description in source. |
menuPopupRadius | String menuPopupRadius() | No description in source. |
menuItemRaise | String menuItemRaise() | No description in source. |
menuTransitionMs | String menuTransitionMs() | No description in source. |
SLGuiTheme #sleela 2.5 (lib/gui/version-thual/SLGuiTheme.sleela)
SLGuiTheme class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
TITLE_BAR | static final String TITLE_BAR = "#1D2025" | No description in source. |
MENU_BAR | static final String MENU_BAR = "#1D2025" | No description in source. |
URL_BAR | static final String URL_BAR = "#383C47" | No description in source. |
PANEL | static final String PANEL = "#292D35" | No description in source. |
SURFACE | static final String SURFACE = "#22262D" | No description in source. |
TEXT | static final String TEXT = "#E8EAED" | No description in source. |
MUTED_TEXT | static final String MUTED_TEXT = "#B0B7C3" | No description in source. |
BORDER | static final String BORDER = "#444A56" | No description in source. |
ACCENT | static final String ACCENT = "#4F8CFF" | No description in source. |
FOCUS | static final String FOCUS = "#8AB4F8" | No description in source. |
DANGER | static final String DANGER = "#D9534F" | No description in source. |
SUCCESS | static final String SUCCESS = "#3FA776" | No description in source. |
MENU_POPUP_SURFACE | static final String MENU_POPUP_SURFACE = "#292D35" | No description in source. |
MENU_POPUP_EDGE | static final String MENU_POPUP_EDGE = "#505866" | No description in source. |
MENU_ITEM_HOVER | static final String MENU_ITEM_HOVER = "#343A44" | No description in source. |
MENU_ITEM_PRESSED | static final String MENU_ITEM_PRESSED = "#252A32" | No description in source. |
MENU_ITEM_HIGHLIGHT | static final String MENU_ITEM_HIGHLIGHT = "#3A404B" | No description in source. |
MENU_POPUP_SHADOW | static final String MENU_POPUP_SHADOW = "0 8px 20px rgba(0,0,0,0.28)" | No description in source. |
MENU_POPUP_RADIUS | static final String MENU_POPUP_RADIUS = "6" | No description in source. |
MENU_ITEM_RAISE | static final String MENU_ITEM_RAISE = "1" | No description in source. |
MENU_TRANSITION_MS | static final String MENU_TRANSITION_MS = "120" | No description in source. |
TITLE_BAR_COLOR | static final int TITLE_BAR_COLOR = 0x1D2025FF | Typed SLColor words (0xRRGGBBAA) used by SLTheme at runtime. |
MENU_BAR_COLOR | static final int MENU_BAR_COLOR = 0x1D2025FF | No description in source. |
URL_BAR_COLOR | static final int URL_BAR_COLOR = 0x383C47FF | No description in source. |
PANEL_COLOR | static final int PANEL_COLOR = 0x292D35FF | No description in source. |
SURFACE_COLOR | static final int SURFACE_COLOR = 0x22262DFF | No description in source. |
TEXT_COLOR | static final int TEXT_COLOR = 0xE8EAEDFF | No description in source. |
MUTED_TEXT_COLOR | static final int MUTED_TEXT_COLOR = 0xB0B7C3FF | No description in source. |
BORDER_COLOR | static final int BORDER_COLOR = 0x444A56FF | No description in source. |
ACCENT_COLOR | static final int ACCENT_COLOR = 0x4F8CFFFF | No description in source. |
FOCUS_COLOR | static final int FOCUS_COLOR = 0x8AB4F8FF | No description in source. |
DANGER_COLOR | static final int DANGER_COLOR = 0xD9534FFF | No description in source. |
SUCCESS_COLOR | static final int SUCCESS_COLOR = 0x3FA776FF | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
titleBar | String titleBar() | No description in source. |
menuBar | String menuBar() | No description in source. |
urlBar | String urlBar() | No description in source. |
panel | String panel() | No description in source. |
surface | String surface() | No description in source. |
text | String text() | No description in source. |
mutedText | String mutedText() | No description in source. |
border | String border() | No description in source. |
accent | String accent() | No description in source. |
focus | String focus() | No description in source. |
danger | String danger() | No description in source. |
success | String success() | No description in source. |
menuPopupSurface | String menuPopupSurface() | No description in source. |
menuPopupEdge | String menuPopupEdge() | No description in source. |
menuItemHover | String menuItemHover() | No description in source. |
menuItemPressed | String menuItemPressed() | No description in source. |
menuItemHighlight | String menuItemHighlight() | No description in source. |
menuPopupShadow | String menuPopupShadow() | No description in source. |
menuPopupRadius | String menuPopupRadius() | No description in source. |
menuItemRaise | String menuItemRaise() | No description in source. |
menuTransitionMs | String menuTransitionMs() | No description in source. |
SLGuiTheme #sleela 2.5 (lib/gui/version-military/SLGuiTheme.sleela)
SLGuiTheme class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
TITLE_BAR | static final String TITLE_BAR = "#1D2025" | No description in source. |
MENU_BAR | static final String MENU_BAR = "#1D2025" | No description in source. |
URL_BAR | static final String URL_BAR = "#383C47" | No description in source. |
PANEL | static final String PANEL = "#292D35" | No description in source. |
SURFACE | static final String SURFACE = "#22262D" | No description in source. |
TEXT | static final String TEXT = "#E8EAED" | No description in source. |
MUTED_TEXT | static final String MUTED_TEXT = "#B0B7C3" | No description in source. |
BORDER | static final String BORDER = "#444A56" | No description in source. |
ACCENT | static final String ACCENT = "#4F8CFF" | No description in source. |
FOCUS | static final String FOCUS = "#8AB4F8" | No description in source. |
DANGER | static final String DANGER = "#D9534F" | No description in source. |
SUCCESS | static final String SUCCESS = "#3FA776" | No description in source. |
MENU_POPUP_SURFACE | static final String MENU_POPUP_SURFACE = "#292D35" | No description in source. |
MENU_POPUP_EDGE | static final String MENU_POPUP_EDGE = "#505866" | No description in source. |
MENU_ITEM_HOVER | static final String MENU_ITEM_HOVER = "#343A44" | No description in source. |
MENU_ITEM_PRESSED | static final String MENU_ITEM_PRESSED = "#252A32" | No description in source. |
MENU_ITEM_HIGHLIGHT | static final String MENU_ITEM_HIGHLIGHT = "#3A404B" | No description in source. |
MENU_POPUP_SHADOW | static final String MENU_POPUP_SHADOW = "0 8px 20px rgba(0,0,0,0.28)" | No description in source. |
MENU_POPUP_RADIUS | static final String MENU_POPUP_RADIUS = "6" | No description in source. |
MENU_ITEM_RAISE | static final String MENU_ITEM_RAISE = "1" | No description in source. |
MENU_TRANSITION_MS | static final String MENU_TRANSITION_MS = "120" | No description in source. |
TITLE_BAR_COLOR | static final int TITLE_BAR_COLOR = 0x1D2025FF | Typed SLColor words (0xRRGGBBAA) used by SLTheme at runtime. |
MENU_BAR_COLOR | static final int MENU_BAR_COLOR = 0x1D2025FF | No description in source. |
URL_BAR_COLOR | static final int URL_BAR_COLOR = 0x383C47FF | No description in source. |
PANEL_COLOR | static final int PANEL_COLOR = 0x292D35FF | No description in source. |
SURFACE_COLOR | static final int SURFACE_COLOR = 0x22262DFF | No description in source. |
TEXT_COLOR | static final int TEXT_COLOR = 0xE8EAEDFF | No description in source. |
MUTED_TEXT_COLOR | static final int MUTED_TEXT_COLOR = 0xB0B7C3FF | No description in source. |
BORDER_COLOR | static final int BORDER_COLOR = 0x444A56FF | No description in source. |
ACCENT_COLOR | static final int ACCENT_COLOR = 0x4F8CFFFF | No description in source. |
FOCUS_COLOR | static final int FOCUS_COLOR = 0x8AB4F8FF | No description in source. |
DANGER_COLOR | static final int DANGER_COLOR = 0xD9534FFF | No description in source. |
SUCCESS_COLOR | static final int SUCCESS_COLOR = 0x3FA776FF | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
titleBar | String titleBar() | No description in source. |
menuBar | String menuBar() | No description in source. |
urlBar | String urlBar() | No description in source. |
panel | String panel() | No description in source. |
surface | String surface() | No description in source. |
text | String text() | No description in source. |
mutedText | String mutedText() | No description in source. |
border | String border() | No description in source. |
accent | String accent() | No description in source. |
focus | String focus() | No description in source. |
danger | String danger() | No description in source. |
success | String success() | No description in source. |
menuPopupSurface | String menuPopupSurface() | No description in source. |
menuPopupEdge | String menuPopupEdge() | No description in source. |
menuItemHover | String menuItemHover() | No description in source. |
menuItemPressed | String menuItemPressed() | No description in source. |
menuItemHighlight | String menuItemHighlight() | No description in source. |
menuPopupShadow | String menuPopupShadow() | No description in source. |
menuPopupRadius | String menuPopupRadius() | No description in source. |
menuItemRaise | String menuItemRaise() | No description in source. |
menuTransitionMs | String menuTransitionMs() | No description in source. |
SLGuiTheme #sleela 2.5 (lib/gui/version-dual/SLGuiTheme.sleela)
SLGuiTheme class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
TITLE_BAR | static final String TITLE_BAR = "#1D2025" | No description in source. |
MENU_BAR | static final String MENU_BAR = "#1D2025" | No description in source. |
URL_BAR | static final String URL_BAR = "#383C47" | No description in source. |
PANEL | static final String PANEL = "#292D35" | No description in source. |
SURFACE | static final String SURFACE = "#22262D" | No description in source. |
TEXT | static final String TEXT = "#E8EAED" | No description in source. |
MUTED_TEXT | static final String MUTED_TEXT = "#B0B7C3" | No description in source. |
BORDER | static final String BORDER = "#444A56" | No description in source. |
ACCENT | static final String ACCENT = "#4F8CFF" | No description in source. |
FOCUS | static final String FOCUS = "#8AB4F8" | No description in source. |
DANGER | static final String DANGER = "#D9534F" | No description in source. |
SUCCESS | static final String SUCCESS = "#3FA776" | No description in source. |
MENU_POPUP_SURFACE | static final String MENU_POPUP_SURFACE = "#292D35" | No description in source. |
MENU_POPUP_EDGE | static final String MENU_POPUP_EDGE = "#505866" | No description in source. |
MENU_ITEM_HOVER | static final String MENU_ITEM_HOVER = "#343A44" | No description in source. |
MENU_ITEM_PRESSED | static final String MENU_ITEM_PRESSED = "#252A32" | No description in source. |
MENU_ITEM_HIGHLIGHT | static final String MENU_ITEM_HIGHLIGHT = "#3A404B" | No description in source. |
MENU_POPUP_SHADOW | static final String MENU_POPUP_SHADOW = "0 8px 20px rgba(0,0,0,0.28)" | No description in source. |
MENU_POPUP_RADIUS | static final String MENU_POPUP_RADIUS = "6" | No description in source. |
MENU_ITEM_RAISE | static final String MENU_ITEM_RAISE = "1" | No description in source. |
MENU_TRANSITION_MS | static final String MENU_TRANSITION_MS = "120" | No description in source. |
TITLE_BAR_COLOR | static final int TITLE_BAR_COLOR = 0x1D2025FF | Typed SLColor words (0xRRGGBBAA) used by SLTheme at runtime. |
MENU_BAR_COLOR | static final int MENU_BAR_COLOR = 0x1D2025FF | No description in source. |
URL_BAR_COLOR | static final int URL_BAR_COLOR = 0x383C47FF | No description in source. |
PANEL_COLOR | static final int PANEL_COLOR = 0x292D35FF | No description in source. |
SURFACE_COLOR | static final int SURFACE_COLOR = 0x22262DFF | No description in source. |
TEXT_COLOR | static final int TEXT_COLOR = 0xE8EAEDFF | No description in source. |
MUTED_TEXT_COLOR | static final int MUTED_TEXT_COLOR = 0xB0B7C3FF | No description in source. |
BORDER_COLOR | static final int BORDER_COLOR = 0x444A56FF | No description in source. |
ACCENT_COLOR | static final int ACCENT_COLOR = 0x4F8CFFFF | No description in source. |
FOCUS_COLOR | static final int FOCUS_COLOR = 0x8AB4F8FF | No description in source. |
DANGER_COLOR | static final int DANGER_COLOR = 0xD9534FFF | No description in source. |
SUCCESS_COLOR | static final int SUCCESS_COLOR = 0x3FA776FF | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
titleBar | String titleBar() | No description in source. |
menuBar | String menuBar() | No description in source. |
urlBar | String urlBar() | No description in source. |
panel | String panel() | No description in source. |
surface | String surface() | No description in source. |
text | String text() | No description in source. |
mutedText | String mutedText() | No description in source. |
border | String border() | No description in source. |
accent | String accent() | No description in source. |
focus | String focus() | No description in source. |
danger | String danger() | No description in source. |
success | String success() | No description in source. |
menuPopupSurface | String menuPopupSurface() | No description in source. |
menuPopupEdge | String menuPopupEdge() | No description in source. |
menuItemHover | String menuItemHover() | No description in source. |
menuItemPressed | String menuItemPressed() | No description in source. |
menuItemHighlight | String menuItemHighlight() | No description in source. |
menuPopupShadow | String menuPopupShadow() | No description in source. |
menuPopupRadius | String menuPopupRadius() | No description in source. |
menuItemRaise | String menuItemRaise() | No description in source. |
menuTransitionMs | String menuTransitionMs() | No description in source. |
SLGuiToast #sleela 2.5 (lib/gui/version-gual/SLGuiToast.sleela)
SLGuiToast class
Defines SLGuiToast — the TOAST / SNACKBAR component: a small notification panel that fades IN at a corner/edge of the screen, DWELLS for a few seconds, then fades OUT. It is a pure model + lifecycle state machine: hidden -> fadingIn -> shown -> fadingOut -> hidden, driven by tick(elapsed). The fade in and fade out are each an SLGuiTransition (the shared enter/exit tween); the dwell is a plain timer. SLeeLa owns the message, placement, severity, and timing; the host paints the panel at the resolved opacity and anchors it to the chosen corner. Family: gui. A self-dismissing notification; the host renders it, this model decides when it is visible and how opaque.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
STATE_HIDDEN | static final int STATE_HIDDEN = 0 | Lifecycle states. not on screen |
STATE_FADING_IN | static final int STATE_FADING_IN = 1 | enter transition running |
STATE_SHOWN | static final int STATE_SHOWN = 2 | fully visible, dwelling |
STATE_FADING_OUT | static final int STATE_FADING_OUT = 3 | exit transition running |
SEV_INFO | static final int SEV_INFO = 0 | Severity (tints the panel; the host maps to accent/warning/danger/success). |
SEV_SUCCESS | static final int SEV_SUCCESS = 1 | No description in source. |
SEV_WARNING | static final int SEV_WARNING = 2 | No description in source. |
SEV_DANGER | static final int SEV_DANGER = 3 | No description in source. |
POS_TOP_LEFT | static final int POS_TOP_LEFT = 0 | Placement anchors (which screen corner/edge the toast docks to). |
POS_TOP_RIGHT | static final int POS_TOP_RIGHT = 1 | No description in source. |
POS_TOP_CENTER | static final int POS_TOP_CENTER = 2 | No description in source. |
POS_BOTTOM_LEFT | static final int POS_BOTTOM_LEFT = 3 | No description in source. |
POS_BOTTOM_RIGHT | static final int POS_BOTTOM_RIGHT = 4 | No description in source. |
POS_BOTTOM_CENTER | static final int POS_BOTTOM_CENTER = 5 | No description in source. |
message | String message | No description in source. |
severity | int severity | SEV_* |
position | int position | POS_* |
state | int state | STATE_* |
dwellMs | int dwellMs | how long STATE_SHOWN lasts, 0..60000 ms |
dwellElapsed | int dwellElapsed | time spent in STATE_SHOWN so far |
enterFx | SLGuiTransition enterFx | fade-in tween |
exitFx | SLGuiTransition exitFx | fade-out tween |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure(String text) | Safe defaults: an info toast, bottom-right, 250ms fade-in, ~3s dwell, 250ms fade-out (the classic snackbar cadence). |
setMessage | void setMessage(String text) | No description in source. |
setSeverity | void setSeverity(int sev) | No description in source. |
setPosition | void setPosition(int pos) | No description in source. |
setDwell | void setDwell(int ms) | No description in source. |
setFadeInMillis | void setFadeInMillis(int ms) | No description in source. |
setFadeOutMillis | void setFadeOutMillis(int ms) | No description in source. |
setFadeEasing | void setFadeEasing(int ease) | No description in source. |
show | void show() | ---- lifecycle ---------------------------------------------------------- Begin showing the toast: start the enter transition from the top. |
dismiss | void dismiss() | Begin dismissing early (before the dwell elapses): start the exit tween. |
hideNow | void hideNow() | No description in source. |
tick | boolean tick(int deltaMs) | Advance the lifecycle by `deltaMs`. Returns true while the toast still occupies the screen (any non-hidden state), false once fully hidden. |
opacityPct | int opacityPct() | ---- presentation ------------------------------------------------------- The opacity (0..100 %) the host should paint the panel at right now. |
onScreen | boolean onScreen() | No description in source. |
fullyShown | boolean fullyShown() | No description in source. |
getMessage | String getMessage() | ---- readers ------------------------------------------------------------ |
getSeverity | int getSeverity() | No description in source. |
getPosition | int getPosition() | No description in source. |
getState | int getState() | No description in source. |
enterTransition | SLGuiTransition enterTransition() | No description in source. |
exitTransition | SLGuiTransition exitTransition() | No description in source. |
severityName | String severityName() | No description in source. |
positionName | String positionName() | No description in source. |
stateName | String stateName() | No description in source. |
honored | boolean honored() | No description in source. |
toStyle | String toStyle() | Flatten into the reconciler's style descriptor. Shape: "toast:<severity>@<position>;dwell:<ms>;<enter-fade>;<exit-fade>" |
report | String report() | No description in source. |
SLGuiToast #sleela 2.5 (lib/gui/version-mual/SLGuiToast.sleela)
SLGuiToast class
Defines SLGuiToast — the TOAST / SNACKBAR component: a small notification panel that fades IN at a corner/edge of the screen, DWELLS for a few seconds, then fades OUT. It is a pure model + lifecycle state machine: hidden -> fadingIn -> shown -> fadingOut -> hidden, driven by tick(elapsed). The fade in and fade out are each an SLGuiTransition (the shared enter/exit tween); the dwell is a plain timer. SLeeLa owns the message, placement, severity, and timing; the host paints the panel at the resolved opacity and anchors it to the chosen corner. Family: gui. A self-dismissing notification; the host renders it, this model decides when it is visible and how opaque.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
STATE_HIDDEN | static final int STATE_HIDDEN = 0 | Lifecycle states. not on screen |
STATE_FADING_IN | static final int STATE_FADING_IN = 1 | enter transition running |
STATE_SHOWN | static final int STATE_SHOWN = 2 | fully visible, dwelling |
STATE_FADING_OUT | static final int STATE_FADING_OUT = 3 | exit transition running |
SEV_INFO | static final int SEV_INFO = 0 | Severity (tints the panel; the host maps to accent/warning/danger/success). |
SEV_SUCCESS | static final int SEV_SUCCESS = 1 | No description in source. |
SEV_WARNING | static final int SEV_WARNING = 2 | No description in source. |
SEV_DANGER | static final int SEV_DANGER = 3 | No description in source. |
POS_TOP_LEFT | static final int POS_TOP_LEFT = 0 | Placement anchors (which screen corner/edge the toast docks to). |
POS_TOP_RIGHT | static final int POS_TOP_RIGHT = 1 | No description in source. |
POS_TOP_CENTER | static final int POS_TOP_CENTER = 2 | No description in source. |
POS_BOTTOM_LEFT | static final int POS_BOTTOM_LEFT = 3 | No description in source. |
POS_BOTTOM_RIGHT | static final int POS_BOTTOM_RIGHT = 4 | No description in source. |
POS_BOTTOM_CENTER | static final int POS_BOTTOM_CENTER = 5 | No description in source. |
message | String message | No description in source. |
severity | int severity | SEV_* |
position | int position | POS_* |
state | int state | STATE_* |
dwellMs | int dwellMs | how long STATE_SHOWN lasts, 0..60000 ms |
dwellElapsed | int dwellElapsed | time spent in STATE_SHOWN so far |
enterFx | SLGuiTransition enterFx | fade-in tween |
exitFx | SLGuiTransition exitFx | fade-out tween |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure(String text) | Safe defaults: an info toast, bottom-right, 250ms fade-in, ~3s dwell, 250ms fade-out (the classic snackbar cadence). |
setMessage | void setMessage(String text) | No description in source. |
setSeverity | void setSeverity(int sev) | No description in source. |
setPosition | void setPosition(int pos) | No description in source. |
setDwell | void setDwell(int ms) | No description in source. |
setFadeInMillis | void setFadeInMillis(int ms) | No description in source. |
setFadeOutMillis | void setFadeOutMillis(int ms) | No description in source. |
setFadeEasing | void setFadeEasing(int ease) | No description in source. |
show | void show() | ---- lifecycle ---------------------------------------------------------- Begin showing the toast: start the enter transition from the top. |
dismiss | void dismiss() | Begin dismissing early (before the dwell elapses): start the exit tween. |
hideNow | void hideNow() | No description in source. |
tick | boolean tick(int deltaMs) | Advance the lifecycle by `deltaMs`. Returns true while the toast still occupies the screen (any non-hidden state), false once fully hidden. |
opacityPct | int opacityPct() | ---- presentation ------------------------------------------------------- The opacity (0..100 %) the host should paint the panel at right now. |
onScreen | boolean onScreen() | No description in source. |
fullyShown | boolean fullyShown() | No description in source. |
getMessage | String getMessage() | ---- readers ------------------------------------------------------------ |
getSeverity | int getSeverity() | No description in source. |
getPosition | int getPosition() | No description in source. |
getState | int getState() | No description in source. |
enterTransition | SLGuiTransition enterTransition() | No description in source. |
exitTransition | SLGuiTransition exitTransition() | No description in source. |
severityName | String severityName() | No description in source. |
positionName | String positionName() | No description in source. |
stateName | String stateName() | No description in source. |
honored | boolean honored() | No description in source. |
toStyle | String toStyle() | Flatten into the reconciler's style descriptor. Shape: "toast:<severity>@<position>;dwell:<ms>;<enter-fade>;<exit-fade>" |
report | String report() | No description in source. |
SLGuiToast #sleela 2.5 (lib/gui/version-thual/SLGuiToast.sleela)
SLGuiToast class
Defines SLGuiToast — the TOAST / SNACKBAR component: a small notification panel that fades IN at a corner/edge of the screen, DWELLS for a few seconds, then fades OUT. It is a pure model + lifecycle state machine: hidden -> fadingIn -> shown -> fadingOut -> hidden, driven by tick(elapsed). The fade in and fade out are each an SLGuiTransition (the shared enter/exit tween); the dwell is a plain timer. SLeeLa owns the message, placement, severity, and timing; the host paints the panel at the resolved opacity and anchors it to the chosen corner. Family: gui. A self-dismissing notification; the host renders it, this model decides when it is visible and how opaque.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
STATE_HIDDEN | static final int STATE_HIDDEN = 0 | Lifecycle states. not on screen |
STATE_FADING_IN | static final int STATE_FADING_IN = 1 | enter transition running |
STATE_SHOWN | static final int STATE_SHOWN = 2 | fully visible, dwelling |
STATE_FADING_OUT | static final int STATE_FADING_OUT = 3 | exit transition running |
SEV_INFO | static final int SEV_INFO = 0 | Severity (tints the panel; the host maps to accent/warning/danger/success). |
SEV_SUCCESS | static final int SEV_SUCCESS = 1 | No description in source. |
SEV_WARNING | static final int SEV_WARNING = 2 | No description in source. |
SEV_DANGER | static final int SEV_DANGER = 3 | No description in source. |
POS_TOP_LEFT | static final int POS_TOP_LEFT = 0 | Placement anchors (which screen corner/edge the toast docks to). |
POS_TOP_RIGHT | static final int POS_TOP_RIGHT = 1 | No description in source. |
POS_TOP_CENTER | static final int POS_TOP_CENTER = 2 | No description in source. |
POS_BOTTOM_LEFT | static final int POS_BOTTOM_LEFT = 3 | No description in source. |
POS_BOTTOM_RIGHT | static final int POS_BOTTOM_RIGHT = 4 | No description in source. |
POS_BOTTOM_CENTER | static final int POS_BOTTOM_CENTER = 5 | No description in source. |
message | String message | No description in source. |
severity | int severity | SEV_* |
position | int position | POS_* |
state | int state | STATE_* |
dwellMs | int dwellMs | how long STATE_SHOWN lasts, 0..60000 ms |
dwellElapsed | int dwellElapsed | time spent in STATE_SHOWN so far |
enterFx | SLGuiTransition enterFx | fade-in tween |
exitFx | SLGuiTransition exitFx | fade-out tween |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure(String text) | Safe defaults: an info toast, bottom-right, 250ms fade-in, ~3s dwell, 250ms fade-out (the classic snackbar cadence). |
setMessage | void setMessage(String text) | No description in source. |
setSeverity | void setSeverity(int sev) | No description in source. |
setPosition | void setPosition(int pos) | No description in source. |
setDwell | void setDwell(int ms) | No description in source. |
setFadeInMillis | void setFadeInMillis(int ms) | No description in source. |
setFadeOutMillis | void setFadeOutMillis(int ms) | No description in source. |
setFadeEasing | void setFadeEasing(int ease) | No description in source. |
show | void show() | ---- lifecycle ---------------------------------------------------------- Begin showing the toast: start the enter transition from the top. |
dismiss | void dismiss() | Begin dismissing early (before the dwell elapses): start the exit tween. |
hideNow | void hideNow() | No description in source. |
tick | boolean tick(int deltaMs) | Advance the lifecycle by `deltaMs`. Returns true while the toast still occupies the screen (any non-hidden state), false once fully hidden. |
opacityPct | int opacityPct() | ---- presentation ------------------------------------------------------- The opacity (0..100 %) the host should paint the panel at right now. |
onScreen | boolean onScreen() | No description in source. |
fullyShown | boolean fullyShown() | No description in source. |
getMessage | String getMessage() | ---- readers ------------------------------------------------------------ |
getSeverity | int getSeverity() | No description in source. |
getPosition | int getPosition() | No description in source. |
getState | int getState() | No description in source. |
enterTransition | SLGuiTransition enterTransition() | No description in source. |
exitTransition | SLGuiTransition exitTransition() | No description in source. |
severityName | String severityName() | No description in source. |
positionName | String positionName() | No description in source. |
stateName | String stateName() | No description in source. |
honored | boolean honored() | No description in source. |
toStyle | String toStyle() | Flatten into the reconciler's style descriptor. Shape: "toast:<severity>@<position>;dwell:<ms>;<enter-fade>;<exit-fade>" |
report | String report() | No description in source. |
SLGuiToast #sleela 2.5 (lib/gui/version-military/SLGuiToast.sleela)
SLGuiToast class
Defines SLGuiToast — the TOAST / SNACKBAR component: a small notification panel that fades IN at a corner/edge of the screen, DWELLS for a few seconds, then fades OUT. It is a pure model + lifecycle state machine: hidden -> fadingIn -> shown -> fadingOut -> hidden, driven by tick(elapsed). The fade in and fade out are each an SLGuiTransition (the shared enter/exit tween); the dwell is a plain timer. SLeeLa owns the message, placement, severity, and timing; the host paints the panel at the resolved opacity and anchors it to the chosen corner. Family: gui. A self-dismissing notification; the host renders it, this model decides when it is visible and how opaque.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
STATE_HIDDEN | static final int STATE_HIDDEN = 0 | Lifecycle states. not on screen |
STATE_FADING_IN | static final int STATE_FADING_IN = 1 | enter transition running |
STATE_SHOWN | static final int STATE_SHOWN = 2 | fully visible, dwelling |
STATE_FADING_OUT | static final int STATE_FADING_OUT = 3 | exit transition running |
SEV_INFO | static final int SEV_INFO = 0 | Severity (tints the panel; the host maps to accent/warning/danger/success). |
SEV_SUCCESS | static final int SEV_SUCCESS = 1 | No description in source. |
SEV_WARNING | static final int SEV_WARNING = 2 | No description in source. |
SEV_DANGER | static final int SEV_DANGER = 3 | No description in source. |
POS_TOP_LEFT | static final int POS_TOP_LEFT = 0 | Placement anchors (which screen corner/edge the toast docks to). |
POS_TOP_RIGHT | static final int POS_TOP_RIGHT = 1 | No description in source. |
POS_TOP_CENTER | static final int POS_TOP_CENTER = 2 | No description in source. |
POS_BOTTOM_LEFT | static final int POS_BOTTOM_LEFT = 3 | No description in source. |
POS_BOTTOM_RIGHT | static final int POS_BOTTOM_RIGHT = 4 | No description in source. |
POS_BOTTOM_CENTER | static final int POS_BOTTOM_CENTER = 5 | No description in source. |
message | String message | No description in source. |
severity | int severity | SEV_* |
position | int position | POS_* |
state | int state | STATE_* |
dwellMs | int dwellMs | how long STATE_SHOWN lasts, 0..60000 ms |
dwellElapsed | int dwellElapsed | time spent in STATE_SHOWN so far |
enterFx | SLGuiTransition enterFx | fade-in tween |
exitFx | SLGuiTransition exitFx | fade-out tween |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure(String text) | Safe defaults: an info toast, bottom-right, 250ms fade-in, ~3s dwell, 250ms fade-out (the classic snackbar cadence). |
setMessage | void setMessage(String text) | No description in source. |
setSeverity | void setSeverity(int sev) | No description in source. |
setPosition | void setPosition(int pos) | No description in source. |
setDwell | void setDwell(int ms) | No description in source. |
setFadeInMillis | void setFadeInMillis(int ms) | No description in source. |
setFadeOutMillis | void setFadeOutMillis(int ms) | No description in source. |
setFadeEasing | void setFadeEasing(int ease) | No description in source. |
show | void show() | ---- lifecycle ---------------------------------------------------------- Begin showing the toast: start the enter transition from the top. |
dismiss | void dismiss() | Begin dismissing early (before the dwell elapses): start the exit tween. |
hideNow | void hideNow() | No description in source. |
tick | boolean tick(int deltaMs) | Advance the lifecycle by `deltaMs`. Returns true while the toast still occupies the screen (any non-hidden state), false once fully hidden. |
opacityPct | int opacityPct() | ---- presentation ------------------------------------------------------- The opacity (0..100 %) the host should paint the panel at right now. |
onScreen | boolean onScreen() | No description in source. |
fullyShown | boolean fullyShown() | No description in source. |
getMessage | String getMessage() | ---- readers ------------------------------------------------------------ |
getSeverity | int getSeverity() | No description in source. |
getPosition | int getPosition() | No description in source. |
getState | int getState() | No description in source. |
enterTransition | SLGuiTransition enterTransition() | No description in source. |
exitTransition | SLGuiTransition exitTransition() | No description in source. |
severityName | String severityName() | No description in source. |
positionName | String positionName() | No description in source. |
stateName | String stateName() | No description in source. |
honored | boolean honored() | No description in source. |
toStyle | String toStyle() | Flatten into the reconciler's style descriptor. Shape: "toast:<severity>@<position>;dwell:<ms>;<enter-fade>;<exit-fade>" |
report | String report() | No description in source. |
SLGuiToast #sleela 2.5 (lib/gui/version-dual/SLGuiToast.sleela)
SLGuiToast class
Defines SLGuiToast — the TOAST / SNACKBAR component: a small notification panel that fades IN at a corner/edge of the screen, DWELLS for a few seconds, then fades OUT. It is a pure model + lifecycle state machine: hidden -> fadingIn -> shown -> fadingOut -> hidden, driven by tick(elapsed). The fade in and fade out are each an SLGuiTransition (the shared enter/exit tween); the dwell is a plain timer. SLeeLa owns the message, placement, severity, and timing; the host paints the panel at the resolved opacity and anchors it to the chosen corner. Family: gui. A self-dismissing notification; the host renders it, this model decides when it is visible and how opaque.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
STATE_HIDDEN | static final int STATE_HIDDEN = 0 | Lifecycle states. not on screen |
STATE_FADING_IN | static final int STATE_FADING_IN = 1 | enter transition running |
STATE_SHOWN | static final int STATE_SHOWN = 2 | fully visible, dwelling |
STATE_FADING_OUT | static final int STATE_FADING_OUT = 3 | exit transition running |
SEV_INFO | static final int SEV_INFO = 0 | Severity (tints the panel; the host maps to accent/warning/danger/success). |
SEV_SUCCESS | static final int SEV_SUCCESS = 1 | No description in source. |
SEV_WARNING | static final int SEV_WARNING = 2 | No description in source. |
SEV_DANGER | static final int SEV_DANGER = 3 | No description in source. |
POS_TOP_LEFT | static final int POS_TOP_LEFT = 0 | Placement anchors (which screen corner/edge the toast docks to). |
POS_TOP_RIGHT | static final int POS_TOP_RIGHT = 1 | No description in source. |
POS_TOP_CENTER | static final int POS_TOP_CENTER = 2 | No description in source. |
POS_BOTTOM_LEFT | static final int POS_BOTTOM_LEFT = 3 | No description in source. |
POS_BOTTOM_RIGHT | static final int POS_BOTTOM_RIGHT = 4 | No description in source. |
POS_BOTTOM_CENTER | static final int POS_BOTTOM_CENTER = 5 | No description in source. |
message | String message | No description in source. |
severity | int severity | SEV_* |
position | int position | POS_* |
state | int state | STATE_* |
dwellMs | int dwellMs | how long STATE_SHOWN lasts, 0..60000 ms |
dwellElapsed | int dwellElapsed | time spent in STATE_SHOWN so far |
enterFx | SLGuiTransition enterFx | fade-in tween |
exitFx | SLGuiTransition exitFx | fade-out tween |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure(String text) | Safe defaults: an info toast, bottom-right, 250ms fade-in, ~3s dwell, 250ms fade-out (the classic snackbar cadence). |
setMessage | void setMessage(String text) | No description in source. |
setSeverity | void setSeverity(int sev) | No description in source. |
setPosition | void setPosition(int pos) | No description in source. |
setDwell | void setDwell(int ms) | No description in source. |
setFadeInMillis | void setFadeInMillis(int ms) | No description in source. |
setFadeOutMillis | void setFadeOutMillis(int ms) | No description in source. |
setFadeEasing | void setFadeEasing(int ease) | No description in source. |
show | void show() | ---- lifecycle ---------------------------------------------------------- Begin showing the toast: start the enter transition from the top. |
dismiss | void dismiss() | Begin dismissing early (before the dwell elapses): start the exit tween. |
hideNow | void hideNow() | No description in source. |
tick | boolean tick(int deltaMs) | Advance the lifecycle by `deltaMs`. Returns true while the toast still occupies the screen (any non-hidden state), false once fully hidden. |
opacityPct | int opacityPct() | ---- presentation ------------------------------------------------------- The opacity (0..100 %) the host should paint the panel at right now. |
onScreen | boolean onScreen() | No description in source. |
fullyShown | boolean fullyShown() | No description in source. |
getMessage | String getMessage() | ---- readers ------------------------------------------------------------ |
getSeverity | int getSeverity() | No description in source. |
getPosition | int getPosition() | No description in source. |
getState | int getState() | No description in source. |
enterTransition | SLGuiTransition enterTransition() | No description in source. |
exitTransition | SLGuiTransition exitTransition() | No description in source. |
severityName | String severityName() | No description in source. |
positionName | String positionName() | No description in source. |
stateName | String stateName() | No description in source. |
honored | boolean honored() | No description in source. |
toStyle | String toStyle() | Flatten into the reconciler's style descriptor. Shape: "toast:<severity>@<position>;dwell:<ms>;<enter-fade>;<exit-fade>" |
report | String report() | No description in source. |
SLGuiTransition #sleela 2.5 (lib/gui/version-gual/SLGuiTransition.sleela)
SLGuiTransition class
Defines SLGuiTransition — the FADING-ACTION model (an "enter" / "exit" transition, a.k.a. intro/outro animation). It is a pure model: given a start and end opacity (the CSS `opacity` property, 0..100 %), a duration (the tween window), an easing curve, and an optional start delay, it tweens ("in-betweens") the current opacity for a given elapsed time. SLeeLa owns the curve + timing; the host realizes it with a CSS `transition` / `@keyframes` (or a toolkit animator) using the descriptor from toStyle(). Terms (documentation labels): the component that fades is a Toast/Snackbar, Modal/Overlay, Transition-wrapper, or Skeleton; the ACTION here is the enter transition / tween / dissolve; the CSS surface is opacity + transition + @keyframes. This class is the reusable fade primitive the GUI components (SLGuiToast / SLGuiModal / SLGuiSkeleton) embed. Family: gui. A pure tween model (ints only); the host paints the pixels.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
KIND_ENTER | static final int KIND_ENTER = 0 | Direction of the transition. fade/scale IN (opacity rises to target) |
KIND_EXIT | static final int KIND_EXIT = 1 | fade/scale OUT (opacity falls to target) |
EASE_LINEAR | static final int EASE_LINEAR = 0 | Easing curves (how the tween accelerates). Mirrors the common CSS set plus a film/game "dissolve" (a smooth cross-fade feel == ease-in-out here). constant rate |
EASE_IN | static final int EASE_IN = 1 | starts slow, speeds up |
EASE_OUT | static final int EASE_OUT = 2 | starts fast, slows down |
EASE_IN_OUT | static final int EASE_IN_OUT = 3 | slow, fast, slow |
EASE_DISSOLVE | static final int EASE_DISSOLVE = 4 | seamless cross-fade (== in-out feel) |
PCT | static final int PCT = 100 | Opacity is carried in PERCENT (0..100); progress in PERMILLE (0..1000) so the model stays integer-only (SLeeLa ints). Callers divide by 100.0 / 1000.0 when they need the [0,1] double a toolkit wants. |
UNIT | static final int UNIT = 1000 | No description in source. |
kind | int kind | KIND_ENTER / KIND_EXIT |
easing | int easing | EASE_* |
fromPct | int fromPct | start opacity, 0..100 |
toPct | int toPct | end opacity, 0..100 |
durationMs | int durationMs | tween duration, 0..60000 ms |
delayMs | int delayMs | start delay before the tween begins, 0..60000 ms |
elapsedMs | int elapsedMs | time advanced so far (clamped to delay+duration) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure() | Safe defaults: a 200 ms ease-out fade-in from fully transparent to opaque. |
fadeIn | void fadeIn(int ms, int ease) | Configure a fade-IN (enter): 0 -> 100 % over `ms` with `ease`. |
fadeOut | void fadeOut(int ms, int ease) | Configure a fade-OUT (exit): 100 -> 0 % over `ms` with `ease`. |
between | void between(int kindVal, int fromOpacityPct, int toOpacityPct, int ms, int ease) | A general enter/exit between arbitrary opacities. |
setEasing | void setEasing(int ease) | No description in source. |
setDelay | void setDelay(int ms) | No description in source. |
setDuration | void setDuration(int ms) | No description in source. |
reset | void reset() | ---- playback ----------------------------------------------------------- |
advance | void advance(int deltaMs) | Advance the tween by `deltaMs`; clamps to the delay+duration window. |
done | boolean done() | The tween is finished once the whole delay+duration window has elapsed. |
rawProgressPermille | int rawProgressPermille() | Linear progress through the active (post-delay) window, in permille 0..1000. |
easeProgress | int easeProgress(int p) | Apply the easing curve to a linear permille progress. Integer-only: ease-in : p^2 (slow start) ease-out : 1-(1-p)^2 (slow end) in-out : piecewise quadratic (slow start & end) dissolve : == in-out (seamless cross-fade feel) |
progressPermille | int progressPermille() | The eased progress (permille) at the current elapsed time. |
opacityPct | int opacityPct() | The current tweened opacity in PERCENT (0..100), interpolating from->to by the eased progress. This is the value the host writes to CSS `opacity`. |
opacityAt | int opacityAt(int atElapsedMs) | Convenience: the opacity at an explicit elapsed time (does not mutate state). |
getKind | int getKind() | ---- readers ------------------------------------------------------------ |
getEasing | int getEasing() | No description in source. |
getFrom | int getFrom() | No description in source. |
getTo | int getTo() | No description in source. |
getDuration | int getDuration() | No description in source. |
getDelay | int getDelay() | No description in source. |
getElapsed | int getElapsed() | No description in source. |
kindName | String kindName() | No description in source. |
easingName | String easingName() | No description in source. |
honored | boolean honored() | Internally consistent: opacities and timings within their clamped windows. |
toStyle | String toStyle() | Flatten into the descriptor the SLGuiMount reconciler copies onto the widget style; the host maps it to a CSS `transition` + `@keyframes` (or a toolkit animator). Shape: "fade:<from>-><to>/<ms>ms/<easing>[+delay<ms>]". |
report | String report() | No description in source. |
SLGuiTransition #sleela 2.5 (lib/gui/version-mual/SLGuiTransition.sleela)
SLGuiTransition class
Defines SLGuiTransition — the FADING-ACTION model (an "enter" / "exit" transition, a.k.a. intro/outro animation). It is a pure model: given a start and end opacity (the CSS `opacity` property, 0..100 %), a duration (the tween window), an easing curve, and an optional start delay, it tweens ("in-betweens") the current opacity for a given elapsed time. SLeeLa owns the curve + timing; the host realizes it with a CSS `transition` / `@keyframes` (or a toolkit animator) using the descriptor from toStyle(). Terms (documentation labels): the component that fades is a Toast/Snackbar, Modal/Overlay, Transition-wrapper, or Skeleton; the ACTION here is the enter transition / tween / dissolve; the CSS surface is opacity + transition + @keyframes. This class is the reusable fade primitive the GUI components (SLGuiToast / SLGuiModal / SLGuiSkeleton) embed. Family: gui. A pure tween model (ints only); the host paints the pixels.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
KIND_ENTER | static final int KIND_ENTER = 0 | Direction of the transition. fade/scale IN (opacity rises to target) |
KIND_EXIT | static final int KIND_EXIT = 1 | fade/scale OUT (opacity falls to target) |
EASE_LINEAR | static final int EASE_LINEAR = 0 | Easing curves (how the tween accelerates). Mirrors the common CSS set plus a film/game "dissolve" (a smooth cross-fade feel == ease-in-out here). constant rate |
EASE_IN | static final int EASE_IN = 1 | starts slow, speeds up |
EASE_OUT | static final int EASE_OUT = 2 | starts fast, slows down |
EASE_IN_OUT | static final int EASE_IN_OUT = 3 | slow, fast, slow |
EASE_DISSOLVE | static final int EASE_DISSOLVE = 4 | seamless cross-fade (== in-out feel) |
PCT | static final int PCT = 100 | Opacity is carried in PERCENT (0..100); progress in PERMILLE (0..1000) so the model stays integer-only (SLeeLa ints). Callers divide by 100.0 / 1000.0 when they need the [0,1] double a toolkit wants. |
UNIT | static final int UNIT = 1000 | No description in source. |
kind | int kind | KIND_ENTER / KIND_EXIT |
easing | int easing | EASE_* |
fromPct | int fromPct | start opacity, 0..100 |
toPct | int toPct | end opacity, 0..100 |
durationMs | int durationMs | tween duration, 0..60000 ms |
delayMs | int delayMs | start delay before the tween begins, 0..60000 ms |
elapsedMs | int elapsedMs | time advanced so far (clamped to delay+duration) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure() | Safe defaults: a 200 ms ease-out fade-in from fully transparent to opaque. |
fadeIn | void fadeIn(int ms, int ease) | Configure a fade-IN (enter): 0 -> 100 % over `ms` with `ease`. |
fadeOut | void fadeOut(int ms, int ease) | Configure a fade-OUT (exit): 100 -> 0 % over `ms` with `ease`. |
between | void between(int kindVal, int fromOpacityPct, int toOpacityPct, int ms, int ease) | A general enter/exit between arbitrary opacities. |
setEasing | void setEasing(int ease) | No description in source. |
setDelay | void setDelay(int ms) | No description in source. |
setDuration | void setDuration(int ms) | No description in source. |
reset | void reset() | ---- playback ----------------------------------------------------------- |
advance | void advance(int deltaMs) | Advance the tween by `deltaMs`; clamps to the delay+duration window. |
done | boolean done() | The tween is finished once the whole delay+duration window has elapsed. |
rawProgressPermille | int rawProgressPermille() | Linear progress through the active (post-delay) window, in permille 0..1000. |
easeProgress | int easeProgress(int p) | Apply the easing curve to a linear permille progress. Integer-only: ease-in : p^2 (slow start) ease-out : 1-(1-p)^2 (slow end) in-out : piecewise quadratic (slow start & end) dissolve : == in-out (seamless cross-fade feel) |
progressPermille | int progressPermille() | The eased progress (permille) at the current elapsed time. |
opacityPct | int opacityPct() | The current tweened opacity in PERCENT (0..100), interpolating from->to by the eased progress. This is the value the host writes to CSS `opacity`. |
opacityAt | int opacityAt(int atElapsedMs) | Convenience: the opacity at an explicit elapsed time (does not mutate state). |
getKind | int getKind() | ---- readers ------------------------------------------------------------ |
getEasing | int getEasing() | No description in source. |
getFrom | int getFrom() | No description in source. |
getTo | int getTo() | No description in source. |
getDuration | int getDuration() | No description in source. |
getDelay | int getDelay() | No description in source. |
getElapsed | int getElapsed() | No description in source. |
kindName | String kindName() | No description in source. |
easingName | String easingName() | No description in source. |
honored | boolean honored() | Internally consistent: opacities and timings within their clamped windows. |
toStyle | String toStyle() | Flatten into the descriptor the SLGuiMount reconciler copies onto the widget style; the host maps it to a CSS `transition` + `@keyframes` (or a toolkit animator). Shape: "fade:<from>-><to>/<ms>ms/<easing>[+delay<ms>]". |
report | String report() | No description in source. |
SLGuiTransition #sleela 2.5 (lib/gui/version-thual/SLGuiTransition.sleela)
SLGuiTransition class
Defines SLGuiTransition — the FADING-ACTION model (an "enter" / "exit" transition, a.k.a. intro/outro animation). It is a pure model: given a start and end opacity (the CSS `opacity` property, 0..100 %), a duration (the tween window), an easing curve, and an optional start delay, it tweens ("in-betweens") the current opacity for a given elapsed time. SLeeLa owns the curve + timing; the host realizes it with a CSS `transition` / `@keyframes` (or a toolkit animator) using the descriptor from toStyle(). Terms (documentation labels): the component that fades is a Toast/Snackbar, Modal/Overlay, Transition-wrapper, or Skeleton; the ACTION here is the enter transition / tween / dissolve; the CSS surface is opacity + transition + @keyframes. This class is the reusable fade primitive the GUI components (SLGuiToast / SLGuiModal / SLGuiSkeleton) embed. Family: gui. A pure tween model (ints only); the host paints the pixels.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
KIND_ENTER | static final int KIND_ENTER = 0 | Direction of the transition. fade/scale IN (opacity rises to target) |
KIND_EXIT | static final int KIND_EXIT = 1 | fade/scale OUT (opacity falls to target) |
EASE_LINEAR | static final int EASE_LINEAR = 0 | Easing curves (how the tween accelerates). Mirrors the common CSS set plus a film/game "dissolve" (a smooth cross-fade feel == ease-in-out here). constant rate |
EASE_IN | static final int EASE_IN = 1 | starts slow, speeds up |
EASE_OUT | static final int EASE_OUT = 2 | starts fast, slows down |
EASE_IN_OUT | static final int EASE_IN_OUT = 3 | slow, fast, slow |
EASE_DISSOLVE | static final int EASE_DISSOLVE = 4 | seamless cross-fade (== in-out feel) |
PCT | static final int PCT = 100 | Opacity is carried in PERCENT (0..100); progress in PERMILLE (0..1000) so the model stays integer-only (SLeeLa ints). Callers divide by 100.0 / 1000.0 when they need the [0,1] double a toolkit wants. |
UNIT | static final int UNIT = 1000 | No description in source. |
kind | int kind | KIND_ENTER / KIND_EXIT |
easing | int easing | EASE_* |
fromPct | int fromPct | start opacity, 0..100 |
toPct | int toPct | end opacity, 0..100 |
durationMs | int durationMs | tween duration, 0..60000 ms |
delayMs | int delayMs | start delay before the tween begins, 0..60000 ms |
elapsedMs | int elapsedMs | time advanced so far (clamped to delay+duration) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure() | Safe defaults: a 200 ms ease-out fade-in from fully transparent to opaque. |
fadeIn | void fadeIn(int ms, int ease) | Configure a fade-IN (enter): 0 -> 100 % over `ms` with `ease`. |
fadeOut | void fadeOut(int ms, int ease) | Configure a fade-OUT (exit): 100 -> 0 % over `ms` with `ease`. |
between | void between(int kindVal, int fromOpacityPct, int toOpacityPct, int ms, int ease) | A general enter/exit between arbitrary opacities. |
setEasing | void setEasing(int ease) | No description in source. |
setDelay | void setDelay(int ms) | No description in source. |
setDuration | void setDuration(int ms) | No description in source. |
reset | void reset() | ---- playback ----------------------------------------------------------- |
advance | void advance(int deltaMs) | Advance the tween by `deltaMs`; clamps to the delay+duration window. |
done | boolean done() | The tween is finished once the whole delay+duration window has elapsed. |
rawProgressPermille | int rawProgressPermille() | Linear progress through the active (post-delay) window, in permille 0..1000. |
easeProgress | int easeProgress(int p) | Apply the easing curve to a linear permille progress. Integer-only: ease-in : p^2 (slow start) ease-out : 1-(1-p)^2 (slow end) in-out : piecewise quadratic (slow start & end) dissolve : == in-out (seamless cross-fade feel) |
progressPermille | int progressPermille() | The eased progress (permille) at the current elapsed time. |
opacityPct | int opacityPct() | The current tweened opacity in PERCENT (0..100), interpolating from->to by the eased progress. This is the value the host writes to CSS `opacity`. |
opacityAt | int opacityAt(int atElapsedMs) | Convenience: the opacity at an explicit elapsed time (does not mutate state). |
getKind | int getKind() | ---- readers ------------------------------------------------------------ |
getEasing | int getEasing() | No description in source. |
getFrom | int getFrom() | No description in source. |
getTo | int getTo() | No description in source. |
getDuration | int getDuration() | No description in source. |
getDelay | int getDelay() | No description in source. |
getElapsed | int getElapsed() | No description in source. |
kindName | String kindName() | No description in source. |
easingName | String easingName() | No description in source. |
honored | boolean honored() | Internally consistent: opacities and timings within their clamped windows. |
toStyle | String toStyle() | Flatten into the descriptor the SLGuiMount reconciler copies onto the widget style; the host maps it to a CSS `transition` + `@keyframes` (or a toolkit animator). Shape: "fade:<from>-><to>/<ms>ms/<easing>[+delay<ms>]". |
report | String report() | No description in source. |
SLGuiTransition #sleela 2.5 (lib/gui/version-military/SLGuiTransition.sleela)
SLGuiTransition class
Defines SLGuiTransition — the FADING-ACTION model (an "enter" / "exit" transition, a.k.a. intro/outro animation). It is a pure model: given a start and end opacity (the CSS `opacity` property, 0..100 %), a duration (the tween window), an easing curve, and an optional start delay, it tweens ("in-betweens") the current opacity for a given elapsed time. SLeeLa owns the curve + timing; the host realizes it with a CSS `transition` / `@keyframes` (or a toolkit animator) using the descriptor from toStyle(). Terms (documentation labels): the component that fades is a Toast/Snackbar, Modal/Overlay, Transition-wrapper, or Skeleton; the ACTION here is the enter transition / tween / dissolve; the CSS surface is opacity + transition + @keyframes. This class is the reusable fade primitive the GUI components (SLGuiToast / SLGuiModal / SLGuiSkeleton) embed. Family: gui. A pure tween model (ints only); the host paints the pixels.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
KIND_ENTER | static final int KIND_ENTER = 0 | Direction of the transition. fade/scale IN (opacity rises to target) |
KIND_EXIT | static final int KIND_EXIT = 1 | fade/scale OUT (opacity falls to target) |
EASE_LINEAR | static final int EASE_LINEAR = 0 | Easing curves (how the tween accelerates). Mirrors the common CSS set plus a film/game "dissolve" (a smooth cross-fade feel == ease-in-out here). constant rate |
EASE_IN | static final int EASE_IN = 1 | starts slow, speeds up |
EASE_OUT | static final int EASE_OUT = 2 | starts fast, slows down |
EASE_IN_OUT | static final int EASE_IN_OUT = 3 | slow, fast, slow |
EASE_DISSOLVE | static final int EASE_DISSOLVE = 4 | seamless cross-fade (== in-out feel) |
PCT | static final int PCT = 100 | Opacity is carried in PERCENT (0..100); progress in PERMILLE (0..1000) so the model stays integer-only (SLeeLa ints). Callers divide by 100.0 / 1000.0 when they need the [0,1] double a toolkit wants. |
UNIT | static final int UNIT = 1000 | No description in source. |
kind | int kind | KIND_ENTER / KIND_EXIT |
easing | int easing | EASE_* |
fromPct | int fromPct | start opacity, 0..100 |
toPct | int toPct | end opacity, 0..100 |
durationMs | int durationMs | tween duration, 0..60000 ms |
delayMs | int delayMs | start delay before the tween begins, 0..60000 ms |
elapsedMs | int elapsedMs | time advanced so far (clamped to delay+duration) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure() | Safe defaults: a 200 ms ease-out fade-in from fully transparent to opaque. |
fadeIn | void fadeIn(int ms, int ease) | Configure a fade-IN (enter): 0 -> 100 % over `ms` with `ease`. |
fadeOut | void fadeOut(int ms, int ease) | Configure a fade-OUT (exit): 100 -> 0 % over `ms` with `ease`. |
between | void between(int kindVal, int fromOpacityPct, int toOpacityPct, int ms, int ease) | A general enter/exit between arbitrary opacities. |
setEasing | void setEasing(int ease) | No description in source. |
setDelay | void setDelay(int ms) | No description in source. |
setDuration | void setDuration(int ms) | No description in source. |
reset | void reset() | ---- playback ----------------------------------------------------------- |
advance | void advance(int deltaMs) | Advance the tween by `deltaMs`; clamps to the delay+duration window. |
done | boolean done() | The tween is finished once the whole delay+duration window has elapsed. |
rawProgressPermille | int rawProgressPermille() | Linear progress through the active (post-delay) window, in permille 0..1000. |
easeProgress | int easeProgress(int p) | Apply the easing curve to a linear permille progress. Integer-only: ease-in : p^2 (slow start) ease-out : 1-(1-p)^2 (slow end) in-out : piecewise quadratic (slow start & end) dissolve : == in-out (seamless cross-fade feel) |
progressPermille | int progressPermille() | The eased progress (permille) at the current elapsed time. |
opacityPct | int opacityPct() | The current tweened opacity in PERCENT (0..100), interpolating from->to by the eased progress. This is the value the host writes to CSS `opacity`. |
opacityAt | int opacityAt(int atElapsedMs) | Convenience: the opacity at an explicit elapsed time (does not mutate state). |
getKind | int getKind() | ---- readers ------------------------------------------------------------ |
getEasing | int getEasing() | No description in source. |
getFrom | int getFrom() | No description in source. |
getTo | int getTo() | No description in source. |
getDuration | int getDuration() | No description in source. |
getDelay | int getDelay() | No description in source. |
getElapsed | int getElapsed() | No description in source. |
kindName | String kindName() | No description in source. |
easingName | String easingName() | No description in source. |
honored | boolean honored() | Internally consistent: opacities and timings within their clamped windows. |
toStyle | String toStyle() | Flatten into the descriptor the SLGuiMount reconciler copies onto the widget style; the host maps it to a CSS `transition` + `@keyframes` (or a toolkit animator). Shape: "fade:<from>-><to>/<ms>ms/<easing>[+delay<ms>]". |
report | String report() | No description in source. |
SLGuiTransition #sleela 2.5 (lib/gui/version-dual/SLGuiTransition.sleela)
SLGuiTransition class
Defines SLGuiTransition — the FADING-ACTION model (an "enter" / "exit" transition, a.k.a. intro/outro animation). It is a pure model: given a start and end opacity (the CSS `opacity` property, 0..100 %), a duration (the tween window), an easing curve, and an optional start delay, it tweens ("in-betweens") the current opacity for a given elapsed time. SLeeLa owns the curve + timing; the host realizes it with a CSS `transition` / `@keyframes` (or a toolkit animator) using the descriptor from toStyle(). Terms (documentation labels): the component that fades is a Toast/Snackbar, Modal/Overlay, Transition-wrapper, or Skeleton; the ACTION here is the enter transition / tween / dissolve; the CSS surface is opacity + transition + @keyframes. This class is the reusable fade primitive the GUI components (SLGuiToast / SLGuiModal / SLGuiSkeleton) embed. Family: gui. A pure tween model (ints only); the host paints the pixels.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
KIND_ENTER | static final int KIND_ENTER = 0 | Direction of the transition. fade/scale IN (opacity rises to target) |
KIND_EXIT | static final int KIND_EXIT = 1 | fade/scale OUT (opacity falls to target) |
EASE_LINEAR | static final int EASE_LINEAR = 0 | Easing curves (how the tween accelerates). Mirrors the common CSS set plus a film/game "dissolve" (a smooth cross-fade feel == ease-in-out here). constant rate |
EASE_IN | static final int EASE_IN = 1 | starts slow, speeds up |
EASE_OUT | static final int EASE_OUT = 2 | starts fast, slows down |
EASE_IN_OUT | static final int EASE_IN_OUT = 3 | slow, fast, slow |
EASE_DISSOLVE | static final int EASE_DISSOLVE = 4 | seamless cross-fade (== in-out feel) |
PCT | static final int PCT = 100 | Opacity is carried in PERCENT (0..100); progress in PERMILLE (0..1000) so the model stays integer-only (SLeeLa ints). Callers divide by 100.0 / 1000.0 when they need the [0,1] double a toolkit wants. |
UNIT | static final int UNIT = 1000 | No description in source. |
kind | int kind | KIND_ENTER / KIND_EXIT |
easing | int easing | EASE_* |
fromPct | int fromPct | start opacity, 0..100 |
toPct | int toPct | end opacity, 0..100 |
durationMs | int durationMs | tween duration, 0..60000 ms |
delayMs | int delayMs | start delay before the tween begins, 0..60000 ms |
elapsedMs | int elapsedMs | time advanced so far (clamped to delay+duration) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
clamp | int clamp(int v, int lo, int hi) | No description in source. |
configure | void configure() | Safe defaults: a 200 ms ease-out fade-in from fully transparent to opaque. |
fadeIn | void fadeIn(int ms, int ease) | Configure a fade-IN (enter): 0 -> 100 % over `ms` with `ease`. |
fadeOut | void fadeOut(int ms, int ease) | Configure a fade-OUT (exit): 100 -> 0 % over `ms` with `ease`. |
between | void between(int kindVal, int fromOpacityPct, int toOpacityPct, int ms, int ease) | A general enter/exit between arbitrary opacities. |
setEasing | void setEasing(int ease) | No description in source. |
setDelay | void setDelay(int ms) | No description in source. |
setDuration | void setDuration(int ms) | No description in source. |
reset | void reset() | ---- playback ----------------------------------------------------------- |
advance | void advance(int deltaMs) | Advance the tween by `deltaMs`; clamps to the delay+duration window. |
done | boolean done() | The tween is finished once the whole delay+duration window has elapsed. |
rawProgressPermille | int rawProgressPermille() | Linear progress through the active (post-delay) window, in permille 0..1000. |
easeProgress | int easeProgress(int p) | Apply the easing curve to a linear permille progress. Integer-only: ease-in : p^2 (slow start) ease-out : 1-(1-p)^2 (slow end) in-out : piecewise quadratic (slow start & end) dissolve : == in-out (seamless cross-fade feel) |
progressPermille | int progressPermille() | The eased progress (permille) at the current elapsed time. |
opacityPct | int opacityPct() | The current tweened opacity in PERCENT (0..100), interpolating from->to by the eased progress. This is the value the host writes to CSS `opacity`. |
opacityAt | int opacityAt(int atElapsedMs) | Convenience: the opacity at an explicit elapsed time (does not mutate state). |
getKind | int getKind() | ---- readers ------------------------------------------------------------ |
getEasing | int getEasing() | No description in source. |
getFrom | int getFrom() | No description in source. |
getTo | int getTo() | No description in source. |
getDuration | int getDuration() | No description in source. |
getDelay | int getDelay() | No description in source. |
getElapsed | int getElapsed() | No description in source. |
kindName | String kindName() | No description in source. |
easingName | String easingName() | No description in source. |
honored | boolean honored() | Internally consistent: opacities and timings within their clamped windows. |
toStyle | String toStyle() | Flatten into the descriptor the SLGuiMount reconciler copies onto the widget style; the host maps it to a CSS `transition` + `@keyframes` (or a toolkit animator). Shape: "fade:<from>-><to>/<ms>ms/<easing>[+delay<ms>]". |
report | String report() | No description in source. |
SLGuiUrlBar #sleela 2.5 (lib/gui/version-gual/SLGuiUrlBar.sleela)
SLGuiUrlBar class
Defines SLGuiUrlBar — the 4.0 HTML-aware, HTTP-driven URL navigation bar: an address field with go / back / forward / reload / stop, a bounded navigation history, the current load state, and the HTTP facts of the last navigation (method, status, content-type, secure flag). It is "HTML-aware" in that it recognises an HTML response (so the host renders it into the DOM/canvas) vs. a non-HTML resource. SLeeLa owns the navigation STATE and history; the host performs the actual HTTP fetch and reports the result back. URLs are validated (scheme + non-empty host). Family: gui. Backs a URL-bar node; the host fetches and feeds back status.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
BACKGROUND_COLOR | static final String BACKGROUND_COLOR = "#383c47" | Shared URL/address bar presentation default. |
MAX_HISTORY | static final int MAX_HISTORY = 64 | No description in source. |
LOAD_IDLE | static final int LOAD_IDLE = 0 | No description in source. |
LOAD_LOADING | static final int LOAD_LOADING = 1 | No description in source. |
LOAD_DONE | static final int LOAD_DONE = 2 | No description in source. |
LOAD_ERROR | static final int LOAD_ERROR = 3 | No description in source. |
current | String current | the address shown in the bar |
history | String[] history | visited URLs (back/forward stack) |
histCount | int histCount | No description in source. |
histIndex | int histIndex | position within history (-1 = empty) |
loadState | int loadState | No description in source. |
method | String method | last HTTP method ("GET" default) |
status | int status | last HTTP status code (0 until a response) |
contentType | String contentType | last response content-type |
secure | int secure | 1 when the current scheme is https |
htmlAware | int htmlAware | 1 when the last response was HTML (host renders DOM) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String home) | No description in source. |
valid | boolean valid(String url) | A URL is acceptable with a known scheme and a non-empty remainder. |
startsWith | boolean startsWith(String s, String p) | No description in source. |
navigate | boolean navigate(String url) | ---- navigation --------------------------------------------------------- Go to a URL: validate, push onto history (truncating any forward entries), and enter the loading state. Returns false on an invalid URL. |
beginLoad | void beginLoad() | No description in source. |
canGoBack | boolean canGoBack() | No description in source. |
canGoForward | boolean canGoForward() | No description in source. |
back | boolean back() | No description in source. |
forward | boolean forward() | No description in source. |
reload | boolean reload() | No description in source. |
stop | void stop() | No description in source. |
onResponse | void onResponse(int httpStatus, String type) | Host reports the HTTP outcome; HTML content-types mark the bar HTML-aware. |
isHtml | boolean isHtml(String type) | No description in source. |
setMethod | void setMethod(String m) | No description in source. |
url | String url() | ---- readers ------------------------------------------------------------ |
getLoadState | int getLoadState() | No description in source. |
loading | boolean loading() | No description in source. |
loaded | boolean loaded() | No description in source. |
errored | boolean errored() | No description in source. |
httpStatus | int httpStatus() | No description in source. |
getContentType | String getContentType() | No description in source. |
getMethod | String getMethod() | No description in source. |
isSecure | boolean isSecure() | No description in source. |
isHtmlAware | boolean isHtmlAware() | No description in source. |
historyDepth | int historyDepth() | No description in source. |
historyIndex | int historyIndex() | No description in source. |
loadStateName | String loadStateName() | No description in source. |
SLGuiUrlBar #sleela 2.5 (lib/gui/version-mual/SLGuiUrlBar.sleela)
SLGuiUrlBar class
Defines SLGuiUrlBar — the 4.0 HTML-aware, HTTP-driven URL navigation bar: an address field with go / back / forward / reload / stop, a bounded navigation history, the current load state, and the HTTP facts of the last navigation (method, status, content-type, secure flag). It is "HTML-aware" in that it recognises an HTML response (so the host renders it into the DOM/canvas) vs. a non-HTML resource. SLeeLa owns the navigation STATE and history; the host performs the actual HTTP fetch and reports the result back. URLs are validated (scheme + non-empty host). Family: gui. Backs a URL-bar node; the host fetches and feeds back status.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
BACKGROUND_COLOR | static final String BACKGROUND_COLOR = "#383c47" | Shared URL/address bar presentation default. |
MAX_HISTORY | static final int MAX_HISTORY = 64 | No description in source. |
LOAD_IDLE | static final int LOAD_IDLE = 0 | No description in source. |
LOAD_LOADING | static final int LOAD_LOADING = 1 | No description in source. |
LOAD_DONE | static final int LOAD_DONE = 2 | No description in source. |
LOAD_ERROR | static final int LOAD_ERROR = 3 | No description in source. |
current | String current | the address shown in the bar |
history | String[] history | visited URLs (back/forward stack) |
histCount | int histCount | No description in source. |
histIndex | int histIndex | position within history (-1 = empty) |
loadState | int loadState | No description in source. |
method | String method | last HTTP method ("GET" default) |
status | int status | last HTTP status code (0 until a response) |
contentType | String contentType | last response content-type |
secure | int secure | 1 when the current scheme is https |
htmlAware | int htmlAware | 1 when the last response was HTML (host renders DOM) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String home) | No description in source. |
valid | boolean valid(String url) | A URL is acceptable with a known scheme and a non-empty remainder. |
startsWith | boolean startsWith(String s, String p) | No description in source. |
navigate | boolean navigate(String url) | ---- navigation --------------------------------------------------------- Go to a URL: validate, push onto history (truncating any forward entries), and enter the loading state. Returns false on an invalid URL. |
beginLoad | void beginLoad() | No description in source. |
canGoBack | boolean canGoBack() | No description in source. |
canGoForward | boolean canGoForward() | No description in source. |
back | boolean back() | No description in source. |
forward | boolean forward() | No description in source. |
reload | boolean reload() | No description in source. |
stop | void stop() | No description in source. |
onResponse | void onResponse(int httpStatus, String type) | Host reports the HTTP outcome; HTML content-types mark the bar HTML-aware. |
isHtml | boolean isHtml(String type) | No description in source. |
setMethod | void setMethod(String m) | No description in source. |
url | String url() | ---- readers ------------------------------------------------------------ |
getLoadState | int getLoadState() | No description in source. |
loading | boolean loading() | No description in source. |
loaded | boolean loaded() | No description in source. |
errored | boolean errored() | No description in source. |
httpStatus | int httpStatus() | No description in source. |
getContentType | String getContentType() | No description in source. |
getMethod | String getMethod() | No description in source. |
isSecure | boolean isSecure() | No description in source. |
isHtmlAware | boolean isHtmlAware() | No description in source. |
historyDepth | int historyDepth() | No description in source. |
historyIndex | int historyIndex() | No description in source. |
loadStateName | String loadStateName() | No description in source. |
SLGuiUrlBar #sleela 2.5 (lib/gui/version-thual/SLGuiUrlBar.sleela)
SLGuiUrlBar class
Defines SLGuiUrlBar — the 4.0 HTML-aware, HTTP-driven URL navigation bar: an address field with go / back / forward / reload / stop, a bounded navigation history, the current load state, and the HTTP facts of the last navigation (method, status, content-type, secure flag). It is "HTML-aware" in that it recognises an HTML response (so the host renders it into the DOM/canvas) vs. a non-HTML resource. SLeeLa owns the navigation STATE and history; the host performs the actual HTTP fetch and reports the result back. URLs are validated (scheme + non-empty host). Family: gui. Backs a URL-bar node; the host fetches and feeds back status.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
BACKGROUND_COLOR | static final String BACKGROUND_COLOR = "#383c47" | Shared URL/address bar presentation default. |
MAX_HISTORY | static final int MAX_HISTORY = 64 | No description in source. |
LOAD_IDLE | static final int LOAD_IDLE = 0 | No description in source. |
LOAD_LOADING | static final int LOAD_LOADING = 1 | No description in source. |
LOAD_DONE | static final int LOAD_DONE = 2 | No description in source. |
LOAD_ERROR | static final int LOAD_ERROR = 3 | No description in source. |
current | String current | the address shown in the bar |
history | String[] history | visited URLs (back/forward stack) |
histCount | int histCount | No description in source. |
histIndex | int histIndex | position within history (-1 = empty) |
loadState | int loadState | No description in source. |
method | String method | last HTTP method ("GET" default) |
status | int status | last HTTP status code (0 until a response) |
contentType | String contentType | last response content-type |
secure | int secure | 1 when the current scheme is https |
htmlAware | int htmlAware | 1 when the last response was HTML (host renders DOM) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String home) | No description in source. |
valid | boolean valid(String url) | A URL is acceptable with a known scheme and a non-empty remainder. |
startsWith | boolean startsWith(String s, String p) | No description in source. |
navigate | boolean navigate(String url) | ---- navigation --------------------------------------------------------- Go to a URL: validate, push onto history (truncating any forward entries), and enter the loading state. Returns false on an invalid URL. |
beginLoad | void beginLoad() | No description in source. |
canGoBack | boolean canGoBack() | No description in source. |
canGoForward | boolean canGoForward() | No description in source. |
back | boolean back() | No description in source. |
forward | boolean forward() | No description in source. |
reload | boolean reload() | No description in source. |
stop | void stop() | No description in source. |
onResponse | void onResponse(int httpStatus, String type) | Host reports the HTTP outcome; HTML content-types mark the bar HTML-aware. |
isHtml | boolean isHtml(String type) | No description in source. |
setMethod | void setMethod(String m) | No description in source. |
url | String url() | ---- readers ------------------------------------------------------------ |
getLoadState | int getLoadState() | No description in source. |
loading | boolean loading() | No description in source. |
loaded | boolean loaded() | No description in source. |
errored | boolean errored() | No description in source. |
httpStatus | int httpStatus() | No description in source. |
getContentType | String getContentType() | No description in source. |
getMethod | String getMethod() | No description in source. |
isSecure | boolean isSecure() | No description in source. |
isHtmlAware | boolean isHtmlAware() | No description in source. |
historyDepth | int historyDepth() | No description in source. |
historyIndex | int historyIndex() | No description in source. |
loadStateName | String loadStateName() | No description in source. |
SLGuiUrlBar #sleela 2.5 (lib/gui/version-military/SLGuiUrlBar.sleela)
SLGuiUrlBar class
Defines SLGuiUrlBar — the 4.0 HTML-aware, HTTP-driven URL navigation bar: an address field with go / back / forward / reload / stop, a bounded navigation history, the current load state, and the HTTP facts of the last navigation (method, status, content-type, secure flag). It is "HTML-aware" in that it recognises an HTML response (so the host renders it into the DOM/canvas) vs. a non-HTML resource. SLeeLa owns the navigation STATE and history; the host performs the actual HTTP fetch and reports the result back. URLs are validated (scheme + non-empty host). Family: gui. Backs a URL-bar node; the host fetches and feeds back status.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
BACKGROUND_COLOR | static final String BACKGROUND_COLOR = "#383c47" | Shared URL/address bar presentation default. |
MAX_HISTORY | static final int MAX_HISTORY = 64 | No description in source. |
LOAD_IDLE | static final int LOAD_IDLE = 0 | No description in source. |
LOAD_LOADING | static final int LOAD_LOADING = 1 | No description in source. |
LOAD_DONE | static final int LOAD_DONE = 2 | No description in source. |
LOAD_ERROR | static final int LOAD_ERROR = 3 | No description in source. |
current | String current | the address shown in the bar |
history | String[] history | visited URLs (back/forward stack) |
histCount | int histCount | No description in source. |
histIndex | int histIndex | position within history (-1 = empty) |
loadState | int loadState | No description in source. |
method | String method | last HTTP method ("GET" default) |
status | int status | last HTTP status code (0 until a response) |
contentType | String contentType | last response content-type |
secure | int secure | 1 when the current scheme is https |
htmlAware | int htmlAware | 1 when the last response was HTML (host renders DOM) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String home) | No description in source. |
valid | boolean valid(String url) | A URL is acceptable with a known scheme and a non-empty remainder. |
startsWith | boolean startsWith(String s, String p) | No description in source. |
navigate | boolean navigate(String url) | ---- navigation --------------------------------------------------------- Go to a URL: validate, push onto history (truncating any forward entries), and enter the loading state. Returns false on an invalid URL. |
beginLoad | void beginLoad() | No description in source. |
canGoBack | boolean canGoBack() | No description in source. |
canGoForward | boolean canGoForward() | No description in source. |
back | boolean back() | No description in source. |
forward | boolean forward() | No description in source. |
reload | boolean reload() | No description in source. |
stop | void stop() | No description in source. |
onResponse | void onResponse(int httpStatus, String type) | Host reports the HTTP outcome; HTML content-types mark the bar HTML-aware. |
isHtml | boolean isHtml(String type) | No description in source. |
setMethod | void setMethod(String m) | No description in source. |
url | String url() | ---- readers ------------------------------------------------------------ |
getLoadState | int getLoadState() | No description in source. |
loading | boolean loading() | No description in source. |
loaded | boolean loaded() | No description in source. |
errored | boolean errored() | No description in source. |
httpStatus | int httpStatus() | No description in source. |
getContentType | String getContentType() | No description in source. |
getMethod | String getMethod() | No description in source. |
isSecure | boolean isSecure() | No description in source. |
isHtmlAware | boolean isHtmlAware() | No description in source. |
historyDepth | int historyDepth() | No description in source. |
historyIndex | int historyIndex() | No description in source. |
loadStateName | String loadStateName() | No description in source. |
SLGuiUrlBar #sleela 2.5 (lib/gui/version-dual/SLGuiUrlBar.sleela)
SLGuiUrlBar class
Defines SLGuiUrlBar — the 4.0 HTML-aware, HTTP-driven URL navigation bar: an address field with go / back / forward / reload / stop, a bounded navigation history, the current load state, and the HTTP facts of the last navigation (method, status, content-type, secure flag). It is "HTML-aware" in that it recognises an HTML response (so the host renders it into the DOM/canvas) vs. a non-HTML resource. SLeeLa owns the navigation STATE and history; the host performs the actual HTTP fetch and reports the result back. URLs are validated (scheme + non-empty host). Family: gui. Backs a URL-bar node; the host fetches and feeds back status.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
BACKGROUND_COLOR | static final String BACKGROUND_COLOR = "#383c47" | Shared URL/address bar presentation default. |
MAX_HISTORY | static final int MAX_HISTORY = 64 | No description in source. |
LOAD_IDLE | static final int LOAD_IDLE = 0 | No description in source. |
LOAD_LOADING | static final int LOAD_LOADING = 1 | No description in source. |
LOAD_DONE | static final int LOAD_DONE = 2 | No description in source. |
LOAD_ERROR | static final int LOAD_ERROR = 3 | No description in source. |
current | String current | the address shown in the bar |
history | String[] history | visited URLs (back/forward stack) |
histCount | int histCount | No description in source. |
histIndex | int histIndex | position within history (-1 = empty) |
loadState | int loadState | No description in source. |
method | String method | last HTTP method ("GET" default) |
status | int status | last HTTP status code (0 until a response) |
contentType | String contentType | last response content-type |
secure | int secure | 1 when the current scheme is https |
htmlAware | int htmlAware | 1 when the last response was HTML (host renders DOM) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String home) | No description in source. |
valid | boolean valid(String url) | A URL is acceptable with a known scheme and a non-empty remainder. |
startsWith | boolean startsWith(String s, String p) | No description in source. |
navigate | boolean navigate(String url) | ---- navigation --------------------------------------------------------- Go to a URL: validate, push onto history (truncating any forward entries), and enter the loading state. Returns false on an invalid URL. |
beginLoad | void beginLoad() | No description in source. |
canGoBack | boolean canGoBack() | No description in source. |
canGoForward | boolean canGoForward() | No description in source. |
back | boolean back() | No description in source. |
forward | boolean forward() | No description in source. |
reload | boolean reload() | No description in source. |
stop | void stop() | No description in source. |
onResponse | void onResponse(int httpStatus, String type) | Host reports the HTTP outcome; HTML content-types mark the bar HTML-aware. |
isHtml | boolean isHtml(String type) | No description in source. |
setMethod | void setMethod(String m) | No description in source. |
url | String url() | ---- readers ------------------------------------------------------------ |
getLoadState | int getLoadState() | No description in source. |
loading | boolean loading() | No description in source. |
loaded | boolean loaded() | No description in source. |
errored | boolean errored() | No description in source. |
httpStatus | int httpStatus() | No description in source. |
getContentType | String getContentType() | No description in source. |
getMethod | String getMethod() | No description in source. |
isSecure | boolean isSecure() | No description in source. |
isHtmlAware | boolean isHtmlAware() | No description in source. |
historyDepth | int historyDepth() | No description in source. |
historyIndex | int historyIndex() | No description in source. |
loadStateName | String loadStateName() | No description in source. |
SLGuiVideoCanvas #sleela 2.5 (lib/gui/version-military/SLGuiVideoCanvas.sleela)
SLGuiVideoCanvas class
Defines SLGuiVideoCanvas — the 4.0 video surface for playing movies with a full set of transport controls: a source asset, play / pause / stop / seek, a position and duration (ms), volume + mute, loop, playback rate, and a fullscreen flag. SLeeLa owns the player STATE and the meaning of each control; the host decodes and presents the frames onto the canvas widget and reports position back. Every setting is validated/clamped so a seek or volume is never out of range. Family: gui. A canvas node's backing model; the host renders video + audio and reports playback position/buffering to this object.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
STATE_EMPTY | static final int STATE_EMPTY = 0 | no source loaded |
STATE_READY | static final int STATE_READY = 1 | loaded, not playing |
STATE_PLAYING | static final int STATE_PLAYING = 2 | No description in source. |
STATE_PAUSED | static final int STATE_PAUSED = 3 | No description in source. |
STATE_ENDED | static final int STATE_ENDED = 4 | No description in source. |
state | int state | No description in source. |
source | String source | host-resolvable movie asset / URL |
durationMs | int durationMs | total length (host-reported on load; 0 until known) |
positionMs | int positionMs | current playback position |
volumePct | int volumePct | 0..100 |
muted | int muted | 1 = muted (volume preserved) |
loop | int loop | 1 = restart at end |
ratePctx100 | int ratePctx100 | playback rate x100 (100 = 1.0x), 25..400 |
fullscreen | int fullscreen | 1 = presented fullscreen |
bufferedPct | int bufferedPct | 0..100 host-reported buffer fill |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String src) | No description in source. |
clamp | int clamp(int v, int lo, int hi) | No description in source. |
load | void load(String src) | No description in source. |
play | boolean play() | ---- transport ---------------------------------------------------------- |
pause | boolean pause() | No description in source. |
stop | boolean stop() | No description in source. |
seek | boolean seek(int ms) | Seek to an absolute millisecond position (clamped to [0, duration]). |
seekRelative | void seekRelative(int deltaMs) | No description in source. |
setVolume | void setVolume(int pct) | ---- audio / rate / view ------------------------------------------------ |
setMuted | void setMuted(boolean on) | No description in source. |
setLoop | void setLoop(boolean on) | No description in source. |
setRatePct | void setRatePct(int pct) | No description in source. |
setFullscreen | void setFullscreen(boolean on) | No description in source. |
onDuration | void onDuration(int ms) | Host callbacks while playing. |
onPosition | void onPosition(int ms) | No description in source. |
onBuffered | void onBuffered(int pct) | No description in source. |
getState | int getState() | ---- readers ------------------------------------------------------------ |
isPlaying | boolean isPlaying() | No description in source. |
hasSource | boolean hasSource() | No description in source. |
getSource | String getSource() | No description in source. |
duration | int duration() | No description in source. |
position | int position() | No description in source. |
getVolume | int getVolume() | No description in source. |
isMuted | boolean isMuted() | No description in source. |
looping | boolean looping() | No description in source. |
ratePct | int ratePct() | No description in source. |
isFullscreen | boolean isFullscreen() | No description in source. |
buffered | int buffered() | No description in source. |
progressPct | int progressPct() | Progress 0..100 for a scrubber (0 when the duration is unknown). |
stateName | String stateName() | No description in source. |
SLGuiVideoCanvas #sleela 2.5 (lib/gui/version-dual/SLGuiVideoCanvas.sleela)
SLGuiVideoCanvas class
Defines SLGuiVideoCanvas — the 4.0 video surface for playing movies with a full set of transport controls: a source asset, play / pause / stop / seek, a position and duration (ms), volume + mute, loop, playback rate, and a fullscreen flag. SLeeLa owns the player STATE and the meaning of each control; the host decodes and presents the frames onto the canvas widget and reports position back. Every setting is validated/clamped so a seek or volume is never out of range. Family: gui. A canvas node's backing model; the host renders video + audio and reports playback position/buffering to this object.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
STATE_EMPTY | static final int STATE_EMPTY = 0 | no source loaded |
STATE_READY | static final int STATE_READY = 1 | loaded, not playing |
STATE_PLAYING | static final int STATE_PLAYING = 2 | No description in source. |
STATE_PAUSED | static final int STATE_PAUSED = 3 | No description in source. |
STATE_ENDED | static final int STATE_ENDED = 4 | No description in source. |
state | int state | No description in source. |
source | String source | host-resolvable movie asset / URL |
durationMs | int durationMs | total length (host-reported on load; 0 until known) |
positionMs | int positionMs | current playback position |
volumePct | int volumePct | 0..100 |
muted | int muted | 1 = muted (volume preserved) |
loop | int loop | 1 = restart at end |
ratePctx100 | int ratePctx100 | playback rate x100 (100 = 1.0x), 25..400 |
fullscreen | int fullscreen | 1 = presented fullscreen |
bufferedPct | int bufferedPct | 0..100 host-reported buffer fill |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String src) | No description in source. |
clamp | int clamp(int v, int lo, int hi) | No description in source. |
load | void load(String src) | No description in source. |
play | boolean play() | ---- transport ---------------------------------------------------------- |
pause | boolean pause() | No description in source. |
stop | boolean stop() | No description in source. |
seek | boolean seek(int ms) | Seek to an absolute millisecond position (clamped to [0, duration]). |
seekRelative | void seekRelative(int deltaMs) | No description in source. |
setVolume | void setVolume(int pct) | ---- audio / rate / view ------------------------------------------------ |
setMuted | void setMuted(boolean on) | No description in source. |
setLoop | void setLoop(boolean on) | No description in source. |
setRatePct | void setRatePct(int pct) | No description in source. |
setFullscreen | void setFullscreen(boolean on) | No description in source. |
onDuration | void onDuration(int ms) | Host callbacks while playing. |
onPosition | void onPosition(int ms) | No description in source. |
onBuffered | void onBuffered(int pct) | No description in source. |
getState | int getState() | ---- readers ------------------------------------------------------------ |
isPlaying | boolean isPlaying() | No description in source. |
hasSource | boolean hasSource() | No description in source. |
getSource | String getSource() | No description in source. |
duration | int duration() | No description in source. |
position | int position() | No description in source. |
getVolume | int getVolume() | No description in source. |
isMuted | boolean isMuted() | No description in source. |
looping | boolean looping() | No description in source. |
ratePct | int ratePct() | No description in source. |
isFullscreen | boolean isFullscreen() | No description in source. |
buffered | int buffered() | No description in source. |
progressPct | int progressPct() | Progress 0..100 for a scrubber (0 when the duration is unknown). |
stateName | String stateName() | No description in source. |
SLGuiWidgetFactory #sleela 2.5 (lib/gui/version-gual/SLGuiWidgetFactory.sleela)
SLGuiWidgetFactory class
Defines SLGuiWidgetFactory — the single place that knows how a DOM tag maps to a real SleelaUI widget. Given a node's tag and a parent widget handle it calls the matching `ui*` built-in (uiBox / uiButton / uiLabel / uiEntry / uiToggle / uiHeaderBar / uiStatusBar / ...) and returns the new widget handle, so the reconciler (SLGuiMount) never hard-codes toolkit knowledge. Tags mirror the SleelaUI vocabulary; an unknown tag falls back to a vertical box so an unrecognised element still has a container to hold children. This is the DOM->toolkit construction seam. Family: gui. The factory crosses the `ui*` SLVM bridge to the real toolkit; SLeeLa still owns the node that the widget mirrors.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
ORIENT_VERTICAL | static final int ORIENT_VERTICAL = 0 | Orientation ordinals (mirror SLUIOrientation / SLWidget). |
ORIENT_HORIZONTAL | static final int ORIENT_HORIZONTAL = 1 | No description in source. |
SCROLL_AUTO | static final int SCROLL_AUTO = 0 | Scroll-visibility policy ordinals (mirror native ScrolledView::Policy and SLGuiScrollbar.SHOW_*): a scrolled viewport shows each axis' bar AUTO (only on overflow), ALWAYS, or NEVER. |
SCROLL_ALWAYS | static final int SCROLL_ALWAYS = 1 | No description in source. |
SCROLL_NEVER | static final int SCROLL_NEVER = 2 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
overflowPolicy | int overflowPolicy(String kw) | Map a CSS-style overflow keyword to a scroll policy. "auto"/"" -> AUTO, "scroll"/"always" -> ALWAYS, "hidden"/"visible"/"clip"/"none" -> NEVER. |
constructScrolled | int constructScrolled(int parentHandle, int policyH, int policyV) | Construct a scrolled viewport directly with explicit per-axis policies. SLGuiMount calls this to promote a container carrying an `overflow` attr. |
isScrolled | boolean isScrolled(String tag) | Does this tag build a native scrolled viewport (first child = content)? |
construct | int construct(int parentHandle, String tag, String label) | Construct the widget for `node` inside `parentHandle`. Returns the new widget handle, or -1 when it could not be created. `label` is the node's initial text/placeholder (empty string when it has none). |
interactive | boolean interactive(String tag) | Is this tag an interactive control the host should poll for activations? |
activationEvent | int activationEvent(String tag) | No description in source. |
isContainer | boolean isContainer(String tag) | No description in source. |
SLGuiWidgetFactory #sleela 2.5 (lib/gui/version-mual/SLGuiWidgetFactory.sleela)
SLGuiWidgetFactory class
Defines SLGuiWidgetFactory — the single place that knows how a DOM tag maps to a real SleelaUI widget. Given a node's tag and a parent widget handle it calls the matching `ui*` built-in (uiBox / uiButton / uiLabel / uiEntry / uiToggle / uiHeaderBar / uiStatusBar / ...) and returns the new widget handle, so the reconciler (SLGuiMount) never hard-codes toolkit knowledge. Tags mirror the SleelaUI vocabulary; an unknown tag falls back to a vertical box so an unrecognised element still has a container to hold children. This is the DOM->toolkit construction seam. Family: gui. The factory crosses the `ui*` SLVM bridge to the real toolkit; SLeeLa still owns the node that the widget mirrors.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
ORIENT_VERTICAL | static final int ORIENT_VERTICAL = 0 | Orientation ordinals (mirror SLUIOrientation / SLWidget). |
ORIENT_HORIZONTAL | static final int ORIENT_HORIZONTAL = 1 | No description in source. |
SCROLL_AUTO | static final int SCROLL_AUTO = 0 | Scroll-visibility policy ordinals (mirror native ScrolledView::Policy and SLGuiScrollbar.SHOW_*): a scrolled viewport shows each axis' bar AUTO (only on overflow), ALWAYS, or NEVER. |
SCROLL_ALWAYS | static final int SCROLL_ALWAYS = 1 | No description in source. |
SCROLL_NEVER | static final int SCROLL_NEVER = 2 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
overflowPolicy | int overflowPolicy(String kw) | Map a CSS-style overflow keyword to a scroll policy. "auto"/"" -> AUTO, "scroll"/"always" -> ALWAYS, "hidden"/"visible"/"clip"/"none" -> NEVER. |
constructScrolled | int constructScrolled(int parentHandle, int policyH, int policyV) | Construct a scrolled viewport directly with explicit per-axis policies. SLGuiMount calls this to promote a container carrying an `overflow` attr. |
isScrolled | boolean isScrolled(String tag) | Does this tag build a native scrolled viewport (first child = content)? |
construct | int construct(int parentHandle, String tag, String label) | Construct the widget for `node` inside `parentHandle`. Returns the new widget handle, or -1 when it could not be created. `label` is the node's initial text/placeholder (empty string when it has none). |
interactive | boolean interactive(String tag) | Is this tag an interactive control the host should poll for activations? |
activationEvent | int activationEvent(String tag) | No description in source. |
isContainer | boolean isContainer(String tag) | No description in source. |
SLGuiWidgetFactory #sleela 2.5 (lib/gui/version-thual/SLGuiWidgetFactory.sleela)
SLGuiWidgetFactory class
Defines SLGuiWidgetFactory — the single place that knows how a DOM tag maps to a real SleelaUI widget. Given a node's tag and a parent widget handle it calls the matching `ui*` built-in (uiBox / uiButton / uiLabel / uiEntry / uiToggle / uiHeaderBar / uiStatusBar / ...) and returns the new widget handle, so the reconciler (SLGuiMount) never hard-codes toolkit knowledge. Tags mirror the SleelaUI vocabulary; an unknown tag falls back to a vertical box so an unrecognised element still has a container to hold children. This is the DOM->toolkit construction seam. Family: gui. The factory crosses the `ui*` SLVM bridge to the real toolkit; SLeeLa still owns the node that the widget mirrors.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
ORIENT_VERTICAL | static final int ORIENT_VERTICAL = 0 | Orientation ordinals (mirror SLUIOrientation / SLWidget). |
ORIENT_HORIZONTAL | static final int ORIENT_HORIZONTAL = 1 | No description in source. |
SCROLL_AUTO | static final int SCROLL_AUTO = 0 | Scroll-visibility policy ordinals (mirror native ScrolledView::Policy and SLGuiScrollbar.SHOW_*): a scrolled viewport shows each axis' bar AUTO (only on overflow), ALWAYS, or NEVER. |
SCROLL_ALWAYS | static final int SCROLL_ALWAYS = 1 | No description in source. |
SCROLL_NEVER | static final int SCROLL_NEVER = 2 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
overflowPolicy | int overflowPolicy(String kw) | Map a CSS-style overflow keyword to a scroll policy. "auto"/"" -> AUTO, "scroll"/"always" -> ALWAYS, "hidden"/"visible"/"clip"/"none" -> NEVER. |
constructScrolled | int constructScrolled(int parentHandle, int policyH, int policyV) | Construct a scrolled viewport directly with explicit per-axis policies. SLGuiMount calls this to promote a container carrying an `overflow` attr. |
isScrolled | boolean isScrolled(String tag) | Does this tag build a native scrolled viewport (first child = content)? |
construct | int construct(int parentHandle, String tag, String label) | Construct the widget for `node` inside `parentHandle`. Returns the new widget handle, or -1 when it could not be created. `label` is the node's initial text/placeholder (empty string when it has none). |
interactive | boolean interactive(String tag) | Is this tag an interactive control the host should poll for activations? |
activationEvent | int activationEvent(String tag) | No description in source. |
isContainer | boolean isContainer(String tag) | No description in source. |
SLGuiWidgetFactory #sleela 2.5 (lib/gui/version-military/SLGuiWidgetFactory.sleela)
SLGuiWidgetFactory class
Defines SLGuiWidgetFactory — the single place that knows how a DOM tag maps to a real SleelaUI widget. Given a node's tag and a parent widget handle it calls the matching `ui*` built-in (uiBox / uiButton / uiLabel / uiEntry / uiToggle / uiHeaderBar / uiStatusBar / ...) and returns the new widget handle, so the reconciler (SLGuiMount) never hard-codes toolkit knowledge. Tags mirror the SleelaUI vocabulary; an unknown tag falls back to a vertical box so an unrecognised element still has a container to hold children. This is the DOM->toolkit construction seam. Family: gui. The factory crosses the `ui*` SLVM bridge to the real toolkit; SLeeLa still owns the node that the widget mirrors.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
ORIENT_VERTICAL | static final int ORIENT_VERTICAL = 0 | Orientation ordinals (mirror SLUIOrientation / SLWidget). |
ORIENT_HORIZONTAL | static final int ORIENT_HORIZONTAL = 1 | No description in source. |
SCROLL_AUTO | static final int SCROLL_AUTO = 0 | Scroll-visibility policy ordinals (mirror native ScrolledView::Policy and SLGuiScrollbar.SHOW_*): a scrolled viewport shows each axis' bar AUTO (only on overflow), ALWAYS, or NEVER. |
SCROLL_ALWAYS | static final int SCROLL_ALWAYS = 1 | No description in source. |
SCROLL_NEVER | static final int SCROLL_NEVER = 2 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
overflowPolicy | int overflowPolicy(String kw) | Map a CSS-style overflow keyword to a scroll policy. "auto"/"" -> AUTO, "scroll"/"always" -> ALWAYS, "hidden"/"visible"/"clip"/"none" -> NEVER. |
constructScrolled | int constructScrolled(int parentHandle, int policyH, int policyV) | Construct a scrolled viewport directly with explicit per-axis policies. SLGuiMount calls this to promote a container carrying an `overflow` attr. |
isScrolled | boolean isScrolled(String tag) | Does this tag build a native scrolled viewport (first child = content)? |
construct | int construct(int parentHandle, String tag, String label) | Construct the widget for `node` inside `parentHandle`. Returns the new widget handle, or -1 when it could not be created. `label` is the node's initial text/placeholder (empty string when it has none). |
interactive | boolean interactive(String tag) | Is this tag an interactive control the host should poll for activations? |
activationEvent | int activationEvent(String tag) | Which SLGuiEventType an activation on this tag should raise. Buttons -> CLICK; entries -> SUBMIT (Enter); toggles -> TOGGLE; the 4.0 surfaces raise CLICK (recorder/video/circle) or SUBMIT (urlbar go). |
isContainer | boolean isContainer(String tag) | No description in source. |
SLGuiWidgetFactory #sleela 2.5 (lib/gui/version-dual/SLGuiWidgetFactory.sleela)
SLGuiWidgetFactory class
Defines SLGuiWidgetFactory — the single place that knows how a DOM tag maps to a real SleelaUI widget. Given a node's tag and a parent widget handle it calls the matching `ui*` built-in (uiBox / uiButton / uiLabel / uiEntry / uiToggle / uiHeaderBar / uiStatusBar / ...) and returns the new widget handle, so the reconciler (SLGuiMount) never hard-codes toolkit knowledge. Tags mirror the SleelaUI vocabulary; an unknown tag falls back to a vertical box so an unrecognised element still has a container to hold children. This is the DOM->toolkit construction seam. Family: gui. The factory crosses the `ui*` SLVM bridge to the real toolkit; SLeeLa still owns the node that the widget mirrors.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
ORIENT_VERTICAL | static final int ORIENT_VERTICAL = 0 | Orientation ordinals (mirror SLUIOrientation / SLWidget). |
ORIENT_HORIZONTAL | static final int ORIENT_HORIZONTAL = 1 | No description in source. |
SCROLL_AUTO | static final int SCROLL_AUTO = 0 | Scroll-visibility policy ordinals (mirror native ScrolledView::Policy and SLGuiScrollbar.SHOW_*): a scrolled viewport shows each axis' bar AUTO (only on overflow), ALWAYS, or NEVER. |
SCROLL_ALWAYS | static final int SCROLL_ALWAYS = 1 | No description in source. |
SCROLL_NEVER | static final int SCROLL_NEVER = 2 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
overflowPolicy | int overflowPolicy(String kw) | Map a CSS-style overflow keyword to a scroll policy. "auto"/"" -> AUTO, "scroll"/"always" -> ALWAYS, "hidden"/"visible"/"clip"/"none" -> NEVER. |
constructScrolled | int constructScrolled(int parentHandle, int policyH, int policyV) | Construct a scrolled viewport directly with explicit per-axis policies. SLGuiMount calls this to promote a container carrying an `overflow` attr. |
isScrolled | boolean isScrolled(String tag) | Does this tag build a native scrolled viewport (first child = content)? |
construct | int construct(int parentHandle, String tag, String label) | Construct the widget for `node` inside `parentHandle`. Returns the new widget handle, or -1 when it could not be created. `label` is the node's initial text/placeholder (empty string when it has none). |
interactive | boolean interactive(String tag) | Is this tag an interactive control the host should poll for activations? |
activationEvent | int activationEvent(String tag) | Which SLGuiEventType an activation on this tag should raise. Buttons -> CLICK; entries -> SUBMIT (Enter); toggles -> TOGGLE; the 4.0 surfaces raise CLICK (recorder/video/circle) or SUBMIT (urlbar go). |
isContainer | boolean isContainer(String tag) | No description in source. |
SLGuiWindow #sleela 2.5 (lib/gui/version-gual/SLGuiWindow.sleela)
SLGuiWindow class
Defines SLGuiWindow — a toolkit-neutral window intent. Mirrors the SleelaGui contract in gui/: show(title, width, height), setText(text), and refresh(documentId, revision). SLeeLa describes the window; the backend (Swing/JavaFX/native) renders it and marshals updates onto the toolkit thread.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
TITLE_BAR_BACKGROUND | static final String TITLE_BAR_BACKGROUND = "#1d2025" | Shared chrome colour defaults for every SLeeLa GUI variant. |
MENU_BAR_BACKGROUND | static final String MENU_BAR_BACKGROUND = "#1d2025" | No description in source. |
URL_BAR_BACKGROUND | static final String URL_BAR_BACKGROUND = "#383c47" | No description in source. |
title | String title | No description in source. |
width | int width | No description in source. |
height | int height | No description in source. |
text | String text | No description in source. |
shown | int shown | 1 once show() has been requested |
resizable | int resizable | No description in source. |
decorated | int decorated | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String t, int w, int h) | No description in source. |
applySettings | void applySettings(SLGuiSettings s) | Adopt presentation/window settings from a configured SLGuiSettings, then clamp the current extent into the new min/max window. |
clampExtent | void clampExtent() | Keep width/height within [min, max] (max 0 = unbounded). |
resize | boolean resize(int w, int h) | Resize request, honored only when the window is resizable, then clamped. |
show | void show() | Request the window be shown at its configured size. |
visible | boolean visible() | No description in source. |
valid | boolean valid() | A window is valid once it has a title, a positive extent within its bounds, and (when bounded) a max not below its min. |
getTitle | String getTitle() | No description in source. |
getWidth | int getWidth() | No description in source. |
getHeight | int getHeight() | No description in source. |
getMinWidth | int getMinWidth() | No description in source. |
getMinHeight | int getMinHeight() | No description in source. |
getMaxWidth | int getMaxWidth() | No description in source. |
getMaxHeight | int getMaxHeight() | No description in source. |
resizableOn | boolean resizableOn() | No description in source. |
decoratedOn | boolean decoratedOn() | No description in source. |
setText | void setText(String value) | Set the window's text (the SleelaGui.setText sink). |
getText | String getText() | No description in source. |
refresh | void refresh(String documentId, String revision) | The document-change refresh sink: SleelaGui.refresh(id, revision). The default publishes a short status line, exactly like the Java default. |
SLGuiWindow #sleela 2.5 (lib/gui/version-mual/SLGuiWindow.sleela)
SLGuiWindow class
Defines SLGuiWindow — a toolkit-neutral window intent. Mirrors the SleelaGui contract in gui/: show(title, width, height), setText(text), and refresh(documentId, revision). SLeeLa describes the window; the backend (Swing/JavaFX/native) renders it and marshals updates onto the toolkit thread.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
TITLE_BAR_BACKGROUND | static final String TITLE_BAR_BACKGROUND = "#1d2025" | Shared chrome colour defaults for every SLeeLa GUI variant. |
MENU_BAR_BACKGROUND | static final String MENU_BAR_BACKGROUND = "#1d2025" | No description in source. |
URL_BAR_BACKGROUND | static final String URL_BAR_BACKGROUND = "#383c47" | No description in source. |
title | String title | No description in source. |
width | int width | No description in source. |
height | int height | No description in source. |
text | String text | No description in source. |
shown | int shown | 1 once show() has been requested |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String t, int w, int h) | No description in source. |
show | void show() | Request the window be shown at its configured size. |
visible | boolean visible() | No description in source. |
valid | boolean valid() | A window is valid once it has a title and a positive extent. |
getTitle | String getTitle() | No description in source. |
getWidth | int getWidth() | No description in source. |
getHeight | int getHeight() | No description in source. |
setText | void setText(String value) | Set the window's text (the SleelaGui.setText sink). |
getText | String getText() | No description in source. |
refresh | void refresh(String documentId, String revision) | The document-change refresh sink: SleelaGui.refresh(id, revision). The default publishes a short status line, exactly like the Java default. |
SLGuiWindow #sleela 2.5 (lib/gui/version-thual/SLGuiWindow.sleela)
SLGuiWindow class
Defines SLGuiWindow — a toolkit-neutral window intent. Mirrors the SleelaGui contract in gui/: show(title, width, height), setText(text), and refresh(documentId, revision). SLeeLa describes the window; the backend (Swing/JavaFX/native) renders it and marshals updates onto the toolkit thread.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
TITLE_BAR_BACKGROUND | static final String TITLE_BAR_BACKGROUND = "#1d2025" | Shared chrome colour defaults for every SLeeLa GUI variant. |
MENU_BAR_BACKGROUND | static final String MENU_BAR_BACKGROUND = "#1d2025" | No description in source. |
URL_BAR_BACKGROUND | static final String URL_BAR_BACKGROUND = "#383c47" | No description in source. |
title | String title | No description in source. |
width | int width | No description in source. |
height | int height | No description in source. |
text | String text | No description in source. |
shown | int shown | 1 once show() has been requested |
resizable | int resizable | No description in source. |
decorated | int decorated | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String t, int w, int h) | No description in source. |
applySettings | void applySettings(SLGuiSettings s) | Adopt presentation/window settings from a configured SLGuiSettings, then clamp the current extent into the new min/max window. |
clampExtent | void clampExtent() | Keep width/height within [min, max] (max 0 = unbounded). |
resize | boolean resize(int w, int h) | Resize request, honored only when the window is resizable, then clamped. |
show | void show() | Request the window be shown at its configured size. |
visible | boolean visible() | No description in source. |
valid | boolean valid() | A window is valid once it has a title, a positive extent within its bounds, and (when bounded) a max not below its min. |
getTitle | String getTitle() | No description in source. |
getWidth | int getWidth() | No description in source. |
getHeight | int getHeight() | No description in source. |
getMinWidth | int getMinWidth() | No description in source. |
getMinHeight | int getMinHeight() | No description in source. |
getMaxWidth | int getMaxWidth() | No description in source. |
getMaxHeight | int getMaxHeight() | No description in source. |
resizableOn | boolean resizableOn() | No description in source. |
decoratedOn | boolean decoratedOn() | No description in source. |
setText | void setText(String value) | Set the window's text (the SleelaGui.setText sink). |
getText | String getText() | No description in source. |
refresh | void refresh(String documentId, String revision) | The document-change refresh sink: SleelaGui.refresh(id, revision). The default publishes a short status line, exactly like the Java default. |
SLGuiWindow #sleela 2.5 (lib/gui/version-military/SLGuiWindow.sleela)
SLGuiWindow class
Defines SLGuiWindow — a toolkit-neutral window intent. Mirrors the SleelaGui contract in gui/: show(title, width, height), setText(text), and refresh(documentId, revision). SLeeLa describes the window; the backend (Swing/JavaFX/native) renders it and marshals updates onto the toolkit thread.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
TITLE_BAR_BACKGROUND | static final String TITLE_BAR_BACKGROUND = "#1d2025" | Shared chrome colour defaults for every SLeeLa GUI variant. |
MENU_BAR_BACKGROUND | static final String MENU_BAR_BACKGROUND = "#1d2025" | No description in source. |
URL_BAR_BACKGROUND | static final String URL_BAR_BACKGROUND = "#383c47" | No description in source. |
title | String title | No description in source. |
width | int width | No description in source. |
height | int height | No description in source. |
text | String text | No description in source. |
shown | int shown | 1 once show() has been requested |
resizable | int resizable | No description in source. |
decorated | int decorated | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String t, int w, int h) | No description in source. |
applySettings | void applySettings(SLGuiSettings s) | Adopt presentation/window settings from a configured SLGuiSettings, then clamp the current extent into the new min/max window. |
clampExtent | void clampExtent() | Keep width/height within [min, max] (max 0 = unbounded). |
resize | boolean resize(int w, int h) | Resize request, honored only when the window is resizable, then clamped. |
show | void show() | Request the window be shown at its configured size. |
visible | boolean visible() | No description in source. |
valid | boolean valid() | A window is valid once it has a title, a positive extent within its bounds, and (when bounded) a max not below its min. |
getTitle | String getTitle() | No description in source. |
getWidth | int getWidth() | No description in source. |
getHeight | int getHeight() | No description in source. |
getMinWidth | int getMinWidth() | No description in source. |
getMinHeight | int getMinHeight() | No description in source. |
getMaxWidth | int getMaxWidth() | No description in source. |
getMaxHeight | int getMaxHeight() | No description in source. |
resizableOn | boolean resizableOn() | No description in source. |
decoratedOn | boolean decoratedOn() | No description in source. |
setText | void setText(String value) | Set the window's text (the SleelaGui.setText sink). |
getText | String getText() | No description in source. |
refresh | void refresh(String documentId, String revision) | The document-change refresh sink: SleelaGui.refresh(id, revision). The default publishes a short status line, exactly like the Java default. |
SLGuiWindow #sleela 2.5 (lib/gui/version-dual/SLGuiWindow.sleela)
SLGuiWindow class
Defines SLGuiWindow — a toolkit-neutral window intent. Mirrors the SleelaGui contract in gui/: show(title, width, height), setText(text), and refresh(documentId, revision). SLeeLa describes the window; the backend (Swing/JavaFX/native) renders it and marshals updates onto the toolkit thread.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
TITLE_BAR_BACKGROUND | static final String TITLE_BAR_BACKGROUND = "#1d2025" | Shared chrome colour defaults for every SLeeLa GUI variant. |
MENU_BAR_BACKGROUND | static final String MENU_BAR_BACKGROUND = "#1d2025" | No description in source. |
URL_BAR_BACKGROUND | static final String URL_BAR_BACKGROUND = "#383c47" | No description in source. |
title | String title | No description in source. |
width | int width | No description in source. |
height | int height | No description in source. |
text | String text | No description in source. |
shown | int shown | 1 once show() has been requested |
resizable | int resizable | No description in source. |
decorated | int decorated | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String t, int w, int h) | No description in source. |
applySettings | void applySettings(SLGuiSettings s) | Adopt presentation/window settings from a configured SLGuiSettings, then clamp the current extent into the new min/max window. |
clampExtent | void clampExtent() | Keep width/height within [min, max] (max 0 = unbounded). |
resize | boolean resize(int w, int h) | Resize request, honored only when the window is resizable, then clamped. |
show | void show() | Request the window be shown at its configured size. |
visible | boolean visible() | No description in source. |
valid | boolean valid() | A window is valid once it has a title, a positive extent within its bounds, and (when bounded) a max not below its min. |
getTitle | String getTitle() | No description in source. |
getWidth | int getWidth() | No description in source. |
getHeight | int getHeight() | No description in source. |
getMinWidth | int getMinWidth() | No description in source. |
getMinHeight | int getMinHeight() | No description in source. |
getMaxWidth | int getMaxWidth() | No description in source. |
getMaxHeight | int getMaxHeight() | No description in source. |
resizableOn | boolean resizableOn() | No description in source. |
decoratedOn | boolean decoratedOn() | No description in source. |
setText | void setText(String value) | Set the window's text (the SleelaGui.setText sink). |
getText | String getText() | No description in source. |
refresh | void refresh(String documentId, String revision) | The document-change refresh sink: SleelaGui.refresh(id, revision). The default publishes a short status line, exactly like the Java default. |
SLGuiWindowState #sleela 2.5 (lib/gui/version-military/SLGuiWindowState.sleela)
SLGuiWindowState class
Defines SLGuiWindowState — the military-line window-state machine and key-listener surface. It tracks the window mode (normal / minimized / fullscreen / maximized / FOLDED-to-a-desktop-side) and handles the gestures a host raises: resize, minimize, fullscreen, and "minimize right" — a FOLD of the UI to the right side of the desktop windowing area (also left, top, bottom). It remembers the previous "norm" geometry so a DOUBLE-CLICK restores the window to exactly what it was before it folded/minimized/ maximized. SLeeLa owns the state transitions + remembered norm; the host raises the key/gesture events and applies the resulting geometry. Family: gui. Backs SLGuiWindow's lifecycle; the host feeds gestures in and reads the resolved mode + target geometry out.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MODE_NORMAL | static final int MODE_NORMAL = 0 | No description in source. |
MODE_MINIMIZED | static final int MODE_MINIMIZED = 1 | No description in source. |
MODE_FULLSCREEN | static final int MODE_FULLSCREEN = 2 | No description in source. |
MODE_MAXIMIZED | static final int MODE_MAXIMIZED = 3 | No description in source. |
MODE_FOLDED | static final int MODE_FOLDED = 4 | folded to a side of the desktop |
SIDE_NONE | static final int SIDE_NONE = 0 | Fold sides (for "minimize right" and friends). |
SIDE_RIGHT | static final int SIDE_RIGHT = 1 | No description in source. |
SIDE_LEFT | static final int SIDE_LEFT = 2 | No description in source. |
SIDE_TOP | static final int SIDE_TOP = 3 | No description in source. |
SIDE_BOTTOM | static final int SIDE_BOTTOM = 4 | No description in source. |
mode | int mode | No description in source. |
foldSide | int foldSide | which side the window folded to (when MODE_FOLDED) |
foldedExtentPx | int foldedExtentPx | the thin extent the folded window occupies (px) |
haveNorm | int haveNorm | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(int px, int py, int w, int h) | No description in source. |
setDesktop | void setDesktop(int w, int h) | No description in source. |
setFoldedExtent | void setFoldedExtent(int px) | No description in source. |
rememberNorm | void rememberNorm() | Snapshot the current geometry as the norm to restore to (called before a transition away from NORMAL so a later restore is exact). |
onResize | void onResize(int w, int h) | ---- key / gesture listeners (the host raises these) -------------------- |
onMove | void onMove(int px, int py) | No description in source. |
onMinimize | void onMinimize() | No description in source. |
onFullscreen | void onFullscreen() | No description in source. |
onMaximize | void onMaximize() | No description in source. |
foldTo | void foldTo(int side) | "Minimize right" (and other sides): FOLD the UI to a side of the desktop, leaving a thin folded extent. Remembers the norm for restore. |
minimizeRight | void minimizeRight() | the named "minimize right" gesture |
onDoubleClick | boolean onDoubleClick() | DOUBLE-CLICK restore: return to the remembered norm geometry exactly. |
restoreNorm | boolean restoreNorm() | No description in source. |
getMode | int getMode() | ---- readers ------------------------------------------------------------ |
getFoldSide | int getFoldSide() | No description in source. |
isNormal | boolean isNormal() | No description in source. |
isMinimized | boolean isMinimized() | No description in source. |
isFullscreen | boolean isFullscreen() | No description in source. |
isMaximized | boolean isMaximized() | No description in source. |
isFolded | boolean isFolded() | No description in source. |
getX | int getX() | No description in source. |
getWidth | int getWidth() | No description in source. |
normWidth | int normWidth() | No description in source. |
modeName | String modeName() | No description in source. |
foldSideName | String foldSideName() | No description in source. |
SLPackage #sleela 2.5 (lib/gui/version-gual/SLPackage.sleela)
SLPackage class
Defines the SLeeLa standard-library package for gui — the gual line (version 2.0). It adds a version identity and a settings surface (SLGuiSettings) over the 1.0 baseline (the mual line), and hardens the backend / document-listener / window with validated, nameful settings.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
FEATURE_LEVEL | static final int FEATURE_LEVEL = 2 | Version identity: this is the gual line — the 2.0 GUI package. The mual line is the 1.0 baseline. featureLevel() lets callers branch on the line without string-parsing the version. 2 = gual/2.0 ; 1 = mual/1.0 |
packageName | String packageName | No description in source. |
packageVersion | String packageVersion | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String name) | No description in source. |
name | String name() | No description in source. |
version | String version() | No description in source. |
featureLevel | int featureLevel() | No description in source. |
isTwoPointZero | boolean isTwoPointZero() | No description in source. |
available | boolean available() | No description in source. |
SLPackage #sleela 2.5 (lib/gui/version-mual/SLPackage.sleela)
SLPackage class
Defines the SLeeLa standard-library package for gui.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
FEATURE_LEVEL | static final int FEATURE_LEVEL = 1 | Version identity: this is the mual line — the 1.0 GUI baseline. The gual line is the 2.0 package (version(), featureLevel()); mual stays the stable baseline. featureLevel() lets callers branch on the line. 1 = mual/1.0 ; 2 = gual/2.0 |
packageName | String packageName | No description in source. |
packageVersion | String packageVersion | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String name) | No description in source. |
name | String name() | No description in source. |
version | String version() | No description in source. |
featureLevel | int featureLevel() | No description in source. |
isTwoPointZero | boolean isTwoPointZero() | No description in source. |
available | boolean available() | No description in source. |
SLPackage #sleela 2.5 (lib/gui/version-thual/SLPackage.sleela)
SLPackage class
Defines the SLeeLa standard-library package for gui — the thual line (version 3.0). It builds on the gual (2.0) settings surface and adds a clean, professional visual-effects layer: lighting/glow/3D shine, shadow, metal look-and-feel, component rotation (incl. scheduled "schene" rotation), fade in/out, activation audio, and logo branding.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
FEATURE_LEVEL | static final int FEATURE_LEVEL = 3 | Version identity: this is the thual line — the 3.0 GUI package. mual is the 1.0 baseline, gual the 2.0 settings-first line; thual (3.0) adds the clean, professional visual-effects surface (lighting/glow/3D shine, rotation + scheduled "schene" rotation, fade in/out, activation audio, shadow, metal look-and-feel, logo branding). featureLevel() lets callers branch. 3 = thual/3.0 ; 2 = gual/2.0 ; 1 = mual/1.0 |
packageName | String packageName | No description in source. |
packageVersion | String packageVersion | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String name) | No description in source. |
name | String name() | No description in source. |
version | String version() | No description in source. |
featureLevel | int featureLevel() | No description in source. |
isTwoPointZero | boolean isTwoPointZero() | No description in source. |
isThreePointZero | boolean isThreePointZero() | No description in source. |
available | boolean available() | No description in source. |
SLPackage #sleela 2.5 (lib/gui/version-military/SLPackage.sleela)
SLPackage class
Defines the SLeeLa standard-library package for gui — the MILITARY line (version 5.0). It builds on dual (4.0) and hardens it for a neutral, professional military aesthetic: metal / metal-silver / blue-hue surfaces, a 3D-lit base frame with careful quality component shadows, strong facile user branding, carefully sized/placed icons on buttons/menus/clickables, an explicit Component vs Container taxonomy, a cryptography selector and a public-key certificate store, and window key-listeners (resize / minimize / fullscreen / fold-to-side-of-desktop with double-click restore).
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
FEATURE_LEVEL | static final int FEATURE_LEVEL = 5 | Version identity: this is the MILITARY line — the 5.0 GUI package, a hardened, strongly-branded build on the dual (4.0) component set. It renders in a neutral metal / metal-silver / blue-hue aesthetic with a 3D-lit base frame and careful component shadows, an explicit Component vs Container taxonomy, icons on buttons/menus/clickables, a cryptography selector and a public-key certificate store, and window key-listeners (resize / minimize / fullscreen / fold-to-side with double-click restore). featureLevel()=5. 5 military ; 4 dual ; 3 thual ; 2 gual ; 1 mual |
packageName | String packageName | No description in source. |
packageVersion | String packageVersion | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String name) | No description in source. |
name | String name() | No description in source. |
version | String version() | No description in source. |
featureLevel | int featureLevel() | No description in source. |
isTwoPointZero | boolean isTwoPointZero() | No description in source. |
isThreePointZero | boolean isThreePointZero() | No description in source. |
isFourPointZero | boolean isFourPointZero() | No description in source. |
isMilitary | boolean isMilitary() | No description in source. |
available | boolean available() | No description in source. |
SLPackage #sleela 2.5 (lib/gui/version-dual/SLPackage.sleela)
SLPackage class
Defines the SLeeLa standard-library package for gui — the dual line (version 4.0). It builds on thual (3.0) and adds a rich, professional component set: an audio-input recorder, a video canvas with transport controls, an HTML-aware HTTP-driven URL navigation bar, custom click objects (motion + timers that escalate to System Apprentices), exact component positioning + strong layout support, a graphics facility and control, and an admin authority surface (sign-off on operations, sign-in to start a process, legal signature), with a substantially upgraded aesthetic.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
FEATURE_LEVEL | static final int FEATURE_LEVEL = 4 | Version identity: this is the dual line — the 4.0 GUI package. mual=1.0 baseline, gual=2.0 settings, thual=3.0 visual effects; dual (4.0) adds the rich professional component set (audio recorder, video canvas, HTML/HTTP URL bar, custom click objects, exact positioning + layout, graphics facility, admin sign-off / sign-in / legal signature) and a substantially upgraded aesthetic. featureLevel() lets callers branch. 4 dual ; 3 thual ; 2 gual ; 1 mual |
packageName | String packageName | No description in source. |
packageVersion | String packageVersion | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
configure | void configure(String name) | No description in source. |
name | String name() | No description in source. |
version | String version() | No description in source. |
featureLevel | int featureLevel() | No description in source. |
isTwoPointZero | boolean isTwoPointZero() | No description in source. |
isThreePointZero | boolean isThreePointZero() | No description in source. |
isFourPointZero | boolean isFourPointZero() | No description in source. |
available | boolean available() | No description in source. |