SleelaDoc API
HTML documentation for the SLeeLa standard library (/lib)
Home › Packages › ui

Package ui

This package contains 45 source unit(s) defining 46 class(es) / struct(s). Each unit below lists its fields (the values it stores) and methods (the actions it performs), with a plain explanation of each.

astrophysics #sleela 2.5 (lib/ui/example/science/astrophysics.sleela)

ScienceAstrophysics class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
bannervoid banner(String t)No description in source.
mainvoid main()No description in source.

chemistry #sleela 2.5 (lib/ui/example/science/chemistry.sleela)

ScienceChemistry class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
bannervoid banner(String t)No description in source.
mainvoid 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.

FieldDeclarationWhat it holds
ALLOW_HORIZONTAL_OVERFLOWstatic final int ALLOW_HORIZONTAL_OVERFLOW = 0SLUITheme 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_AUTOint SCROLL_AUTO = 0Scroll-policy ordinal (mirror the toolkit C ABI: 0=auto on overflow).
btnPlayint btnPlayLive handles the event loop reacts on/to.
btnPauseint btnPauseNo description in source.
btnStopint btnStopNo description in source.
btnRecint btnRecNo description in source.
btnRecStopint btnRecStopNo description in source.
statusLabelint statusLabelNo description in source.
wifiButtonint wifiButtonLower-right status-bar connectivity control and its dismissible menu.
wifiPanelint wifiPanelNo description in source.
wifiStatusLabelint wifiStatusLabelNo description in source.
wifiScanButtonint wifiScanButtonNo description in source.
wifiConnectButtonint wifiConnectButtonNo description in source.
wifiDisconnectButtonint wifiDisconnectButtonNo description in source.
wifiSettingsButtonint wifiSettingsButtonNo description in source.
wifiInfoButtonint wifiInfoButtonNo description in source.
wifiProfileEntryint wifiProfileEntryNo description in source.
wifiCloseButtonint wifiCloseButtonNo description in source.
openMenuIndexint openMenuIndex = -1Menubar strip and its dropdown panels (built from existing ui* widgets).
menuFileButtonint menuFileButtonNo description in source.
menuFilePanelint menuFilePanelNo description in source.
menuFileItem1int menuFileItem1No description in source.
menuFileItem2int menuFileItem2No description in source.
menuMediaButtonint menuMediaButtonNo description in source.
menuMediaPanelint menuMediaPanelNo description in source.
menuMediaItem1int menuMediaItem1No description in source.
menuMediaItem2int menuMediaItem2No description in source.
menuPlaybackButtonint menuPlaybackButtonNo description in source.
menuPlaybackPanelint menuPlaybackPanelNo description in source.
menuPlaybackItem1int menuPlaybackItem1No description in source.
menuPlaybackItem2int menuPlaybackItem2No description in source.
menuHelpButtonint menuHelpButtonNo description in source.
menuHelpPanelint menuHelpPanelNo description in source.
menuHelpItem1int menuHelpItem1No description in source.
menuHelpItem2int menuHelpItem2No description in source.
THEME_GRAYint THEME_GRAY = 7A 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.

MethodSignatureWhat it does
rgbaint rgba(int r, int g, int b, int a)No description in source.
rgbint rgb(int r, int g, int b)No description in source.
clampint clamp(int v, int lo, int hi)No description in source.
intToStrString intToStr(int v)No description in source.
canPlayTypeboolean canPlayType(String mime)Codec gate: the studio consults the registry before offering a control.
playMediavoid playMedia()Shared action helpers keep menu commands and transport buttons consistent.
pauseMediavoid pauseMedia()No description in source.
stopMediavoid stopMedia()No description in source.
startRecordingvoid startRecording()No description in source.
stopRecordingvoid stopRecording()No description in source.
glassThemeint 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.
openMenuvoid openMenu(int which)Show one dropdown at a time; selecting the open menu closes it.
wifiActionUnavailablevoid wifiActionUnavailable(String action)No description in source.
mainvoid 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.

