JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce::detail::PointerState Class Reference

#include <juce_PointerState.h>

Collaboration diagram for juce::detail::PointerState:

Public Member Functions

 PointerState ()=default
 
bool isOrientationValid () const noexcept
 
bool isPressureValid () const noexcept
 
bool isRotationValid () const noexcept
 
bool isTiltValid (bool isX) const noexcept
 
bool operator!= (const PointerState &other) const noexcept
 
bool operator== (const PointerState &other) const noexcept
 
PointerState withOrientation (float x) const noexcept
 
PointerState withPosition (Point< float > x) const noexcept
 
PointerState withPositionOffset (Point< float > x) const noexcept
 
PointerState withPressure (float x) const noexcept
 
PointerState withRotation (float x) const noexcept
 
PointerState withTiltX (float x) const noexcept
 
PointerState withTiltY (float x) const noexcept
 

Public Attributes

float orientation = MouseInputSource::defaultOrientation
 
Point< floatposition
 
float pressure = MouseInputSource::defaultPressure
 
float rotation = MouseInputSource::defaultRotation
 
float tiltX = MouseInputSource::defaultTiltX
 
float tiltY = MouseInputSource::defaultTiltY
 

Private Member Functions

auto tie () const noexcept
 
template<typename Value >
PointerState with (Value PointerState::*member, Value item) const
 

Constructor & Destructor Documentation

◆ PointerState()

juce::detail::PointerState::PointerState ( )
default

Member Function Documentation

◆ isOrientationValid()

bool juce::detail::PointerState::isOrientationValid ( ) const
inlinenoexcept

References orientation.

◆ isPressureValid()

bool juce::detail::PointerState::isPressureValid ( ) const
inlinenoexcept

References pressure.

◆ isRotationValid()

bool juce::detail::PointerState::isRotationValid ( ) const
inlinenoexcept

References rotation.

◆ isTiltValid()

bool juce::detail::PointerState::isTiltValid ( bool  isX) const
inlinenoexcept

References tiltX, and tiltY.

◆ operator!=()

bool juce::detail::PointerState::operator!= ( const PointerState other) const
inlinenoexcept

References tie().

◆ operator==()

bool juce::detail::PointerState::operator== ( const PointerState other) const
inlinenoexcept

References tie().

◆ tie()

auto juce::detail::PointerState::tie ( ) const
inlineprivatenoexcept

References orientation, position, pressure, rotation, tiltX, and tiltY.

Referenced by operator!=(), and operator==().

◆ with()

template<typename Value >
PointerState juce::detail::PointerState::with ( Value PointerState::*  member,
Value  item 
) const
inlineprivate

◆ withOrientation()

PointerState juce::detail::PointerState::withOrientation ( float  x) const
inlinenoexcept

◆ withPosition()

◆ withPositionOffset()

PointerState juce::detail::PointerState::withPositionOffset ( Point< float x) const
inlinenoexcept

◆ withPressure()

PointerState juce::detail::PointerState::withPressure ( float  x) const
inlinenoexcept

◆ withRotation()

PointerState juce::detail::PointerState::withRotation ( float  x) const
inlinenoexcept

◆ withTiltX()

PointerState juce::detail::PointerState::withTiltX ( float  x) const
inlinenoexcept

◆ withTiltY()

PointerState juce::detail::PointerState::withTiltY ( float  x) const
inlinenoexcept

Member Data Documentation

◆ orientation

◆ position

◆ pressure

◆ rotation

◆ tiltX

float juce::detail::PointerState::tiltX = MouseInputSource::defaultTiltX

◆ tiltY

float juce::detail::PointerState::tiltY = MouseInputSource::defaultTiltY

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