The HighlightSearchOptionsKit class is a user space object. More...
#include <hps.h>
Public Member Functions | |
HighlightSearchOptionsKit () | |
The default constructor creates an empty HighlightSearchOptionsKit object. More... | |
HighlightSearchOptionsKit (HighlightSearchOptionsKit const &in_kit) | |
The copy constructor creates a new HighlightSearchOptionsKit object that contains the same settings as the source HighlightSearchOptionsKit. More... | |
HighlightSearchOptionsKit (HighlightSearchOptionsKit &&in_that) | |
The move constructor creates a HighlightSearchOptionsKit by transferring the underlying impl of the rvalue reference to this HighlightSearchOptionsKit thereby avoiding a copy and allocation. More... | |
HighlightSearchOptionsKit & | operator= (HighlightSearchOptionsKit &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this HighlightSearchOptionsKit thereby avoiding a copy. More... | |
virtual | ~HighlightSearchOptionsKit () |
HPS::Type | ObjectType () const |
void | Set (HighlightSearchOptionsKit const &in_kit) |
Copies the source HighlightSearchOptionsKit into this HighlightSearchOptionsKit. More... | |
void | Show (HighlightSearchOptionsKit &out_kit) const |
Copies this HighlightSearchOptionsKit into the given HighlightSearchOptionsKit. More... | |
HighlightSearchOptionsKit & | operator= (HighlightSearchOptionsKit const &in_kit) |
Copies the source HighlightSearchOptionsKit into this HighlightSearchOptionsKit. More... | |
bool | Empty () const |
Indicates whether this HighlightSearchOptionsKit has any values set on it. More... | |
bool | Equals (HighlightSearchOptionsKit const &in_kit) const |
Check if the source HighlightSearchOptionsKit is equivalent to this HighlightSearchOptionsKit. More... | |
bool | operator== (HighlightSearchOptionsKit const &in_kit) const |
Check if the source HighlightSearchOptionsKit is equivalent to this HighlightSearchOptionsKit. More... | |
bool | operator!= (HighlightSearchOptionsKit const &in_kit) const |
Check if the source HighlightSearchOptionsKit is not equivalent to this HighlightSearchOptionsKit. More... | |
HighlightSearchOptionsKit & | SetStyleName (char const *in_style_name) |
Sets the name of the style to look for when querying highlights. More... | |
HighlightSearchOptionsKit & | SetStyleNames (UTF8Array const &in_style_names) |
Sets the names of the styles to look for when querying highlights. More... | |
HighlightSearchOptionsKit & | SetOverlay (Drawing::Overlay in_overlay) |
Sets the overlay type to look for when querying highlights. More... | |
HighlightSearchOptionsKit & | SetOverlays (DrawingOverlayArray const &in_overlays) |
Sets the overlay types to look for when querying highlights. More... | |
HighlightSearchOptionsKit & | UnsetStyleNames () |
Removes all style filters. More... | |
HighlightSearchOptionsKit & | UnsetOverlays () |
Removes all overlay filters. More... | |
HighlightSearchOptionsKit & | UnsetEverything () |
Removes all settings from this HighlightSearchOptionsKit. More... | |
bool | ShowStyleNames (UTF8Array &out_style_names) const |
Shows the names of the styles to look for when querying highlights. More... | |
bool | ShowOverlays (DrawingOverlayArray &out_overlays) const |
Shows the overlay types to look for when querying highlights. 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 HighlightSearchOptionsKit | GetDefault () |
Creates a HighlightSearchOptionsKit 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::HighlightSearchOptionsKit |
The HighlightSearchOptionsKit class is a user space object.
It is used to filter highlight queries via HighlightControl::ShowHighlightState, HighlightControl::ShowHighlightStates, and WindowKey::FindHighlights.
HPS::HighlightSearchOptionsKit::HighlightSearchOptionsKit | ( | ) |
The default constructor creates an empty HighlightSearchOptionsKit object.
HPS::HighlightSearchOptionsKit::HighlightSearchOptionsKit | ( | HighlightSearchOptionsKit const & | in_kit | ) |
The copy constructor creates a new HighlightSearchOptionsKit object that contains the same settings as the source HighlightSearchOptionsKit.
in_kit | The source HighlightSearchOptionsKit to copy. |
HPS::HighlightSearchOptionsKit::HighlightSearchOptionsKit | ( | HighlightSearchOptionsKit && | in_that | ) |
The move constructor creates a HighlightSearchOptionsKit by transferring the underlying impl of the rvalue reference to this HighlightSearchOptionsKit thereby avoiding a copy and allocation.
in_that | An rvalue reference to a HighlightSearchOptionsKit 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 HighlightSearchOptionsKit has any values set on it.
Reimplemented from HPS::Object.
bool HPS::HighlightSearchOptionsKit::Equals | ( | HighlightSearchOptionsKit const & | in_kit | ) | const |
Check if the source HighlightSearchOptionsKit is equivalent to this HighlightSearchOptionsKit.
in_kit | The source HighlightSearchOptionsKit to compare to this HighlightSearchOptionsKit. |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
static |
Creates a HighlightSearchOptionsKit 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::HighlightSearchOptionsKit::operator!= | ( | HighlightSearchOptionsKit const & | in_kit | ) | const |
Check if the source HighlightSearchOptionsKit is not equivalent to this HighlightSearchOptionsKit.
in_kit | The source HighlightSearchOptionsKit to compare to this HighlightSearchOptionsKit. |
HighlightSearchOptionsKit& HPS::HighlightSearchOptionsKit::operator= | ( | HighlightSearchOptionsKit && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this HighlightSearchOptionsKit thereby avoiding a copy.
in_that | An rvalue reference to a HighlightSearchOptionsKit to take the impl from. |
HighlightSearchOptionsKit& HPS::HighlightSearchOptionsKit::operator= | ( | HighlightSearchOptionsKit const & | in_kit | ) |
Copies the source HighlightSearchOptionsKit into this HighlightSearchOptionsKit.
in_kit | The source HighlightSearchOptionsKit to copy. |
bool HPS::HighlightSearchOptionsKit::operator== | ( | HighlightSearchOptionsKit const & | in_kit | ) | const |
Check if the source HighlightSearchOptionsKit is equivalent to this HighlightSearchOptionsKit.
in_kit | The source HighlightSearchOptionsKit to compare to this HighlightSearchOptionsKit. |
|
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::HighlightSearchOptionsKit::Set | ( | HighlightSearchOptionsKit const & | in_kit | ) |
Copies the source HighlightSearchOptionsKit into this HighlightSearchOptionsKit.
in_kit | The source HighlightSearchOptionsKit to copy. |
HighlightSearchOptionsKit& HPS::HighlightSearchOptionsKit::SetOverlay | ( | Drawing::Overlay | in_overlay | ) |
Sets the overlay type to look for when querying highlights.
Only highlights using this overlay type will be returned by highlight queries.
in_overlay | Overlay type. |
HighlightSearchOptionsKit& HPS::HighlightSearchOptionsKit::SetOverlays | ( | DrawingOverlayArray const & | in_overlays | ) |
Sets the overlay types to look for when querying highlights.
Only highlights using any overlay types in the array will be returned by highlight queries.
in_overlays | Overlay types. |
HighlightSearchOptionsKit& HPS::HighlightSearchOptionsKit::SetStyleName | ( | char const * | in_style_name | ) |
Sets the name of the style to look for when querying highlights.
Only highlights using this style will be returned by highlight queries.
in_style_name | UTF8-encoded style name. |
HighlightSearchOptionsKit& HPS::HighlightSearchOptionsKit::SetStyleNames | ( | UTF8Array const & | in_style_names | ) |
Sets the names of the styles to look for when querying highlights.
Only highlights using any style in the array will be returned by highlight queries.
in_style_names | UTF8-encoded style names. |
void HPS::HighlightSearchOptionsKit::Show | ( | HighlightSearchOptionsKit & | out_kit | ) | const |
Copies this HighlightSearchOptionsKit into the given HighlightSearchOptionsKit.
out_kit | The HighlightSearchOptionsKit to populate with the contents of this HighlightSearchOptionsKit. |
bool HPS::HighlightSearchOptionsKit::ShowOverlays | ( | DrawingOverlayArray & | out_overlays | ) | const |
Shows the overlay types to look for when querying highlights.
out_overlays | Overlay types. |
bool HPS::HighlightSearchOptionsKit::ShowStyleNames | ( | UTF8Array & | out_style_names | ) | const |
Shows the names of the styles to look for when querying highlights.
out_style_names | UTF8-encoded style names. |
|
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.
HighlightSearchOptionsKit& HPS::HighlightSearchOptionsKit::UnsetEverything | ( | ) |
Removes all settings from this HighlightSearchOptionsKit.
HighlightSearchOptionsKit& HPS::HighlightSearchOptionsKit::UnsetOverlays | ( | ) |
Removes all overlay filters.
HighlightSearchOptionsKit& HPS::HighlightSearchOptionsKit::UnsetStyleNames | ( | ) |
Removes all style filters.
|
static |