Pencil2D Animation
Download Community News Docs Contribute
  • Overview
  • Articles
  • Code
  •  
  • Class List
  • Class Index
  • Class Hierarchy
  • Class Members
  • File List
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | List of all members
PolylineToolProperties Struct Reference

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:
Inheritance graph
[legend]
+ Collaboration diagram for PolylineToolProperties:
Collaboration graph
[legend]

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
 

Detailed Description

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.

Member Enumeration Documentation

◆ Type

enum PolylineToolProperties::Type

Definition at line 455 of file toolproperties.h.

Constructor & Destructor Documentation

◆ PolylineToolProperties()

PolylineToolProperties::PolylineToolProperties ( )
inline

Definition at line 464 of file toolproperties.h.

Member Function Documentation

◆ AntiAliasingEnabled()

bool PolylineToolProperties::AntiAliasingEnabled ( ) const
inline

Definition at line 483 of file toolproperties.h.

◆ bezierPathEnabled()

bool PolylineToolProperties::bezierPathEnabled ( ) const
inline

Definition at line 482 of file toolproperties.h.

◆ closedPathEnabled()

bool PolylineToolProperties::closedPathEnabled ( ) const
inline

Definition at line 481 of file toolproperties.h.

◆ getInfo()

PropertyInfo PolylineToolProperties::getInfo ( int  rawPropertyType) const
inlineoverridevirtual

Implements ToolPropertiesBase.

Definition at line 476 of file toolproperties.h.

◆ strokeToolProperties()

const StrokeToolProperties & PolylineToolProperties::strokeToolProperties ( ) const
inline

Definition at line 474 of file toolproperties.h.

◆ toolProperties()

ToolProperties & PolylineToolProperties::toolProperties ( )
inlineoverridevirtual

Implements ToolPropertiesBase.

Definition at line 473 of file toolproperties.h.

◆ width()

qreal PolylineToolProperties::width ( ) const
inline

Definition at line 480 of file toolproperties.h.

Member Data Documentation

◆ mStrokeToolProperties

StrokeToolProperties PolylineToolProperties::mStrokeToolProperties
private

Definition at line 486 of file toolproperties.h.


The documentation for this struct was generated from the following file:
  • core_lib/src/tool/toolproperties.h
Generated on Tue Dec 23 2025 02:59:17 for Pencil2D by doxygen 1.9.6 based on revision ba57a3de29b42de06bbb5b1757aa7f34e6bc4514