FieldDeclarationWhat it holds
ALLOW_HORIZONTAL_OVERFLOWstatic final int ALLOW_HORIZONTAL_OVERFLOW = 0SLUITheme 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_AUTOint SCROLL_AUTO = 0Scroll-policy ordinal (mirror the toolkit C ABI: 0=auto on overflow).
btnJfxint btnJfxLive handles the event loop reacts on/to.
btnSwingint btnSwingNo description in source.
btnNativeint btnNativeNo description in source.
btnQtint btnQtNo description in source.
statusLabelint statusLabelNo description in source.
wifiButtonint wifiButtonLower-right status-bar connectivity control and its dismissible menu.
wifiPanelint wifiPanelNo description in source.
wifiStatusLabelint wifiStatusLabelNo description in source.
wifiScanButtonint wifiScanButtonNo description in source.
wifiConnectButtonint wifiConnectButtonNo description in source.
wifiDisconnectButtonint wifiDisconnectButtonNo description in source.
wifiSettingsButtonint wifiSettingsButtonNo description in source.
wifiInfoButtonint wifiInfoButtonNo description in source.
wifiProfileEntryint wifiProfileEntryNo description in source.
wifiCloseButtonint wifiCloseButtonNo description in source.
openMenuIndexint openMenuIndex = -1Menubar strip and its dropdown panels (built from existing ui* widgets).
menuFileButtonint menuFileButtonNo description in source.
menuFilePanelint menuFilePanelNo description in source.
menuFileItem1int menuFileItem1No description in source.
menuFileItem2int menuFileItem2No description in source.
menuSettingsButtonint menuSettingsButtonNo description in source.
menuSettingsPanelint menuSettingsPanelNo description in source.
menuSettingsItem1int menuSettingsItem1No description in source.
menuSettingsItem2int menuSettingsItem2No description in source.
menuBackendButtonint menuBackendButtonNo description in source.
menuBackendPanelint menuBackendPanelNo description in source.
menuBackendItem1int menuBackendItem1No description in source.
menuBackendItem2int menuBackendItem2No description in source.
menuHelpButtonint menuHelpButtonNo description in source.
menuHelpPanelint menuHelpPanelNo description in source.
menuHelpItem1int menuHelpItem1No description in source.
menuHelpItem2int menuHelpItem2No description in source.
THEME_BLACKint THEME_BLACK = 5A 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.

MethodSignatureWhat it does
rgbaint rgba(int r, int g, int b, int a)No description in source.
rgbint rgb(int r, int g, int b)No description in source.
selectBackendvoid selectBackend(int which)Mark one accepted backend button as selected (fail-closed: qt stays off).
clampint clamp(int v, int lo, int hi)Clamp an int into [lo, hi] — the heart of GUAL's settings discipline.
intToStrString intToStr(int v)No description in source.
settingsThemeint settingsTheme()gual is the BLACK Standard Pattern: deep black surfaces with light text, supplied by the toolkit preset (no per-colour overrides); metrics only.
openMenuvoid openMenu(int which)Show one dropdown at a time; selecting the open menu closes it.
wifiActionUnavailablevoid wifiActionUnavailable(String action)No description in source.
mainvoid 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.

FieldDeclarationWhat it holds
PADint PAD = 10No description in source.
GAPint GAP = 6No description in source.
VERTICALint VERTICAL = 0No description in source.
HORIZONTALint HORIZONTAL = 1No description in source.
statusLabelint statusLabelNo description in source.
openMenuIndexint openMenuIndex = -1No description in source.
recentOpenboolean recentOpen = falseNo description in source.
panelsOpenboolean panelsOpen = falseNo description in source.
fileButtonint fileButtonNo description in source.
editButtonint editButtonNo description in source.
viewButtonint viewButtonNo description in source.
helpButtonint helpButtonNo description in source.
filePanelint filePanelNo description in source.
editPanelint editPanelNo description in source.
viewPanelint viewPanelNo description in source.
helpPanelint helpPanelNo description in source.
recentToggleint recentToggleNo description in source.
recentPanelint recentPanelNo description in source.
recentOneint recentOneNo description in source.
recentTwoint recentTwoNo description in source.
recentThreeint recentThreeNo description in source.
panelsToggleint panelsToggleNo description in source.
panelsPanelint panelsPanelNo description in source.
panelEditorint panelEditorNo description in source.
panelInspectorint panelInspectorNo description in source.
fileNewint fileNewNo description in source.
fileSaveint fileSaveNo description in source.
editUndoint editUndoNo description in source.
editSelectAllint editSelectAllNo description in source.
viewZoomInint viewZoomInNo description in source.
viewZoomOutint viewZoomOutNo description in source.
helpAboutint helpAboutNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setStatusvoid setStatus(String message)No description in source.
openMenuvoid 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.
toggleRecentFilesvoid toggleRecentFiles()No description in source.
togglePanelsvoid togglePanels()No description in source.
closeMenusvoid closeMenus()No description in source.
mainvoid 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.

