[−][src]Enum native_windows_gui::EventData
Events data sent by the controls.
Variants
The event has no data
OnWindowClose(WindowCloseData)Sets if the window should be closed after the 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 inputted by a user by a OnChar event
OnKey(u32)The windows key code inputted 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.
The handle to the item being changed.
Fields of OnTreeItemUpdate
item: TreeItemaction: TreeItemActionThe handles the the old item and the new item.
Row index and column index of the list view item that raised the event
Row index, column index, and selected state of the list view item that raised the event
Implementations
impl EventData[src]
pub fn on_paint(&self) -> &PaintData[src]
Unwraps event data into a &PaintData. Panics if it's not the right type.
pub fn on_char(&self) -> char[src]
Unwraps event data into a char. Panics if it's not the right type.
pub fn on_tooltip_text(&self) -> &ToolTipTextData[src]
Unwraps event data into a &ToolTipTextData. Panics if it's not the right type.
pub fn on_file_drop(&self) -> &DropFiles[src]
Unwraps event data into a &DragData. Panics if it's not the right type.
pub fn on_key(&self) -> u32[src]
Unwraps event data into the virtual key code for OnKeyPress and OnKeyRelease
pub fn on_tree_item_delete(&self) -> &TreeItem[src]
uwraps event data into the removed tree item
pub fn on_tree_item_update(&self) -> (&TreeItem, TreeItemAction)[src]
uwraps event data into the update tree view item and the action
pub fn on_tree_item_selection_changed(&self) -> (&TreeItem, &TreeItem)[src]
unwraps event data into the removed tree item
pub fn on_list_view_item_index(&self) -> (usize, usize)[src]
unwraps event data into the indices of a list view index (row_index, column_index)
pub fn on_list_view_item_changed(&self) -> (usize, usize, bool)[src]
unwraps event data into the indices of a list view index (row_index, column_index, selected)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for EventData
impl !Send for EventData
impl !Sync for EventData
impl Unpin for EventData
impl UnwindSafe for EventData
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,
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, 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.
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>,