Module util

Module util 

Source
Expand description

Some utility functions that pop up all the time.

Structs§

MouseFlags
Some state for mouse interactions.
MouseFlagsN
Some state for mouse interactions with multiple areas.

Enums§

Clicks
Click states for double click.

Functions§

column_at
Column at given position. This uses only the horizontal components of the given areas.
column_at_drag
Find a column position when dragging with the mouse. This uses positions outside the given areas to estimate an invisible column that could be meant by the mouse position. It uses the heuristic 1 column == 1 item for simplicity’s sake.
double_click_timeout
The global double click time-out between consecutive clicks. In milliseconds.
have_keyboard_enhancement
Are enhanced keys available? Only if true Release and Repeat keys are available.
item_at
Which of the given rects is at the position.
mouse_trap
This function consumes all mouse-events in the given area, except Drag events.
row_at
Which row of the given area contains the position. This uses only the vertical components of the given areas.
row_at_drag
Find a row position when dragging with the mouse. This uses positions outside the given areas to estimate an invisible row that could be meant by the mouse position. It uses the heuristic 1 row == 1 item for simplicity’s sake.
set_double_click_timeout
Sets the global double click time-out between consecutive clicks. In milliseconds.
set_have_keyboard_enhancement
Set the flag for enhanced keys.