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§
- events
- Window events,
on_window_open
andon_window_close_requested
.
Structs§
- Window
W
A window container.
Enums§
- Block
Window Load - Defines if a widget load affects the parent window load.
- Save
State - Window or widget persistence config.
Functions§
- accent_
color P
Binds theaccent_color
window var with the property value.- allow_
transparency c
If semi-transparent content is see-through, mixing with the operating system pixels behind the window.- always_
on_ top P
Binds thealways_on_top
window var with the property value.- auto_
size P
Binds theauto_size
window var with the property value.- auto_
size_ origin P
Binds theauto_size_origin
window var with the property value.- chrome
P
Binds thechrome
window var with the property value.- clear_
color P
Window clear color.- color_
scheme P
Binds thecolor_scheme
window var with the property value.- config_
block_ window_ load P
Block window load untilCONFIG.status
is idle.- custom_
chrome_ adorner_ fn P
Adorner property specific for custom chrome overlays.- custom_
chrome_ padding_ fn P
Extra padding for window content in windows that display acustom_chrome_adorner_fn
.- enabled_
buttons P
Binds theenabled_buttons
window var with the property value.- fallback_
chrome - Custom window chrome adorner used when the window manager does not provide one.
- font_
size P
Binds thefont_size
window var with the property value.- frame_
capture_ mode P
Binds theframe_capture_mode
window var with the property value.- headless_
monitor c
Imaginary monitor used by the window when it runs in headless mode.- height
P
Binds theheight
of thesize
window var with the property value.- icon
P
Binds theicon
window var with the property value.- kiosk
c
Lock-in kiosk mode.- max_
height P
Binds theheight
of themax_size
window var with the property value.- max_
size P
Binds themax_size
window var with the property value.- max_
width P
Binds thewidth
of themax_size
window var with the property value.- min_
height P
Binds theheight
of themin_size
window var with the property value.- min_
size P
Binds themin_size
window var with the property value.- min_
width P
Binds thewidth
of themin_size
window var with the property value.- modal
P
Binds themodal
window var with the property value.- monitor
P
Binds themonitor
window var with the property value.- movable
P
Binds themovable
window var with the property value.- needs_
fallback_ chrome P
Gets if is not headless,chrome
istrue
,state
is not fullscreen butWINDOWS.system_chrome
reports the system does not provide window decorations.- on_
close P
On window close.- on_
close_ requested P
On window close requested.- on_
exited_ fullscreen P
On window is no longer fullscreen.- on_
frame_ image_ ready P
On window frame rendered.- on_
fullscreen P
On window enter one of the fullscreen states.- on_load
P
Event just after the window loads.- on_
maximized P
On window maximized.- on_
minimized P
On window minimized.- on_
moved P
On window position changed.- on_open
P
Event just after the window opens.- on_
resized P
On window size changed.- on_
restored P
On window state changed toNormal
.- on_
state_ changed P
On window state changed.- on_
unmaximized P
On window exited the maximized state.- on_
unminimized P
On window exited the minimized state.- parent
P
Binds theparent
window var with the property value.- position
P
Binds theposition
window var with the property value.- prefer_
custom_ chrome P
Gets ifWINDOWS.system_chrome
prefers custom chrome.- render_
mode c
Render performance mode overwrite for this window, if set toNone
theWINDOWS.default_render_mode
is used.- resizable
P
Binds theresizable
window var with the property value.- save_
state P
Save and restore the window state.- save_
state_ node - Helper node for implementing widgets save.
- size
P
Binds thesize
window var with the property value.- start_
focused c
If the window is steals keyboard focus on open.- start_
position c
Defines how the window is positioned when it first opens.- state
P
Binds thestate
window var with the property value.- taskbar_
visible P
Binds thetaskbar_visible
window var with the property value.- title
P
Binds thetitle
window var with the property value.- visible
P
Binds thevisible
window var with the property value.- width
P
Binds thewidth
of thesize
window var with the property value.- x
P
Binds thex
of theposition
window var with the property value.- y
P
Binds they
of theposition
window var with the property value.