DrawDesktopButton

Handles the drawing properties specific to the desktop button.

Properties

decoratenametypedescription
derefdraw_superDrawQuadInherits properties from DrawQuad.
livehoverf32Represents the hover state.
livepressedf32Represents the pressed state.
livebutton_typeDesktopButtonTypeSpecifies the type of desktop button (e.g., minimize, maximize, close).

Example

#![allow(unused)]
fn main() {
draw_bg: {
    button_type: WindowMin,
}
}

DesktopButtonType

An enumeration defining different types of desktop buttons.

Properties

decoratenametypedescription
liveWindowsMinshader_enum(1)Represents the minimize button.
liveWindowsMaxshader_enum(2)Represents the maximize button.
liveWindowsMaxToggledshader_enum(3)Represents the toggled maximize button.
liveWindowsCloseshader_enum(4)Represents the close button.
liveXRModeshader_enum(5)Represents the XR mode button.
pickFullscreenshader_enum(6)Represents the fullscreen button.

Example

#![allow(unused)]
fn main() {
button_type: WindowMin,
button_type: WindowMax,
button_type: Fullscreen,
}