sdl2 $ SDLMouseEvent :: 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
core :: Object :: defaultinit
sdl2 :: SDLMouseEvent :: 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).
# Mouse event
extern class SDLMouseEvent
super SDLEvent
# Implementation note
#
# Even if the structures are different between the mouse events, the first
# four fields of each events are common to all of them.
# Which mouse, pointer or finger raised this event
fun which: Int `{ return self->motion.which; `}
# X coordinate on screen of this event
fun x: Int is abstract
# Y coordinate on screen of this event
fun y: Int is abstract
end
lib/sdl2/events.nit:154,1--171,3
redef class SDLMouseEvent
redef fun to_gamnit_event(buffer) do return new GamnitPointerEvent(buffer, self)
end
lib/gamnit/gamnit_linux.nit:75,1--77,3