Enum native_windows_gui::EventData[][src]

pub enum EventData {
Show variants NoData, OnWindowClose(WindowCloseData), OnMinMaxInfo(MinMaxInfo), OnTooltipText(ToolTipTextData), OnChar(char), OnKey(u32), OnPaint(PaintData), OnMouseWheel(i32), OnFileDrop(DropFiles), OnTreeItemDelete(TreeItem), OnTreeItemUpdate { item: TreeItem, action: TreeItemAction, }, OnTreeItemSelectionChanged { old: TreeItem, new: TreeItem, }, OnListViewItemIndex { row_index: usize, column_index: usize, }, OnListViewItemChanged { row_index: usize, column_index: usize, selected: bool, },
}
Expand description

Events data sent by the controls.

Variants

NoData

The event has no data

OnWindowClose(WindowCloseData)

Sets if the window should be closed after the event

OnMinMaxInfo(MinMaxInfo)

Contains the default maximized position and dimensions, and the default minimum and maximum tracking sizes. An application can override the defaults by setting the members of this event.

OnTooltipText(ToolTipTextData)

Sets the text of a tooltip. The method on_tooltip_text should be used to access the inner data

OnChar(char)

The character entered by a user by an OnChar event

OnKey(u32)

The windows key code entered by a user. See the nwg::keys module

OnPaint(PaintData)

Hold resources that will most likely be used during painting.

OnMouseWheel(i32)

The delta value of a mouse wheel event. A positive value indicates that the wheel was rotated to the right; a negative value indicates that the wheel was rotated to the left.

OnFileDrop(DropFiles)

The path to one or more files that were dropped in the application

OnTreeItemDelete(TreeItem)

The handle to the item being deleted. The item is still valid.

OnTreeItemUpdate

The handle to the item being changed.

Show fields

Fields of OnTreeItemUpdate

item: TreeItemaction: TreeItemAction
OnTreeItemSelectionChanged

The handles the the old item and the new item.

Show fields

Fields of OnTreeItemSelectionChanged

old: TreeItemnew: TreeItem
OnListViewItemIndex

Row index and column index of the list view item that raised the event row_index 0xFFF... means the absence of an item

Show fields

Fields of OnListViewItemIndex

row_index: usizecolumn_index: usize
OnListViewItemChanged

Row index, column index, and selected state of the list view item that raised the event

Show fields

Fields of OnListViewItemChanged

row_index: usizecolumn_index: usizeselected: bool

Implementations

Unwraps event data into a &PaintData. Panics if it’s not the right type.

Unwraps event data into a &MinMaxInfo. Panics if it’s not the right type.

Unwraps event data into a char. Panics if it’s not the right type.

Unwraps event data into a &ToolTipTextData. Panics if it’s not the right type.

Unwraps event data into a &DragData. Panics if it’s not the right type.

Unwraps event data into the virtual key code for OnKeyPress and OnKeyRelease

unwraps event data into the removed tree item

unwraps event data into the update tree view item and the action

unwraps event data into the removed tree item

unwraps event data into the indices of a list view index (row_index, column_index)

unwraps event data into the indices of a list view index (row_index, column_index, selected)

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.