PeriDyno 1.2.1
Loading...
Searching...
No Matches
WtNodeStyle.cpp File Reference
#include "WtNodeStyle.h"
Include dependency graph for WtNodeStyle.cpp:

Go to the source code of this file.

Macros

#define STYLE_READ_COLOR(values, variable)
 
#define STYLE_READ_FLOAT(values, variable)
 
#define STYLE_READ_BOOL(values, variable)
 

Typedefs

using json = nlohmann::json
 

Macro Definition Documentation

◆ STYLE_READ_BOOL

#define STYLE_READ_BOOL ( values,
variable )
Value:
{ \
auto valueRef = values[#variable]; \
if(valueRef.is_boolean()){ \
variable = valueRef; \
}\
else { \
Wt::log("error") << "Error with Json"; \
}\
}

Definition at line 51 of file WtNodeStyle.cpp.

◆ STYLE_READ_COLOR

#define STYLE_READ_COLOR ( values,
variable )

Definition at line 5 of file WtNodeStyle.cpp.

◆ STYLE_READ_FLOAT

#define STYLE_READ_FLOAT ( values,
variable )
Value:
{ \
auto valueRef = values[#variable]; \
if(!valueRef.is_boolean()) { \
if(valueRef.is_number_float()) { \
variable = valueRef; \
}\
else { \
Wt::log("error") << "Error with Json"; \
}\
} \
}

Definition at line 39 of file WtNodeStyle.cpp.

Typedef Documentation

◆ json

using json = nlohmann::json

Definition at line 3 of file WtNodeStyle.cpp.