The HighlightOptionsKit class is a user space object. More...
#include <hps.h>
Public Member Functions | |
HighlightOptionsKit () | |
The default constructor creates an empty HighlightOptionsKit object. More... | |
HighlightOptionsKit (char const *in_style_name) | |
This constructor creates a HighlightOptionsKit object with the specified style name set on it. More... | |
HighlightOptionsKit (char const *in_style_name, char const *in_secondary_style_name) | |
This constructor creates a HighlightOptionsKit object with the specified style and secondary style names set on it. More... | |
HighlightOptionsKit (HighlightOptionsKit const &in_kit) | |
The copy constructor creates a new HighlightOptionsKit object that contains the same settings as the source HighlightOptionsKit. More... | |
HighlightOptionsKit (HighlightOptionsKit &&in_that) | |
The move constructor creates a HighlightOptionsKit by transferring the underlying impl of the rvalue reference to this HighlightOptionsKit thereby avoiding a copy and allocation. More... | |
HighlightOptionsKit & | operator= (HighlightOptionsKit &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this HighlightOptionsKit thereby avoiding a copy. More... | |
virtual | ~HighlightOptionsKit () |
HPS::Type | ObjectType () const |
void | Set (HighlightOptionsKit const &in_kit) |
Copies the source HighlightOptionsKit into this HighlightOptionsKit. More... | |
void | Show (HighlightOptionsKit &out_kit) const |
Copies this HighlightOptionsKit into the given HighlightOptionsKit. More... | |
HighlightOptionsKit & | operator= (HighlightOptionsKit const &in_kit) |
Copies the source HighlightOptionsKit into this HighlightOptionsKit. More... | |
bool | Empty () const |
Indicates whether this HighlightOptionsKit has any values set on it. More... | |
bool | Equals (HighlightOptionsKit const &in_kit) const |
Check if the source HighlightOptionsKit is equivalent to this HighlightOptionsKit. More... | |
bool | operator== (HighlightOptionsKit const &in_kit) const |
Check if the source HighlightOptionsKit is equivalent to this HighlightOptionsKit. More... | |
bool | operator!= (HighlightOptionsKit const &in_kit) const |
Check if the source HighlightOptionsKit is not equivalent to this HighlightOptionsKit. More... | |
HighlightOptionsKit & | SetPassive (bool in_pasive) |
Sets whether the highlight(s) to apply (or unapply) are passive. More... | |
HighlightOptionsKit & | SetStyleName (char const *in_style_name) |
Sets the name of the style to apply (or unapply) when highlighting (or unhighlighting). More... | |
HighlightOptionsKit & | SetSecondaryStyleName (char const *in_style_name) |
Sets the name of the secondary style to apply (or unapply) when highlighting (or unhighlighting). More... | |
HighlightOptionsKit & | SetOverlay (Drawing::Overlay in_overlay) |
Allows highlighting to take place in a segment without triggering a full-screen redraw. More... | |
HighlightOptionsKit & | SetNotification (bool in_state) |
Whether to inject a notification event after highlighting (or unhighlighting). More... | |
HighlightOptionsKit & | SetSubentityHighlighting (bool in_enable) |
Sets whether subentity highlighting is enabled. More... | |
HighlightOptionsKit & | UnsetPassive () |
Removes any preference on whether this highlight is passive or active. More... | |
HighlightOptionsKit & | UnsetStyleName () |
Removes the style to apply (or unapply) when highlighting (or unhighlighting). More... | |
HighlightOptionsKit & | UnsetSecondaryStyleName () |
Removes the secondary style to apply (or unapply) when highlighting (or unhighlighting). More... | |
HighlightOptionsKit & | UnsetOverlay () |
Removes an overlay setting. More... | |
HighlightOptionsKit & | UnsetNotification () |
Removes the notification setting. More... | |
HighlightOptionsKit & | UnsetSubentityHighlighting () |
Removes whether subentity highlighting is enabled. More... | |
HighlightOptionsKit & | UnsetEverything () |
Removes all settings from this HighlightOptionsKit. More... | |
bool | ShowPassive (bool &out_pasive) const |
Shows whether the highlight(s) to apply (or unapply) is passive. More... | |
bool | ShowStyleName (UTF8 &out_style_name) const |
Shows the name of the style to apply (or unapply) when highlighting (or unhighlighting). More... | |
bool | ShowSecondaryStyleName (UTF8 &out_style_name) const |
Shows the name of the secondary style to apply (or unapply) when highlighting (or unhighlighting). More... | |
bool | ShowOverlay (Drawing::Overlay &out_overlay) const |
Shows the overlay setting. More... | |
bool | ShowNotification (bool &out_state) const |
Shows the notification setting. More... | |
bool | ShowSubentityHighlighting (bool &out_enable) const |
Shows whether subentity highlighting is enabled. 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 | |
static HighlightOptionsKit | GetDefault () |
Creates a HighlightOptionsKit which contains the default settings. More... | |
template<typename T > | |
static intptr_t | ClassID () |
Unique identifier for this class. More... | |
Static Public Attributes | |
static const HPS::Type | staticType = HPS::Type::HighlightOptionsKit |
The HighlightOptionsKit class is a user space object.
It is used to hold settings needed when performing a highlight or unhighlight. HPS::HighlightOptionsKit::GetDefault() will return a highlight options kit with values found in this table.
HPS::HighlightOptionsKit::HighlightOptionsKit | ( | ) |
The default constructor creates an empty HighlightOptionsKit object.
HPS::HighlightOptionsKit::HighlightOptionsKit | ( | char const * | in_style_name | ) |
This constructor creates a HighlightOptionsKit object with the specified style name set on it.
in_style_name | The style name to set on this HighlightOptionsKit. |
HPS::HighlightOptionsKit::HighlightOptionsKit | ( | char const * | in_style_name, |
char const * | in_secondary_style_name | ||
) |
This constructor creates a HighlightOptionsKit object with the specified style and secondary style names set on it.
in_style_name | The style name to set on this HighlightOptionsKit. |
in_secondary_style_name | The style name to set on this HighlightOptionsKit. |
HPS::HighlightOptionsKit::HighlightOptionsKit | ( | HighlightOptionsKit const & | in_kit | ) |
The copy constructor creates a new HighlightOptionsKit object that contains the same settings as the source HighlightOptionsKit.
in_kit | The source HighlightOptionsKit to copy. |
HPS::HighlightOptionsKit::HighlightOptionsKit | ( | HighlightOptionsKit && | in_that | ) |
The move constructor creates a HighlightOptionsKit by transferring the underlying impl of the rvalue reference to this HighlightOptionsKit thereby avoiding a copy and allocation.
in_that | An rvalue reference to a HighlightOptionsKit 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 HighlightOptionsKit has any values set on it.
Reimplemented from HPS::Object.
bool HPS::HighlightOptionsKit::Equals | ( | HighlightOptionsKit const & | in_kit | ) | const |
Check if the source HighlightOptionsKit is equivalent to this HighlightOptionsKit.
in_kit | The source HighlightOptionsKit to compare to this HighlightOptionsKit. |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
static |
Creates a HighlightOptionsKit which contains the default settings.
The returned object will not necessarily have values set for every option, but it will have settings for those options where it is reasonable to have a default.
|
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::HighlightOptionsKit::operator!= | ( | HighlightOptionsKit const & | in_kit | ) | const |
Check if the source HighlightOptionsKit is not equivalent to this HighlightOptionsKit.
in_kit | The source HighlightOptionsKit to compare to this HighlightOptionsKit. |
HighlightOptionsKit& HPS::HighlightOptionsKit::operator= | ( | HighlightOptionsKit && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this HighlightOptionsKit thereby avoiding a copy.
in_that | An rvalue reference to a HighlightOptionsKit to take the impl from. |
HighlightOptionsKit& HPS::HighlightOptionsKit::operator= | ( | HighlightOptionsKit const & | in_kit | ) |
Copies the source HighlightOptionsKit into this HighlightOptionsKit.
in_kit | The source HighlightOptionsKit to copy. |
bool HPS::HighlightOptionsKit::operator== | ( | HighlightOptionsKit const & | in_kit | ) | const |
Check if the source HighlightOptionsKit is equivalent to this HighlightOptionsKit.
in_kit | The source HighlightOptionsKit to compare to this HighlightOptionsKit. |
|
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::HighlightOptionsKit::Set | ( | HighlightOptionsKit const & | in_kit | ) |
Copies the source HighlightOptionsKit into this HighlightOptionsKit.
in_kit | The source HighlightOptionsKit to copy. |
HighlightOptionsKit& HPS::HighlightOptionsKit::SetNotification | ( | bool | in_state | ) |
Whether to inject a notification event after highlighting (or unhighlighting).
in_state | Whether to inject a notification event after highlighting (or unhighlighting). |
HighlightOptionsKit& HPS::HighlightOptionsKit::SetOverlay | ( | Drawing::Overlay | in_overlay | ) |
Allows highlighting to take place in a segment without triggering a full-screen redraw.
If any type of overlay is used, transparency in the highlighted object(s) will be ignored.
in_overlay | The type of overlay, if any, to be used. If this HighlightOptionsKit is being passed to an Unhighlight call, only highlights whose overlay type match in_overlay will be removed. |
HighlightOptionsKit& HPS::HighlightOptionsKit::SetPassive | ( | bool | in_pasive | ) |
Sets whether the highlight(s) to apply (or unapply) are passive.
in_pasive | If set to true attribute locks set on the path being highlighted will be honored by the highlight. If set to false attribute locks set on the path being highlighted will be overriden by the highlight. If unspecified the default is false. If this HighlightOptionsKit is being passed to an Unhighlight call, only highlights whose passiveness match in_pasive will be removed. |
HighlightOptionsKit& HPS::HighlightOptionsKit::SetSecondaryStyleName | ( | char const * | in_style_name | ) |
Sets the name of the secondary style to apply (or unapply) when highlighting (or unhighlighting).
in_style_name | UTF8-encoded style name. |
HighlightOptionsKit& HPS::HighlightOptionsKit::SetStyleName | ( | char const * | in_style_name | ) |
Sets the name of the style to apply (or unapply) when highlighting (or unhighlighting).
in_style_name | UTF8-encoded style name. If this HighlightOptionsKit is being passed to an Unhighlight call, only highlights whose style name match in_style_name will be removed. |
HighlightOptionsKit& HPS::HighlightOptionsKit::SetSubentityHighlighting | ( | bool | in_enable | ) |
Sets whether subentity highlighting is enabled.
in_enable | Whether subentity highlighting is enabled. |
void HPS::HighlightOptionsKit::Show | ( | HighlightOptionsKit & | out_kit | ) | const |
Copies this HighlightOptionsKit into the given HighlightOptionsKit.
out_kit | The HighlightOptionsKit to populate with the contents of this HighlightOptionsKit. |
bool HPS::HighlightOptionsKit::ShowNotification | ( | bool & | out_state | ) | const |
Shows the notification setting.
out_state | Whether to inject a notification event after highlighting (or unhighlighting). |
bool HPS::HighlightOptionsKit::ShowOverlay | ( | Drawing::Overlay & | out_overlay | ) | const |
Shows the overlay setting.
out_overlay | The type of overlay, if any, used. |
bool HPS::HighlightOptionsKit::ShowPassive | ( | bool & | out_pasive | ) | const |
Shows whether the highlight(s) to apply (or unapply) is passive.
out_pasive | Indicates whether the highlight(s) to apply (or unapply) is passive. |
bool HPS::HighlightOptionsKit::ShowSecondaryStyleName | ( | UTF8 & | out_style_name | ) | const |
Shows the name of the secondary style to apply (or unapply) when highlighting (or unhighlighting).
out_style_name | UTF8-encoded style name. |
bool HPS::HighlightOptionsKit::ShowStyleName | ( | UTF8 & | out_style_name | ) | const |
Shows the name of the style to apply (or unapply) when highlighting (or unhighlighting).
out_style_name | UTF8-encoded style name. |
bool HPS::HighlightOptionsKit::ShowSubentityHighlighting | ( | bool & | out_enable | ) | const |
Shows whether subentity highlighting is enabled.
out_enable | Whether subentity highlighting is enabled. |
|
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.
HighlightOptionsKit& HPS::HighlightOptionsKit::UnsetEverything | ( | ) |
Removes all settings from this HighlightOptionsKit.
HighlightOptionsKit& HPS::HighlightOptionsKit::UnsetNotification | ( | ) |
Removes the notification setting.
HighlightOptionsKit& HPS::HighlightOptionsKit::UnsetOverlay | ( | ) |
Removes an overlay setting.
HighlightOptionsKit& HPS::HighlightOptionsKit::UnsetPassive | ( | ) |
Removes any preference on whether this highlight is passive or active.
HighlightOptionsKit& HPS::HighlightOptionsKit::UnsetSecondaryStyleName | ( | ) |
Removes the secondary style to apply (or unapply) when highlighting (or unhighlighting).
HighlightOptionsKit& HPS::HighlightOptionsKit::UnsetStyleName | ( | ) |
Removes the style to apply (or unapply) when highlighting (or unhighlighting).
HighlightOptionsKit& HPS::HighlightOptionsKit::UnsetSubentityHighlighting | ( | ) |
Removes whether subentity highlighting is enabled.
|
static |