Available on crate feature
gui only.Expand description
High-level GUI abstractions for user windows and native controls. They can be created programmatically or by loading resources from a .res file. These files can be created with a WYSIWYG resource editor.
§Windows
There are 5 types of windows, which can host child controls:
WindowControl– a custom, user-defined child control;WindowMain;WindowMessageOnly;WindowModal;WindowModeless.
You’ll probably want to start your GUI application using the WindowMain.
§Native controls
Native controls are hosted by windows, and receive various types of user input.
Button;CheckBox;ComboBox;DateTimePicker;Edit(textbox);Header;Label;ListBox;ListView(grid);MonthCalendar;ProgressBar;PropSheet;RadioButton;StatusBar;Tab;Trackbar;TreeView;UpDown.
Modules§
- collections
- Objects which exposes methods to work upon individual items of certain native controls.
Structs§
- Button
- Native button control.
- Button
Opts - Options to create a
Buttonprogrammatically withButton::new. - Check
Box - Native
check box
control, actually a variation of the ordinary
Button: just a button with a specific style. - Check
BoxOpts - Options to create a
CheckBoxprogrammatically withCheckBox::new. - Combo
Box - Native combo box control.
- Combo
BoxOpts - Options to create a
ComboBoxprogrammatically withComboBox::new. - Date
Time Picker - Native date and time picker control.
- Date
Time Picker Opts - Options to create a
DateTimePickerprogrammatically withDateTimePicker::new. - Edit
- Native edit (text box) control.
- Edit
Opts - Options to create an
Editprogrammatically withEdit::new. - Header
- Native header control.
- Header
Item - A single item of a
Headercontrol. - Header
Opts - Options to create a
Headerprogrammatically withHeader::new. - Label
- Native label control.
- Label
Opts - Options to create a
Labelprogrammatically withLabel::new. - ListBox
- Native list box control. Not to be confused with the more complex list view control.
- List
BoxOpts - Options to create a
ListBoxprogrammatically withListBox::new. - List
View - Native list view control. Not to be confused with the simpler list box control.
- List
View Col - A single column of a
ListViewcontrol. - List
View Item - A single item of a
ListViewcontrol. - List
View Opts - Options to create a
ListViewprogrammatically withListView::new. - Month
Calendar - Native month calendar control.
- Month
Calendar Opts - Options to create a
MonthCalendarprogrammatically withMonthCalendar::new. - MsgError
- An error that occurred within a closure of a window message handling. Usually these errors are thrown by the user closures.
- Progress
Bar - Native progress bar control.
- Progress
BarOpts - Options to create a
ProgressBarprogrammatically withProgressBar::new. - Prop
Sheet - Native property sheet control.
- Prop
Sheet Opts - Options to create a
PropSheetprogrammatically withPropSheet::new. - Prop
Sheet Page - A page of a
property sheet,
passed to
PropSheet. - Radio
Button - Native radio button control.
- Radio
Button Opts - Options to create a
RadioButtonprogrammatically withRadioGroup::new. - Radio
Group - A group of native
RadioButtoncontrols. - Status
Bar - Native status bar control, which has one or more parts.
- Status
BarPart - A single part of a
StatusBarcontrol. - Tab
- Native tab control.
- TabItem
- A single item of a
Tabcontrol. - TabOpts
- Options to create a
Tabprogrammatically withTab::new. - TabPage
- A page of a
Tabcontrol, which can handle events. Can be programmatically created or load a dialog resource from a.resfile. Passed toTabOptsandTab::new_dlg. - TabPage
Opts - Options to create a
TabPageprogrammatically withTabPage::new. - Trackbar
- Native trackbar control.
- Trackbar
Opts - Options to create a
Trackbarprogrammatically withTrackbar::new. - Tree
View - Native tree view control.
- Tree
View Item - A single item of a
TreeViewcontrol. - Tree
View Opts - Options to create a
TreeViewprogrammatically withTreeView::new. - UpDown
- Native up-down control.
- UpDown
Opts - Options to create an
UpDownprogrammatically withUpDown::new. - Window
Control - An user child window, which can handle events. Can be programmatically
created or load a dialog resource from a
.resfile. - Window
Control Opts - Options to create a
WindowControlprogrammatically withWindowControl::new. - Window
Main - An user main window, which can handle events. Usually, this is the first
window of your application, launched directly from the
mainfunction. Can be programmatically created or load a dialog resource from a.resfile. - Window
Main Opts - Options to create a
WindowMainprogrammatically withWindowMain::new. - Window
Message Only - A message-only window, which can handle events.
- Window
Modal - An user modal window, which can handle events. Can be programmatically
created or load a dialog resource from a
.resfile. - Window
Modal Opts - Options to create a
WindowModalprogrammatically withWindowModal::new. - Window
Modeless - An user modeless window, which can handle events. Can be programmatically
created or load a dialog resource from a
.resfile. - Window
Modeless Opts - Options to create a
WindowModelessprogrammatically withWindowModeless::new.
Enums§
- Brush
- The class background brush to be loaded for
WindowMainOpts,WindowModalOptsorWindowControlOpts. - Cursor
- The class cursor to be loaded for
WindowMainOpts,WindowModalOptsorWindowControlOpts. - Header
Arrow - Possible states of the arrow in a
HeaderItem. - Header
Justify - Text justification for a
HeaderItem. - Horz
- Specifies the horizontal behavior of the control when the parent window is resized.
- Icon
- The class icon to be loaded for
WindowMainOpts,WindowModalOptsorWindowControlOpts. - SbPart
- Used when adding the parts in
StatusBar::new. - Vert
- Specifies the vertical behavior of the control when the parent window is resized.
Functions§
- dpi
- Returns the values adjusted according to the current horizontal and vertical
system DPI, retrieved with
HDC::GetDeviceCaps. - dpi_x
- Returns the value adjusted according to the current horizontal system DPI,
retrieved with
HDC::GetDeviceCaps. - dpi_y
- Returns the value adjusted according to the current vertical system DPI,
retrieved with
HDC::GetDeviceCaps.