FieldDeclarationWhat it holds
THEME_CUSTOMint THEME_CUSTOM = 2SLUITheme preset ordinals (mirror SLUIThemeId in the toolkit C ABI).
SCROLL_AUTOint SCROLL_AUTO = 0Scroll-policy ordinal (mirror the toolkit C ABI: 0=auto on overflow).
btnAuthorizeint btnAuthorizeLive handles the event loop reacts on/to.
btnRunint btnRunNo description in source.
btnResetint btnResetNo description in source.
statusLabelint statusLabelNo description in source.
wifiMenuOpenboolean wifiMenuOpen = falseNo description in source.
wifiButtonint wifiButtonLower-right status-bar connectivity control and its dismissible menu.
wifiPanelint wifiPanelNo description in source.
wifiStatusLabelint wifiStatusLabelNo description in source.
wifiScanButtonint wifiScanButtonNo description in source.
wifiConnectButtonint wifiConnectButtonNo description in source.
wifiDisconnectButtonint wifiDisconnectButtonNo description in source.
wifiSettingsButtonint wifiSettingsButtonNo description in source.
wifiInfoButtonint wifiInfoButtonNo description in source.
wifiProfileEntryint wifiProfileEntryNo description in source.
wifiCloseButtonint wifiCloseButtonNo description in source.
consoleMenuIndexint consoleMenuIndex = -1Reusable menu-bar interaction state for the command console.
menuFileButtonint menuFileButtonNo description in source.
menuEditButtonint menuEditButtonNo description in source.
menuViewButtonint menuViewButtonNo description in source.
menuHelpButtonint menuHelpButtonNo description in source.
menuFilePanelint menuFilePanelNo description in source.
menuEditPanelint menuEditPanelNo description in source.
menuViewPanelint menuViewPanelNo description in source.
menuHelpPanelint menuHelpPanelNo description in source.
menuFileNewint menuFileNewNo description in source.
menuFileSaveint menuFileSaveNo description in source.
menuEditAuditint menuEditAuditNo description in source.
menuEditClearint menuEditClearNo description in source.
menuViewStatusint menuViewStatusNo description in source.
menuViewCertificatesint menuViewCertificatesNo description in source.
menuHelpAboutint menuHelpAboutNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
openConsoleMenuvoid openConsoleMenu(int index)No description in source.
closeConsoleMenusvoid closeConsoleMenus()No description in source.
rgbaint rgba(int r, int g, int b, int a)0xRRGGBBAA colours for the military "metal / blue-hue" palette.
rgbint rgb(int r, int g, int b)No description in source.
militaryThemeint 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.
toggleWifiMenuvoid toggleWifiMenu()No description in source.
closeWifiMenuvoid closeWifiMenu()No description in source.
wifiActionUnavailablevoid wifiActionUnavailable(String action)No description in source.
mainvoid 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.

FieldDeclarationWhat it holds
VERTICALint VERTICAL = 0SLUITheme preset ordinals (mirror SLUIThemeId in the toolkit C ABI). Orientation + scroll-policy ordinals (mirror the toolkit C ABI).
HORIZONTALint HORIZONTAL = 1No description in source.
SCROLL_AUTOint SCROLL_AUTO = 0No description in source.
wifiButtonint wifiButtonint aboutPanel; // panel: about/help int statusLabel; // the status line text Lower-right status-bar connectivity control and its dismissible menu.
wifiPanelint wifiPanelNo description in source.
wifiStatusLabelint wifiStatusLabelNo description in source.
wifiScanButtonint wifiScanButtonNo description in source.
wifiConnectButtonint wifiConnectButtonNo description in source.
wifiDisconnectButtonint wifiDisconnectButtonNo description in source.
wifiSettingsButtonint wifiSettingsButtonNo description in source.
wifiInfoButtonint wifiInfoButtonNo description in source.
wifiProfileEntryint wifiProfileEntryNo description in source.
wifiCloseButtonint wifiCloseButtonNo description in source.
btnDocsint btnDocsNo description in source.
btnAboutint btnAboutNo description in source.
btnSaveint btnSaveNo description in source.
btnNewint btnNewNo description in source.
openMenuIndexint openMenuIndex = -1Menubar strip and its dropdown panels (built from existing ui* widgets).
menuFileButtonint menuFileButtonNo description in source.
menuFilePanelint menuFilePanelNo description in source.
menuFileItem1int menuFileItem1No description in source.
menuFileItem2int menuFileItem2No description in source.
menuEditButtonint menuEditButtonNo description in source.
menuEditPanelint menuEditPanelNo description in source.
menuEditItem1int menuEditItem1No description in source.
menuEditItem2int menuEditItem2No description in source.
menuViewButtonint menuViewButtonNo description in source.
menuViewPanelint menuViewPanelNo description in source.
menuViewItem1int menuViewItem1No description in source.
menuViewItem2int menuViewItem2No description in source.
menuHelpButtonint menuHelpButtonNo description in source.
menuHelpPanelint menuHelpPanelNo description in source.
menuHelpItem1int menuHelpItem1No description in source.
menuHelpItem2int menuHelpItem2No description in source.
THEME_WHITEint THEME_WHITE = 4Standard 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.

MethodSignatureWhat it does
rgbaint rgba(int r, int g, int b, int a)No description in source.
rgbint rgb(int r, int g, int b)No description in source.
baselineThemeint 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.
showPanelvoid showPanel(int which)Show exactly one panel; mark the active toolbar button as suggested.
openMenuvoid openMenu(int which)Show one dropdown at a time; selecting the open menu closes it.
wifiActionUnavailablevoid wifiActionUnavailable(String action)No description in source.
mainvoid 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.

