HDK
|
#include <STY_TargetType.h>
Public Member Functions | |
STY_TargetType () | |
The style target is really a string wrapped by this class. More... | |
STY_TargetType (const char *target_type) | |
bool | operator== (const STY_TargetType &other) const |
bool | operator!= (const STY_TargetType &other) const |
bool | isPrimitive () const |
Checks if this is a primitive target (the default). More... | |
bool | isPoint () const |
Checks if this is a point target. More... | |
bool | isGeoObject () const |
Checks if this is an object target. More... | |
bool | isSelf () const |
Checks if this is a self target. More... | |
void | saveStyleSheet (UT_JSONValueMap *map) const |
Saves the target type to a JSON map for writing out a style sheet. More... | |
The target type used for identification general type of the targets. Specified by the style target and used for matching by styled objects. Uses shared string for both efficient storage an comparison (ptr comp).
Definition at line 28 of file STY_TargetType.h.
STY_TargetType::STY_TargetType | ( | ) |
The style target is really a string wrapped by this class.
|
explicit |
bool STY_TargetType::isGeoObject | ( | ) | const |
Checks if this is an object target.
bool STY_TargetType::isPoint | ( | ) | const |
Checks if this is a point target.
bool STY_TargetType::isPrimitive | ( | ) | const |
Checks if this is a primitive target (the default).
bool STY_TargetType::isSelf | ( | ) | const |
Checks if this is a self target.
|
inline |
Definition at line 39 of file STY_TargetType.h.
|
inline |
Target type comparison (since member points into the string table, the pointer comparison is sufficient).
Definition at line 37 of file STY_TargetType.h.
void STY_TargetType::saveStyleSheet | ( | UT_JSONValueMap * | map | ) | const |
Saves the target type to a JSON map for writing out a style sheet.