#include <hps.h>
Public Member Functions | |
OffScreenWindowOptionsKit () | |
The default constructor creates an empty OffScreenWindowOptionsKit object. More... | |
OffScreenWindowOptionsKit (OffScreenWindowOptionsKit const &in_kit) | |
The copy constructor creates a new OffScreenWindowOptionsKit object that contains the same settings as the source OffScreenWindowOptionsKit. More... | |
OffScreenWindowOptionsKit (OffScreenWindowOptionsKit &&in_that) | |
The move constructor creates an OffScreenWindowOptionsKit by transferring the underlying impl of the rvalue reference to this OffScreenWindowOptionsKit thereby avoiding a copy and allocation. More... | |
OffScreenWindowOptionsKit & | operator= (OffScreenWindowOptionsKit &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this OffScreenWindowOptionsKit thereby avoiding a copy. More... | |
virtual | ~OffScreenWindowOptionsKit () |
HPS::Type | ObjectType () const |
void | Set (OffScreenWindowOptionsKit const &in_kit) |
Copies the source OffScreenWindowOptionsKit into this OffScreenWindowOptionsKit. More... | |
void | Show (OffScreenWindowOptionsKit &out_kit) const |
Copies this OffScreenWindowOptionsKit into the given OffScreenWindowOptionsKit. More... | |
OffScreenWindowOptionsKit & | operator= (OffScreenWindowOptionsKit const &in_kit) |
Copies the source OffScreenWindowOptionsKit into this OffScreenWindowOptionsKit. More... | |
bool | Empty () const |
Indicates whether this OffScreenWindowOptionsKit has any values set on it. More... | |
bool | Equals (OffScreenWindowOptionsKit const &in_kit) const |
Check if the source OffScreenWindowOptionsKit is equivalent to this OffScreenWindowOptionsKit. More... | |
bool | operator== (OffScreenWindowOptionsKit const &in_kit) const |
Check if the source OffScreenWindowOptionsKit is equivalent to this OffScreenWindowOptionsKit. More... | |
bool | operator!= (OffScreenWindowOptionsKit const &in_kit) const |
Check if the source OffScreenWindowOptionsKit is not equivalent to this OffScreenWindowOptionsKit. More... | |
OffScreenWindowOptionsKit & | SetDriver (Window::Driver in_driver) |
Sets the driver for this OffScreenWindowOptionsKit. More... | |
OffScreenWindowOptionsKit & | SetAntiAliasCapable (bool in_state, unsigned int in_samples=4) |
Sets the anti-alias options for this OffScreenWindowOptionsKit. More... | |
OffScreenWindowOptionsKit & | SetHardwareResident (bool in_state) |
Sets whether the image data for this offscreen window should be stored exclusively in video memory. More... | |
OffScreenWindowOptionsKit & | SetNativeFormat (Window::ImageFormat in_format, float in_quality=1.0f) |
Sets the native image format to store data in. More... | |
OffScreenWindowOptionsKit & | SetOpacity (bool in_state, float in_opacity=1.0f) |
Sets whether this offscreen window supports opacity in the window background and the opacity value that should be applied when rendering the window background. More... | |
OffScreenWindowOptionsKit & | SetOpacity (float in_opacity) |
Enables support for opacity in the window background and applies the specified opacity value when rendering the window background. More... | |
OffScreenWindowOptionsKit & | SetFramebufferRetention (bool in_retain) |
Sets the framebuffer retention option for this OffScreenWindowOptionsKit. More... | |
OffScreenWindowOptionsKit & | UnsetDriver () |
Removes the driver for this OffScreenWindowOptionsKit. More... | |
OffScreenWindowOptionsKit & | UnsetAntiAliasCapable () |
Removes the anti-alias options for this OffScreenWindowOptionsKit. More... | |
OffScreenWindowOptionsKit & | UnsetHardwareResident () |
Removes the hardware resident option for this OffScreenWindowOptionsKit. More... | |
OffScreenWindowOptionsKit & | UnsetNativeFormat () |
Removes the native format option for this OffScreenWindowOptionsKit. More... | |
OffScreenWindowOptionsKit & | UnsetOpacity () |
Removes the opacity option for this OffScreenWindowOptionsKit. More... | |
OffScreenWindowOptionsKit & | UnsetFramebufferRetention () |
Removes the framebuffer retention setting for this OffScreenWindowOptionsKit. More... | |
OffScreenWindowOptionsKit & | UnsetEverything () |
Removes all settings from this OffScreenWindowOptionsKit. More... | |
bool | ShowDriver (Window::Driver &out_driver) const |
Shows the driver for this OffScreenWindowOptionsKit. More... | |
bool | ShowAntiAliasCapable (bool &out_state, unsigned int &out_samples) const |
Shows the anti-alias options for this OffScreenWindowOptionsKit. More... | |
bool | ShowHardwareResident (bool &out_state) const |
Shows the hardware resident option for this OffScreenWindowOptionsKit. More... | |
bool | ShowNativeFormat (Window::ImageFormat &out_format, float &out_quality) const |
Shows the native format option for this OffScreenWindowOptionsKit. More... | |
bool | ShowOpacity (bool &out_state, float &out_opacity) const |
Shows the opacity option for this offscreen window. More... | |
bool | ShowFramebufferRetention (bool &out_retain) const |
Shows the framebuffer retention setting for this OffScreenWindowOptionsKit. 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 OffScreenWindowOptionsKit | GetDefault () |
Creates an OffScreenWindowOptionsKit 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::OffScreenWindowOptionsKit |
The HPS::OffScreenWindowOptionsKit class is a user space object. It is used to specify off-screen-window-specific options. Calling HPS::OffScreenWindowOptionsKit::GetDefault() will return an options kit with values found in this table.
HPS::OffScreenWindowOptionsKit::OffScreenWindowOptionsKit | ( | ) |
The default constructor creates an empty OffScreenWindowOptionsKit object.
HPS::OffScreenWindowOptionsKit::OffScreenWindowOptionsKit | ( | OffScreenWindowOptionsKit const & | in_kit | ) |
The copy constructor creates a new OffScreenWindowOptionsKit object that contains the same settings as the source OffScreenWindowOptionsKit.
in_kit | The source OffScreenWindowOptionsKit to copy. |
HPS::OffScreenWindowOptionsKit::OffScreenWindowOptionsKit | ( | OffScreenWindowOptionsKit && | in_that | ) |
The move constructor creates an OffScreenWindowOptionsKit by transferring the underlying impl of the rvalue reference to this OffScreenWindowOptionsKit thereby avoiding a copy and allocation.
in_that | An rvalue reference to an OffScreenWindowOptionsKit 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 OffScreenWindowOptionsKit has any values set on it.
Reimplemented from HPS::Object.
bool HPS::OffScreenWindowOptionsKit::Equals | ( | OffScreenWindowOptionsKit const & | in_kit | ) | const |
Check if the source OffScreenWindowOptionsKit is equivalent to this OffScreenWindowOptionsKit.
in_kit | The source OffScreenWindowOptionsKit to compare to this OffScreenWindowOptionsKit. |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
static |
Creates an OffScreenWindowOptionsKit 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::OffScreenWindowOptionsKit::operator!= | ( | OffScreenWindowOptionsKit const & | in_kit | ) | const |
Check if the source OffScreenWindowOptionsKit is not equivalent to this OffScreenWindowOptionsKit.
in_kit | The source OffScreenWindowOptionsKit to compare to this OffScreenWindowOptionsKit. |
OffScreenWindowOptionsKit& HPS::OffScreenWindowOptionsKit::operator= | ( | OffScreenWindowOptionsKit && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this OffScreenWindowOptionsKit thereby avoiding a copy.
in_that | An rvalue reference to an OffScreenWindowOptionsKit to take the impl from. |
OffScreenWindowOptionsKit& HPS::OffScreenWindowOptionsKit::operator= | ( | OffScreenWindowOptionsKit const & | in_kit | ) |
Copies the source OffScreenWindowOptionsKit into this OffScreenWindowOptionsKit.
in_kit | The source OffScreenWindowOptionsKit to copy. |
bool HPS::OffScreenWindowOptionsKit::operator== | ( | OffScreenWindowOptionsKit const & | in_kit | ) | const |
Check if the source OffScreenWindowOptionsKit is equivalent to this OffScreenWindowOptionsKit.
in_kit | The source OffScreenWindowOptionsKit to compare to this OffScreenWindowOptionsKit. |
|
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::OffScreenWindowOptionsKit::Set | ( | OffScreenWindowOptionsKit const & | in_kit | ) |
Copies the source OffScreenWindowOptionsKit into this OffScreenWindowOptionsKit.
in_kit | The source OffScreenWindowOptionsKit to copy. |
OffScreenWindowOptionsKit& HPS::OffScreenWindowOptionsKit::SetAntiAliasCapable | ( | bool | in_state, |
unsigned int | in_samples = 4 |
||
) |
Sets the anti-alias options for this OffScreenWindowOptionsKit.
in_state | Whether the associated application window should be anti-alias capable. |
in_samples | The number of anti-alias samples to use for the associated off-screen window. |
OffScreenWindowOptionsKit& HPS::OffScreenWindowOptionsKit::SetDriver | ( | Window::Driver | in_driver | ) |
Sets the driver for this OffScreenWindowOptionsKit.
in_driver | The driver for this OffScreenWindowOptionsKit. |
OffScreenWindowOptionsKit& HPS::OffScreenWindowOptionsKit::SetFramebufferRetention | ( | bool | in_retain | ) |
Sets the framebuffer retention option for this OffScreenWindowOptionsKit.
in_retain | Whether the associated offscreen window retains the image from the previous frame. |
OffScreenWindowOptionsKit& HPS::OffScreenWindowOptionsKit::SetHardwareResident | ( | bool | in_state | ) |
Sets whether the image data for this offscreen window should be stored exclusively in video memory.
Storing the image in video memory improves the update time but may make the image data inaccessible directly.
in_state | Whether the image data for this offscreen window should be stored exclusively in video memory. |
OffScreenWindowOptionsKit& HPS::OffScreenWindowOptionsKit::SetNativeFormat | ( | Window::ImageFormat | in_format, |
float | in_quality = 1.0f |
||
) |
Sets the native image format to store data in.
in_format | Format image data will be stored in. |
in_quality | The compression quality for the image data (when applicable). |
OffScreenWindowOptionsKit& HPS::OffScreenWindowOptionsKit::SetOpacity | ( | bool | in_state, |
float | in_opacity = 1.0f |
||
) |
Sets whether this offscreen window supports opacity in the window background and the opacity value that should be applied when rendering the window background.
in_state | Whether this offscreen window should support opacity in the window background. |
in_opacity | The opacity value that will be applied when rendering the window background. The value is clamped if the opacity is outside the range 0 to 1. |
OffScreenWindowOptionsKit& HPS::OffScreenWindowOptionsKit::SetOpacity | ( | float | in_opacity | ) |
Enables support for opacity in the window background and applies the specified opacity value when rendering the window background.
in_opacity | The opacity value that will be applied when rendering the window background. |
void HPS::OffScreenWindowOptionsKit::Show | ( | OffScreenWindowOptionsKit & | out_kit | ) | const |
Copies this OffScreenWindowOptionsKit into the given OffScreenWindowOptionsKit.
out_kit | The OffScreenWindowOptionsKit to populate with the contents of this OffScreenWindowOptionsKit. |
bool HPS::OffScreenWindowOptionsKit::ShowAntiAliasCapable | ( | bool & | out_state, |
unsigned int & | out_samples | ||
) | const |
Shows the anti-alias options for this OffScreenWindowOptionsKit.
out_state | Whether the associated application window should be anti-alias capable. |
out_samples | The number of anti-alias samples to use for the associated application window. |
bool HPS::OffScreenWindowOptionsKit::ShowDriver | ( | Window::Driver & | out_driver | ) | const |
Shows the driver for this OffScreenWindowOptionsKit.
out_driver | The driver for this OffScreenWindowOptionsKit. |
bool HPS::OffScreenWindowOptionsKit::ShowFramebufferRetention | ( | bool & | out_retain | ) | const |
Shows the framebuffer retention setting for this OffScreenWindowOptionsKit.
out_retain | The framebuffer retention setting for this OffScreenWindowOptionsKit. |
bool HPS::OffScreenWindowOptionsKit::ShowHardwareResident | ( | bool & | out_state | ) | const |
Shows the hardware resident option for this OffScreenWindowOptionsKit.
out_state | Whether the image data for this offscreen window should be stored exclusively in video memory. |
bool HPS::OffScreenWindowOptionsKit::ShowNativeFormat | ( | Window::ImageFormat & | out_format, |
float & | out_quality | ||
) | const |
Shows the native format option for this OffScreenWindowOptionsKit.
out_format | Format image data will be stored in. |
out_quality | The compression quality for the image data (when applicable). |
bool HPS::OffScreenWindowOptionsKit::ShowOpacity | ( | bool & | out_state, |
float & | out_opacity | ||
) | const |
Shows the opacity option for this offscreen window.
out_state | Whether this offscreen window supports opacity in the window background. |
out_opacity | The opacity value that will be applied when rendering the window background. |
|
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.
OffScreenWindowOptionsKit& HPS::OffScreenWindowOptionsKit::UnsetAntiAliasCapable | ( | ) |
Removes the anti-alias options for this OffScreenWindowOptionsKit.
OffScreenWindowOptionsKit& HPS::OffScreenWindowOptionsKit::UnsetDriver | ( | ) |
Removes the driver for this OffScreenWindowOptionsKit.
OffScreenWindowOptionsKit& HPS::OffScreenWindowOptionsKit::UnsetEverything | ( | ) |
Removes all settings from this OffScreenWindowOptionsKit.
OffScreenWindowOptionsKit& HPS::OffScreenWindowOptionsKit::UnsetFramebufferRetention | ( | ) |
Removes the framebuffer retention setting for this OffScreenWindowOptionsKit.
OffScreenWindowOptionsKit& HPS::OffScreenWindowOptionsKit::UnsetHardwareResident | ( | ) |
Removes the hardware resident option for this OffScreenWindowOptionsKit.
OffScreenWindowOptionsKit& HPS::OffScreenWindowOptionsKit::UnsetNativeFormat | ( | ) |
Removes the native format option for this OffScreenWindowOptionsKit.
OffScreenWindowOptionsKit& HPS::OffScreenWindowOptionsKit::UnsetOpacity | ( | ) |
Removes the opacity option for this OffScreenWindowOptionsKit.
|
static |