FieldDeclarationWhat it holds
SCROLL_AUTOint SCROLL_AUTO = 0SLUITheme preset ordinals (mirror SLUIThemeId in the toolkit C ABI). Scroll-policy ordinal (mirror the toolkit C ABI: 0=auto on overflow).
btnConfirmint btnConfirmLive handles the event loop reacts on/to.
btnFadeint btnFadeNo description in source.
statusLabelint statusLabelNo description in source.
wifiButtonint wifiButtonLower-right status-bar connectivity control and its dismissible menu.
wifiPanelint wifiPanelNo description in source.
wifiStatusLabelint wifiStatusLabelNo description in source.
wifiScanButtonint wifiScanButtonNo description in source.
wifiConnectButtonint wifiConnectButtonNo description in source.
wifiDisconnectButtonint wifiDisconnectButtonNo description in source.
wifiSettingsButtonint wifiSettingsButtonNo description in source.
wifiInfoButtonint wifiInfoButtonNo description in source.
wifiProfileEntryint wifiProfileEntryNo description in source.
wifiCloseButtonint wifiCloseButtonNo description in source.
openMenuIndexint openMenuIndex = -1Menubar strip and its dropdown panels (built from existing ui* widgets).
menuFileButtonint menuFileButtonNo description in source.
menuFilePanelint menuFilePanelNo description in source.
menuFileItem1int menuFileItem1No description in source.
menuFileItem2int menuFileItem2No description in source.
menuEffectsButtonint menuEffectsButtonNo description in source.
menuEffectsPanelint menuEffectsPanelNo description in source.
menuEffectsItem1int menuEffectsItem1No description in source.
menuEffectsItem2int menuEffectsItem2No description in source.
menuViewButtonint menuViewButtonNo description in source.
menuViewPanelint menuViewPanelNo description in source.
menuViewItem1int menuViewItem1No description in source.
menuViewItem2int menuViewItem2No description in source.
menuHelpButtonint menuHelpButtonNo description in source.
menuHelpPanelint menuHelpPanelNo description in source.
menuHelpItem1int menuHelpItem1No description in source.
menuHelpItem2int menuHelpItem2No description in source.
THEME_BLUEint THEME_BLUE = 6A 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.

MethodSignatureWhat it does
rgbaint rgba(int r, int g, int b, int a)No description in source.
rgbint rgb(int r, int g, int b)No description in source.
clampint clamp(int v, int lo, int hi)Every effect knob clamps to a safe window (the THUAL discipline).
intToStrString intToStr(int v)No description in source.
studioThemeint studioTheme()thual is the BLUE Standard Pattern: blue-tinted surfaces with light text, supplied by the toolkit preset (no per-colour overrides); metrics only.
openMenuvoid openMenu(int which)Show one dropdown at a time; selecting the open menu closes it.
wifiActionUnavailablevoid wifiActionUnavailable(String action)No description in source.
mainvoid main()No description in source.

guide-chain-syntax #sleela 2.5 (lib/ui/example/science/guide-chain-syntax.sleela)

Perfect class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
growthint growththe seated growth, accumulated as each Guide fires
trailString trailNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
createvoid create()No description in source.
patchvoid patch()--- the Guides: each a zero-argument method, seated via :: ---
seedvoid seed()No description in source.
aimvoid aim()No description in source.
guidevoid guide()No description in source.
totalint total()No description in source.
chainString chain()No description in source.

GuideChainSyntax class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

layout-demo #sleela 2.5 (lib/ui/layout-demo.sleela)

LayoutDemo class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

layout-driver-demo #sleela 2.5 (lib/ui/layout-driver-demo.sleela)

LayoutDriverDemo class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
planSettingsSLLayoutFrame 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.
printPlanvoid printPlan(SLLayoutFrame f)No description in source.
mainvoid main()No description in source.

math #sleela 2.5 (lib/ui/example/science/math.sleela)

ScienceMath class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
bannervoid banner(String t)No description in source.
mainvoid main()No description in source.

philosophers-constructor #sleela 2.5 (lib/ui/example/science/philosophers-constructor.sleela)

PhilosophersConstructorExample class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
buildOnevoid buildOne(String title, int quorum, int seconds)Build one Constructor, run it for a duration, and print its report.
mainvoid main()No description in source.

physics #sleela 2.5 (lib/ui/example/science/physics.sleela)

SciencePhysics class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
bannervoid banner(String t)No description in source.
mainvoid 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);

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
MAX_ITEMSstatic final int MAX_ITEMS = 256No description in source.
countint countNo description in source.
boxesSLLayoutBox[] boxesNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
createvoid create()No description in source.
addint add(int px, int py, int w, int h)Add a child at exact x/y/width/height (relative to the container origin).
sizeint size()No description in source.
arrangevoid 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().
boxOfSLLayoutBox boxOf(int index)No description in source.
honoredboolean 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLButton #sleela 2.5 (lib/ui/SLButton.sleela)

SLButton class

Defines the SLeeLa standard-library type SLButton used within the ui library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLComponentQuality #sleela 2.5 (lib/ui/SLComponentQuality.sleela)

SLComponentQuality class

