Package ui
astrophysics #sleela 2.5 (lib/ui/example/science/astrophysics.sleela)
ScienceAstrophysics class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
banner | void banner(String t) | No description in source. |
main | void main() | No description in source. |
chemistry #sleela 2.5 (lib/ui/example/science/chemistry.sleela)
ScienceChemistry class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
banner | void banner(String t) | No description in source. |
main | void main() | No description in source. |
gui-dual-media-studio #sleela 2.5 (lib/ui/example/dual/gui-dual-media-studio.sleela)
GuiDualMediaStudio class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
ALLOW_HORIZONTAL_OVERFLOW | static final int ALLOW_HORIZONTAL_OVERFLOW = 0 | SLUITheme preset ordinals (mirror SLUIThemeId in the toolkit C ABI). Static build policy: default keeps the normal layout within its parent width. Set to 1 only in builds that intentionally permit horizontal overflow. |
SCROLL_AUTO | int SCROLL_AUTO = 0 | Scroll-policy ordinal (mirror the toolkit C ABI: 0=auto on overflow). |
btnPlay | int btnPlay | Live handles the event loop reacts on/to. |
btnPause | int btnPause | No description in source. |
btnStop | int btnStop | No description in source. |
btnRec | int btnRec | No description in source. |
btnRecStop | int btnRecStop | No description in source. |
statusLabel | int statusLabel | No description in source. |
wifiButton | int wifiButton | Lower-right status-bar connectivity control and its dismissible menu. |
wifiPanel | int wifiPanel | No description in source. |
wifiStatusLabel | int wifiStatusLabel | No description in source. |
wifiScanButton | int wifiScanButton | No description in source. |
wifiConnectButton | int wifiConnectButton | No description in source. |
wifiDisconnectButton | int wifiDisconnectButton | No description in source. |
wifiSettingsButton | int wifiSettingsButton | No description in source. |
wifiInfoButton | int wifiInfoButton | No description in source. |
wifiProfileEntry | int wifiProfileEntry | No description in source. |
wifiCloseButton | int wifiCloseButton | No description in source. |
openMenuIndex | int openMenuIndex = -1 | Menubar strip and its dropdown panels (built from existing ui* widgets). |
menuFileButton | int menuFileButton | No description in source. |
menuFilePanel | int menuFilePanel | No description in source. |
menuFileItem1 | int menuFileItem1 | No description in source. |
menuFileItem2 | int menuFileItem2 | No description in source. |
menuMediaButton | int menuMediaButton | No description in source. |
menuMediaPanel | int menuMediaPanel | No description in source. |
menuMediaItem1 | int menuMediaItem1 | No description in source. |
menuMediaItem2 | int menuMediaItem2 | No description in source. |
menuPlaybackButton | int menuPlaybackButton | No description in source. |
menuPlaybackPanel | int menuPlaybackPanel | No description in source. |
menuPlaybackItem1 | int menuPlaybackItem1 | No description in source. |
menuPlaybackItem2 | int menuPlaybackItem2 | No description in source. |
menuHelpButton | int menuHelpButton | No description in source. |
menuHelpPanel | int menuHelpPanel | No description in source. |
menuHelpItem1 | int menuHelpItem1 | No description in source. |
menuHelpItem2 | int menuHelpItem2 | No description in source. |
THEME_GRAY | int THEME_GRAY = 7 | A cool "glass" studio theme for the DUAL line. Shared SLeeLa family palette: chrome/title bar #1D2025, Standard Pattern ordinal (mirror SLUIThemeId): 7=GRAY. dual uses GRAY. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
rgba | int rgba(int r, int g, int b, int a) | No description in source. |
rgb | int rgb(int r, int g, int b) | No description in source. |
clamp | int clamp(int v, int lo, int hi) | No description in source. |
intToStr | String intToStr(int v) | No description in source. |
canPlayType | boolean canPlayType(String mime) | Codec gate: the studio consults the registry before offering a control. |
playMedia | void playMedia() | Shared action helpers keep menu commands and transport buttons consistent. |
pauseMedia | void pauseMedia() | No description in source. |
stopMedia | void stopMedia() | No description in source. |
startRecording | void startRecording() | No description in source. |
stopRecording | void stopRecording() | No description in source. |
glassTheme | int glassTheme() | dual is the GRAY Standard Pattern: neutral mid-gray surfaces with light text, supplied by the toolkit preset (no per-colour overrides); metrics only. |
openMenu | void openMenu(int which) | Show one dropdown at a time; selecting the open menu closes it. |
wifiActionUnavailable | void wifiActionUnavailable(String action) | No description in source. |
main | void main() | No description in source. |
gui-gual-settings-console #sleela 2.5 (lib/ui/example/gual/gui-gual-settings-console.sleela)
GuiGualSettingsConsole class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
ALLOW_HORIZONTAL_OVERFLOW | static final int ALLOW_HORIZONTAL_OVERFLOW = 0 | SLUITheme preset ordinals (mirror SLUIThemeId in the toolkit C ABI). Static build policy: default keeps the normal layout within its parent width. Set to 1 only in builds that intentionally permit horizontal overflow. |
SCROLL_AUTO | int SCROLL_AUTO = 0 | Scroll-policy ordinal (mirror the toolkit C ABI: 0=auto on overflow). |
btnJfx | int btnJfx | Live handles the event loop reacts on/to. |
btnSwing | int btnSwing | No description in source. |
btnNative | int btnNative | No description in source. |
btnQt | int btnQt | No description in source. |
statusLabel | int statusLabel | No description in source. |
wifiButton | int wifiButton | Lower-right status-bar connectivity control and its dismissible menu. |
wifiPanel | int wifiPanel | No description in source. |
wifiStatusLabel | int wifiStatusLabel | No description in source. |
wifiScanButton | int wifiScanButton | No description in source. |
wifiConnectButton | int wifiConnectButton | No description in source. |
wifiDisconnectButton | int wifiDisconnectButton | No description in source. |
wifiSettingsButton | int wifiSettingsButton | No description in source. |
wifiInfoButton | int wifiInfoButton | No description in source. |
wifiProfileEntry | int wifiProfileEntry | No description in source. |
wifiCloseButton | int wifiCloseButton | No description in source. |
openMenuIndex | int openMenuIndex = -1 | Menubar strip and its dropdown panels (built from existing ui* widgets). |
menuFileButton | int menuFileButton | No description in source. |
menuFilePanel | int menuFilePanel | No description in source. |
menuFileItem1 | int menuFileItem1 | No description in source. |
menuFileItem2 | int menuFileItem2 | No description in source. |
menuSettingsButton | int menuSettingsButton | No description in source. |
menuSettingsPanel | int menuSettingsPanel | No description in source. |
menuSettingsItem1 | int menuSettingsItem1 | No description in source. |
menuSettingsItem2 | int menuSettingsItem2 | No description in source. |
menuBackendButton | int menuBackendButton | No description in source. |
menuBackendPanel | int menuBackendPanel | No description in source. |
menuBackendItem1 | int menuBackendItem1 | No description in source. |
menuBackendItem2 | int menuBackendItem2 | No description in source. |
menuHelpButton | int menuHelpButton | No description in source. |
menuHelpPanel | int menuHelpPanel | No description in source. |
menuHelpItem1 | int menuHelpItem1 | No description in source. |
menuHelpItem2 | int menuHelpItem2 | No description in source. |
THEME_BLACK | int THEME_BLACK = 5 | A hardened, neutral "settings" theme. Shared SLeeLa family palette: chrome/title bar #1D2025, Standard Pattern ordinal (mirror SLUIThemeId): 5=BLACK. gual uses BLACK. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
rgba | int rgba(int r, int g, int b, int a) | No description in source. |
rgb | int rgb(int r, int g, int b) | No description in source. |
selectBackend | void selectBackend(int which) | Mark one accepted backend button as selected (fail-closed: qt stays off). |
clamp | int clamp(int v, int lo, int hi) | Clamp an int into [lo, hi] — the heart of GUAL's settings discipline. |
intToStr | String intToStr(int v) | No description in source. |
settingsTheme | int settingsTheme() | gual is the BLACK Standard Pattern: deep black surfaces with light text, supplied by the toolkit preset (no per-colour overrides); metrics only. |
openMenu | void openMenu(int which) | Show one dropdown at a time; selecting the open menu closes it. |
wifiActionUnavailable | void wifiActionUnavailable(String action) | No description in source. |
main | void main() | No description in source. |
gui-menubar-expandable #sleela 2.5 (lib/ui/example/menus/gui-menubar-expandable.sleela)
GuiMenubarExpandable class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
PAD | int PAD = 10 | No description in source. |
GAP | int GAP = 6 | No description in source. |
VERTICAL | int VERTICAL = 0 | No description in source. |
HORIZONTAL | int HORIZONTAL = 1 | No description in source. |
statusLabel | int statusLabel | No description in source. |
openMenuIndex | int openMenuIndex = -1 | No description in source. |
recentOpen | boolean recentOpen = false | No description in source. |
panelsOpen | boolean panelsOpen = false | No description in source. |
fileButton | int fileButton | No description in source. |
editButton | int editButton | No description in source. |
viewButton | int viewButton | No description in source. |
helpButton | int helpButton | No description in source. |
filePanel | int filePanel | No description in source. |
editPanel | int editPanel | No description in source. |
viewPanel | int viewPanel | No description in source. |
helpPanel | int helpPanel | No description in source. |
recentToggle | int recentToggle | No description in source. |
recentPanel | int recentPanel | No description in source. |
recentOne | int recentOne | No description in source. |
recentTwo | int recentTwo | No description in source. |
recentThree | int recentThree | No description in source. |
panelsToggle | int panelsToggle | No description in source. |
panelsPanel | int panelsPanel | No description in source. |
panelEditor | int panelEditor | No description in source. |
panelInspector | int panelInspector | No description in source. |
fileNew | int fileNew | No description in source. |
fileSave | int fileSave | No description in source. |
editUndo | int editUndo | No description in source. |
editSelectAll | int editSelectAll | No description in source. |
viewZoomIn | int viewZoomIn | No description in source. |
viewZoomOut | int viewZoomOut | No description in source. |
helpAbout | int helpAbout | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
setStatus | void setStatus(String message) | No description in source. |
openMenu | void openMenu(int which) | Exactly one top-level dropdown is open at a time. Clicking its heading again collapses it; choosing another heading switches directly to it. |
toggleRecentFiles | void toggleRecentFiles() | No description in source. |
togglePanels | void togglePanels() | No description in source. |
closeMenus | void closeMenus() | No description in source. |
main | void main() | No description in source. |
gui-military-command-console #sleela 2.5 (lib/ui/example/military/gui-military-command-console.sleela)
GuiMilitaryCommandConsole class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
THEME_CUSTOM | int THEME_CUSTOM = 2 | SLUITheme preset ordinals (mirror SLUIThemeId in the toolkit C ABI). |
SCROLL_AUTO | int SCROLL_AUTO = 0 | Scroll-policy ordinal (mirror the toolkit C ABI: 0=auto on overflow). |
btnAuthorize | int btnAuthorize | Live handles the event loop reacts on/to. |
btnRun | int btnRun | No description in source. |
btnReset | int btnReset | No description in source. |
statusLabel | int statusLabel | No description in source. |
wifiMenuOpen | boolean wifiMenuOpen = false | No description in source. |
wifiButton | int wifiButton | Lower-right status-bar connectivity control and its dismissible menu. |
wifiPanel | int wifiPanel | No description in source. |
wifiStatusLabel | int wifiStatusLabel | No description in source. |
wifiScanButton | int wifiScanButton | No description in source. |
wifiConnectButton | int wifiConnectButton | No description in source. |
wifiDisconnectButton | int wifiDisconnectButton | No description in source. |
wifiSettingsButton | int wifiSettingsButton | No description in source. |
wifiInfoButton | int wifiInfoButton | No description in source. |
wifiProfileEntry | int wifiProfileEntry | No description in source. |
wifiCloseButton | int wifiCloseButton | No description in source. |
consoleMenuIndex | int consoleMenuIndex = -1 | Reusable menu-bar interaction state for the command console. |
menuFileButton | int menuFileButton | No description in source. |
menuEditButton | int menuEditButton | No description in source. |
menuViewButton | int menuViewButton | No description in source. |
menuHelpButton | int menuHelpButton | No description in source. |
menuFilePanel | int menuFilePanel | No description in source. |
menuEditPanel | int menuEditPanel | No description in source. |
menuViewPanel | int menuViewPanel | No description in source. |
menuHelpPanel | int menuHelpPanel | No description in source. |
menuFileNew | int menuFileNew | No description in source. |
menuFileSave | int menuFileSave | No description in source. |
menuEditAudit | int menuEditAudit | No description in source. |
menuEditClear | int menuEditClear | No description in source. |
menuViewStatus | int menuViewStatus | No description in source. |
menuViewCertificates | int menuViewCertificates | No description in source. |
menuHelpAbout | int menuHelpAbout | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
openConsoleMenu | void openConsoleMenu(int index) | No description in source. |
closeConsoleMenus | void closeConsoleMenus() | No description in source. |
rgba | int rgba(int r, int g, int b, int a) | 0xRRGGBBAA colours for the military "metal / blue-hue" palette. |
rgb | int rgb(int r, int g, int b) | No description in source. |
militaryTheme | int militaryTheme() | Build the hardened metal/blue military theme and return its handle. Shared SLeeLa family palette: chrome/title bar #1D2025, URL-entry surface #383C47; keep these tokens aligned across all five lines. |
toggleWifiMenu | void toggleWifiMenu() | No description in source. |
closeWifiMenu | void closeWifiMenu() | No description in source. |
wifiActionUnavailable | void wifiActionUnavailable(String action) | No description in source. |
main | void main() | No description in source. |
gui-mual-text-editor #sleela 2.5 (lib/ui/example/mual/gui-mual-text-editor.sleela)
GuiMualTextEditor class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
VERTICAL | int VERTICAL = 0 | SLUITheme preset ordinals (mirror SLUIThemeId in the toolkit C ABI). Orientation + scroll-policy ordinals (mirror the toolkit C ABI). |
HORIZONTAL | int HORIZONTAL = 1 | No description in source. |
SCROLL_AUTO | int SCROLL_AUTO = 0 | No description in source. |
wifiButton | int wifiButton | int aboutPanel; // panel: about/help int statusLabel; // the status line text Lower-right status-bar connectivity control and its dismissible menu. |
wifiPanel | int wifiPanel | No description in source. |
wifiStatusLabel | int wifiStatusLabel | No description in source. |
wifiScanButton | int wifiScanButton | No description in source. |
wifiConnectButton | int wifiConnectButton | No description in source. |
wifiDisconnectButton | int wifiDisconnectButton | No description in source. |
wifiSettingsButton | int wifiSettingsButton | No description in source. |
wifiInfoButton | int wifiInfoButton | No description in source. |
wifiProfileEntry | int wifiProfileEntry | No description in source. |
wifiCloseButton | int wifiCloseButton | No description in source. |
btnDocs | int btnDocs | No description in source. |
btnAbout | int btnAbout | No description in source. |
btnSave | int btnSave | No description in source. |
btnNew | int btnNew | No description in source. |
openMenuIndex | int openMenuIndex = -1 | Menubar strip and its dropdown panels (built from existing ui* widgets). |
menuFileButton | int menuFileButton | No description in source. |
menuFilePanel | int menuFilePanel | No description in source. |
menuFileItem1 | int menuFileItem1 | No description in source. |
menuFileItem2 | int menuFileItem2 | No description in source. |
menuEditButton | int menuEditButton | No description in source. |
menuEditPanel | int menuEditPanel | No description in source. |
menuEditItem1 | int menuEditItem1 | No description in source. |
menuEditItem2 | int menuEditItem2 | No description in source. |
menuViewButton | int menuViewButton | No description in source. |
menuViewPanel | int menuViewPanel | No description in source. |
menuViewItem1 | int menuViewItem1 | No description in source. |
menuViewItem2 | int menuViewItem2 | No description in source. |
menuHelpButton | int menuHelpButton | No description in source. |
menuHelpPanel | int menuHelpPanel | No description in source. |
menuHelpItem1 | int menuHelpItem1 | No description in source. |
menuHelpItem2 | int menuHelpItem2 | No description in source. |
THEME_WHITE | int THEME_WHITE = 4 | Standard Pattern ordinal (mirror SLUIThemeId in the toolkit C ABI): 4=WHITE, 5=BLACK, 6=BLUE, 7=GRAY. This line (mual) uses WHITE. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
rgba | int rgba(int r, int g, int b, int a) | No description in source. |
rgb | int rgb(int r, int g, int b) | No description in source. |
baselineTheme | int baselineTheme() | Build the baseline editor theme and return its handle. mual is the WHITE Standard Pattern: a light surface family with dark text and a blue accent, supplied by the toolkit preset (no per-colour overrides); only the family metrics are tuned here. |
showPanel | void showPanel(int which) | Show exactly one panel; mark the active toolbar button as suggested. |
openMenu | void openMenu(int which) | Show one dropdown at a time; selecting the open menu closes it. |
wifiActionUnavailable | void wifiActionUnavailable(String action) | No description in source. |
main | void main() | No description in source. |
gui-thual-effects-showcase #sleela 2.5 (lib/ui/example/thual/gui-thual-effects-showcase.sleela)
GuiThualEffectsShowcase class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
SCROLL_AUTO | int SCROLL_AUTO = 0 | SLUITheme preset ordinals (mirror SLUIThemeId in the toolkit C ABI). Scroll-policy ordinal (mirror the toolkit C ABI: 0=auto on overflow). |
btnConfirm | int btnConfirm | Live handles the event loop reacts on/to. |
btnFade | int btnFade | No description in source. |
statusLabel | int statusLabel | No description in source. |
wifiButton | int wifiButton | Lower-right status-bar connectivity control and its dismissible menu. |
wifiPanel | int wifiPanel | No description in source. |
wifiStatusLabel | int wifiStatusLabel | No description in source. |
wifiScanButton | int wifiScanButton | No description in source. |
wifiConnectButton | int wifiConnectButton | No description in source. |
wifiDisconnectButton | int wifiDisconnectButton | No description in source. |
wifiSettingsButton | int wifiSettingsButton | No description in source. |
wifiInfoButton | int wifiInfoButton | No description in source. |
wifiProfileEntry | int wifiProfileEntry | No description in source. |
wifiCloseButton | int wifiCloseButton | No description in source. |
openMenuIndex | int openMenuIndex = -1 | Menubar strip and its dropdown panels (built from existing ui* widgets). |
menuFileButton | int menuFileButton | No description in source. |
menuFilePanel | int menuFilePanel | No description in source. |
menuFileItem1 | int menuFileItem1 | No description in source. |
menuFileItem2 | int menuFileItem2 | No description in source. |
menuEffectsButton | int menuEffectsButton | No description in source. |
menuEffectsPanel | int menuEffectsPanel | No description in source. |
menuEffectsItem1 | int menuEffectsItem1 | No description in source. |
menuEffectsItem2 | int menuEffectsItem2 | No description in source. |
menuViewButton | int menuViewButton | No description in source. |
menuViewPanel | int menuViewPanel | No description in source. |
menuViewItem1 | int menuViewItem1 | No description in source. |
menuViewItem2 | int menuViewItem2 | No description in source. |
menuHelpButton | int menuHelpButton | No description in source. |
menuHelpPanel | int menuHelpPanel | No description in source. |
menuHelpItem1 | int menuHelpItem1 | No description in source. |
menuHelpItem2 | int menuHelpItem2 | No description in source. |
THEME_BLUE | int THEME_BLUE = 6 | A bright, dimensional "studio" theme for the effects line. Shared SLeeLa family palette: chrome/title bar #1D2025, Standard Pattern ordinal (mirror SLUIThemeId): 6=BLUE. thual uses BLUE. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
rgba | int rgba(int r, int g, int b, int a) | No description in source. |
rgb | int rgb(int r, int g, int b) | No description in source. |
clamp | int clamp(int v, int lo, int hi) | Every effect knob clamps to a safe window (the THUAL discipline). |
intToStr | String intToStr(int v) | No description in source. |
studioTheme | int studioTheme() | thual is the BLUE Standard Pattern: blue-tinted surfaces with light text, supplied by the toolkit preset (no per-colour overrides); metrics only. |
openMenu | void openMenu(int which) | Show one dropdown at a time; selecting the open menu closes it. |
wifiActionUnavailable | void wifiActionUnavailable(String action) | No description in source. |
main | void main() | No description in source. |
guide-chain-syntax #sleela 2.5 (lib/ui/example/science/guide-chain-syntax.sleela)
Perfect class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
growth | int growth | the seated growth, accumulated as each Guide fires |
trail | String trail | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
create | void create() | No description in source. |
patch | void patch() | --- the Guides: each a zero-argument method, seated via :: --- |
seed | void seed() | No description in source. |
aim | void aim() | No description in source. |
guide | void guide() | No description in source. |
total | int total() | No description in source. |
chain | String chain() | No description in source. |
GuideChainSyntax class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | void main() | No description in source. |
layout-demo #sleela 2.5 (lib/ui/layout-demo.sleela)
LayoutDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | void main() | No description in source. |
layout-driver-demo #sleela 2.5 (lib/ui/layout-driver-demo.sleela)
LayoutDriverDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
planSettings | SLLayoutFrame planSettings(int w, int h) | Build the PLAN once: a settings column with a fixed header, a flexible body that fills the rest, and a fixed footer. The same plan drives both the printed (headless) output and the real window. |
printPlan | void printPlan(SLLayoutFrame f) | No description in source. |
main | void main() | No description in source. |
math #sleela 2.5 (lib/ui/example/science/math.sleela)
ScienceMath class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
banner | void banner(String t) | No description in source. |
main | void main() | No description in source. |
philosophers-constructor #sleela 2.5 (lib/ui/example/science/philosophers-constructor.sleela)
PhilosophersConstructorExample class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
buildOne | void buildOne(String title, int quorum, int seconds) | Build one Constructor, run it for a duration, and print its report. |
main | void main() | No description in source. |
physics #sleela 2.5 (lib/ui/example/science/physics.sleela)
SciencePhysics class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
banner | void banner(String t) | No description in source. |
main | void main() | No description in source. |
SLAbsoluteLayout #sleela 2.5 (lib/ui/SLAbsoluteLayout.sleela)
SLAbsoluteLayout class
SLAbsoluteLayout — place children at EXACT x/y/width/height in device pixels, relative to the container's origin. The escape hatch when a professional wants pixel-exact control; still clamps negative sizes to zero. Pure SLeeLa; fills SLLayoutBox[]. Easy path: SLAbsoluteLayout a = new SLAbsoluteLayout(); a.add(10, 10, 120, 24); < a label > a.add(10, 44, 120, 24); < a field > a.arrange(0, 0, 400, 300); < container origin offsets all children > SLLayoutBox b = a.boxOf(0);
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_ITEMS | static final int MAX_ITEMS = 256 | No description in source. |
count | int count | No description in source. |
boxes | SLLayoutBox[] boxes | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
create | void create() | No description in source. |
add | int add(int px, int py, int w, int h) | Add a child at exact x/y/width/height (relative to the container origin). |
size | int size() | No description in source. |
arrange | void arrange(int x, int y, int w, int h) | Offset every child by the container origin (x,y). w/h here are advisory (absolute children keep their own sizes); provided for a uniform arrange(). |
boxOf | SLLayoutBox boxOf(int index) | No description in source. |
honored | boolean honored() | No description in source. |
SLApplication #sleela 2.5 (lib/ui/SLApplication.sleela)
SLApplication class
Defines the SLeeLa standard-library type SLApplication used within the ui library family.
SLButton #sleela 2.5 (lib/ui/SLButton.sleela)
SLButton class
Defines the SLeeLa standard-library type SLButton used within the ui library family.
SLComponentQuality #sleela 2.5 (lib/ui/SLComponentQuality.sleela)
SLComponentQuality class
SLComponentQuality — the per-COMPONENT QUALITY descriptor that
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
ROLE_BODY | static final int ROLE_BODY = 0 | ROLE: which theme surface/text the component reads as. |
ROLE_SURFACE | static final int ROLE_SURFACE = 1 | No description in source. |
ROLE_CHROME | static final int ROLE_CHROME = 2 | No description in source. |
ROLE_ACCENT | static final int ROLE_ACCENT = 3 | No description in source. |
EMPHASIS_NORMAL | static final int EMPHASIS_NORMAL = 0 | EMPHASIS: normal, the single primary action, or a destructive action. |
EMPHASIS_PRIMARY | static final int EMPHASIS_PRIMARY = 1 | No description in source. |
EMPHASIS_DANGER | static final int EMPHASIS_DANGER = 2 | No description in source. |
role | int role | No description in source. |
emphasis | int emphasis | No description in source. |
interactive | int interactive | 1 = enabled/interactive, 0 = disabled (greyed out) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
create | void create() | Default quality: body role, no emphasis, interactive. |
asBody | void asBody() | ---- role (fluent one-call setters, beginner-friendly) ------------------ |
asSurface | void asSurface() | No description in source. |
asChrome | void asChrome() | No description in source. |
asAccent | void asAccent() | No description in source. |
setRole | void setRole(int r) | No description in source. |
getRole | int getRole() | No description in source. |
normal | void normal() | ---- emphasis ----------------------------------------------------------- |
primary | void primary() | No description in source. |
danger | void danger() | No description in source. |
setEmphasis | void setEmphasis(int e) | No description in source. |
getEmphasis | int getEmphasis() | No description in source. |
isPrimary | boolean isPrimary() | No description in source. |
isDanger | boolean isDanger() | No description in source. |
enable | void enable() | ---- interactivity ------------------------------------------------------ |
disable | void disable() | No description in source. |
setInteractive | void setInteractive(boolean on) | No description in source. |
isInteractive | boolean isInteractive() | No description in source. |
roleName | String roleName() | The role name, in the theme's own vocabulary. |
emphasisName | String emphasisName() | The emphasis name. |
describe | String describe() | A one-line account of the quality, for logs/inspection. |
honored | boolean honored() | No description in source. |
SLDialog #sleela 2.5 (lib/ui/SLDialog.sleela)
SLDialog class
Defines the SLeeLa standard-library type SLDialog used within the ui library family.
SLDockLayout #sleela 2.5 (lib/ui/SLDockLayout.sleela)
SLDockLayout class
SLDockLayout — dock children to the container edges (top, bottom, left, right) in the order added, each taking a band off the remaining space; a single FILL child takes whatever is left in the centre. The classic application-chrome layout (toolbar on top, status bar on bottom, sidebar on left, content filling the middle), made one call per region. Pure SLeeLa; fills SLLayoutBox[]. Easy path (toolbar + status bar + content): SLDockLayout d = new SLDockLayout(); d.top(32); d.bottom(24); d.fill(); d.arrange(0, 0, 800, 600); SLLayoutBox content = d.boxOf(2);
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
SIDE_TOP | static final int SIDE_TOP = 0 | No description in source. |
SIDE_BOTTOM | static final int SIDE_BOTTOM = 1 | No description in source. |
SIDE_LEFT | static final int SIDE_LEFT = 2 | No description in source. |
SIDE_RIGHT | static final int SIDE_RIGHT = 3 | No description in source. |
SIDE_FILL | static final int SIDE_FILL = 4 | No description in source. |
MAX_ITEMS | static final int MAX_ITEMS = 64 | No description in source. |
count | int count | No description in source. |
boxes | SLLayoutBox[] boxes | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
create | void create() | No description in source. |
dockItem | int dockItem(int s, int thicknessPx) | No description in source. |
top | int top(int h) | One-call helpers per region, in the order you dock them. |
bottom | int bottom(int h) | No description in source. |
left | int left(int w) | No description in source. |
right | int right(int w) | No description in source. |
fill | int fill() | The centre child that fills whatever remains (use at most one). |
size | int size() | No description in source. |
arrange | void arrange(int x, int y, int w, int h) | No description in source. |
boxOf | SLLayoutBox boxOf(int index) | No description in source. |
honored | boolean honored() | No description in source. |
SLGridLayout #sleela 2.5 (lib/ui/SLGridLayout.sleela)
SLGridLayout class
SLGridLayout — place children in an evenly-divided rows x cols grid, filling left-to-right, top-to-bottom. Beginner-simple (pick columns, add children) and precise (equal cells with gap + padding). Pure SLeeLa; fills SLLayoutBox[] with real pixel rects. Easy path (a 3-column gallery in a 600x400 area): SLGridLayout g = new SLGridLayout(); g.columns(3); g.gap(10); g.pad(10); g.add(); g.add(); g.add(); g.add(); g.add(); < 5 cells -> 2 rows > g.arrange(0, 0, 600, 400); SLLayoutBox b = g.boxOf(0);
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_ITEMS | static final int MAX_ITEMS = 256 | No description in source. |
MIN_CELL_PX | static final int MIN_CELL_PX = 64 | the assumed minimum size (px) of a single grid cell, used to derive the grid's natural starting size when the caller does not supply a cell size. |
cols | int cols | No description in source. |
count | int count | No description in source. |
gapPx | int gapPx | No description in source. |
boxes | SLLayoutBox[] boxes | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
create | void create() | No description in source. |
columns | void columns(int c) | Number of columns (at least 1). |
getColumns | int getColumns() | No description in source. |
getGap | int getGap() | The gap, in px, between adjacent cells (used by a native realizer). |
gap | void gap(int px) | No description in source. |
pad | void pad(int p) | No description in source. |
add | int add() | Add one cell (grid cells are evenly sized, so no per-cell size needed). |
size | int size() | No description in source. |
rows | int rows() | How many rows the current cell count needs for the chosen column count. |
naturalWidthFor | int naturalWidthFor(int cellW) | No description in source. |
naturalHeightFor | int naturalHeightFor(int cellH) | No description in source. |
naturalWidth | int naturalWidth() | The assumed minimum width using the default assumed cell size. |
naturalHeight | int naturalHeight() | The assumed minimum height using the default assumed cell size. |
arrange | void arrange(int x, int y, int w, int h) | No description in source. |
boxOf | SLLayoutBox boxOf(int index) | No description in source. |
honored | boolean honored() | No description in source. |
SLLabel #sleela 2.5 (lib/ui/SLLabel.sleela)
SLLabel class
Defines the SLeeLa standard-library type SLLabel used within the ui library family.
SLLayout #sleela 2.5 (lib/ui/SLLayout.sleela)
SLLayout class
Defines the SLeeLa standard-library type SLLayout used within the ui library family.
SLLayoutBox #sleela 2.5 (lib/ui/SLLayoutBox.sleela)
SLLayoutBox class
SLLayoutBox — one computed rectangle (x, y, width, height in device pixels). It is the OUTPUT unit of the standard layout classes: a layout takes a container rect and the children's requested sizes and fills an array of SLLayoutBox, one per child. Pure SLeeLa, no native handle, so it always checks and runs.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
create | void create() | No description in source. |
set | void set(int px, int py, int w, int h) | Set the rectangle directly (widths/heights below zero clamp to zero). |
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. |
right | int right() | No description in source. |
bottom | int bottom() | No description in source. |
contains | boolean contains(int px, int py) | Does a point fall inside this box? Useful for hit-testing. |
describe | String describe() | No description in source. |
SLLayoutDriver #sleela 2.5 (lib/ui/SLLayoutDriver.sleela)
SLLayoutDriver class
SLLayoutDriver — the bridge that lets the pure-SLeeLa Standard
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
ORIENT_VERTICAL | static final int ORIENT_VERTICAL = 0 | uiBox orientation ordinals (mirror SLUIOrientation in the toolkit C ABI). NOTE the mapping: SLStackLayout.isRow() == true means a horizontal row. ORIENT_VERTICAL = uiBox vertical (a column); ORIENT_HORIZONTAL = a row. |
ORIENT_HORIZONTAL | static final int ORIENT_HORIZONTAL = 1 | No description in source. |
LAYOUT_STACK | static final int LAYOUT_STACK = 0 | SLLayoutFrame layout-kind ordinals (mirror SLLayoutFrame.LAYOUT_*). |
LAYOUT_GRID | static final int LAYOUT_GRID = 1 | No description in source. |
ALIGN_FILL | static final int ALIGN_FILL = 3 | uiWidgetAlign ordinal for "stretch to fill" (mirror SLUIAlign.FILL). |
lastContainer | int lastContainer | the last native container handle this driver created (-1 = none) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
create | void create() | No description in source. |
container | int container() | The native container handle produced by the most recent realize* call. |
realize | int realize(int parentHandle, SLLayoutFrame frame) | No description in source. |
realizeStack | int realizeStack(int parentHandle, SLLayoutFrame frame) | No description in source. |
realizeGrid | int realizeGrid(int parentHandle, SLLayoutFrame frame) | No description in source. |
applyComponent | void applyComponent(SLLayoutFrame frame, int index, int childHandle) | No description in source. |
applyQuality | void applyQuality(SLComponentQuality q, int childHandle) | No description in source. |
applyNamed | void applyNamed(SLLayoutFrame frame, String name, int childHandle) | No description in source. |
isFlexibleComponent | boolean isFlexibleComponent(SLLayoutFrame frame, int index) | A component is "flexible" when the Frame planned it to grow (stack size 0). Grid cells are never flagged flexible here; the grid itself sizes cells. |
honored | boolean honored() | No description in source. |
SLLayoutFrame #sleela 2.5 (lib/ui/SLLayoutFrame.sleela)
SLLayoutFrame class
SLLayoutFrame — the basic UI interface and the organizing root.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
LAYOUT_STACK | static final int LAYOUT_STACK = 0 | which standard layout governs this Frame's children |
LAYOUT_GRID | static final int LAYOUT_GRID = 1 | No description in source. |
MAX_COMPONENTS | static final int MAX_COMPONENTS = 128 | No description in source. |
MIN_FRAME_W | static final int MIN_FRAME_W = 160 | A Frame never opens smaller than this, no matter how few components it has: the absolute assumed floor for a usable starting window. |
MIN_FRAME_H | static final int MIN_FRAME_H = 120 | No description in source. |
MODE_NORMAL | static final int MODE_NORMAL = 0 | presentation mode: NORMAL uses the assumed/explicit size; FULLSCREEN fills the supplied screen rectangle. |
MODE_FULLSCREEN | static final int MODE_FULLSCREEN = 1 | No description in source. |
frameTitle | String frameTitle | No description in source. |
kind | int kind | No description in source. |
stack | SLStackLayout stack | the governing layout (exactly one; chosen by a useXxx() call) |
grid | SLGridLayout grid | No description in source. |
names | String[] names | the named components the Frame organizes, in add order |
qualities | SLComponentQuality[] qualities | each component's quality (role + emphasis + interactivity), parallel to names |
count | int count | No description in source. |
placed | int placed | 1 once place() has arranged the layout |
mode | int mode | presentation mode: MODE_NORMAL or MODE_FULLSCREEN, set by how it was placed |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
create | void create() | No description in source. |
title | void title(String t) | No description in source. |
getTitle | String getTitle() | No description in source. |
useColumn | void useColumn(int gap, int pad) | ---- choose the layout that organizes the components -------------------- A vertical stack (gap, uniform padding). The 90% case. |
useRow | void useRow(int gap, int pad) | A horizontal stack. |
useGrid | void useGrid(int columns, int gap, int pad) | A grid (columns, gap, uniform padding). |
add | int add(String name, int sizePx) | ---- add components (each referenced to the Frame through the layout) --- Add a named component with a main-axis size (0 = flexible, stack only). The Frame remembers the name and hands the size to its layout. Returns the component's index, or -1 if the Frame is full. |
size | int size() | No description in source. |
qualityAt | SLComponentQuality qualityAt(int index) | ---- per-component quality (role + emphasis + interactivity) ------------ The quality descriptor for component `index` (never null for a valid index; defaults to body/normal/enabled until the caller customizes it). |
qualityOf | SLComponentQuality qualityOf(String name) | The quality descriptor for a named component, or null if unknown. |
setQualityAt | void setQualityAt(int index, SLComponentQuality q) | Replace a component's quality wholesale (ignored for an unknown index). |
indexOf | int indexOf(String name) | the index of a named component, or -1 if the Frame never heard of it |
place | void place(int x, int y, int w, int h) | ---- place the Frame, which arranges every component relative to it ----- |
assumedWidth | int assumedWidth() | No description in source. |
assumedHeight | int assumedHeight() | No description in source. |
placeAssumed | void placeAssumed(int x, int y) | No description in source. |
placeFullscreen | void placeFullscreen(int x, int y, int screenW, int screenH) | No description in source. |
isFullscreen | boolean isFullscreen() | True when this Frame was placed in full-screen mode. |
getMode | int getMode() | The presentation mode: MODE_NORMAL or MODE_FULLSCREEN. |
boxOf | SLLayoutBox boxOf(String name) | ---- read a component's rectangle, in reference to the Frame ------------ |
boxAt | SLLayoutBox boxAt(int index) | No description in source. |
getLayoutKind | int getLayoutKind() | ---- read the plan (for a native realizer such as SLLayoutDriver) ------- Which standard layout governs this Frame: LAYOUT_STACK or LAYOUT_GRID. |
isRowLayout | boolean isRowLayout() | True when the governing layout is a horizontal row stack. |
getGap | int getGap() | The gap (px) the governing layout uses between adjacent children/cells. |
getColumns | int getColumns() | The column count for a grid Frame (1 for a stack Frame). |
isFlexibleAt | boolean isFlexibleAt(int index) | True if component `index` is flexible (stack size 0). Grid cells are never flexible here — the grid sizes its own cells. |
getX | int getX() | the Frame's own rectangle, for a host to draw its border/title |
getY | int getY() | No description in source. |
getWidth | int getWidth() | No description in source. |
getHeight | int getHeight() | No description in source. |
isPlaced | boolean isPlaced() | No description in source. |
honored | boolean honored() | No description in source. |
SLLayoutKit #sleela 2.5 (lib/ui/SLLayoutKit.sleela)
SLLayoutKit class
SLLayoutKit — the one-stop, beginner-first entry point to the standard layout family. A newcomer does not need to know which class to pick: ask the kit for a column, a row, a grid, a dock, or absolute placement, and it returns a ready-to-use layout. Professionals use the concrete SL*Layout classes directly. Pure SLeeLa; every layout it makes fills SLLayoutBox[] with real pixel rects. Easy path: SLLayoutKit kit = new SLLayoutKit(); kit.create(); SLStackLayout col = kit.column(8, 12); < gap 8, pad 12 > col.add(40); col.add(0); col.arrange(0, 0, 320, 480); SLLayoutBox body = col.boxOf(1);
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
create | void create() | No description in source. |
column | SLStackLayout column(int gap, int pad) | A vertical stack with the given gap and uniform padding. |
row | SLStackLayout row(int gap, int pad) | A horizontal stack with the given gap and uniform padding. |
grid | SLGridLayout grid(int columns, int gap, int pad) | A grid with the given column count, gap, and uniform padding. |
dock | SLDockLayout dock() | An edge-dock layout (toolbar/sidebar/status + centre fill). |
absolute | SLAbsoluteLayout absolute() | Pixel-exact placement. |
families | String families() | The names of the standard layouts, for a tool/catalog that lists them. |
SLListView #sleela 2.5 (lib/ui/SLListView.sleela)
SLListView class
Defines the SLeeLa standard-library type SLListView used within the ui library family.
SLMenu #sleela 2.5 (lib/ui/SLMenu.sleela)
SLMenu class
Defines the SLeeLa standard-library type SLMenu used within the ui library family.
SLMenuItem #sleela 2.5 (lib/ui/SLMenuItem.sleela)
SLMenuItem class
Defines the SLeeLa standard-library type SLMenuItem used within the ui library family.
SLStackLayout #sleela 2.5 (lib/ui/SLStackLayout.sleela)
SLStackLayout class
SLStackLayout — the simplest, most-used layout: place children in a single row or column. The 90% case, made a one-liner for beginners while staying precise for professionals. Pure SLeeLa (computes real pixel rects into SLLayoutBox[]); no native handle, so it always checks and runs. Easy path (a vertical stack of three 40px rows in a 200-wide area): SLStackLayout s = new SLStackLayout(); s.column(); < or s.row() > s.gap(8); s.pad(12); s.add(40); s.add(40); s.add(40); s.arrange(0, 0, 200, 600); SLLayoutBox b = s.boxOf(0); < first child's rect > A child size of 0 means "flexible" -- it shares the leftover main-axis space equally with the other flexible children, so a body region that fills the rest is just s.add(0).
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
AXIS_ROW | static final int AXIS_ROW = 0 | axis: 0 = row (horizontal), 1 = column (vertical) |
AXIS_COLUMN | static final int AXIS_COLUMN = 1 | No description in source. |
MAX_ITEMS | static final int MAX_ITEMS = 128 | the most a single stack will hold |
MIN_FLEX_PX | static final int MIN_FLEX_PX = 48 | the assumed main-axis floor a single FLEXIBLE child (size 0) contributes to the natural size: a flexible region must start at least this tall/wide so a Frame full of flexible bodies still opens usably large. |
MIN_CROSS_PX | static final int MIN_CROSS_PX = 120 | the assumed CROSS-axis extent a stack claims when asked for a natural size (the cross axis otherwise just fills its container, so it has no intrinsic size; this is the explicit assumed minimum breadth of the stack). |
axis | int axis | No description in source. |
sizes | int[] sizes | requested main-axis size per child (0 = flexible) |
count | int count | No description in source. |
gapPx | int gapPx | No description in source. |
boxes | SLLayoutBox[] boxes | computed rectangles, one per child, filled by arrange() |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
create | void create() | No description in source. |
row | void row() | ---- orientation (pick one; column is the default) ---------------------- |
column | void column() | No description in source. |
isRow | boolean isRow() | No description in source. |
gap | void gap(int px) | ---- spacing (beginner-friendly one-call helpers) ----------------------- |
pad | void pad(int p) | No description in source. |
padEach | void padEach(int l, int t, int r, int b) | No description in source. |
add | int add(int sizePx) | ---- children ----------------------------------------------------------- Add a child with a fixed main-axis size in px, or 0 for flexible. Returns the child's index, or -1 if the stack is full. |
size | int size() | No description in source. |
getGap | int getGap() | ---- read the plan (for a native realizer / inspector) ------------------ The gap, in px, between adjacent children along the main axis. |
isFlexibleAt | boolean isFlexibleAt(int index) | True if child `index` is flexible (added with size 0, so it grows to share the leftover main-axis space). Out-of-range indices are not flexible. |
naturalMain | int naturalMain() | No description in source. |
naturalCross | int naturalCross() | No description in source. |
naturalWidth | int naturalWidth() | The assumed minimum WIDTH (main for a row, cross for a column). |
naturalHeight | int naturalHeight() | The assumed minimum HEIGHT (main for a column, cross for a row). |
arrange | void arrange(int x, int y, int w, int h) | ---- arrange: compute every child's rectangle inside (x,y,w,h) ---------- |
boxOf | SLLayoutBox boxOf(int index) | ---- read the computed rectangles --------------------------------------- |
honored | boolean honored() | No description in source. |
SLStandardTheme #sleela 2.5 (lib/ui/SLStandardTheme.sleela)
SLStandardTheme class
SLStandardTheme — one unified set of role tokens that every standard flavor fills, so swapping flavors is seamless and total. The token model mirrors the native theme (gui/native/sleela_gui_theme.h, user-interface/slui_theme.hpp): background, surfaces, chrome, text, accent, and the status colors. Colors are hex strings ("#RRGGBB") so the class is pure SLeeLa (no native handle) and always checks + runs; the renderer reads these tokens to produce the beautiful design. A flavor sets all tokens at once (see SLThemeFlavor). Every flavor is tuned so text clears WCAG AA contrast on each surface it is drawn over -- that is the quality bar, not a suggestion.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
name | String name | the flavor human name and its one-word psychological intent |
intent | String intent | No description in source. |
dark | int dark | 1 if this is a dark-surface flavor, 0 if light (drives default text) |
bg | String bg | ---- the unified role tokens (hex "#RRGGBB") --------------------------- page background (the deepest/furthest surface) |
surface | String surface | main application surface, drawn over bg |
surfaceHi | String surfaceHi | a raised/hover surface, one step above surface |
chrome | String chrome | title bar / menu bar chrome |
border | String border | dividers and outlines |
text | String text | primary text, readable on surface (WCAG AA) |
textDim | String textDim | secondary/dim text, still legible |
accent | String accent | the single interactive accent color |
accentText | String accentText | text/icon drawn ON the accent |
focus | String focus | keyboard-focus ring (visible, non-color-only cue still required elsewhere) |
danger | String danger | status colors (shared across flavors for learnability) |
success | String success | No description in source. |
warning | String warning | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
create | void create() | No description in source. |
set | void set(String n, String intnt, int isDark, | Fill every token in one call (used by the flavor presets). |
isDark | boolean isDark() | No description in source. |
getName | String getName() | No description in source. |
getIntent | String getIntent() | No description in source. |
toStyle | String toStyle() | A compact style descriptor the renderer applies ("theme:<name>/bg/.../accent"). |
describe | String describe() | A readable summary for a catalog/tool. |
SLTableView #sleela 2.5 (lib/ui/SLTableView.sleela)
SLTableView class
Defines the SLeeLa standard-library type SLTableView used within the ui library family.
SLTextArea #sleela 2.5 (lib/ui/SLTextArea.sleela)
SLTextArea class
Defines the SLeeLa standard-library type SLTextArea used within the ui library family.
SLTextField #sleela 2.5 (lib/ui/SLTextField.sleela)
SLTextField class
Defines the SLeeLa standard-library type SLTextField used within the ui library family.
SLTheme #sleela 2.5 (lib/ui/SLTheme.sleela)
SLTheme class
Defines the SLeeLa standard-library type SLTheme used within the ui library family.
SLThemeFlavor #sleela 2.5 (lib/ui/SLThemeFlavor.sleela)
SLThemeFlavor class
SLThemeFlavor — the four standard UI flavors as ready-made,
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
BLUE | static final int BLUE = 0 | the four standard flavor ordinals |
GRAY | static final int GRAY = 1 | No description in source. |
BLACK | static final int BLACK = 2 | No description in source. |
WHITE | static final int WHITE = 3 | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
create | void create() | No description in source. |
blue | SLStandardTheme blue() | ---- Blue: trust, calm, sustained focus --------------------------------- |
gray | SLStandardTheme gray() | ---- Gray: neutral, professional, low eye-fatigue ----------------------- |
black | SLStandardTheme black() | ---- Black: depth, focus, premium restraint ---------------------------- |
white | SLStandardTheme white() | ---- White: clarity, openness, daylight --------------------------------- |
byId | SLStandardTheme byId(int id) | Build a flavor by ordinal (BLUE/GRAY/BLACK/WHITE); defaults to Black. |
byName | SLStandardTheme byName(String n) | Build a flavor by name, case-insensitive-ish on the four exact words; an unknown name returns null so the caller can fall back deliberately. |
flavors | String flavors() | The names of the standard flavors, for a tool/catalog that lists them. |
SLThemeHint #sleela 2.5 (lib/ui/SLThemeHint.sleela)
SLThemeHint class
SLThemeHint — reads the HINT a source document carries about the flavor it intends, and resolves it to one of the four standard flavors so the renderer can produce the beautiful design. The hint is a single word the program supplies from its own source (e.g. a `#theme blue` convention the app reads, a document-design keyword, or a user setting): "blue", "gray", "black", "white". Unknown/empty hints fall back deliberately to the default flavor rather than guessing, and the resolver always reports both the hint it was given and the flavor it chose -- honest, inspectable intent. Pure SLeeLa; checks + runs. The renderer takes the resolved SLStandardTheme (its role tokens) and draws the UI; it never has to parse the hint itself -- that is this class job.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
flavors | SLThemeFlavor flavors | the flavor factory |
hint | String hint | the hint as given, the flavor chosen, and whether it was recognized |
chosen | String chosen | No description in source. |
recognized | int recognized | No description in source. |
fallbackName | String fallbackName | the default flavor name when a hint is unknown/empty |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
create | void create() | No description in source. |
setFallback | void setFallback(String flavorName) | Set the default flavor used when a hint is unknown or empty. |
resolve | SLStandardTheme resolve(String sourceHint) | Resolve a source hint word to a standard theme. Records the hint and the chosen flavor, sets recognized, and returns the ready-to-render theme. An unknown/empty hint resolves to the fallback flavor (never null). |
wasRecognized | boolean wasRecognized() | No description in source. |
getHint | String getHint() | No description in source. |
getChosen | String getChosen() | No description in source. |
report | String report() | A one-line account of what happened, for logs/inspection. |
SLTreeView #sleela 2.5 (lib/ui/SLTreeView.sleela)
SLTreeView class
Defines the SLeeLa standard-library type SLTreeView used within the ui library family.
SLView #sleela 2.5 (lib/ui/SLView.sleela)
SLView class
Defines the SLeeLa standard-library type SLView used within the ui library family.
SLWidget #sleela 2.5 (lib/ui/SLWidget.sleela)
SLWidget class
Defines the SLeeLa standard-library type SLWidget used within the ui library family.
SLWindow #sleela 2.5 (lib/ui/SLWindow.sleela)
SLWindow class
Defines the SLeeLa standard-library type SLWindow used within the ui library family.
sociology #sleela 2.5 (lib/ui/example/science/sociology.sleela)
ScienceSociology class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
banner | void banner(String t) | No description in source. |
main | void main() | No description in source. |
theme-demo #sleela 2.5 (lib/ui/theme-demo.sleela)
ThemeDemo class
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
main | void main() | No description in source. |
verify-pixel-perfect #sleela 2.5 (lib/ui/verify-pixel-perfect.sleela)
VerifyPixelPerfect class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
pass | int pass | No description in source. |
fail | int fail | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
check | void check(String label, boolean cond) | No description in source. |
eq | void eq(String label, int got, int want) | No description in source. |
main | void main() | No description in source. |