android :: AMotionEventAction :: action
android :: AMotionEventAction :: is_down
android :: AMotionEventAction :: is_move
android :: AMotionEventAction :: is_up
android :: AMotionEventAction :: pointer_index
Pointer index concerned by this actionandroid $ AMotionEventAction :: SELF
Type of this instance, automatically specialized in every classandroid :: AMotionEventAction :: action
core :: 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
core :: Object :: defaultinit
android :: AMotionEventAction :: is_down
android :: AMotionEventAction :: is_move
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.
android :: AMotionEventAction :: is_up
core :: Object :: native_class_name
The class name of the object in CString format.core :: Pointer :: native_equals
core :: Object :: output_class_name
Display class name on stdout (debug only).android :: AMotionEventAction :: pointer_index
Pointer index concerned by this actioncore :: Pointer :: premultiply_alpha
Multiply RGB values by their alpha value
private extern class AMotionEventAction `{ int32_t `}
fun action: Int `{ return self & AMOTION_EVENT_ACTION_MASK; `}
# Pointer index concerned by this action
#
# Require: `is_pointer_down or is_pointer_up`
fun pointer_index: Int `{
return (self & AMOTION_EVENT_ACTION_POINTER_INDEX_MASK) >> AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT;
`}
fun is_down: Bool do return action == 0
fun is_up: Bool do return action == 1
fun is_move: Bool do return action == 2
fun is_cancel: Bool do return action == 3
fun is_outside: Bool do return action == 4
fun is_pointer_down: Bool do return action == 5
fun is_pointer_up: Bool do return action == 6
end
lib/android/input_events.nit:77,1--94,3