SLComponentQuality — the per-COMPONENT QUALITY descriptor that

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
ROLE_BODYstatic final int ROLE_BODY = 0ROLE: which theme surface/text the component reads as.
ROLE_SURFACEstatic final int ROLE_SURFACE = 1No description in source.
ROLE_CHROMEstatic final int ROLE_CHROME = 2No description in source.
ROLE_ACCENTstatic final int ROLE_ACCENT = 3No description in source.
EMPHASIS_NORMALstatic final int EMPHASIS_NORMAL = 0EMPHASIS: normal, the single primary action, or a destructive action.
EMPHASIS_PRIMARYstatic final int EMPHASIS_PRIMARY = 1No description in source.
EMPHASIS_DANGERstatic final int EMPHASIS_DANGER = 2No description in source.
roleint roleNo description in source.
emphasisint emphasisNo description in source.
interactiveint interactive1 = enabled/interactive, 0 = disabled (greyed out)
visibleint visible1 = shown, 0 = hidden. A hidden component takes no space and is not drawn.
marginTopint marginTopMargin (breathing room) around the component, in px, per edge.
marginRightint marginRightNo description in source.
marginBottomint marginBottomNo description in source.
marginLeftint marginLeftNo description in source.
iconSymbolString iconSymbolOptional leading icon: a named theme symbol (e.g. "save", "trash") and/or an asset path. Empty strings mean "no icon".
iconAssetString iconAssetNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
createvoid create()Default quality: body role, no emphasis, interactive, shown, no margin, no icon.
asBodyvoid asBody()---- role (fluent one-call setters, beginner-friendly) ------------------
asSurfacevoid asSurface()No description in source.
asChromevoid asChrome()No description in source.
asAccentvoid asAccent()No description in source.
setRolevoid setRole(int r)No description in source.
getRoleint getRole()No description in source.
normalvoid normal()---- emphasis -----------------------------------------------------------
primaryvoid primary()No description in source.
dangervoid danger()No description in source.
setEmphasisvoid setEmphasis(int e)No description in source.
getEmphasisint getEmphasis()No description in source.
isPrimaryboolean isPrimary()No description in source.
isDangerboolean isDanger()No description in source.
enablevoid enable()---- interactivity ------------------------------------------------------
disablevoid disable()No description in source.
setInteractivevoid setInteractive(boolean on)No description in source.
isInteractiveboolean isInteractive()No description in source.
showvoid show()---- visibility --------------------------------------------------------- A hidden component is not drawn and (in a stack) collapses to take no space; the native realizer honors it with uiWidgetVisible.
hidevoid hide()No description in source.
setVisiblevoid setVisible(boolean on)No description in source.
isVisibleboolean isVisible()No description in source.
marginvoid margin(int px)---- margin (breathing room around the component, per edge, in px) ------ Uniform margin on all four edges.
setMarginsvoid setMargins(int top, int right, int bottom, int left)Independent per-edge margins (negatives clamped to 0).
getMarginTopint getMarginTop()No description in source.
getMarginRightint getMarginRight()No description in source.
getMarginBottomint getMarginBottom()No description in source.
getMarginLeftint getMarginLeft()No description in source.
hasMarginboolean hasMargin()True when any edge has a non-zero margin.
iconvoid icon(String symbol)---- icon (optional leading symbol / asset) ----------------------------- Set a named theme symbol (e.g. "save", "trash", "search").
iconFromAssetvoid iconFromAsset(String assetPath)Set an asset-path icon (e.g. a file the host loads).
clearIconvoid clearIcon()Clear any icon.
getIconSymbolString getIconSymbol()No description in source.
getIconAssetString getIconAsset()No description in source.
hasIconboolean hasIcon()True when a symbol or asset icon has been set.
roleNameString roleName()The role name, in the theme's own vocabulary.
emphasisNameString emphasisName()The emphasis name.
describeString describe()A one-line account of the quality, for logs/inspection.
honoredboolean 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

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);

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
SIDE_TOPstatic final int SIDE_TOP = 0No description in source.
SIDE_BOTTOMstatic final int SIDE_BOTTOM = 1No description in source.
SIDE_LEFTstatic final int SIDE_LEFT = 2No description in source.
SIDE_RIGHTstatic final int SIDE_RIGHT = 3No description in source.
SIDE_FILLstatic final int SIDE_FILL = 4No description in source.
MAX_ITEMSstatic final int MAX_ITEMS = 64No description in source.
countint countNo description in source.
boxesSLLayoutBox[] boxesNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
createvoid create()No description in source.
dockItemint dockItem(int s, int thicknessPx)No description in source.
topint top(int h)One-call helpers per region, in the order you dock them.
bottomint bottom(int h)No description in source.
leftint left(int w)No description in source.
rightint right(int w)No description in source.
fillint fill()The centre child that fills whatever remains (use at most one).
sizeint size()No description in source.
arrangevoid arrange(int x, int y, int w, int h)No description in source.
boxOfSLLayoutBox boxOf(int index)No description in source.
honoredboolean 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);

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
MAX_ITEMSstatic final int MAX_ITEMS = 256No description in source.
MIN_CELL_PXstatic final int MIN_CELL_PX = 64the 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.
colsint colsNo description in source.
countint countNo description in source.
gapPxint gapPxNo description in source.
boxesSLLayoutBox[] boxesNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
createvoid create()No description in source.
columnsvoid columns(int c)Number of columns (at least 1).
getColumnsint getColumns()No description in source.
getGapint getGap()The gap, in px, between adjacent cells (used by a native realizer).
gapvoid gap(int px)No description in source.
padvoid pad(int p)No description in source.
addint add()Add one cell (grid cells are evenly sized, so no per-cell size needed).
sizeint size()No description in source.
rowsint rows()How many rows the current cell count needs for the chosen column count.
naturalWidthForint naturalWidthFor(int cellW)No description in source.
naturalHeightForint naturalHeightFor(int cellH)No description in source.
naturalWidthint naturalWidth()The assumed minimum width using the default assumed cell size.
naturalHeightint naturalHeight()The assumed minimum height using the default assumed cell size.
arrangevoid arrange(int x, int y, int w, int h)No description in source.
boxOfSLLayoutBox boxOf(int index)No description in source.
honoredboolean 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLLayout #sleela 2.5 (lib/ui/SLLayout.sleela)

