Enum native_windows_gui::Event [−][src]
#[repr(usize)] pub enum Event {}Show variants
Unknown, OnMousePress(MousePressEvent), OnMouseMove, OnMouseWheel, OnContextMenu, OnInit, OnPaint, OnChar, OnKeyPress, OnKeyRelease, OnMinMaxInfo, OnResize, OnResizeBegin, OnResizeEnd, OnWindowMaximize, OnWindowMinimize, OnMove, OnVerticalScroll, OnHorizontalScroll, OnFileDrop, OnButtonClick, OnButtonDoubleClick, OnLabelClick, OnLabelDoubleClick, OnImageFrameClick, OnImageFrameDoubleClick, OnTextInput, OnComboBoxClosed, OnComboBoxDropdown, OnComboxBoxSelection, OnDatePickerDropdown, OnDatePickerClosed, OnDatePickerChanged, OnListBoxDoubleClick, OnListBoxSelect, TabsContainerChanged, TabsContainerChanging, TrackBarUpdated, OnMenuOpen, OnMenuEnter, OnMenuExit, OnMenuHover, OnMenuItemSelected, OnTooltipText, OnTreeViewClick, OnTreeViewDoubleClick, OnTreeViewRightClick, OnTreeFocusLost, OnTreeFocus, OnTreeItemDelete, OnTreeItemExpanded, OnTreeItemChanged, OnTreeItemSelectionChanged, OnListViewClear, OnListViewItemRemoved, OnListViewItemInsert, OnListViewItemActivated, OnListViewClick, OnListViewRightClick, OnListViewDoubleClick, OnListViewColumnClick, OnListViewItemChanged, OnListViewFocus, OnListViewFocusLost, OnTrayNotificationShow, OnTrayNotificationHide, OnTrayNotificationTimeout, OnTrayNotificationUserClose, OnTimerTick, OnTimerStop, OnNotice, OnWindowClose,
Events are identifiers that are sent by controls on user interaction
Some events also have data that can be further processed by the event loop. See EventData
Variants
Undefined / not implemented event. This can be dispatched by the bigger controls such as ListView and TreeView
OnMousePress(MousePressEvent)
Generic mouse press events that can be generated by most window controls
Generic mouse move event that can be generated by most window controls
Generic mouse wheel event that can be generated by most window controls
Read the delta value with EventData::OnMouseWheel
to check which key.
Generic window event when the user right clicks a window
When a top level window control is created.
When a control needs to be redrawn
When a key is pressed on a keyboard. Unlike OnKeyDown, this returns a char (ex: ‘c’) in a EventData::OnChar.
When a key is pressed on a keyboard. Use EventData::OnKey
to check which key.
When a key is pressed on a keyboard.Use EventData::OnKey to check which key.
Sent to a window when the size or position of the window is about to change.
An application can use the event data EventData::OnMinMaxInfo
to override the minimum or maximum size.
When a control is resized by the user. This is typically applied to top level windows but it also applies to children when layouts are used.
When a control is about to be resized by the user. This does not trigger on maximize
When a control stops being resized This does not trigger on maximize
When a control is moved by the user. This is typically applied to top level windows. This is typically applied to top level windows but it also applies to children when layouts are used.
When a bar-like control value is changed.
When a bar-like control value is changed.
When a file is dropped into a control
When a button is clicked. Similar to a MouseUp event, but only for button control
When a button is clicked twice rapidly
When a label is clicked
When a label is clicked twice rapidly
When an ImageFrame is clicked
When an ImageFrame is clicked twice rapidly
When TextInput value is changed
When the list of a combobox is closed
When the list of a combobox is about to be visible
When the current selection of the combobox was changed
When the date select dropdown is expanded
When the date select dropdown is closed
When the value of the date select is changed
When an item on a list box is clicked twice
When an item on a list box is selected
The selected tab of a TabsContainer changed
The selected tab of a TabsContainer is about to be changed
When the trackbar thumb is released by the user
When a menu control is opened
When the user enters the menu modal loop
When the user exits the menu modal loop
When a menu is hovered (either through mouse or keyboard)
When the user selects on a menu item
When the user hovers over a callback tooltip
The callback will also receive a EventData::OnTooltipText
When the user has clicked the left mouse button within the control.
When the user has clicked the left mouse button within the control twice rapidly.
When the user has clicked the right mouse button within the control.
When the control has lost the input focus
When the control has acquired the input focus
When an item is removed from the treeview. The item being deleted is passed in EventData::OnTreeItemDelete
When an item is expanded. Generates a EventData::OnTreeItemDelete
When the state of a tree item is changed.
When the selected tree item is changed.
When all the items in a list view are destroyed Do not add, delete, or rearrange items in the list view while processing this notification code.
When an item is about to be removed from the list view
Do not add, delete, or rearrange items in the list view while processing this notification code.
Generates an EventData::ListViewItemIndex
When a new item is inserted in the list view This is only triggered when an ietm is added to a new ROW
When an item in the list view is activated by the user
An item is activated when the user clicks it twice
Generates an EventData::ListViewItemIndex
When the user has clicked the left mouse button within the control
Generates an EventData::ListViewItemIndex
When the user has clicked the right mouse button within the control
Generates an EventData::ListViewItemIndex
When the user has clicked the left mouse button within the control twice rapidly
Generates an EventData::ListViewItemIndex
When the user has clicked the left mouse button on ListView header column
Generates an EventData::ListViewItemIndex
When an item is selected/unselected in the listview
See EventData::OnListViewItemChanged
to differentiate the two
When the control has acquired the input focus
When the control has lost the input focus
When a TrayNotification info popup (not the tooltip) is shown
When a TrayNotification info popup (not the tooltip) is hidden
When a TrayNotification is closed due to a timeout
When a TrayNotification is closed due to a user click
When a timer delay is elapsed
When a timer end condition is reached
When a notice is… noticed
When a user clicks on the X button of a window
Trait Implementations
impl Clone for Event
[src]
impl Copy for Event
[src]
impl Debug for Event
[src]
impl Eq for Event
[src]
impl PartialEq<Event> for Event
[src]
impl StructuralEq for Event
[src]
impl StructuralPartialEq for Event
[src]
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,