Module window

Source
Expand description

Window creation / interaction with the OS’ windowing API

Structs§

AndroidHandle
AzStringPair
CallCallbacksResult
CursorTypeHitTest
DebugState
Toggles webrender debug flags (will make stuff appear on the screen that you might not want to - used for debugging purposes)
FullHitTest
FullWindowState
IOSHandle
IconKey
Key that is used for checking whether a window icon has changed - this way azul doesn’t need to diff the actual bytes, just the icon key. Use IconKey::new() to generate a new, unique key
KeyboardState
Determines which keys are pressed currently (modifiers, etc.)
LargeWindowIconBytes
16x16x4 bytes icon
LinuxWindowOptions
LogicalPosition
LogicalRect
LogicalRectVec
LogicalSize
MacOSHandle
MacWindowOptions
Menu
Menu struct (context menu, dropdown menu, context menu)
MenuCallback
Menu callback: What data / function pointer should be called when the menu item is clicked?
MenuItemVec
Monitor
MonitorVec
MouseState
Mouse position, cursor type, user scroll input, etc.
PhysicalPosition
PhysicalSize
PlatformSpecificOptions
RendererOptions
ScanCodeVec
ScrollResult
ScrollState
ScrollStates
SmallWindowIconBytes
16x16x4 bytes icon
StringMenuItem
StringPairVec
TaskBarIcon
256x256x4 bytes window icon
TouchState
VideoMode
VideoModeVec
VirtualKeyCodeCombo
VirtualKeyCodeVec
WasmWindowOptions
WaylandHandle
WaylandTheme
WebHandle
WindowCreateOptions
WindowFlags
WindowId
Each default callback is identified by its ID (not by it’s function pointer), since multiple IDs could point to the same function.
WindowInternal
WindowInternalInit
WindowSize
WindowState
WindowsHandle
WindowsWindowOptions
XWindowTypeVec
XcbHandle
XlibHandle

Enums§

AcceleratorKey
Utility function for easier creation of a keymap - i.e. [vec![Ctrl, S], my_function]
ContextMenuMouseButton
CursorPosition
FullScreenMode
HwAcceleration
ImePosition
LogicalRectVecDestructor
MenuItem
MenuItemIcon
MenuItemState
Describes the state of the menu
MenuItemVecDestructor
MenuPopupPosition
Position of where the menu should popup on the screen
MonitorVecDestructor
MouseCursorType
OptionChar
OptionHwndHandle
OptionKeyboardState
OptionLogicalPosition
OptionLogicalSize
OptionMenu
OptionMenuCallback
OptionMenuItemIcon
OptionMouseCursorType
OptionMouseState
OptionPhysicalPositionI32
OptionPhysicalSizeF32
OptionPhysicalSizeU32
OptionRendererOptions
OptionRendererType
OptionStringPairVec
OptionTaskBarIcon
OptionVirtualKeyCode
OptionVirtualKeyCodeCombo
OptionWaylandTheme
OptionWindowIcon
OptionWindowState
OptionWindowTheme
OptionX11Visual
ProcessEventResult
RawWindowHandle
RendererType
ScanCodeVecDestructor
Srgb
StringPairVecDestructor
UpdateFocusWarning
UserAttentionType
VideoModeVecDestructor
VirtualKeyCode
Symbolic name for a keyboard key, does NOT take the keyboard locale into account
VirtualKeyCodeVecDestructor
Vsync
WindowFrame
WindowIcon
WindowPosition
WindowTheme
State, size, etc of the window, for comparing to the last frame
XWindowType
X window type. Maps directly to _NET_WM_WINDOW_TYPE.
XWindowTypeVecDestructor

Constants§

DEFAULT_TITLE

Functions§

update_full_window_state
Overwrites all fields of the FullWindowState with the fields of the WindowState, but leaves the extra fields such as .hover_nodes untouched

Type Aliases§

PhysicalPositionI32
PhysicalSizeF32
PhysicalSizeU32
ScanCode
Hardware-dependent keyboard scan code.