Skip to content

Class PencilTool#

ClassList > PencilTool

Inherits the following classes: AbstractPathTool

Public Functions#

Type Name
PencilTool (QObject * parent=nullptr)
CaptureTool * copy (QObject * parent=nullptr) override
QString description () override const
QIcon icon (const QColor & background, bool inEditor) override const
QString name () override const
void paintMousePreview (QPainter & painter, const CaptureContext & context) override
void process (QPainter & painter, const QPixmap & pixmap) override

Public Functions inherited from AbstractPathTool#

See AbstractPathTool

Type Name
AbstractPathTool (QObject * parent=nullptr)
QRect boundingRect () override const
bool closeOnButtonPressed () override const
bool isSelectable () override const
bool isValid () override const
QRect mousePreviewRect (const CaptureContext & context) override const
void move (const QPoint & mousePos) override
const QPoint * pos () override
bool showMousePreview () override const
int size () override const

Protected Attributes inherited from AbstractPathTool#

See AbstractPathTool

Type Name
QColor m_color
int m_padding
QRect m_pathArea
QVector< QPoint > m_points
QPoint m_pos

Protected Functions#

Type Name
CaptureTool::Type type () override const

Protected Functions inherited from AbstractPathTool#

See AbstractPathTool

Type Name
void addPoint (const QPoint & point)
void copyParams (const AbstractPathTool * from, AbstractPathTool * to)

Public Functions Documentation#

function PencilTool#

explicit PencilTool::PencilTool (
    QObject * parent=nullptr
) 

function copy#

CaptureTool * PencilTool::copy (
    QObject * parent=nullptr
) override

function description#

QString PencilTool::description () override const

function icon#

QIcon PencilTool::icon (
    const QColor & background,
    bool inEditor
) override const

function name#

QString PencilTool::name () override const

function paintMousePreview#

void PencilTool::paintMousePreview (
    QPainter & painter,
    const CaptureContext & context
) override

function process#

void PencilTool::process (
    QPainter & painter,
    const QPixmap & pixmap
) override

Protected Functions Documentation#

function type#

CaptureTool::Type PencilTool::type () override const