18 class GraphicsGridLayoutItemCfg;
46 void setName(
const std::string& _name) { m_name = _name; };
47 const std::string&
name(
void)
const {
return m_name; };
49 void setText(
const std::string& _text) { m_text = _text; };
50 const std::string&
text(
void)
const {
return m_text; };
52 void setToolTip(
const std::string& _toolTip) { m_toolTip = _toolTip; };
53 const std::string&
toolTip(
void)
const {
return m_toolTip; };
79 Painter2D* createPrimaryPainter(
void)
const;
80 Painter2D* createSecondaryPainter(
void)
const;
89 std::string m_toolTip;
90 ConnectorFigure m_figure;
120 void setName(
const std::string& _name) { m_name = _name; };
123 const std::string&
name(
void)
const {
return m_name; };
126 void setTitle(
const std::string& _title) { m_title = _title; };
129 const std::string&
title(
void)
const {
return m_title; };
132 void setToolTip(
const std::string& _toolTip) { m_toolTip = _toolTip; };
135 const std::string&
toolTip(
void)
const {
return m_toolTip; };
193 void setTitleBackgroundColor(
const ot::Color& _color);
197 void setTitleBackgroundGradientColor(
const ot::Color& _color);
209 void setTitleForegroundColor(
const ot::Color& _color);
214 void setDefaultTitleForegroundGradient(
void);
235 std::string m_toolTip;
240 std::string m_leftTitleImagePath;
241 std::string m_rightTitleImagePath;
243 std::string m_backgroundImagePath;
246 BackgroundImageInsertMode m_backgroundImageInsertMode;
247 bool m_backgroundImageMaintainAspectRatio;
251 std::list<GraphicsFlowItemConnector> m_left;
252 std::list<GraphicsFlowItemConnector> m_right;
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
#define OT_GUI_API_EXPORTONLY
Definition OTGuiAPIExport.h:12
#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
Definition GraphicsFlowItemBuilder.h:103
void setName(const std::string &_name)
Sets the name for the root item The item name will be used as a prefix for the created child items (l...
Definition GraphicsFlowItemBuilder.h:120
const GraphicsFlowItemConnector & defaultConnectorStyle(void) const
Definition GraphicsFlowItemBuilder.h:220
BackgroundImageInsertMode
Definition GraphicsFlowItemBuilder.h:106
@ OnLayout
Definition GraphicsFlowItemBuilder.h:107
const std::string & title(void) const
Item title.
Definition GraphicsFlowItemBuilder.h:129
void setDefaultConnectorStyle(const GraphicsFlowItemConnector &_config)
Sets the default connector style The new default style will only affect items added after settings th...
Definition GraphicsFlowItemBuilder.h:219
void setTitleBackgroundColor(int _r, int _g, int _b, int _a=255)
Sets the title background color Will create a FillPainter2D and replace the current title background ...
Definition GraphicsFlowItemBuilder.h:201
const std::string & name(void) const
Item name.
Definition GraphicsFlowItemBuilder.h:123
void setBackgroundImageMaintainAspectRatio(bool _active)
Definition GraphicsFlowItemBuilder.h:226
void setBackgroundImageAlignment(ot::Alignment _align)
Definition GraphicsFlowItemBuilder.h:223
void setBackgroundImageMargins(const ot::MarginsD &_margins)
Definition GraphicsFlowItemBuilder.h:224
void setBackgroundImageInsertMode(BackgroundImageInsertMode _mode)
Definition GraphicsFlowItemBuilder.h:225
void setLeftTitleCornerImagePath(const std::string &_path)
Definition GraphicsFlowItemBuilder.h:228
const std::string & toolTip(void) const
Set the item tool tip.
Definition GraphicsFlowItemBuilder.h:135
void setRightTitleCornerImagePath(const std::string &_path)
Definition GraphicsFlowItemBuilder.h:230
void setBackgroundImagePath(const std::string &_path)
Definition GraphicsFlowItemBuilder.h:222
void setToolTip(const std::string &_toolTip)
Set the item tool tip.
Definition GraphicsFlowItemBuilder.h:132
void setTitle(const std::string &_title)
Sets the title that will be displayed to the user.
Definition GraphicsFlowItemBuilder.h:126
Definition GraphicsFlowItemBuilder.h:22
void setTextColor(const ot::Color &_color)
Definition GraphicsFlowItemBuilder.h:58
ConnectorFigure
Definition GraphicsFlowItemBuilder.h:24
@ TriangleDown
Definition GraphicsFlowItemBuilder.h:29
@ IceConeUp
Definition GraphicsFlowItemBuilder.h:36
@ IceConeRight
Definition GraphicsFlowItemBuilder.h:34
@ TriangleRight
Definition GraphicsFlowItemBuilder.h:26
@ IceConeLeft
Definition GraphicsFlowItemBuilder.h:35
@ KiteUp
Definition GraphicsFlowItemBuilder.h:32
@ TriangleLeft
Definition GraphicsFlowItemBuilder.h:27
@ KiteLeft
Definition GraphicsFlowItemBuilder.h:31
@ Square
Definition GraphicsFlowItemBuilder.h:25
@ TriangleUp
Definition GraphicsFlowItemBuilder.h:28
@ IceConeDown
Definition GraphicsFlowItemBuilder.h:37
@ KiteDown
Definition GraphicsFlowItemBuilder.h:33
@ KiteRight
Definition GraphicsFlowItemBuilder.h:30
const std::string & text(void) const
Definition GraphicsFlowItemBuilder.h:50
const std::string & name(void) const
Definition GraphicsFlowItemBuilder.h:47
const std::string & toolTip(void) const
Definition GraphicsFlowItemBuilder.h:53
const ot::Painter2D * getCustomPrimaryPainter(void) const
Definition GraphicsFlowItemBuilder.h:65
const ot::Font & font(void) const
Definition GraphicsFlowItemBuilder.h:56
void setText(const std::string &_text)
Definition GraphicsFlowItemBuilder.h:49
void setFigure(GraphicsFlowItemConnector::ConnectorFigure _figure)
Definition GraphicsFlowItemBuilder.h:73
GraphicsFlowItemConnector::ConnectorFigure figure(void) const
Definition GraphicsFlowItemBuilder.h:74
const ot::Painter2D * getCustomSecondaryPainter(void) const
Definition GraphicsFlowItemBuilder.h:71
void setToolTip(const std::string &_toolTip)
Definition GraphicsFlowItemBuilder.h:52
const ot::Color & textColor(void) const
Definition GraphicsFlowItemBuilder.h:59
void setFont(const ot::Font &_font)
Definition GraphicsFlowItemBuilder.h:55
void setName(const std::string &_name)
Definition GraphicsFlowItemBuilder.h:46
Definition GraphicsGridLayoutItemCfg.h:16
The GraphicsItemCfg is the base class for all graphics item configurations.
Definition GraphicsItemCfg.h:33
TriangleShape
Definition GraphicsTriangleItemCfg.h:30
TriangleDirection
Definition GraphicsTriangleItemCfg.h:23
Definition Painter2D.h:17
DefaultColor
Default colors.
Definition Color.h:18
Alignment
Alignment.
Definition GuiTypes.h:21