Give the window's keyboard and mouse events to handler (not owned: it
must stay alive while set), in place of any handler set before.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(WindowProxy), | intent(inout) | :: | self | |||
| class(WindowEventHandler), | intent(in), | target | :: | handler |
not owned |
subroutine set_event_handler(self, handler) class(WindowProxy), intent(inout) :: self class(WindowEventHandler), intent(in), target :: handler !! not owned self%handler => handler end subroutine set_event_handler