fn create_pointer_input_command(
        &self,
        phase: fidl_ui_input::PointerEventPhase,
        contact: touch::TouchContact,
        event_time: input_device::EventTime,
        touch_descriptor: &touch::TouchDeviceDescriptor,
    ) -> fidl_ui_input::PointerEvent {
        let position =
            self.device_coordinate_from_contact(&contact, &touch_descriptor) * self.event_scale;

        fidl_ui_input::PointerEvent {
            event_time: event_time,
            device_id: touch_descriptor.device_id,
            pointer_id: contact.id,
            type_: fidl_ui_input::PointerEventType::Touch,
            phase,
            x: position.x,
            y: position.y,
            radius_major: 0.0,
            radius_minor: 0.0,
            buttons: 0,
        }
    }
/// Creates a pointer input command to send to listeners.
Creates a pointer input command to send to listeners.
Creates a pointer input command to send to listeners .
fn create_pointer_input_command(
        &self,
        phase: fidl_ui_input::PointerEventPhase,
        contact: touch::TouchContact,
        event_time: input_device::EventTime,
        touch_descriptor: &touch::TouchDeviceDescriptor,
    ) -> fidl_ui_input::PointerEvent {
        let position =
            self.device_coordinate_from_contact(&contact, &touch_descriptor) * self.event_scale;
        fidl_ui_input::PointerEvent {
            event_time: event_time,
            device_id: touch_descriptor.device_id,
            pointer_id: contact.id,
            type_: fidl_ui_input::PointerEventType::Touch,
            phase,
            x: position.x,
            y: position.y,
            radius_major: 0.0,
            radius_minor: 0.0,
            buttons: 0,
        }
    }
fn create_pointer_input_command ( & self , phase : fidl_ui_input :: PointerEventPhase , contact : touch :: TouchContact , event_time : input_device :: EventTime , touch_descriptor : & touch :: TouchDeviceDescriptor , ) -> fidl_ui_input :: PointerEvent { let position = self . device_coordinate_from_contact ( & contact , & touch_descriptor ) * self . event_scale ; fidl_ui_input :: PointerEvent { event_time : event_time , device_id : touch_descriptor . device_id , pointer_id : contact . id , type_ : fidl_ui_input :: PointerEventType :: Touch , phase , x : position . x , y : position . y , radius_major : 0.0 , radius_minor : 0.0 , buttons : 0 , } }
Creates a pointer input command to send to listeners.
Creates a pointer input command to send to listeners .
&self
phase
fidl_ui_input::PointerEventPhase
contact
touch::TouchContact
event_time
input_device::EventTime
touch_descriptor
&touch::TouchDeviceDescriptor
&self
phase
fidl_ui_input::PointerEventPhase
contact
touch::TouchContact
event_time
input_device::EventTime
touch_descriptor
&touch::TouchDeviceDescriptor