SLLayout class

Defines the SLeeLa standard-library type SLLayout used within the ui library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
createvoid create()No description in source.
setvoid set(int px, int py, int w, int h)Set the rectangle directly (widths/heights below zero clamp to zero).
getXint getX()No description in source.
getYint getY()No description in source.
getWidthint getWidth()No description in source.
getHeightint getHeight()No description in source.
rightint right()No description in source.
bottomint bottom()No description in source.
containsboolean contains(int px, int py)Does a point fall inside this box? Useful for hit-testing.
describeString describe()No description in source.

SLLayoutDriver #sleela 2.5 (lib/ui/SLLayoutDriver.sleela)

SLLayoutDriver class

SLLayoutDriver — the bridge that lets the pure-SLeeLa Standard

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
ORIENT_VERTICALstatic final int ORIENT_VERTICAL = 0uiBox 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_HORIZONTALstatic final int ORIENT_HORIZONTAL = 1No description in source.
LAYOUT_STACKstatic final int LAYOUT_STACK = 0SLLayoutFrame layout-kind ordinals (mirror SLLayoutFrame.LAYOUT_*).
LAYOUT_GRIDstatic final int LAYOUT_GRID = 1No description in source.
ALIGN_FILLstatic final int ALIGN_FILL = 3uiWidgetAlign ordinal for "stretch to fill" (mirror SLUIAlign.FILL).
lastContainerint lastContainerthe last native container handle this driver created (-1 = none)

Methods — the actions this unit can perform.

MethodSignatureWhat it does
createvoid create()No description in source.
containerint container()The native container handle produced by the most recent realize* call.
realizeint realize(int parentHandle, SLLayoutFrame frame)No description in source.
realizeStackint realizeStack(int parentHandle, SLLayoutFrame frame)No description in source.
realizeGridint realizeGrid(int parentHandle, SLLayoutFrame frame)No description in source.
applyComponentvoid applyComponent(SLLayoutFrame frame, int index, int childHandle)No description in source.
applyQualityvoid applyQuality(SLComponentQuality q, int childHandle)No description in source.
applyNamedvoid applyNamed(SLLayoutFrame frame, String name, int childHandle)No description in source.
isFlexibleComponentboolean 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.
honoredboolean honored()No description in source.

SLLayoutFrame #sleela 2.5 (lib/ui/SLLayoutFrame.sleela)

SLLayoutFrame class

SLLayoutFrame — the basic UI interface and the organizing root.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
LAYOUT_STACKstatic final int LAYOUT_STACK = 0which standard layout governs this Frame's children
LAYOUT_GRIDstatic final int LAYOUT_GRID = 1No description in source.
MAX_COMPONENTSstatic final int MAX_COMPONENTS = 128No description in source.
MIN_FRAME_Wstatic final int MIN_FRAME_W = 160A Frame never opens smaller than this, no matter how few components it has: the absolute assumed floor for a usable starting window.
MIN_FRAME_Hstatic final int MIN_FRAME_H = 120No description in source.
MODE_NORMALstatic final int MODE_NORMAL = 0presentation mode: NORMAL uses the assumed/explicit size; FULLSCREEN fills the supplied screen rectangle.
MODE_FULLSCREENstatic final int MODE_FULLSCREEN = 1No description in source.
frameTitleString frameTitleNo description in source.
kindint kindNo description in source.
stackSLStackLayout stackthe governing layout (exactly one; chosen by a useXxx() call)
gridSLGridLayout gridNo description in source.
namesString[] namesthe named components the Frame organizes, in add order
qualitiesSLComponentQuality[] qualitieseach component's quality (role + emphasis + interactivity), parallel to names
countint countNo description in source.
placedint placed1 once place() has arranged the layout
modeint modepresentation mode: MODE_NORMAL or MODE_FULLSCREEN, set by how it was placed

