Expand description
Modules§
- cmd
- Common commands.
- focus
- Keyboard focus properties,
tab_index
,focusable
,on_focus
,is_focused
and more. - gesture
- Gesture events and control,
on_click
,click_shortcut
and more. - keyboard
- Keyboard events,
on_key_down
,on_key_up
and more. - mouse
- Mouse events,
on_mouse_move
,on_mouse_enter
,on_mouse_down
and more. - pointer_
capture - Mouse and touch capture properties.
- touch
- Touch events,
on_touch_move
,on_touch_tap
,on_touch_start
and more.
Structs§
- Cursor
Img - Window custom cursor.
Enums§
- Cursor
Icon - Named system dependent cursor icon.
- Cursor
Source - Window cursor source.
Functions§
- click_
mode P
Defines how click events are generated for the widget.- cursor
P
Sets the mouse pointer cursor displayed when hovering the widget.- is_
cap_ hovered P
If the mouse pointer is over the widget, or a descendant, or is captured by the it.- is_
cap_ mouse_ pressed P
If the mouse pointer is pressed or captured by the widget and it is enabled.- is_
cap_ pointer_ pressed P
Ifis_cap_mouse_pressed
oris_cap_touched_from_start
.- is_
cap_ pressed P
Ifis_cap_mouse_pressed
,is_cap_touched_from_start
oris_shortcut_pressed
.- is_
cap_ touched P
If a touch contact point is over the widget, or is over a descendant, or is captured by it.- is_
cap_ touched_ from_ start P
If a touch contact point is over the widget, or is over a descendant, or is captured by it.- is_
hovered P
If the mouse pointer is over the widget or a descendant and the widget is enabled.- is_
hovered_ disabled P
If the mouse pointer is over the widget or a descendant and the widget is disabled.- is_
mouse_ pressed P
If the mouse pointer is pressed in the widget and it is enabled.- is_
pointer_ pressed P
Ifis_mouse_pressed
oris_touched_from_start
.- is_
pressed P
Ifis_mouse_pressed
,is_touched_from_start
oris_shortcut_pressed
.- is_
shortcut_ pressed P
If the widget was clicked by shortcut or accessibility event and theshortcut_pressed_duration
has not elapsed.- is_
touched P
If a touch contact point is over the widget or a descendant and the it is enabled.- is_
touched_ from_ start P
If a touch contact that started over the widget is over it and it is enabled.- touch_
transform P
Applies transforms from touch gestures on the widget.