Crate zng_wgt_window
source ·Expand description
Window widget, properties, properties and nodes.
§Crate
This crate is part of the zng
project.
§Cargo Features
This crate provides 2 feature flags, 1 enabled by default.
§"debug_default"
Enable the zng-wgt
crate debug defaults.
Enabled by default.
§"dyn_closure"
Enable the zng-wgt
crate dynamic closures.
Modules§
- Window events,
on_window_open
andon_window_close_requested
.
Structs§
W
A window container.
Enums§
- Defines if a widget load affects the parent window load.
- Window or widget persistence config.
Functions§
P
Binds theaccent_color
window var with the property value.c
If semi-transparent content is see-through, mixing with the operating system pixels behind the window.P
Binds thealways_on_top
window var with the property value.P
Binds theauto_size
window var with the property value.P
Binds theauto_size_origin
window var with the property value.P
Binds thechrome
window var with the property value.P
Window clear color.P
Binds thecolor_scheme
window var with the property value.P
Block window load untilCONFIG.status
is idle.P
Adorner property specific for custom chrome overlays.P
Extra padding for window content in windows that display acustom_chrome_adorner_fn
.P
Binds theenabled_buttons
window var with the property value.- Custom window chrome adorner used when the window manager does not provide one.
P
Binds thefont_size
window var with the property value.P
Binds theframe_capture_mode
window var with the property value.c
Imaginary monitor used by the window when it runs in headless mode.P
Binds theicon
window var with the property value.c
Lock-in kiosk mode.P
Binds themax_size
window var with the property value.P
Binds themin_size
window var with the property value.P
Binds themodal
window var with the property value.P
Binds themonitor
window var with the property value.P
Binds themovable
window var with the property value.P
Gets if is not headless,chrome
istrue
,state
is not fullscreen butWINDOWS.system_chrome
reports the system does not provide window decorations.P
On window close.P
On window close requested.P
On window is no longer fullscreen.P
On window frame rendered.P
On window enter one of the fullscreen states.P
Event just after the window loads.P
On window maximized.P
On window minimized.P
On window position changed.P
Event just after the window opens.P
On window size changed.P
On window state changed toNormal
.P
On window state changed.P
On window exited the maximized state.P
On window exited the minimized state.P
Binds theparent
window var with the property value.P
Binds theposition
window var with the property value.P
Gets ifWINDOWS.system_chrome
prefers custom chrome.c
Render performance mode overwrite for this window, if set toNone
theWINDOWS.default_render_mode
is used.P
Binds theresizable
window var with the property value.P
Save and restore the window state.- Helper node for implementing widgets save.
P
Binds thesize
window var with the property value.c
If the window is steals keyboard focus on open.c
Defines how the window is positioned when it first opens.P
Binds thestate
window var with the property value.P
Binds thetaskbar_visible
window var with the property value.P
Binds thetitle
window var with the property value.P
Binds thevisible
window var with the property value.