Window
A draggable window container for UI elements.
Provides a standard window interface with:
- Draggable header bar
- Optional title text
- Expand/collapse functionality
- Close button support
- Automatic state persistence (position, size, collapsed state)
- Theme customization
- Content scrolling support
Windows automatically save their state to the Context's user data and restore it when recreated with the same ID.
Static Members
Height of the window header bar in pixels
Instance Members
Default is false
, automatically set to true
when any of this instance's observable variables has changed.
Custom theme override for this window
The main content view displayed in the window body
Title text displayed in the window header
Whether the window shows a close button
Whether the window can be collapsed/expanded
Whether to show the window header bar
Alignment of the title text in the header
Computed property that returns true if the content view is scrollable.
Whether the window can be dragged by its header
Optional overlay quad for modal behavior
Creates a new Window with default styling and behavior. Sets up the header, body, and interaction handlers.
Private Members
Pre-rendered font size for title text
Display size for title text
Default X position for new windows
Default Y position for new windows
Minimum drag distance to start window movement
Event when any observable value as changed on this instance.
Name | Type |
---|---|
instance |
Window |
fromSerializedField |
Bool |
Event when theme field changes.
Name | Type |
---|---|
current |
Theme |
previous |
Theme |
Event when contentView field changes.
Name | Type |
---|---|
current |
ceramic.View |
previous |
ceramic.View |
Event when title field changes.
Name | Type |
---|---|
current |
String |
previous |
String |
Event when closable field changes.
Name | Type |
---|---|
current |
Bool |
previous |
Bool |
Event when collapsible field changes.
Name | Type |
---|---|
current |
Bool |
previous |
Bool |
Event when header field changes.
Name | Type |
---|---|
current |
Bool |
previous |
Bool |
Event when titleAlign field changes.
Name | Type |
---|---|
current |
Anonymous |
previous |
Anonymous |
Event when scrolls field changes.
Name | Type |
---|---|
current |
Bool |
previous |
Bool |
Emitted when the expand/collapse button is clicked
Emitted when the header is double-clicked
Emitted when the close button is clicked
Name | Type |
---|---|
info |
ceramic.TouchInfo |
Name | Type |
---|---|
info |
ceramic.TouchInfo |
Name | Type |
---|---|
info |
ceramic.TouchInfo |
Name | Type |
---|---|
contentView |
ceramic.View |
prevContentView |
ceramic.View |
Name | Type |
---|---|
title |
String |
prevTitle |
String |
Name | Type |
---|---|
titleAlign |
Anonymous |
prevTitleAlign |
Anonymous |
Name | Type |
---|---|
closable |
Bool |
prevClosable |
Bool |
Name | Type |
---|---|
collapsible |
Bool |
prevCollapsible |
Bool |
Name | Type |
---|---|
header |
Bool |
prevHeader |
Bool |
Metadata
Name | Parameters |
---|---|
:build |
tracker.macros.ObservableMacro.build() |
:autoBuild |
tracker.macros.ObservableMacro.build() |
:build |
ceramic.macros.EntityMacro.buildForCompletion() |
:autoBuild |
ceramic.macros.EntityMacro.buildForCompletion() |
:build |
tracker.macros.EventsMacro.build() |
:autoBuild |
tracker.macros.EventsMacro.build() |