Pen. More...
#include <eVision/Easy/EPen.h>
Public Member Functions | |
| EPen () | |
| Constructs an EPen. | |
| EPen (const eVision::ERGBColor &color, int32_t width, eVision::EPenStyle style) | |
| Constructs an EPen. | |
| EPen (const eVision::ERGBColor &color, int32_t width) | |
| Constructs an EPen. | |
| EPen (const eVision::ERGBColor &color) | |
| Constructs an EPen. | |
| EPen (const eVision::ERGBColor &color, float opacity, int32_t width, eVision::EPenStyle style) | |
| Constructs an EPen. | |
| EPen (const eVision::ERGBColor &color, float opacity, int32_t width) | |
| Constructs an EPen. | |
| EPen (const eVision::ERGBColor &color, float opacity) | |
| Constructs an EPen. | |
| EPen (const eVision::EBrush &brush, int32_t width, eVision::EPenStyle style) | |
| Constructs an EPen. | |
| EPen (const eVision::EBrush &brush, int32_t width) | |
| Constructs an EPen. | |
| EPen (const eVision::EBrush &brush) | |
| Constructs an EPen. | |
| bool | operator== (const eVision::EPen &other) const |
| Equality operator. | |
| bool | operator!= (const eVision::EPen &other) const |
| Inequality operator. | |
| bool | IsValid () const |
| Whether the pen is valid, i.e. when its brush is valid and its width is bigger than 0. | |
| void | Serialize (eVision::ESerializer *serializer) |
| Serializes the EPen. | |
| void | Load (const std::string &path) |
| Loads the EPen. The given ESerializer must have been created for reading. | |
| void | Load (eVision::ESerializer *serializer) |
| Loads the EPen. The given ESerializer must have been created for reading. | |
| void | Save (const std::string &path) |
| Saves the EPen. The given ESerializer must have been created for writing. | |
| void | Save (eVision::ESerializer *serializer) |
| Saves the EPen. The given ESerializer must have been created for writing. | |
Public Attributes | |
| eVision::EBrush | Brush |
| Brush used to draw the content of the pen. | |
| int32_t | Width |
| Width of the pen. | |
| eVision::EPenStyle | Style |
| Style of the pen. | |
Pen.
License(s): None
| eVision::EPen::EPen | ( | ) |
Constructs an EPen.
| eVision::EPen::EPen | ( | const eVision::ERGBColor & | color, |
| int32_t | width, | ||
| eVision::EPenStyle | style ) |
Constructs an EPen.
| color | Color of the pen. |
| width | Width of the pen. |
| style | Style of the pen. |
| eVision::EPen::EPen | ( | const eVision::ERGBColor & | color, |
| int32_t | width ) |
Constructs an EPen.
| color | Color of the pen. |
| width | Width of the pen. |
| eVision::EPen::EPen | ( | const eVision::ERGBColor & | color | ) |
Constructs an EPen.
| color | Color of the pen. |
| eVision::EPen::EPen | ( | const eVision::ERGBColor & | color, |
| float | opacity, | ||
| int32_t | width, | ||
| eVision::EPenStyle | style ) |
Constructs an EPen.
| color | Color of the pen. |
| opacity | opacity of the pen. |
| width | Width of the pen. |
| style | Style of the pen. |
| eVision::EPen::EPen | ( | const eVision::ERGBColor & | color, |
| float | opacity, | ||
| int32_t | width ) |
Constructs an EPen.
| color | Color of the pen. |
| opacity | opacity of the pen. |
| width | Width of the pen. |
| eVision::EPen::EPen | ( | const eVision::ERGBColor & | color, |
| float | opacity ) |
Constructs an EPen.
| color | Color of the pen. |
| opacity | opacity of the pen. |
| eVision::EPen::EPen | ( | const eVision::EBrush & | brush, |
| int32_t | width, | ||
| eVision::EPenStyle | style ) |
Constructs an EPen.
| brush | Brush of the pen. |
| width | Width of the pen. |
| style | Style of the pen. |
| eVision::EPen::EPen | ( | const eVision::EBrush & | brush, |
| int32_t | width ) |
Constructs an EPen.
| brush | Brush of the pen. |
| width | Width of the pen. |
| eVision::EPen::EPen | ( | const eVision::EBrush & | brush | ) |
Constructs an EPen.
| brush | Brush of the pen. |
| bool eVision::EPen::IsValid | ( | ) | const |
Whether the pen is valid, i.e. when its brush is valid and its width is bigger than 0.
| void eVision::EPen::Load | ( | const std::string & | path | ) |
Loads the EPen. The given ESerializer must have been created for reading.
| path | The file path. |
| void eVision::EPen::Load | ( | eVision::ESerializer * | serializer | ) |
Loads the EPen. The given ESerializer must have been created for reading.
| serializer | The serializer. |
| bool eVision::EPen::operator!= | ( | const eVision::EPen & | other | ) | const |
Inequality operator.
| other | Other pen to compare with. |
| bool eVision::EPen::operator== | ( | const eVision::EPen & | other | ) | const |
Equality operator.
| other | Other pen to compare with. |
| void eVision::EPen::Save | ( | const std::string & | path | ) |
Saves the EPen. The given ESerializer must have been created for writing.
| path | The file path. |
| void eVision::EPen::Save | ( | eVision::ESerializer * | serializer | ) |
Saves the EPen. The given ESerializer must have been created for writing.
| serializer | The ESerializer object that is written to. |
| void eVision::EPen::Serialize | ( | eVision::ESerializer * | serializer | ) |
Serializes the EPen.
| serializer | Serializer |
Use EPen::Save or EPen::Load instead.
Deprecated in version 24.10. Scheduled to be removed in version 27.6.
| eVision::EBrush eVision::EPen::Brush |
Brush used to draw the content of the pen.
| eVision::EPenStyle eVision::EPen::Style |
Style of the pen.
| int32_t eVision::EPen::Width |
Width of the pen.