Module prelude

Module prelude 

Source
Available on crate feature winio only.

Re-exports§

pub use super::super::OptionsPageMessage;
pub use super::OptionsPageInit;
pub use crate::PluginApp;

Macros§

__join
Polls multiple futures simultaneously, returning a tuple of all results once complete.
__paste
init
Helper macro for Component::init.
layout
Helper macro for layouts in Component::render.
start
Helper macro for Component::start.

Structs§

App
Root application, manages the async runtime.
BorrowedWidget
A borrowed window handle.
BorrowedWindow
A borrowed window handle.
BrushPen
Pen with specified brush.
Button
A simple button.
Canvas
A simple drawing canvas.
CheckBox
A simple check box.
Child
Helper to embed one component into another. It handles different types of messages and events.
ComboBox
A simple combo box.
ComboEntry
A combo box with editable text box.
ComponentSender
Sender of input messages and output events.
CustomButton
Custom button for MessageBox.
DrawingContext
Canvas drawing context.
DrawingFont
Font for drawing.
DrawingFontBuilder
Builder of DrawingFont.
DrawingImage
Canvas compatible drawing image.
DrawingPath
A drawing path.
DrawingPathBuilder
Builder for DrawingPath.
Edit
A simple single-line text input box.
FileBox
File open/save box.
FileFilter
File type filter.
GradientStop
A transition point in a gradient.
Grid
A grid layout container.
GridChildBuilder
Builder of a child for Grid.
Label
A simple single-line label.
LinearGradientBrush
Linear gradient brush.
ListBox
A simple list box.
LogicalSpace
The logical space.
MessageBox
Message box.
MessageBoxButton
The pre-defined message box buttons.
Monitor
Represents the geometry of a monitor.
ObservableVec
An observable vector. It outputs events after being changed.
Progress
A progress bar.
RadialGradientBrush
Radial gradient brush.
RadioButton
A simple radio box. See RadioButtonGroup for making selection groups.
RadioButtonGroup
A group of RadioButton. Only one of them could be checked.
RelativeSpace
The relative space, which maps [0.0, 1.0] to the logical space.
SolidColorBrush
Brush with single solid color.
StackPanel
A stacked layout container.
StackPanelChildBuilder
Builder of a child for StackPanel.
TextBox
A simple multi-line text input box.
ToolTip
Tool tip helper for widgets.
Window
A simple window.

Enums§

ButtonEvent
Events of Button.
CanvasEvent
Events of Canvas.
CheckBoxEvent
Events of CheckBox.
ColorTheme
Color theme of application.
ComboBoxEvent
Events of ComboBox.
ComboBoxMessage
Messages of ComboBox.
ComboEntryEvent
Events of ComboEntry.
EditEvent
Events of Edit.
GridLength
The width or height of a grid cell.
HAlign
Horizontal alignment.
LabelEvent
Events of Label.
ListBoxEvent
Events of ListBox.
ListBoxMessage
Messages of ListBox.
MessageBoxResponse
Response of message box.
MessageBoxStyle
Style of message box.
MouseButton
Represents the mouse button.
ObservableVecEvent
The events of ObservableVec.
Orient
Orientation.
ParseGridLengthError
Error can be returned when parsing GridLength.
ProgressEvent
Events of Progress.
RadioButtonEvent
Events of RadioButton.
RawWidget
Raw window handle.
RawWindow
Raw window handle.
TextBoxEvent
Events of TextBox.
VAlign
Vertical alignment.
WindowEvent
Events of Window.

Traits§

AsRawWidget
Trait to exact the raw window handle.
AsRawWindow
Trait to exact the raw window handle.
AsWidget
Trait to borrow the window handle.
AsWindow
Trait to borrow the window handle.
Brush
Drawing brush.
ColorExt
Extension trait for Color.
ColorThemeExt
Extension trait for ColorTheme.
Component
Foundamental GUI component.
Enable
Trait for a widget to enable or disable.
Layoutable
Trait for a layoutable widget.
MonitorExt
Extension trait for Monitor.
Pen
Drawing Pen.
Visible
Trait for a widget to set visibility.

Functions§

run
Runs a root component, and exits when the component outputs an event.

Type Aliases§

Angle
Angle of vector.
Color
Color type.
Margin
Logical margin.
Point
Logical point.
Rect
Logical rectangle.
RectBox
Logical rectangle box.
RelativePoint
Relative point.
RelativeSize
Relative size.
RelativeToLogical
Transform from the relative space to the logical space.
RelativeVector
Relative vector.
Rotation
Logical rotation.
Size
Logical size.
Vector
Logical vector.