#include <hps.h>

Public Member Functions | |
HPS::Type | ObjectType () const |
PolygonShapeElement & | operator= (PolygonShapeElement &&in_that) |
PolygonShapeElement () | |
PolygonShapeElement (ShapeElement const &in_that) | |
PolygonShapeElement (PolygonShapeElement const &in_that) | |
PolygonShapeElement (ShapePointArray const &in_points) | |
PolygonShapeElement (size_t in_count, ShapePoint const in_points[]) | |
PolygonShapeElement (PolygonShapeElement &&in_that) | |
PolygonShapeElement & | SetPoints (ShapePointArray const &in_points) |
PolygonShapeElement & | SetPoints (size_t in_count, ShapePoint const in_points[]) |
bool | ShowPoints (ShapePointArray &out_points) const |
![]() | |
bool | Equals (ShapeElement const &in_that) const |
bool | operator!= (ShapeElement const &in_that) const |
ShapeElement & | operator= (ShapeElement &&in_that) |
ShapeElement & | operator= (ShapeElement const &in_that) |
bool | operator== (ShapeElement const &in_that) const |
void | Set (ShapeElement const &in_that) |
ShapeElement & | SetDisjointed (bool in_state) |
ShapeElement & | SetFill (bool in_state) |
ShapeElement () | |
ShapeElement (ShapeElement const &in_that) | |
ShapeElement (ShapeElement &&in_that) | |
bool | ShowDisjointed (bool &out_state) const |
bool | ShowFill (bool &out_state) const |
![]() | |
virtual bool | Empty () const |
intptr_t | GetClassID () const |
intptr_t | GetInstanceID () const |
bool | HasType (HPS::Type in_mask) const |
Object (Object const &that) | |
Object (Object &&in_that) | |
Object & | operator= (Object const &other_object) |
Object & | operator= (Object &&in_that) |
virtual void | Reset () |
virtual HPS::Type | Type () const |
Static Public Attributes | |
static const HPS::Type | staticType = HPS::Type::PolygonShapeElement |
![]() | |
static const HPS::Type | staticType = HPS::Type::ShapeElement |
![]() | |
static const HPS::Type | staticType = HPS::Type::None |
Additional Inherited Members | |
![]() | |
template<typename T > | |
static intptr_t | ClassID () |
Detailed Description
The PolygonShapeElement class is a user space object. It is used to define polygon elements to make up shapes for text backgrounds.
Constructor & Destructor Documentation
HPS::PolygonShapeElement::PolygonShapeElement | ( | ) |
The default constructor creates an empty PolygonShapeElement object.
HPS::PolygonShapeElement::PolygonShapeElement | ( | ShapeElement const & | in_that | ) |
This constructor creates a PolygonShapeElement object that contains the same settings as the source ShapeElement. The copy will only be successful if the source shape element is really an upcast of a polygon shape element. Otherwise the copy will fail and the resulting PolygonShapeElement will be invalid.
- Parameters
-
in_that The source ShapeElement to copy.
HPS::PolygonShapeElement::PolygonShapeElement | ( | PolygonShapeElement const & | in_that | ) |
The copy constructor creates a new PolygonShapeElement object that contains the same settings as the source PolygonShapeElement.
- Parameters
-
in_that The source PolygonShapeElement to copy.
|
explicit |
This constructor creates a PolygonShapeElement with the specified point array.
- Parameters
-
in_points The points for the polygon.
HPS::PolygonShapeElement::PolygonShapeElement | ( | size_t | in_count, |
ShapePoint const | in_points[] | ||
) |
This constructor creates a PolygonShapeElement with the specified point array.
- Parameters
-
in_count Size of the following array. in_points The points for the line.
HPS::PolygonShapeElement::PolygonShapeElement | ( | PolygonShapeElement && | in_that | ) |
The move constructor creates a PolygonShapeElement by transferring the underlying impl of the rvalue reference to this PolygonShapeElement thereby avoiding a copy and allocation.
- Parameters
-
in_that An rvalue reference to a PolygonShapeElement to take the impl from.
Member Function Documentation
|
inlinevirtual |
This function returns the type the object, as declared (if the object is derived, this does not give the true type of the derived object).
- Returns
- The declared type of the object in question, which may differ from the true, underlying type.
Reimplemented from HPS::ShapeElement.
PolygonShapeElement& HPS::PolygonShapeElement::operator= | ( | PolygonShapeElement && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this PolygonShapeElement thereby avoiding a copy.
- Parameters
-
in_that An rvalue reference to a PolygonShapeElement to take the impl from.
- Returns
- A reference to this PolygonShapeElement.
PolygonShapeElement& HPS::PolygonShapeElement::SetPoints | ( | ShapePointArray const & | in_points | ) |
Sets the points for this PolygonShapeElement.
- Parameters
-
in_points The points for the polygon.
PolygonShapeElement& HPS::PolygonShapeElement::SetPoints | ( | size_t | in_count, |
ShapePoint const | in_points[] | ||
) |
Sets the points for this PolygonShapeElement.
- Parameters
-
in_count Size of the following array. in_points The points for the polygon.
bool HPS::PolygonShapeElement::ShowPoints | ( | ShapePointArray & | out_points | ) | const |
Shows the points for this PolygonShapeElement.
- Parameters
-
out_points The points for the polygon.
- Returns
- true if points were set, false otherwise.
The documentation for this class was generated from the following file:
- include/hps.h