handler_mouse_motion Subroutine

private subroutine handler_mouse_motion(self, window, x, y, buttons)

The mouse moved to (x, y) (-1 to 1 across the window, y up), with the buttons held (left, middle, right): moving (none held, OpenFrames' mouse motion) or dragging.

Type Bound

WindowEventHandler

Arguments

Type IntentOptional 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

logical, intent(in) :: buttons(3)

(held: left, middle, right)


Called by

proc~~handler_mouse_motion~~CalledByGraph proc~handler_mouse_motion WindowEventHandler%handler_mouse_motion proc~dispatch_event dispatch_event proc~dispatch_event->proc~handler_mouse_motion proc~dispatch_events dispatch_events proc~dispatch_events->proc~dispatch_event proc~frame WindowProxy%frame proc~frame->proc~dispatch_events proc~resize WindowProxy%resize proc~resize->proc~frame proc~run WindowProxy%run proc~run->proc~frame

Source Code

    subroutine handler_mouse_motion(self, window, x, y, buttons)
        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
        logical, intent(in) :: buttons(3)                   !! (held: left, middle, right)
    end subroutine handler_mouse_motion