LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StrokeTextGraphicsItem Class Referencefinal

The StrokeTextGraphicsItem class is the graphical representation of a librepcb::StrokeText. More...

#include <stroketextgraphicsitem.h>

+ Inheritance diagram for StrokeTextGraphicsItem:
+ Collaboration diagram for StrokeTextGraphicsItem:

Public Member Functions

 StrokeTextGraphicsItem ()=delete
 
 StrokeTextGraphicsItem (const StrokeTextGraphicsItem &other)=delete
 
 StrokeTextGraphicsItem (StrokeText &text, const IF_GraphicsLayerProvider &lp, QGraphicsItem *parent=nullptr) noexcept
 
 ~StrokeTextGraphicsItem () noexcept
 
StrokeTextgetText () noexcept
 
QPainterPath shape () const noexceptoverride
 
StrokeTextGraphicsItemoperator= (const StrokeTextGraphicsItem &rhs)=delete
 
- Public Member Functions inherited from PrimitivePathGraphicsItem
 PrimitivePathGraphicsItem (const PrimitivePathGraphicsItem &other)=delete
 
 PrimitivePathGraphicsItem (QGraphicsItem *parent=nullptr) noexcept
 
virtual ~PrimitivePathGraphicsItem () noexcept
 
void setPosition (const Point &pos) noexcept
 
void setRotation (const Angle &rot) noexcept
 
void setPath (const QPainterPath &path) noexcept
 
void setLineWidth (const UnsignedLength &width) noexcept
 
void setLineLayer (const GraphicsLayer *layer) noexcept
 
void setFillLayer (const GraphicsLayer *layer) noexcept
 
QRectF boundingRect () const noexceptoverride
 
QPainterPath shape () const noexceptoverride
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexceptoverride
 
PrimitivePathGraphicsItemoperator= (const PrimitivePathGraphicsItem &rhs)=delete
 

Private Member Functions

void strokeTextEdited (const StrokeText &text, StrokeText::Event event) noexcept
 
void updateLayer (const GraphicsLayerName &layerName) noexcept
 
void updateTransform () noexcept
 
QVariant itemChange (GraphicsItemChange change, const QVariant &value) noexceptoverride
 

Private Attributes

StrokeTextmText
 
const IF_GraphicsLayerProvidermLayerProvider
 
QScopedPointer
< OriginCrossGraphicsItem
mOriginCrossGraphicsItem
 
StrokeText::OnEditedSlot mOnEditedSlot
 

Detailed Description

The StrokeTextGraphicsItem class is the graphical representation of a librepcb::StrokeText.

Constructor & Destructor Documentation

StrokeTextGraphicsItem ( StrokeText text,
const IF_GraphicsLayerProvider lp,
QGraphicsItem *  parent = nullptr 
)
noexcept

+ Here is the call graph for this function:

~StrokeTextGraphicsItem ( )
noexcept

Member Function Documentation

StrokeText& getText ( )
inlinenoexcept

+ Here is the caller graph for this function:

QPainterPath shape ( ) const
overridenoexcept

+ Here is the call graph for this function:

StrokeTextGraphicsItem& operator= ( const StrokeTextGraphicsItem rhs)
delete
void strokeTextEdited ( const StrokeText text,
StrokeText::Event  event 
)
privatenoexcept

+ Here is the call graph for this function:

void updateLayer ( const GraphicsLayerName layerName)
privatenoexcept
void updateTransform ( )
privatenoexcept

+ Here is the call graph for this function:

QVariant itemChange ( GraphicsItemChange  change,
const QVariant &  value 
)
overrideprivatenoexcept

Member Data Documentation

StrokeText& mText
private
const IF_GraphicsLayerProvider& mLayerProvider
private
QScopedPointer<OriginCrossGraphicsItem> mOriginCrossGraphicsItem
private
StrokeText::OnEditedSlot mOnEditedSlot
private

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