#include <hps.h>
Public Member Functions | |
GlyphLinePatternElement () | |
GlyphLinePatternElement (LinePatternElement const &in_that) | |
GlyphLinePatternElement (GlyphLinePatternElement const &in_that) | |
GlyphLinePatternElement (GlyphLinePatternElement &&in_that) | |
HPS::Type | ObjectType () const |
GlyphLinePatternElement & | operator= (GlyphLinePatternElement const &in_that) |
GlyphLinePatternElement & | operator= (GlyphLinePatternElement &&in_that) |
void | SetFixed (bool in_state) |
void | SetInsetBehavior (LinePattern::InsetBehavior in_behavior) |
void | SetMirror (bool in_state) |
void | SetRotation (float in_degrees) |
void | SetSource (char const *in_source) |
void | SetWeight (float in_weight, LinePattern::SizeUnits in_units) |
bool | ShowFixed (bool &out_state) const |
bool | ShowInsetBehavior (LinePattern::InsetBehavior &out_behavior) const |
bool | ShowMirror (bool &out_state) const |
bool | ShowRotation (float &out_degrees) const |
bool | ShowSource (UTF8 &out_source) const |
bool | ShowWeight (float &out_weight, LinePattern::SizeUnits &out_units) const |
![]() | |
bool | Equals (LinePatternElement const &in_that) const |
LinePatternElement () | |
LinePatternElement (LinePatternElement const &in_that) | |
LinePatternElement (LinePatternElement &&in_that) | |
bool | operator!= (LinePatternElement const &in_that) const |
LinePatternElement & | operator= (LinePatternElement &&in_that) |
LinePatternElement & | operator= (LinePatternElement const &in_that) |
bool | operator== (LinePatternElement const &in_that) const |
void | Set (LinePatternElement const &in_that) |
void | SetSize (float in_size, LinePattern::SizeUnits in_units) |
bool | ShowSize (float &out_size, LinePattern::SizeUnits &out_units) const |
![]() | |
virtual bool | Empty () const |
intptr_t | GetClassID () const |
intptr_t | GetInstanceID () const |
bool | HasType (HPS::Type in_mask) const |
Object (Object const &that) | |
Object (Object &&in_that) | |
Object & | operator= (Object const &other_object) |
Object & | operator= (Object &&in_that) |
virtual void | Reset () |
HPS::Type | Type () const |
Additional Inherited Members | |
![]() | |
template<typename T > | |
static intptr_t | ClassID () |
The GlyphLinePatternElement class is a user space object. It is used for specifying glyphs elements within a line pattern.
HPS::GlyphLinePatternElement::GlyphLinePatternElement | ( | ) |
The default constructor creates an empty GlyphLinePatternElement object.
HPS::GlyphLinePatternElement::GlyphLinePatternElement | ( | LinePatternElement const & | in_that | ) |
This constructor creates a GlyphLinePatternElement object that contains the same settings as the source LinePatternElement. The copy will only be successful if the source line pattern element is really an upcast of a glyph line pattern element. Otherwise the copy will fail and the resulting GlyphLinePatternElement will be invalid.
in_that | The source LinePatternElement to copy. |
HPS::GlyphLinePatternElement::GlyphLinePatternElement | ( | GlyphLinePatternElement const & | in_that | ) |
The copy constructor creates a new GlyphLinePatternElement object that contains the same settings as the source GlyphLinePatternElement.
in_that | The source GlyphLinePatternElement to copy. |
HPS::GlyphLinePatternElement::GlyphLinePatternElement | ( | GlyphLinePatternElement && | in_that | ) |
The move constructor creates a GlyphLinePatternElement by transferring the underlying impl of the rvalue reference to this GlyphLinePatternElement thereby avoiding a copy and allocation.
in_that | An rvalue reference to a GlyphLinePatternElement to take the impl from. |
|
inlinevirtual |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.
Reimplemented from HPS::LinePatternElement.
GlyphLinePatternElement& HPS::GlyphLinePatternElement::operator= | ( | GlyphLinePatternElement const & | in_that | ) |
Copies the source GlyphLinePatternElement into this GlyphLinePatternElement.
in_that | The source GlyphLinePatternElement to copy. |
GlyphLinePatternElement& HPS::GlyphLinePatternElement::operator= | ( | GlyphLinePatternElement && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this GlyphLinePatternElement thereby avoiding a copy.
in_that | An rvalue reference to a GlyphLinePatternElement to take the impl from. |
void HPS::GlyphLinePatternElement::SetFixed | ( | bool | in_state | ) |
Sets whether the angle of the GlyphLinePatternElement should be fixed relative to the line vector.
in_state | Whether the angle of the GlyphLinePatternElement should be fixed relative to the line vector. |
void HPS::GlyphLinePatternElement::SetInsetBehavior | ( | LinePattern::InsetBehavior | in_behavior | ) |
Sets the inset behavior for this GlyphLinePatternElement.
in_behavior | The inset behavior for this GlyphLinePatternElement. |
void HPS::GlyphLinePatternElement::SetMirror | ( | bool | in_state | ) |
Sets whether to flip this GlyphLinePatternElement about the x-axis prior to applying any rotation.
in_state | Whether to flip this GlyphLinePatternElement about the x-axis prior to applying any rotation. |
void HPS::GlyphLinePatternElement::SetRotation | ( | float | in_degrees | ) |
Sets the angle in degrees the GlyphLinePatternElement is rotated relative to the line vector.
in_degrees | The angle in degrees the GlyphLinePatternElement is rotated relative to the line vector. |
void HPS::GlyphLinePatternElement::SetSource | ( | char const * | in_source | ) |
Sets the name of the source for this GlyphLinePatternElement.
in_source | UTF8-encoded name of the source for this GlyphLinePatternElement. |
void HPS::GlyphLinePatternElement::SetWeight | ( | float | in_weight, |
LinePattern::SizeUnits | in_units | ||
) |
Sets the weight for this GlyphLinePatternElement.
in_weight | The weight for this GlyphLinePatternElement. |
in_units | The units of the weight for this GlyphLinePatternElement. |
bool HPS::GlyphLinePatternElement::ShowFixed | ( | bool & | out_state | ) | const |
Shows whether the angle of the GlyphLinePatternElement should be fixed relative to the line vector.
out_state | Whether the angle of the GlyphLinePatternElement should be fixed relative to the line vector. |
bool HPS::GlyphLinePatternElement::ShowInsetBehavior | ( | LinePattern::InsetBehavior & | out_behavior | ) | const |
Shows the inset behavior for this GlyphLinePatternElement.
out_behavior | The inset behavior for this GlyphLinePatternElement. |
bool HPS::GlyphLinePatternElement::ShowMirror | ( | bool & | out_state | ) | const |
Shows whether to flip this GlyphLinePatternElement about the x-axis prior to applying any rotation.
out_state | Whether to flip this GlyphLinePatternElement about the x-axis prior to applying any rotation. |
bool HPS::GlyphLinePatternElement::ShowRotation | ( | float & | out_degrees | ) | const |
Shows the angle in degrees the GlyphLinePatternElement is rotated relative to the line vector.
out_degrees | The angle in degrees the GlyphLinePatternElement is rotated relative to the line vector. |
bool HPS::GlyphLinePatternElement::ShowSource | ( | UTF8 & | out_source | ) | const |
Shows the name of the source for this GlyphLinePatternElement.
out_source | UTF8-encoded name of the source for this GlyphLinePatternElement. |
bool HPS::GlyphLinePatternElement::ShowWeight | ( | float & | out_weight, |
LinePattern::SizeUnits & | out_units | ||
) | const |
Shows the weight for this GlyphLinePatternElement.
out_weight | The weight for this GlyphLinePatternElement. |
out_units | The units for the weight for this GlyphLinePatternElement. |