31 auto tie()
const noexcept
33 return std::tie (position, pressure, orientation, rotation, tiltX, tiltY);
44 [[
nodiscard]]
PointerState withPressure (
float x)
const noexcept {
return with (&PointerState::pressure, x); }
45 [[
nodiscard]]
PointerState withOrientation (
float x)
const noexcept {
return with (&PointerState::orientation, x); }
46 [[
nodiscard]]
PointerState withRotation (
float x)
const noexcept {
return with (&PointerState::rotation, x); }
47 [[
nodiscard]]
PointerState withTiltX (
float x)
const noexcept {
return with (&PointerState::tiltX, x); }
48 [[
nodiscard]]
PointerState withTiltY (
float x)
const noexcept {
return with (&PointerState::tiltY, x); }
55 float tiltY = MouseInputSource::defaultTiltY;
57 bool isPressureValid()
const noexcept {
return 0.0f <= pressure && pressure <= 1.0f; }
60 bool isTiltValid (
bool isX)
const noexcept
62 return isX ? (-1.0f <= tiltX && tiltX <= 1.0f)
63 : (-1.0f <= tiltY && tiltY <= 1.0f);
67 template <
typename Value>
71 copy.*
member = std::move (item);
The base class for all JUCE user-interface objects.
Represents the state of the mouse buttons and modifier keys.
Contains position and status information about a mouse event.
A pair of (x, y) coordinates.
Holds an absolute date and time.
Represents a shared variant value.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...