pub struct PointerReport {
pub view_id: ViewId,
pub time_stamp: Duration,
pub device: i64,
pub kind: PointerDeviceKind,
pub position: [f64; 2],
pub change: ReportedChange,
pub contact: Contact,
}Expand description
What a host saw one pointing device do, as the system reported it.
It holds only what the system says. What the framework also needs, each press’s identifier,
how far the device came since the framework last heard of it, and the changes the system left
out, the client adds (PointerDataPacketConverter).
Fields§
§view_id: ViewIdThe view the device is over.
time_stamp: DurationWhen the system reported it, on the host’s timeline.
device: i64The device: one number per mouse, finger, pen or trackpad, the same for each of its presses, and different from every other device the host reports.
kind: PointerDeviceKindThe kind of device.
position: [f64; 2]Where the device is, in the view’s physical pixels.
change: ReportedChangeWhat the device did.
contact: ContactHow a finger or a pen meets the surface, where the system says.
Trait Implementations§
Source§impl Clone for PointerReport
impl Clone for PointerReport
impl Copy for PointerReport
Source§impl Debug for PointerReport
impl Debug for PointerReport
Source§impl From<PointerReport> for PointerData
impl From<PointerReport> for PointerData
Source§fn from(report: PointerReport) -> PointerData
fn from(report: PointerReport) -> PointerData
The datum the converter starts from: what the system said, with what only the converter
knows, the press’s identifier, the deltas and synthesized, left at zero, and no
embedder_id, as embedder.cc gives none.