Skip to content

Class AbstractPathTool#

ClassList > AbstractPathTool

Inherits the following classes: CaptureTool

Inherited by the following classes: PencilTool

Public Functions#

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#

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

Protected Functions#

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

Public Functions Documentation#

function AbstractPathTool#

explicit AbstractPathTool::AbstractPathTool (
    QObject * parent=nullptr

function boundingRect#

QRect AbstractPathTool::boundingRect () override const

function closeOnButtonPressed#

bool AbstractPathTool::closeOnButtonPressed () override const

function isSelectable#

bool AbstractPathTool::isSelectable () override const

function isValid#

bool AbstractPathTool::isValid () override const

function mousePreviewRect#

QRect AbstractPathTool::mousePreviewRect (
    const CaptureContext & context
) override const

function move#

void AbstractPathTool::move (
    const QPoint & mousePos
) override

function pos#

const QPoint * AbstractPathTool::pos () override

function showMousePreview#

bool AbstractPathTool::showMousePreview () override const

function size#

inline int AbstractPathTool::size () override const

Protected Attributes Documentation#

variable m_color#

QColor AbstractPathTool::m_color;

variable m_padding#

int AbstractPathTool::m_padding;

variable m_pathArea#

QRect AbstractPathTool::m_pathArea;

variable m_points#

QVector<QPoint> AbstractPathTool::m_points;

variable m_pos#

QPoint AbstractPathTool::m_pos;

Protected Functions Documentation#

function addPoint#

void AbstractPathTool::addPoint (
    const QPoint & point

function copyParams#

void AbstractPathTool::copyParams (
    const AbstractPathTool * from,
    AbstractPathTool * to