iPlug2 - C++ Audio Plug-in Framework
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
IMultiTouchControlBase Class Reference

A base class for controls that can do do multitouch. More...

#include <IControl.h>

Inheritance diagram for IMultiTouchControlBase:
[legend]

Classes

struct  TrackedTouch
 

Public Member Functions

virtual void AddTouch (ITouchID touchID, float x, float y, float radius)
 
virtual void ReleaseTouch (ITouchID touchID)
 
virtual void UpdateTouch (ITouchID touchID, float x, float y, float radius)
 
void ClearAllTouches ()
 
int NTrackedTouches () const
 
TrackedTouchGetTouch (int index)
 
TrackedTouchGetTouchWithIdentifier (ITouchID touchID)
 

Protected Attributes

std::unordered_map< ITouchID, TrackedTouchmTrackedTouches
 
bool mTouchStatus [MAX_TOUCHES] = { 0 }
 

Static Protected Attributes

static constexpr int MAX_TOUCHES = 10
 

Detailed Description

A base class for controls that can do do multitouch.

Definition at line 1273 of file IControl.h.

Constructor & Destructor Documentation

◆ ~IMultiTouchControlBase()

virtual IMultiTouchControlBase::~IMultiTouchControlBase ( )
inlinevirtual

Definition at line 1294 of file IControl.h.

Member Function Documentation

◆ AddTouch()

virtual void IMultiTouchControlBase::AddTouch ( ITouchID  touchID,
float  x,
float  y,
float  radius 
)
inlinevirtual

Definition at line 1296 of file IControl.h.

◆ ClearAllTouches()

void IMultiTouchControlBase::ClearAllTouches ( )
inline

Definition at line 1326 of file IControl.h.

◆ GetTouch()

TrackedTouch * IMultiTouchControlBase::GetTouch ( int  index)
inline

Definition at line 1337 of file IControl.h.

◆ GetTouchWithIdentifier()

TrackedTouch * IMultiTouchControlBase::GetTouchWithIdentifier ( ITouchID  touchID)
inline

Definition at line 1350 of file IControl.h.

◆ NTrackedTouches()

int IMultiTouchControlBase::NTrackedTouches ( ) const
inline

Definition at line 1332 of file IControl.h.

◆ ReleaseTouch()

virtual void IMultiTouchControlBase::ReleaseTouch ( ITouchID  touchID)
inlinevirtual

Definition at line 1313 of file IControl.h.

◆ UpdateTouch()

virtual void IMultiTouchControlBase::UpdateTouch ( ITouchID  touchID,
float  x,
float  y,
float  radius 
)
inlinevirtual

Definition at line 1319 of file IControl.h.

Member Data Documentation

◆ MAX_TOUCHES

constexpr int IMultiTouchControlBase::MAX_TOUCHES = 10
staticconstexprprotected

Definition at line 1361 of file IControl.h.

◆ mTouchStatus

bool IMultiTouchControlBase::mTouchStatus[MAX_TOUCHES] = { 0 }
protected

Definition at line 1363 of file IControl.h.

◆ mTrackedTouches

std::unordered_map<ITouchID, TrackedTouch> IMultiTouchControlBase::mTrackedTouches
protected

Definition at line 1362 of file IControl.h.


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