set_event_handler Subroutine

private subroutine set_event_handler(self, handler)

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 Bound

WindowProxy

Arguments

Type IntentOptional Attributes Name
class(WindowProxy), intent(inout) :: self
class(WindowEventHandler), intent(in), target :: handler

not owned


Source Code

    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