A mouse button (MOUSE_LEFT, MOUSE_MIDDLE, MOUSE_RIGHT) was pressed at (x, y) (see mouse_motion).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(WindowEventHandler), | intent(inout) | :: | self | |||
| class(WindowProxy), | intent(inout) | :: | window |
the window of the event |
||
| real(kind=wp), | intent(in) | :: | x |
-1 to 1 across the window, y up |
||
| real(kind=wp), | intent(in) | :: | y |
-1 to 1 across the window, y up |
||
| integer, | intent(in) | :: | button |
MOUSE_LEFT, MOUSE_MIDDLE or MOUSE_RIGHT |
subroutine handler_button_press(self, window, x, y, button) class(WindowEventHandler), intent(inout) :: self class(WindowProxy), intent(inout) :: window !! the window of the event real(wp), intent(in) :: x, y !! -1 to 1 across the window, y up integer, intent(in) :: button !! MOUSE_LEFT, MOUSE_MIDDLE or MOUSE_RIGHT end subroutine handler_button_press