Lines Matching refs:MotionAction

102 pub enum MotionAction {  enum
137 impl fmt::Display for MotionAction { implementation
140 MotionAction::Down => write!(f, "DOWN"), in fmt()
141 MotionAction::Up => write!(f, "UP"), in fmt()
142 MotionAction::Move => write!(f, "MOVE"), in fmt()
143 MotionAction::Cancel => write!(f, "CANCEL"), in fmt()
144 MotionAction::Outside => write!(f, "OUTSIDE"), in fmt()
145 MotionAction::PointerDown { action_index } => { in fmt()
148 MotionAction::PointerUp { action_index } => write!(f, "POINTER_UP({})", action_index), in fmt()
149 MotionAction::HoverMove => write!(f, "HOVER_MOVE"), in fmt()
150 MotionAction::Scroll => write!(f, "SCROLL"), in fmt()
151 MotionAction::HoverEnter => write!(f, "HOVER_ENTER"), in fmt()
152 MotionAction::HoverExit => write!(f, "HOVER_EXIT"), in fmt()
153 MotionAction::ButtonPress => write!(f, "BUTTON_PRESS"), in fmt()
154 MotionAction::ButtonRelease => write!(f, "BUTTON_RELEASE"), in fmt()
159 impl From<u32> for MotionAction { implementation
161 let (action_masked, action_index) = MotionAction::breakdown_action(action); in from()
163 input_bindgen::AMOTION_EVENT_ACTION_DOWN => MotionAction::Down, in from()
164 input_bindgen::AMOTION_EVENT_ACTION_UP => MotionAction::Up, in from()
165 input_bindgen::AMOTION_EVENT_ACTION_MOVE => MotionAction::Move, in from()
166 input_bindgen::AMOTION_EVENT_ACTION_CANCEL => MotionAction::Cancel, in from()
167 input_bindgen::AMOTION_EVENT_ACTION_OUTSIDE => MotionAction::Outside, in from()
169 MotionAction::PointerDown { action_index } in from()
172 MotionAction::PointerUp { action_index } in from()
174 input_bindgen::AMOTION_EVENT_ACTION_HOVER_ENTER => MotionAction::HoverEnter, in from()
175 input_bindgen::AMOTION_EVENT_ACTION_HOVER_MOVE => MotionAction::HoverMove, in from()
176 input_bindgen::AMOTION_EVENT_ACTION_HOVER_EXIT => MotionAction::HoverExit, in from()
177 input_bindgen::AMOTION_EVENT_ACTION_SCROLL => MotionAction::Scroll, in from()
178 input_bindgen::AMOTION_EVENT_ACTION_BUTTON_PRESS => MotionAction::ButtonPress, in from()
179 input_bindgen::AMOTION_EVENT_ACTION_BUTTON_RELEASE => MotionAction::ButtonRelease, in from()
185 impl MotionAction { impl