The LinePatternOptionsKit class is a user space object. More...
#include <hps.h>
Public Member Functions | |
LinePatternOptionsKit () | |
The default constructor creates an empty LinePatternOptionsKit object. More... | |
LinePatternOptionsKit (LinePatternOptionsKit const &in_kit) | |
The copy constructor creates a new LinePatternOptionsKit object that contains the same settings as the source LinePatternOptionsKit. More... | |
LinePatternOptionsKit (LinePatternOptionsKit &&in_that) | |
The move constructor creates a LinePatternOptionsKit by transferring the underlying impl of the rvalue reference to this LinePatternOptionsKit thereby avoiding a copy and allocation. More... | |
LinePatternOptionsKit & | operator= (LinePatternOptionsKit &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this LinePatternOptionsKit thereby avoiding a copy. More... | |
virtual | ~LinePatternOptionsKit () |
HPS::Type | ObjectType () const |
void | Set (LinePatternOptionsKit const &in_kit) |
Copies the source LinePatternOptionsKit into this LinePatternOptionsKit. More... | |
void | Show (LinePatternOptionsKit &out_kit) const |
Copies this LinePatternOptionsKit into the given LinePatternOptionsKit. More... | |
LinePatternOptionsKit & | operator= (LinePatternOptionsKit const &in_kit) |
Copies the source LinePatternOptionsKit into this LinePatternOptionsKit. More... | |
bool | Empty () const |
Indicates whether this LinePatternOptionsKit has any values set on it. More... | |
bool | Equals (LinePatternOptionsKit const &in_kit) const |
Check if the source LinePatternOptionsKit is equivalent to this LinePatternOptionsKit. More... | |
bool | operator== (LinePatternOptionsKit const &in_kit) const |
Check if the source LinePatternOptionsKit is equivalent to this LinePatternOptionsKit. More... | |
bool | operator!= (LinePatternOptionsKit const &in_kit) const |
Check if the source LinePatternOptionsKit is not equivalent to this LinePatternOptionsKit. More... | |
LinePatternOptionsKit & | SetStartCap (char const *in_glyph) |
Sets the glyph to use as the start cap for the associated line pattern. More... | |
LinePatternOptionsKit & | SetStartCap (LinePattern::Cap in_type) |
Sets the cap to use as the start cap for the associated line pattern. More... | |
LinePatternOptionsKit & | SetEndCap (char const *in_glyph) |
Sets the glyph to use as the end cap for the associated line pattern. More... | |
LinePatternOptionsKit & | SetEndCap (LinePattern::Cap in_type) |
Sets the cap to use as the end cap for the associated line pattern. More... | |
LinePatternOptionsKit & | SetInnerCap (LinePattern::Cap in_type) |
Sets the cap to use as the inner cap for the associated line pattern. More... | |
LinePatternOptionsKit & | SetJoin (char const *in_glyph) |
Sets the glyph to use as the join for the associated line pattern. More... | |
LinePatternOptionsKit & | SetJoin (LinePattern::Join in_type) |
Sets the join to use for the associated line pattern. More... | |
LinePatternOptionsKit & | UnsetStartCap () |
Removes the start cap for this LinePatternOptionsKit. More... | |
LinePatternOptionsKit & | UnsetEndCap () |
Removes the end cap for this LinePatternOptionsKit. More... | |
LinePatternOptionsKit & | UnsetInnerCap () |
Removes the inner cap for this LinePatternOptionsKit. More... | |
LinePatternOptionsKit & | UnsetJoin () |
Removes the join for this LinePatternOptionsKit. More... | |
LinePatternOptionsKit & | UnsetEverything () |
Removes all settings from this LinePatternOptionsKit. More... | |
bool | ShowStartCap (LinePattern::Modifier &out_modifier, UTF8 &out_glyph, LinePattern::Cap &out_type) const |
Shows the start cap for this LinePatternOptionsKit. More... | |
bool | ShowEndCap (LinePattern::Modifier &out_modifier, UTF8 &out_glyph, LinePattern::Cap &out_type) const |
Shows the end cap for this LinePatternOptionsKit. More... | |
bool | ShowInnerCap (LinePattern::Cap &out_type) const |
Shows the inner cap for this LinePatternOptionsKit. More... | |
bool | ShowJoin (LinePattern::Modifier &out_modifier, UTF8 &out_glyph, LinePattern::Join &out_type) const |
Shows the join for this LinePatternOptionsKit. More... | |
virtual HPS::Type | Type () const |
This function returns the true type of the underlying object. More... | |
virtual void | Reset () |
Resets this object to its initial, uninitialized state. More... | |
bool | HasType (HPS::Type in_mask) const |
This function indicates whether this Object has the given Type mask. More... | |
intptr_t | GetClassID () const |
Returns a unique identifier that is shared by all objects of the same class. More... | |
intptr_t | GetInstanceID () const |
Returns an identifier that can be used to identify which instance of a class an object is. More... | |
Static Public Member Functions | |
template<typename T > | |
static intptr_t | ClassID () |
Unique identifier for this class. More... | |
Static Public Attributes | |
static const HPS::Type | staticType = HPS::Type::LinePatternOptionsKit |
The LinePatternOptionsKit class is a user space object.
It is used for specifying (or overriding) some line pattern options when setting a line pattern on a segment.
HPS::LinePatternOptionsKit::LinePatternOptionsKit | ( | ) |
The default constructor creates an empty LinePatternOptionsKit object.
HPS::LinePatternOptionsKit::LinePatternOptionsKit | ( | LinePatternOptionsKit const & | in_kit | ) |
The copy constructor creates a new LinePatternOptionsKit object that contains the same settings as the source LinePatternOptionsKit.
in_kit | The source LinePatternOptionsKit to copy. |
HPS::LinePatternOptionsKit::LinePatternOptionsKit | ( | LinePatternOptionsKit && | in_that | ) |
The move constructor creates a LinePatternOptionsKit by transferring the underlying impl of the rvalue reference to this LinePatternOptionsKit thereby avoiding a copy and allocation.
in_that | An rvalue reference to a LinePatternOptionsKit to take the impl from. |
|
virtual |
|
inlinestaticinherited |
Unique identifier for this class.
Note: this method uses construction of static objects. If used in a constructor, it should be used in the body not the initializer list.
|
virtual |
Indicates whether this LinePatternOptionsKit has any values set on it.
Reimplemented from HPS::Object.
bool HPS::LinePatternOptionsKit::Equals | ( | LinePatternOptionsKit const & | in_kit | ) | const |
Check if the source LinePatternOptionsKit is equivalent to this LinePatternOptionsKit.
in_kit | The source LinePatternOptionsKit to compare to this LinePatternOptionsKit. |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
inherited |
Returns an identifier that can be used to identify which instance of a class an object is.
Different keys and controls will return the same value if they are backed by the same database resource.
|
inherited |
|
inlinevirtual |
bool HPS::LinePatternOptionsKit::operator!= | ( | LinePatternOptionsKit const & | in_kit | ) | const |
Check if the source LinePatternOptionsKit is not equivalent to this LinePatternOptionsKit.
in_kit | The source LinePatternOptionsKit to compare to this LinePatternOptionsKit. |
LinePatternOptionsKit& HPS::LinePatternOptionsKit::operator= | ( | LinePatternOptionsKit && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this LinePatternOptionsKit thereby avoiding a copy.
in_that | An rvalue reference to a LinePatternOptionsKit to take the impl from. |
LinePatternOptionsKit& HPS::LinePatternOptionsKit::operator= | ( | LinePatternOptionsKit const & | in_kit | ) |
Copies the source LinePatternOptionsKit into this LinePatternOptionsKit.
in_kit | The source LinePatternOptionsKit to copy. |
bool HPS::LinePatternOptionsKit::operator== | ( | LinePatternOptionsKit const & | in_kit | ) | const |
Check if the source LinePatternOptionsKit is equivalent to this LinePatternOptionsKit.
in_kit | The source LinePatternOptionsKit to compare to this LinePatternOptionsKit. |
|
virtualinherited |
Resets this object to its initial, uninitialized state.
Reimplemented in HPS::EventHandler, HPS::EventDispatcher, HPS::World, HPS::HighlightSearchResults, HPS::HighlightSearchResultsIterator, HPS::SelectionResults, HPS::SelectionResultsIterator, HPS::FontSearchResults, HPS::FontSearchResultsIterator, HPS::SearchResults, and HPS::SearchResultsIterator.
void HPS::LinePatternOptionsKit::Set | ( | LinePatternOptionsKit const & | in_kit | ) |
Copies the source LinePatternOptionsKit into this LinePatternOptionsKit.
in_kit | The source LinePatternOptionsKit to copy. |
LinePatternOptionsKit& HPS::LinePatternOptionsKit::SetEndCap | ( | char const * | in_glyph | ) |
Sets the glyph to use as the end cap for the associated line pattern.
in_glyph | UTF8-encoded name of the glyph to use as the end cap for the associated line pattern. |
LinePatternOptionsKit& HPS::LinePatternOptionsKit::SetEndCap | ( | LinePattern::Cap | in_type | ) |
Sets the cap to use as the end cap for the associated line pattern.
in_type | The type of cap to use as the end cap for the associated line pattern. |
LinePatternOptionsKit& HPS::LinePatternOptionsKit::SetInnerCap | ( | LinePattern::Cap | in_type | ) |
Sets the cap to use as the inner cap for the associated line pattern.
in_type | The type of cap to use as the inner cap for the associated line pattern. |
LinePatternOptionsKit& HPS::LinePatternOptionsKit::SetJoin | ( | char const * | in_glyph | ) |
Sets the glyph to use as the join for the associated line pattern.
in_glyph | UTF8-encoded name of the glyph to use as the join for the associated line pattern. |
LinePatternOptionsKit& HPS::LinePatternOptionsKit::SetJoin | ( | LinePattern::Join | in_type | ) |
Sets the join to use for the associated line pattern.
in_type | The type of join to use for the associated line pattern. |
LinePatternOptionsKit& HPS::LinePatternOptionsKit::SetStartCap | ( | char const * | in_glyph | ) |
Sets the glyph to use as the start cap for the associated line pattern.
in_glyph | UTF8-encoded name of the glyph to use as the start cap for the associated line pattern. |
LinePatternOptionsKit& HPS::LinePatternOptionsKit::SetStartCap | ( | LinePattern::Cap | in_type | ) |
Sets the cap to use as the start cap for the associated line pattern.
in_type | The type of cap to use as the start cap for the associated line pattern. |
void HPS::LinePatternOptionsKit::Show | ( | LinePatternOptionsKit & | out_kit | ) | const |
Copies this LinePatternOptionsKit into the given LinePatternOptionsKit.
out_kit | The LinePatternOptionsKit to populate with the contents of this LinePatternOptionsKit. |
bool HPS::LinePatternOptionsKit::ShowEndCap | ( | LinePattern::Modifier & | out_modifier, |
UTF8 & | out_glyph, | ||
LinePattern::Cap & | out_type | ||
) | const |
Shows the end cap for this LinePatternOptionsKit.
out_modifier | Indicates which of the following arguments is valid. |
out_glyph | UTF8-encoded name of the glyph to use as the end cap. This is only valid if out_modifier is LinePattern::Modifier::GlyphName. |
out_type | The predefined type of cap to use as the end cap. This is only valid if out_modifier is LinePattern::Modifier::Enumerated. |
bool HPS::LinePatternOptionsKit::ShowInnerCap | ( | LinePattern::Cap & | out_type | ) | const |
Shows the inner cap for this LinePatternOptionsKit.
out_type | The predefined type of cap to use as the inner cap. |
bool HPS::LinePatternOptionsKit::ShowJoin | ( | LinePattern::Modifier & | out_modifier, |
UTF8 & | out_glyph, | ||
LinePattern::Join & | out_type | ||
) | const |
Shows the join for this LinePatternOptionsKit.
out_modifier | Indicates which of the following arguments is valid. |
out_glyph | UTF8-encoded name of the glyph to use as the join. This is only valid if out_modifier is LinePattern::Modifier::GlyphName. |
out_type | The predefined type of join to use. This is only valid if out_modifier is LinePattern::Modifier::Enumerated. |
bool HPS::LinePatternOptionsKit::ShowStartCap | ( | LinePattern::Modifier & | out_modifier, |
UTF8 & | out_glyph, | ||
LinePattern::Cap & | out_type | ||
) | const |
Shows the start cap for this LinePatternOptionsKit.
out_modifier | Indicates which of the following arguments is valid. |
out_glyph | UTF8-encoded name of the glyph to use as the start cap. This is only valid if out_modifier is LinePattern::Modifier::GlyphName. |
out_type | The predefined type of cap to use as the start cap. This is only valid if out_modifier is LinePattern::Modifier::Enumerated. |
|
inlinevirtualinherited |
This function returns the true type of the underlying object.
This function is useful for finding the type of smart pointer objects that have been cast to more generic types.
Reimplemented from HPS::Object.
LinePatternOptionsKit& HPS::LinePatternOptionsKit::UnsetEndCap | ( | ) |
Removes the end cap for this LinePatternOptionsKit.
This will result in the end cap defined on the associated line pattern (if any) getting used when set with this LinePatternOptionsKit.
LinePatternOptionsKit& HPS::LinePatternOptionsKit::UnsetEverything | ( | ) |
Removes all settings from this LinePatternOptionsKit.
LinePatternOptionsKit& HPS::LinePatternOptionsKit::UnsetInnerCap | ( | ) |
Removes the inner cap for this LinePatternOptionsKit.
LinePatternOptionsKit& HPS::LinePatternOptionsKit::UnsetJoin | ( | ) |
Removes the join for this LinePatternOptionsKit.
This will result in the join defined on the associated line pattern (if any) getting used when set with this LinePatternOptionsKit.
LinePatternOptionsKit& HPS::LinePatternOptionsKit::UnsetStartCap | ( | ) |
Removes the start cap for this LinePatternOptionsKit.
This will result in the start cap defined on the associated line pattern (if any) getting used when set with this LinePatternOptionsKit.
|
static |