![]() |
Hot Door CORE 0.8.3
Adobe® Illustrator® Plug-in Library
|
Allows for storage of font faces and sizes. More...
#include <hdicoreFontPref.h>
Public Member Functions | |
FontPref () | |
Constructs an empty FontPref object. | |
FontPref (const FontPref &f_) | |
Constructs a new FontPref object from an existing FontPref object (copy constructor) | |
FontPref (const Font &face_, const double size_, const std::string &name_="") | |
Constructs a FontPref object, with new data, to be added to a container at a later time. | |
virtual | ~FontPref () |
Destructs a FontPref object. | |
virtual FontPref & | operator= (const FontPref &rhs_) |
Allows one FontPref object to be assigned from another. | |
virtual FontPref * | clone () const |
Convenience method to clone an FontPref object on the heap. | |
virtual std::unique_ptr< Font > | font () const |
Gets the font face for this object. | |
virtual bool | setFont (const Font &font_) |
Sets the font face for this object. | |
virtual double | size () const |
Gets the font size for this object. | |
virtual bool | setSize (const double size_) |
Sets the font size for this object. | |
![]() | |
PrefData () | |
Constructs an empty PrefData object. | |
virtual | ~PrefData () |
Destructs a PrefData object. | |
virtual PrefData & | operator= (const PrefData &rhs_) |
Allows one PrefData object to be assigned from another. | |
virtual PrefData * | clone () const =0 |
Convenience method to clone a PrefData object, taking its subclass type into account for proper memory management. | |
virtual bool | isEmpty () const |
Gets whether the target PrefData object is empty (constructed with the default ctor) | |
virtual bool | operator== (const PrefData &rhs_) const |
Tests whether a given PrefData object is the same as another. | |
virtual bool | operator!= (const PrefData &rhs_) const |
Tests whether a given PrefData object is not the same as another. | |
virtual Type | dataType () const |
Gets the type of persistent data. | |
virtual std::string | key () const |
Gets the persistent data object's key. | |
virtual void | setKey (const std::string &key_) |
Sets the persistent data object's key. | |
virtual std::string | stringify () const |
Recursively serializes the target object as a JSON data (sub)tree, returning the appropriate JSON string. | |
Additional Inherited Members | |
![]() | |
enum | Type { UnknownType = 0 , ArrayType = 10 , ArtboardPointType = 20 , ArtboardRectType = 30 , ArtColorType = 40 , BoolType = 50 , ColorType = 60 , DashStyleType = 70 , DashStyleMapType = 80 , DictionaryType = 90 , FillStyleType = 100 , FillStyleMapType = 110 , FontType = 120 , NumberType = 130 , PathType = 140 , PathStyleType = 150 , PathStyleMapType = 160 , PointType = 170 , RectType = 180 , SizeType = 190 , StringType = 200 , StrokeStyleType = 210 , StrokeStyleMapType = 220 , TransformMatrixType = 230 , CustomTypeOffset = 10000 } |
Describes the type of the data the PrefData object contains; useful for determining which subclass to cast a PrefData object to. | |
![]() | |
static std::unique_ptr< PrefData > | parse (const std::string &jsonStr_) |
Parses the given JSON string to a best-fit representation of PrefData subclass objects in a tree. | |
![]() | |
void * | __impl () const |
Internal use only. | |
PrefData (plat::PersistentData *&) | |
Internal use only. | |
PrefData (const PrefData &data_) | |
Constructs a new PrefData object from an existing PrefData object (copy constructor) | |
![]() | |
void * | _data |
Private implementation data. | |
Allows for storage of font faces and sizes.
hdi::core::FontPref::FontPref | ( | ) |
Constructs an empty FontPref object.
hdi::core::FontPref::FontPref | ( | const FontPref & | f_ | ) |
hdi::core::FontPref::FontPref | ( | const Font & | face_, |
const double | size_, | ||
const std::string & | name_ = "" |
||
) |
Constructs a FontPref object, with new data, to be added to a container at a later time.
face_ | Initial font face |
size_ | Initial font size |
name_ | Name for the data once it has been added to its container, as UTF-8 |
|
virtual |
Destructs a FontPref object.
|
virtual |
Convenience method to clone an FontPref object on the heap.
Implements hdi::core::PrefData.
|
virtual |
Gets the font face for this object.
|
virtual |
Sets the font face for this object.
font_ | New font face |
|
virtual |
Sets the font size for this object.
size_ | New font size value |
|
virtual |
Gets the font size for this object.