sdl2 $ SDLWindowEvent :: SELF
Type of this instance, automatically specialized in every classcore :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
sdl2 :: SDLEvent :: defaultinit
core :: Pointer :: defaultinit
sdl2 :: SDLWindowEvent :: defaultinit
core :: Object :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).
# Window event
extern class SDLWindowEvent
super SDLEvent
# Window identifier
fun id: Int `{ return self->window.windowID; `}
# Is `self` a resized event?
fun is_resized: Bool `{ return self->window.event == SDL_WINDOWEVENT_RESIZED; `}
# Is `self` a size changed event?
fun is_size_changed: Bool `{ return self->window.event == SDL_WINDOWEVENT_SIZE_CHANGED; `}
# `data1` field, depends on the event kind
fun data1: Int `{ return self->window.data1; `}
# `data2` field, depends on the event kind
fun data2: Int `{ return self->window.data2; `}
end
lib/sdl2/events.nit:290,1--308,3