The WindowInfoKit class is a user space object, useful for carrying a group attribute settings. More...
#include <hps.h>
Public Member Functions | |
WindowInfoKit () | |
Initializes an empty kit. More... | |
WindowInfoKit (WindowInfoKit const &in_kit) | |
Copies the kit in_kit into this kit. More... | |
WindowInfoKit (WindowInfoKit &&in_that) | |
The move constructor creates a WindowInfoKit by transferring the underlying impl of the rvalue reference to this WindowInfoKit thereby avoiding a copy and allocation. More... | |
WindowInfoKit & | operator= (WindowInfoKit &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this WindowInfoKit thereby avoiding a copy. More... | |
virtual | ~WindowInfoKit () |
Destroy this kit. More... | |
HPS::Type | ObjectType () const |
void | Set (WindowInfoKit const &in_kit) |
Copies the source WindowInfoKit into this object. More... | |
void | Show (WindowInfoKit &out_kit) const |
Copies this object into the given WindowInfoKit. More... | |
WindowInfoKit & | operator= (WindowInfoKit const &in_kit) |
Copies the source WindowInfoKit into this object. More... | |
bool | Empty () const |
Indicates whether this object has any values set on it. More... | |
bool | Equals (WindowInfoKit const &in_kit) const |
Check if the source WindowInfoKit is equivalent to this object. More... | |
bool | operator== (WindowInfoKit const &in_kit) const |
Check if the source WindowInfoKit is equivalent to this object. More... | |
bool | operator!= (WindowInfoKit const &in_kit) const |
Check if the source WindowInfoKit is not equivalent to this object. More... | |
WindowInfoKit & | SetPhysicalPixels (unsigned int in_width, unsigned int in_height) |
Sets the number of pixels in the physical display (monitor, off-screen renderer, printer, etc.). More... | |
WindowInfoKit & | SetPhysicalSize (float in_width, float in_height) |
Sets the size, in centimeters, of the physical display (monitor, off-screen renderer, printer, etc.). More... | |
WindowInfoKit & | SetWindowPixels (unsigned int in_width, unsigned int in_height) |
Sets the number of pixels in the window. More... | |
WindowInfoKit & | SetWindowSize (float in_width, float in_height) |
Sets the size, in centimeters, of the window. More... | |
WindowInfoKit & | UnsetPhysicalPixels () |
Unsets the number of pixels in the physical display (monitor, off-screen renderer, printer, etc.). More... | |
WindowInfoKit & | UnsetPhysicalSize () |
Unsets the size, in centimeters, of the physical display (monitor, off-screen renderer, printer, etc.). More... | |
WindowInfoKit & | UnsetWindowPixels () |
Unsets the number of pixels in the window. More... | |
WindowInfoKit & | UnsetWindowSize () |
Unsets the size, in centimeters, of the window. More... | |
WindowInfoKit & | UnsetEverything () |
Removes all settings from this object. More... | |
bool | ShowPhysicalPixels (unsigned int &out_width, unsigned int &out_height) const |
Shows the number of pixels in the physical display (monitor, off-screen renderer, printer, etc.). More... | |
bool | ShowPhysicalSize (float &out_width, float &out_height) const |
Shows the size, in centimeters, of the physical display (monitor, off-screen renderer, printer, etc.). More... | |
bool | ShowWindowPixels (unsigned int &out_width, unsigned int &out_height) const |
Shows the number of pixels in the window. More... | |
bool | ShowWindowSize (float &out_width, float &out_height) const |
Shows the size, in centimeters, of the window. More... | |
bool | ShowResolution (float &out_horizontal, float &out_vertical) const |
Shows both the horizontal and vertical resolution of the window. More... | |
bool | ShowWindowAspectRatio (float &out_window_aspect) const |
Shows the aspect ratio of the window. More... | |
bool | ShowPixelAspectRatio (float &out_pixel_aspect) const |
Shows the aspect ratio of the window's pixels. 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::WindowInfoKit |
The WindowInfoKit class is a user space object, useful for carrying a group attribute settings.
HPS::WindowInfoKit::WindowInfoKit | ( | ) |
Initializes an empty kit.
HPS::WindowInfoKit::WindowInfoKit | ( | WindowInfoKit const & | in_kit | ) |
Copies the kit in_kit into this kit.
HPS::WindowInfoKit::WindowInfoKit | ( | WindowInfoKit && | in_that | ) |
The move constructor creates a WindowInfoKit by transferring the underlying impl of the rvalue reference to this WindowInfoKit thereby avoiding a copy and allocation.
in_that | An rvalue reference to a WindowInfoKit to take the impl from. |
|
virtual |
Destroy this kit.
|
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 object has any values set on it.
Reimplemented from HPS::Object.
bool HPS::WindowInfoKit::Equals | ( | WindowInfoKit const & | in_kit | ) | const |
Check if the source WindowInfoKit is equivalent to this object.
in_kit | The source WindowInfoKit to compare to this object. |
|
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::WindowInfoKit::operator!= | ( | WindowInfoKit const & | in_kit | ) | const |
Check if the source WindowInfoKit is not equivalent to this object.
in_kit | The source WindowInfoKit to compare to this object. |
WindowInfoKit& HPS::WindowInfoKit::operator= | ( | WindowInfoKit && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this WindowInfoKit thereby avoiding a copy.
in_that | An rvalue reference to a WindowInfoKit to take the impl from. |
WindowInfoKit& HPS::WindowInfoKit::operator= | ( | WindowInfoKit const & | in_kit | ) |
Copies the source WindowInfoKit into this object.
in_kit | The source WindowInfoKit to copy. |
bool HPS::WindowInfoKit::operator== | ( | WindowInfoKit const & | in_kit | ) | const |
Check if the source WindowInfoKit is equivalent to this object.
in_kit | The source WindowInfoKit to compare to this object. |
|
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::WindowInfoKit::Set | ( | WindowInfoKit const & | in_kit | ) |
Copies the source WindowInfoKit into this object.
in_kit | The source object to copy. |
WindowInfoKit& HPS::WindowInfoKit::SetPhysicalPixels | ( | unsigned int | in_width, |
unsigned int | in_height | ||
) |
Sets the number of pixels in the physical display (monitor, off-screen renderer, printer, etc.).
in_width | The width of the physical display in pixels. |
in_height | The height of the physical display in pixels. |
WindowInfoKit& HPS::WindowInfoKit::SetPhysicalSize | ( | float | in_width, |
float | in_height | ||
) |
Sets the size, in centimeters, of the physical display (monitor, off-screen renderer, printer, etc.).
in_width | The width of the physical display in centimeters. |
in_height | The height of the physical display in centimeters. |
WindowInfoKit& HPS::WindowInfoKit::SetWindowPixels | ( | unsigned int | in_width, |
unsigned int | in_height | ||
) |
Sets the number of pixels in the window.
in_width | The width of the window in pixels. |
in_height | The height of the window in pixels. |
WindowInfoKit& HPS::WindowInfoKit::SetWindowSize | ( | float | in_width, |
float | in_height | ||
) |
Sets the size, in centimeters, of the window.
in_width | The width of the window in centimeters. |
in_height | The height of the window in centimeters. |
void HPS::WindowInfoKit::Show | ( | WindowInfoKit & | out_kit | ) | const |
Copies this object into the given WindowInfoKit.
out_kit | The WindowInfoKit to populate with the contents of this object. |
bool HPS::WindowInfoKit::ShowPhysicalPixels | ( | unsigned int & | out_width, |
unsigned int & | out_height | ||
) | const |
Shows the number of pixels in the physical display (monitor, off-screen renderer, printer, etc.).
out_width | The width of the physical display in pixels. |
out_height | The height of the physical display in pixels. |
bool HPS::WindowInfoKit::ShowPhysicalSize | ( | float & | out_width, |
float & | out_height | ||
) | const |
Shows the size, in centimeters, of the physical display (monitor, off-screen renderer, printer, etc.).
out_width | The width of the physical display in centimeters. |
out_height | The height of the physical display in centimeters. |
bool HPS::WindowInfoKit::ShowPixelAspectRatio | ( | float & | out_pixel_aspect | ) | const |
Shows the aspect ratio of the window's pixels.
This is computed as the horizontal resolution divided by the vertical resolution.
out_pixel_aspect | The aspect ratio of the window defined as width / height in pixels. |
bool HPS::WindowInfoKit::ShowResolution | ( | float & | out_horizontal, |
float & | out_vertical | ||
) | const |
Shows both the horizontal and vertical resolution of the window.
Resolution is computed as pixels per centimeter. If the size or the pixels are not set, this function will return false.
out_horizontal | The horizontal resolution of the window. |
out_vertical | The vertical resolution of the window. |
bool HPS::WindowInfoKit::ShowWindowAspectRatio | ( | float & | out_window_aspect | ) | const |
Shows the aspect ratio of the window.
Aspect ratio is computed as width / height in centimeters.
out_window_aspect | The aspect ratio of the window defined as width / height in centimeters. |
bool HPS::WindowInfoKit::ShowWindowPixels | ( | unsigned int & | out_width, |
unsigned int & | out_height | ||
) | const |
Shows the number of pixels in the window.
out_width | The width of the window in pixels. |
out_height | The height of the window in pixels. |
bool HPS::WindowInfoKit::ShowWindowSize | ( | float & | out_width, |
float & | out_height | ||
) | const |
Shows the size, in centimeters, of the window.
out_width | The width of the window in centimeters. |
out_height | The height of the window in centimeters. |
|
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.
WindowInfoKit& HPS::WindowInfoKit::UnsetEverything | ( | ) |
Removes all settings from this object.
WindowInfoKit& HPS::WindowInfoKit::UnsetPhysicalPixels | ( | ) |
Unsets the number of pixels in the physical display (monitor, off-screen renderer, printer, etc.).
WindowInfoKit& HPS::WindowInfoKit::UnsetPhysicalSize | ( | ) |
Unsets the size, in centimeters, of the physical display (monitor, off-screen renderer, printer, etc.).
WindowInfoKit& HPS::WindowInfoKit::UnsetWindowPixels | ( | ) |
Unsets the number of pixels in the window.
WindowInfoKit& HPS::WindowInfoKit::UnsetWindowSize | ( | ) |
Unsets the size, in centimeters, of the window.
|
static |