Methods — the actions this unit can perform.

MethodSignatureWhat it does
createvoid create()No description in source.
titlevoid title(String t)No description in source.
getTitleString getTitle()No description in source.
useColumnvoid useColumn(int gap, int pad)---- choose the layout that organizes the components -------------------- A vertical stack (gap, uniform padding). The 90% case.
useRowvoid useRow(int gap, int pad)A horizontal stack.
useGridvoid useGrid(int columns, int gap, int pad)A grid (columns, gap, uniform padding).
addint 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.
sizeint size()No description in source.
qualityAtSLComponentQuality 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).
qualityOfSLComponentQuality qualityOf(String name)The quality descriptor for a named component, or null if unknown.
setQualityAtvoid setQualityAt(int index, SLComponentQuality q)Replace a component's quality wholesale (ignored for an unknown index).
indexOfint indexOf(String name)the index of a named component, or -1 if the Frame never heard of it
placevoid place(int x, int y, int w, int h)---- place the Frame, which arranges every component relative to it -----
assumedWidthint assumedWidth()No description in source.
assumedHeightint assumedHeight()No description in source.
placeAssumedvoid placeAssumed(int x, int y)No description in source.
placeFullscreenvoid placeFullscreen(int x, int y, int screenW, int screenH)No description in source.
isFullscreenboolean isFullscreen()True when this Frame was placed in full-screen mode.
getModeint getMode()The presentation mode: MODE_NORMAL or MODE_FULLSCREEN.
boxOfSLLayoutBox boxOf(String name)---- read a component's rectangle, in reference to the Frame ------------
boxAtSLLayoutBox boxAt(int index)No description in source.
getLayoutKindint getLayoutKind()---- read the plan (for a native realizer such as SLLayoutDriver) ------- Which standard layout governs this Frame: LAYOUT_STACK or LAYOUT_GRID.
isRowLayoutboolean isRowLayout()True when the governing layout is a horizontal row stack.
getGapint getGap()The gap (px) the governing layout uses between adjacent children/cells.
getColumnsint getColumns()The column count for a grid Frame (1 for a stack Frame).
isFlexibleAtboolean isFlexibleAt(int index)True if component `index` is flexible (stack size 0). Grid cells are never flexible here — the grid sizes its own cells.
getXint getX()the Frame's own rectangle, for a host to draw its border/title
getYint getY()No description in source.
getWidthint getWidth()No description in source.
getHeightint getHeight()No description in source.
isPlacedboolean isPlaced()No description in source.
honoredboolean 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);

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
createvoid create()No description in source.
columnSLStackLayout column(int gap, int pad)A vertical stack with the given gap and uniform padding.
rowSLStackLayout row(int gap, int pad)A horizontal stack with the given gap and uniform padding.
gridSLGridLayout grid(int columns, int gap, int pad)A grid with the given column count, gap, and uniform padding.
dockSLDockLayout dock()An edge-dock layout (toolbar/sidebar/status + centre fill).
absoluteSLAbsoluteLayout absolute()Pixel-exact placement.
familiesString 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLMenu #sleela 2.5 (lib/ui/SLMenu.sleela)

SLMenu class

Defines the SLeeLa standard-library type SLMenu used within the ui library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLMenuItem #sleela 2.5 (lib/ui/SLMenuItem.sleela)

SLMenuItem class

Defines the SLeeLa standard-library type SLMenuItem used within the ui library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

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).

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
AXIS_ROWstatic final int AXIS_ROW = 0axis: 0 = row (horizontal), 1 = column (vertical)
AXIS_COLUMNstatic final int AXIS_COLUMN = 1No description in source.
MAX_ITEMSstatic final int MAX_ITEMS = 128the most a single stack will hold
MIN_FLEX_PXstatic final int MIN_FLEX_PX = 48the 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_PXstatic final int MIN_CROSS_PX = 120the 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).
axisint axisNo description in source.
sizesint[] sizesrequested main-axis size per child (0 = flexible)
countint countNo description in source.
gapPxint gapPxNo description in source.
boxesSLLayoutBox[] boxescomputed rectangles, one per child, filled by arrange()

Methods — the actions this unit can perform.

