iPlug 2: IMouseMod Struct Reference

Used to manage mouse modifiers i.e. More...

#include <IGraphicsStructs.h>

Public Member Functions

 IMouseMod (bool l=false, bool r=false, bool s=false, bool c=false, bool a=false, ITouchID touchID=0)
 Create an IMouseMod. More...
 
bool IsTouch () const
 true if this IMouseMod is linked to a touch event More...
 
void DBGPrint ()
 Print the mouse modifier values to the console in Debug builds. More...
 

Public Attributes

bool L
 
bool R
 
bool S
 
bool C
 
bool A
 
ITouchID touchID = 0
 
float touchRadius = 0.f
 

Used to manage mouse modifiers i.e.

right click and shift/control/alt keys. Also used for multiple touches, to keep track of touch radius

Definition at line 1695 of file IGraphicsStructs.h.

IMouseMod::IMouseMod ( bool  l = false,
bool  r = false,
bool  s = false,
bool  c = false,
bool  a = false,
ITouchID  touchID = 0 
)
inline

Create an IMouseMod.

Parameters
lleft mouse button pressed
rright mouse button pressed
sshift pressed
cctrl pressed
aalt pressed
touchIDtouch identifier, for multi-touch

Definition at line 1708 of file IGraphicsStructs.h.

◆ DBGPrint()

void IMouseMod::DBGPrint ( )
inline

Print the mouse modifier values to the console in Debug builds.

Definition at line 1716 of file IGraphicsStructs.h.

◆ IsTouch()

bool IMouseMod::IsTouch ( ) const
inline

◆ A

◆ C

◆ L

◆ R

◆ S

◆ touchID

ITouchID IMouseMod::touchID = 0

◆ touchRadius

float IMouseMod::touchRadius = 0.f


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