SynthLab SDK
ASPiK-GUI

Macros

#define enumToInt(ENUM)   static_cast<int>(ENUM)
 macro helper to cast a typed enum to an int More...
 
#define compareEnumToInt(ENUM, INT)   (static_cast<int>(ENUM) == (INT))
 compare a typed enum value to an int More...
 
#define compareIntToEnum(INT, ENUM)   ((INT) == static_cast<int>(ENUM))
 compare a typed enum value to an int More...
 
#define convertIntToEnum(INT, ENUM)   static_cast<ENUM>(INT)
 convert an int to an enum, e.g. for passing to functions More...
 

Detailed Description

The VSTGUI::PluginGUI:

The PluginParameter:

Macro Definition Documentation

◆ compareEnumToInt

#define compareEnumToInt (   ENUM,
  INT 
)    (static_cast<int>(ENUM) == (INT))

compare a typed enum value to an int

Parameters
ENUM- the typed enum to compare with
INT- the int to compare with
Returns
true if equal false otherwise

◆ compareIntToEnum

#define compareIntToEnum (   INT,
  ENUM 
)    ((INT) == static_cast<int>(ENUM))

compare a typed enum value to an int

Parameters
INT- the int to compare with
ENUM- the typed enum to compare with
Returns
true if equal false otherwise

◆ convertIntToEnum

#define convertIntToEnum (   INT,
  ENUM 
)    static_cast<ENUM>(INT)

convert an int to an enum, e.g. for passing to functions

Parameters
INT- the int to compare with
ENUM- the typed enum to compare with
Returns
the int value properly cast as the enum type

◆ enumToInt

#define enumToInt (   ENUM)    static_cast<int>(ENUM)

macro helper to cast a typed enum to an int

Parameters
ENUM- the typed enum to convert
Returns
the enum properly cast as an int (the true underlying datatype for enum class)