HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
STY_TargetType Class Reference

#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...
 

Detailed Description

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.

Constructor & Destructor Documentation

STY_TargetType::STY_TargetType ( )

The style target is really a string wrapped by this class.

STY_TargetType::STY_TargetType ( const char *  target_type)
explicit

Member Function Documentation

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.

bool STY_TargetType::operator!= ( const STY_TargetType other) const
inline

Definition at line 39 of file STY_TargetType.h.

bool STY_TargetType::operator== ( const STY_TargetType other) const
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.


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