Module ui

Source
Available on crate feature ui only.
Expand description

UI components: Windows, taskbar.

Modules§

menu
Menus and menu items.
message_box
messaging
Window and thread message handling.
resource
Application resources.

Structs§

BalloonNotification
A Balloon notification above the Windows notification area.
NotificationIcon
An icon in the Windows notification area.
NotificationIconOptions
Options for a new notification icon used by Window::add_notification_icon.
Taskbar
Taskbar functionality.
TryFromHWNDError
Window
A window based on a WindowClass.
WindowClass
Window class serving as a base for Window.
WindowClassAppearance
WindowHandle
A (non-null) handle to a window.
WindowPlacement
Window show state plus positions.

Enums§

BalloonNotificationStandardIcon
Built-in Windows standard icons for balloon notifications.
FlashDuration
The amount of times the window should be flashed.
FlashElement
The target of the flash animation.
FlashInterval
The interval between flashes.
MonitorPower
Monitor power state.
NotificationIconId
Notification icon ID given to the Windows API.
ProgressState
Taskbar progress state animation type.
WindowCommand
Window command corresponding to its buttons in the top right corner.
WindowShowState
Window show state such as ‘minimized’ or ‘hidden’.

Functions§

allocate_console
Creates a console window for the current process if there is none.
detach_console
Detaches the current process from its console.
lock_workstation
Locks the computer, same as the user action.

Type Aliases§

Point
DPI-scaled virtual coordinates.
Rectangle
DPI-scaled virtual coordinates of a rectangle.