MethodSignatureWhat it does
createvoid create()No description in source.
rowvoid row()---- orientation (pick one; column is the default) ----------------------
columnvoid column()No description in source.
isRowboolean isRow()No description in source.
gapvoid gap(int px)---- spacing (beginner-friendly one-call helpers) -----------------------
padvoid pad(int p)No description in source.
padEachvoid padEach(int l, int t, int r, int b)No description in source.
addint 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.
sizeint size()No description in source.
getGapint getGap()---- read the plan (for a native realizer / inspector) ------------------ The gap, in px, between adjacent children along the main axis.
isFlexibleAtboolean 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.
naturalMainint naturalMain()No description in source.
naturalCrossint naturalCross()No description in source.
naturalWidthint naturalWidth()The assumed minimum WIDTH (main for a row, cross for a column).
naturalHeightint naturalHeight()The assumed minimum HEIGHT (main for a column, cross for a row).
arrangevoid arrange(int x, int y, int w, int h)---- arrange: compute every child's rectangle inside (x,y,w,h) ----------
boxOfSLLayoutBox boxOf(int index)---- read the computed rectangles ---------------------------------------
honoredboolean 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
nameString namethe flavor human name and its one-word psychological intent
intentString intentNo description in source.
darkint dark1 if this is a dark-surface flavor, 0 if light (drives default text)
bgString bg---- the unified role tokens (hex "#RRGGBB") --------------------------- page background (the deepest/furthest surface)
surfaceString surfacemain application surface, drawn over bg
surfaceHiString surfaceHia raised/hover surface, one step above surface
chromeString chrometitle bar / menu bar chrome
borderString borderdividers and outlines
textString textprimary text, readable on surface (WCAG AA)
textDimString textDimsecondary/dim text, still legible
accentString accentthe single interactive accent color
accentTextString accentTexttext/icon drawn ON the accent
focusString focuskeyboard-focus ring (visible, non-color-only cue still required elsewhere)
dangerString dangerstatus colors (shared across flavors for learnability)
successString successNo description in source.
warningString warningNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
createvoid create()No description in source.
setvoid set(String n, String intnt, int isDark,Fill every token in one call (used by the flavor presets).
isDarkboolean isDark()No description in source.
getNameString getName()No description in source.
getIntentString getIntent()No description in source.
toStyleString toStyle()A compact style descriptor the renderer applies ("theme:<name>/bg/.../accent").
describeString 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLTextArea #sleela 2.5 (lib/ui/SLTextArea.sleela)

SLTextArea class

Defines the SLeeLa standard-library type SLTextArea used within the ui library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLTextField #sleela 2.5 (lib/ui/SLTextField.sleela)

SLTextField class

Defines the SLeeLa standard-library type SLTextField used within the ui library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLTheme #sleela 2.5 (lib/ui/SLTheme.sleela)

SLTheme class

Defines the SLeeLa standard-library type SLTheme used within the ui library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLThemeFlavor #sleela 2.5 (lib/ui/SLThemeFlavor.sleela)

SLThemeFlavor class

SLThemeFlavor — the four standard UI flavors as ready-made,

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
BLUEstatic final int BLUE = 0the four standard flavor ordinals
GRAYstatic final int GRAY = 1No description in source.
BLACKstatic final int BLACK = 2No description in source.
WHITEstatic final int WHITE = 3No description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
createvoid create()No description in source.
blueSLStandardTheme blue()---- Blue: trust, calm, sustained focus ---------------------------------
graySLStandardTheme gray()---- Gray: neutral, professional, low eye-fatigue -----------------------
blackSLStandardTheme black()---- Black: depth, focus, premium restraint ----------------------------
whiteSLStandardTheme white()---- White: clarity, openness, daylight ---------------------------------
byIdSLStandardTheme byId(int id)Build a flavor by ordinal (BLUE/GRAY/BLACK/WHITE); defaults to Black.
byNameSLStandardTheme 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.
flavorsString 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
flavorsSLThemeFlavor flavorsthe flavor factory
hintString hintthe hint as given, the flavor chosen, and whether it was recognized
chosenString chosenNo description in source.
recognizedint recognizedNo description in source.
fallbackNameString fallbackNamethe default flavor name when a hint is unknown/empty

Methods — the actions this unit can perform.

MethodSignatureWhat it does
createvoid create()No description in source.
setFallbackvoid setFallback(String flavorName)Set the default flavor used when a hint is unknown or empty.
resolveSLStandardTheme 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).
wasRecognizedboolean wasRecognized()No description in source.
getHintString getHint()No description in source.
getChosenString getChosen()No description in source.
reportString 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.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLView #sleela 2.5 (lib/ui/SLView.sleela)

SLView class

Defines the SLeeLa standard-library type SLView used within the ui library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLWidget #sleela 2.5 (lib/ui/SLWidget.sleela)

SLWidget class

Defines the SLeeLa standard-library type SLWidget used within the ui library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

SLWindow #sleela 2.5 (lib/ui/SLWindow.sleela)

SLWindow class

Defines the SLeeLa standard-library type SLWindow used within the ui library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

sociology #sleela 2.5 (lib/ui/example/science/sociology.sleela)

ScienceSociology class

Methods — the actions this unit can perform.

MethodSignatureWhat it does
bannervoid banner(String t)No description in source.
mainvoid main()No description in source.

theme-demo #sleela 2.5 (lib/ui/theme-demo.sleela)

ThemeDemo class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

verify-pixel-perfect #sleela 2.5 (lib/ui/verify-pixel-perfect.sleela)

VerifyPixelPerfect class

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
passint passNo description in source.
failint failNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
checkvoid check(String label, boolean cond)No description in source.
eqvoid eq(String label, int got, int want)No description in source.
mainvoid main()No description in source.