This struct is an example of how we can share properties among tools rather than duplicating logic, eg. More...
#include <toolproperties.h>
Inheritance diagram for PolylineToolProperties:
Collaboration diagram for PolylineToolProperties:Public Types | |
| enum | Type { START = 200 , CLOSEDPATH_ENABLED = START , BEZIERPATH_ENABLED = 201 , END = 299 } |
Public Member Functions | |
| ToolProperties & | toolProperties () override |
| const StrokeToolProperties & | strokeToolProperties () const |
| PropertyInfo | getInfo (int rawPropertyType) const override |
| qreal | width () const |
| bool | closedPathEnabled () const |
| bool | bezierPathEnabled () const |
| bool | AntiAliasingEnabled () const |
| virtual ToolProperties & | toolProperties ()=0 |
| virtual PropertyInfo | getInfo (int rawPropertyType) const =0 |
Private Attributes | |
| StrokeToolProperties | mStrokeToolProperties |
This struct is an example of how we can share properties among tools rather than duplicating logic, eg.
polyline uses properties from StrokeToolProperties. The same could be done for PencilTool, BrushTool, Eraser etc...
Definition at line 453 of file toolproperties.h.
| enum PolylineToolProperties::Type |
Definition at line 455 of file toolproperties.h.
|
inline |
Definition at line 464 of file toolproperties.h.
|
inline |
Definition at line 483 of file toolproperties.h.
|
inline |
Definition at line 482 of file toolproperties.h.
|
inline |
Definition at line 481 of file toolproperties.h.
|
inlineoverridevirtual |
Implements ToolPropertiesBase.
Definition at line 476 of file toolproperties.h.
|
inline |
Definition at line 474 of file toolproperties.h.
|
inlineoverridevirtual |
Implements ToolPropertiesBase.
Definition at line 473 of file toolproperties.h.
|
inline |
Definition at line 480 of file toolproperties.h.
|
private |
Definition at line 486 of file toolproperties.h.