[−][src]Type Definition byteplug::widget::MouseDownFunction
type MouseDownFunction<Window, States> = fn(window: &mut Window, button: Button, position: Position, states: &mut States);
The mouse button down callback function
This function is called whenever a mouse button is pressed when the cursor is on the widget area; the widget is then marked as grabbed by this button. It's called with the identifier of the button being pressed and the current cursor position.
button
- The identifier of the button being pressed.position
- The current cursor position.