Expand description
Mouse events, on_mouse_move, on_mouse_enter,
on_mouse_down and more.
There events are low level and directly tied to a mouse device.
Before using them review the gesture events, in particular the
on_click event.
Functionsยง
- ctrl_
scroll PDefines ifMouseWheelArgsgestureis_scrollwhenCTRLis pressed andis_zoomwhen no modifier is pressed.- on_
disabled_ mouse_ any_ click PMouse clicked on the disabled widget with any button, including repeat clicks.- on_
disabled_ mouse_ click PMouse clicked on the disabled widget with the primary button, including repeat clicks.- on_
disabled_ mouse_ hovered PMouse entered or left the widget and descendant widgets area, the widget is disabled and cursor capture allows it.- on_
disabled_ mouse_ input PMouse button pressed or release while the cursor is over the widget, the widget is disabled and no cursor capture blocks it.- on_
disabled_ mouse_ wheel PMouse wheel scrolled while pointer is hovering widget and it is disabled.- on_
mouse_ any_ click PMouse clicked on the widget with any button and including repeat clicks and it is enabled.- on_
mouse_ any_ double_ click PMouse double clicked on the widget with any button and it is enabled.- on_
mouse_ any_ single_ click PMouse clicked on the widget with any button but excluding repeat clicks and it is enabled.- on_
mouse_ any_ triple_ click PMouse triple clicked on the widget with any button and it is enabled.- on_
mouse_ click PMouse clicked on the widget with the primary button including repeat clicks and it is enabled.- on_
mouse_ double_ click PMouse double clicked on the widget with the primary button and it is enabled.- on_
mouse_ down PMouse button pressed while the cursor is over the widget, the widget is enabled and cursor capture allows it.- on_
mouse_ enter PMouse is now over the widget or a descendant widget, the widget is enabled and cursor capture allows it.- on_
mouse_ hovered PMouse entered or left the widget and descendant widgets area, the widget is enabled and cursor capture allows it.- on_
mouse_ input PMouse button pressed or released while the cursor is over the widget, the widget is enabled and no cursor capture blocks it.- on_
mouse_ leave PMouse is no longer over the widget or any descendant widget, the widget is enabled and cursor capture allows it.- on_
mouse_ move PMouse cursor moved over the widget and cursor capture allows it.- on_
mouse_ scroll PMouse wheel scrolled while pointer is hovering the widget and the pressed keyboard modifiers allow a scroll operation and the widget is enabled.- on_
mouse_ single_ click PMouse clicked on the widget with the primary button excluding repeat clicks and it is enabled.- on_
mouse_ triple_ click PMouse triple clicked on the widget with the primary button and it is enabled.- on_
mouse_ up PMouse button released while the cursor if over the widget, the widget is enabled and cursor capture allows it.- on_
mouse_ wheel PMouse wheel scrolled while pointer is hovering widget and it is enabled.- on_
mouse_ zoom PMouse wheel scrolled while pointer is hovering the widget and the pressed keyboard modifiers allow a zoom operation and the widget is enabled.- on_
pre_ disabled_ mouse_ any_ click PPreviewon_disabled_mouse_any_clickevent.- on_
pre_ disabled_ mouse_ click PPreviewon_disabled_mouse_clickevent.- on_
pre_ disabled_ mouse_ hovered PPreviewon_disabled_mouse_hoveredevent.- on_
pre_ disabled_ mouse_ input PPreviewon_disabled_mouse_inputevent.- on_
pre_ disabled_ mouse_ wheel PPreviewon_disabled_mouse_wheelevent.- on_
pre_ mouse_ any_ click PPreviewon_mouse_any_clickevent.- on_
pre_ mouse_ any_ double_ click PPreviewon_mouse_any_double_clickevent.- on_
pre_ mouse_ any_ single_ click PPreviewon_mouse_any_single_clickevent.- on_
pre_ mouse_ any_ triple_ click PPreviewon_mouse_any_triple_clickevent.- on_
pre_ mouse_ click PPreviewon_mouse_clickevent.- on_
pre_ mouse_ double_ click PPreviewon_mouse_double_clickevent.- on_
pre_ mouse_ down PPreviewon_mouse_downevent.- on_
pre_ mouse_ enter PPreviewon_mouse_enterevent.- on_
pre_ mouse_ hovered PPreviewon_mouse_hoveredevent.- on_
pre_ mouse_ input PPreviewon_mouse_inputevent.- on_
pre_ mouse_ leave PPreviewon_mouse_leaveevent.- on_
pre_ mouse_ move PPreviewon_mouse_moveevent.- on_
pre_ mouse_ scroll PPreviewon_mouse_scrollevent.- on_
pre_ mouse_ single_ click PPreviewon_mouse_single_clickevent.- on_
pre_ mouse_ triple_ click PPreviewon_mouse_triple_clickevent.- on_
pre_ mouse_ up PPreviewon_mouse_upevent.- on_
pre_ mouse_ wheel PPreviewon_mouse_wheelevent.- on_
pre_ mouse_ zoom PPreviewon_mouse_zoomevent.