Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::PointerSample Struct Reference

One pointer sample as the host received it, before any coalescing. More...

#include <pointer_coalescer.hpp>

Public Member Functions

bool is_motion () const
 Motion is mergeable; a button transition is not.

Public Attributes

Point position {}
std::vector< Point > path
 Raw positions represented by this sample after coalescing, oldest first.
std::uint16_t modifiers = 0
int click_count = 0
MousePhase phase = MousePhase::automatic
MouseButton button = MouseButton::left
PointerAttributes pointer {}

Detailed Description

One pointer sample as the host received it, before any coalescing.

Member Function Documentation

◆ is_motion()

bool pulp::view::PointerSample::is_motion ( ) const
inline

Motion is mergeable; a button transition is not.

automatic is treated as terminal: it carries no promise about what it means, so merging it could silently reorder a press or a release.

Member Data Documentation

◆ button

MouseButton pulp::view::PointerSample::button = MouseButton::left

◆ click_count

int pulp::view::PointerSample::click_count = 0

◆ modifiers

std::uint16_t pulp::view::PointerSample::modifiers = 0

◆ path

std::vector<Point> pulp::view::PointerSample::path

Raw positions represented by this sample after coalescing, oldest first.

Empty on an uncoalesced host sample.

◆ phase

MousePhase pulp::view::PointerSample::phase = MousePhase::automatic

◆ pointer

PointerAttributes pulp::view::PointerSample::pointer {}

◆ position

Point pulp::view::PointerSample::position {}

The documentation for this struct was generated from the following file: