Swiftray  1.0
Controls::PathEdit Class Reference

#include <path-edit.h>

Inheritance diagram for Controls::PathEdit:
Controls::CanvasControl

Classes

class  PathNode
 

Public Member Functions

 PathEdit (Canvas *canvas) noexcept
 
qreal distance (QPointF point)
 
void exit () override
 
QPointF getLocalCoord (QPointF canvas_coord)
 
int hitTest (QPointF canvas_coord)
 
bool hoverEvent (QHoverEvent *e, Qt::CursorShape *cursor) override
 
bool isActive () override
 
bool keyPressEvent (QKeyEvent *e) override
 
bool mouseMoveEvent (QMouseEvent *e) override
 
bool mousePressEvent (QMouseEvent *e) override
 
bool mouseReleaseEvent (QMouseEvent *e) override
 
void moveElementTo (int index, QPointF local_coord)
 
void paint (QPainter *painter) override
 
const QPainterPath & path () const
 
void setPath (const QPainterPath &path)
 
void setTarget (ShapePtr &target)
 
PathShapetarget ()
 
- Public Member Functions inherited from Controls::CanvasControl
 CanvasControl (Canvas *parent)
 
Canvascanvas ()
 
Documentdocument ()
 

Constructor & Destructor Documentation

◆ PathEdit()

PathEdit::PathEdit ( Canvas canvas)
noexcept

Member Function Documentation

◆ distance()

qreal PathEdit::distance ( QPointF  point)

◆ exit()

void PathEdit::exit ( )
overridevirtual

Reimplemented from Controls::CanvasControl.

◆ getLocalCoord()

QPointF PathEdit::getLocalCoord ( QPointF  canvas_coord)

◆ hitTest()

int PathEdit::hitTest ( QPointF  canvas_coord)

◆ hoverEvent()

bool PathEdit::hoverEvent ( QHoverEvent *  e,
Qt::CursorShape *  cursor 
)
overridevirtual

Reimplemented from Controls::CanvasControl.

◆ isActive()

bool PathEdit::isActive ( )
overridevirtual

Reimplemented from Controls::CanvasControl.

◆ keyPressEvent()

bool PathEdit::keyPressEvent ( QKeyEvent *  e)
overridevirtual

Reimplemented from Controls::CanvasControl.

◆ mouseMoveEvent()

bool PathEdit::mouseMoveEvent ( QMouseEvent *  e)
overridevirtual

Reimplemented from Controls::CanvasControl.

◆ mousePressEvent()

bool PathEdit::mousePressEvent ( QMouseEvent *  e)
overridevirtual

Reimplemented from Controls::CanvasControl.

◆ mouseReleaseEvent()

bool PathEdit::mouseReleaseEvent ( QMouseEvent *  e)
overridevirtual

Reimplemented from Controls::CanvasControl.

◆ moveElementTo()

void PathEdit::moveElementTo ( int  index,
QPointF  local_coord 
)

◆ paint()

void PathEdit::paint ( QPainter *  painter)
overridevirtual

Reimplemented from Controls::CanvasControl.

◆ path()

const QPainterPath & PathEdit::path ( ) const

◆ setPath()

void PathEdit::setPath ( const QPainterPath &  path)

◆ setTarget()

void PathEdit::setTarget ( ShapePtr target)

◆ target()

PathShape & PathEdit::target ( )

The documentation for this class was generated from the following files: