101 void setColor(
const Color& _color);
117 constexpr inline void setWidth(
int _w) { m_width = _w; };
120 constexpr inline int width(
void)
const {
return m_width; };
208 void setColor(
const Color& _color);
224 constexpr inline void setWidth(
double _w) { m_width = _w; };
227 constexpr inline double width(
void)
const {
return m_width; };
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
The Color class is used to represent RGBA colors with integer values.
Definition Color.h:72
The OutlineF class is used to describe how a outline should look like.
Definition Outline.h:161
constexpr LineCapStyle cap(void) const
Cap style.
Definition Outline.h:241
constexpr const Painter2D * painter(void) const
Painter.
Definition Outline.h:216
constexpr LineStyle style(void) const
Line style.
Definition Outline.h:234
constexpr void setStyle(LineStyle _style)
Set the line style.
Definition Outline.h:231
constexpr double width(void) const
Line width.
Definition Outline.h:227
constexpr void setCap(LineCapStyle _cap)
Set the line cap style.
Definition Outline.h:238
constexpr void setJoinStyle(LineJoinStyle _join)
Set the line join style.
Definition Outline.h:245
constexpr LineJoinStyle joinStyle(void) const
Line join style.
Definition Outline.h:248
constexpr void setWidth(double _w)
Set the line width.
Definition Outline.h:224
The Outline class is used to describe how a outline should look like.
Definition Outline.h:54
constexpr const Painter2D * painter(void) const
Painter.
Definition Outline.h:109
constexpr LineJoinStyle joinStyle(void) const
Line join style.
Definition Outline.h:141
constexpr LineStyle style(void) const
Line style.
Definition Outline.h:127
constexpr void setStyle(LineStyle _style)
Set the line style.
Definition Outline.h:124
constexpr void setWidth(int _w)
Set the line width.
Definition Outline.h:117
constexpr LineCapStyle cap(void) const
Cap style.
Definition Outline.h:134
constexpr void setJoinStyle(LineJoinStyle _join)
Set the line join style.
Definition Outline.h:138
constexpr void setCap(LineCapStyle _cap)
Set the line cap style.
Definition Outline.h:131
constexpr int width(void) const
Line width.
Definition Outline.h:120
Definition Painter2D.h:17
The Serializable class is the default interface of serializable objects.
Definition Serializable.h:17
LineCapStyle
Line cap style.
Definition Outline.h:29
@ SquareCap
Definition Outline.h:31
@ FlatCap
Definition Outline.h:30
@ RoundCap
Definition Outline.h:32
rapidjson::Value JsonValue
Writable JSON value.
Definition JSON.h:27
rapidjson::GenericObject< true, rapidjson::GenericValue< rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > > > ConstJsonObject
Read only JSON Object.
Definition JSON.h:35
OT_GUI_API_EXPORT std::string toString(ColorStyleName _colorStyleName)
Definition ColorStyleTypes.cpp:10
OT_GUI_API_EXPORT LineStyle stringToLineStyle(const std::string &_style)
Definition Outline.cpp:28
rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > JsonAllocator
Allocator used for writing to JSON values.
Definition JSON.h:30
LineJoinStyle
Line join style.
Definition Outline.h:36
@ BevelJoin
Definition Outline.h:38
@ MiterJoin
Definition Outline.h:37
@ RoundJoin
Definition Outline.h:39
@ SvgMiterJoin
Definition Outline.h:40
OT_GUI_API_EXPORT LineCapStyle stringToCapStyle(const std::string &_cap)
Definition Outline.cpp:53
OT_GUI_API_EXPORT LineJoinStyle stringToJoinStyle(const std::string &_join)
Definition Outline.cpp:76
LineStyle
Line style.
Definition Outline.h:19
@ DashLine
Definition Outline.h:22
@ DotLine
Definition Outline.h:23
@ DashDotDotLine
Definition Outline.h:25
@ NoLine
Definition Outline.h:20
@ DashDotLine
Definition Outline.h:24
@ SolidLine
Definition Outline.h:21