sdl2 :: SDLMouseMotionEvent :: xrel
Difference on the X axis between this event and the previous onesdl2 :: SDLMouseMotionEvent :: yrel
Difference on the Y axis between this event and the previous onesdl2 $ SDLMouseMotionEvent :: 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.
core :: Pointer :: defaultinit
sdl2 :: SDLMouseEvent :: defaultinit
sdl2 :: SDLEvent :: 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).sdl2 :: SDLMouseMotionEvent :: xrel
Difference on the X axis between this event and the previous onesdl2 :: SDLMouseMotionEvent :: yrel
Difference on the Y axis between this event and the previous one
# Mouse motion event
extern class SDLMouseMotionEvent
super SDLMouseEvent
redef fun x `{ return self->motion.x; `}
redef fun y `{ return self->motion.y; `}
# State of the buttons
#
# ~~~raw
# state & 1 == 1 -> left button down
# state & 2 == 2 -> middle button down
# state & 4 == 4 -> right button down
# ~~~
fun state: Int `{ return self->motion.state; `}
# Difference on the X axis between this event and the previous one
fun xrel: Int `{ return self->motion.xrel; `}
# Difference on the Y axis between this event and the previous one
fun yrel: Int `{ return self->motion.yrel; `}
end
lib/sdl2/events.nit:173,1--195,3