The grabbed handle dragged to (x, y).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(WindowProxy), | intent(inout), | target | :: | self | ||
| real(kind=wp), | intent(in) | :: | x |
the cursor: -1 to 1 across the window, y up |
||
| real(kind=wp), | intent(in) | :: | y |
the cursor: -1 to 1 across the window, y up |
subroutine drag_handle(self, x, y) class(WindowProxy), intent(inout), target :: self real(wp), intent(in) :: x, y !! the cursor: -1 to 1 across the window, y up real(wp) :: origin(3), dir(3) if (.not. associated(self%dragged_handle)) return if (.not. self%cursor_ray(x, y, origin, dir)) return if (.not. self%dragged_handle%drag(origin, dir)) return if (associated(self%handler)) call self%handler%handle_drag(self, self%dragged_handle, DRAG_MOVE) end subroutine drag_handle