Skip to content

pyux.set_on_left_dragstart_handler

fabian-flassig edited this page Oct 24, 2024 · 9 revisions

Sets the on_left_dragstart handler for mouse dragging in the graphics area.

pyui.set_on_left_dragstart_handler(function)

Parameters

Type Description
function function A lua function that is invoked when dragging is started. nil will remove the handler.

Callback

The parameters to the handler function are as follows:

function on_click_handler(info)
Type Description
info {...} A table containing the following key-value pairs:
info.coos_vp {u, v} Normalized viewport coordinates of the mouse cursor. Can be nil.
info.ctrl_key boolean Status of the virtual CTRL key.
info.shift_key boolean Status of the virtual SHIFT key.
info.alt_key boolean Status of the virtual ALT key.

Note:

In order to retreive on_left_dragmove and on_left_dragend events, the on_left_dragstart handler has to be set.

See also

Control Gallery, set_on_left_dragmove_handler, set_on_left_dragend_handler, set_on_left_click_handler, set_on_right_click_handler, show_cursor_crosshair

Clone this wiki locally