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
 
void layerColorChanged (const GraphicsLayer &layer, const QColor &newColor) noexceptoverride
 
void layerHighlightColorChanged (const GraphicsLayer &layer, const QColor &newColor) noexceptoverride
 
void layerVisibleChanged (const GraphicsLayer &layer, bool newVisible) noexceptoverride
 
void layerEnabledChanged (const GraphicsLayer &layer, bool newEnabled) noexceptoverride
 
void layerDestroyed (const GraphicsLayer &layer) noexceptoverride
 
QRectF boundingRect () const noexceptoverride
 
QPainterPath shape () const noexceptoverride
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) noexceptoverride
 
PrimitivePathGraphicsItemoperator= (const PrimitivePathGraphicsItem &rhs)=delete
 
- Public Member Functions inherited from IF_GraphicsLayerObserver
virtual ~IF_GraphicsLayerObserver ()
 

Private Member Functions

void strokeTextLayerNameChanged (const GraphicsLayerName &newLayerName) noexceptoverride
 
void strokeTextTextChanged (const QString &newText) noexceptoverride
 
void strokeTextPositionChanged (const Point &newPos) noexceptoverride
 
void strokeTextRotationChanged (const Angle &newRot) noexceptoverride
 
void strokeTextHeightChanged (const PositiveLength &newHeight) noexceptoverride
 
void strokeTextStrokeWidthChanged (const UnsignedLength &newStrokeWidth) noexceptoverride
 
void strokeTextLetterSpacingChanged (const StrokeTextSpacing &spacing) noexceptoverride
 
void strokeTextLineSpacingChanged (const StrokeTextSpacing &spacing) noexceptoverride
 
void strokeTextAlignChanged (const Alignment &newAlign) noexceptoverride
 
void strokeTextMirroredChanged (bool mirrored) noexceptoverride
 
void strokeTextAutoRotateChanged (bool newAutoRotate) noexceptoverride
 
void strokeTextPathsChanged (const QVector< Path > &paths) noexceptoverride
 
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
 

Additional Inherited Members

- Protected Member Functions inherited from IF_StrokeTextObserver
 IF_StrokeTextObserver () noexcept
 
 IF_StrokeTextObserver (const IF_StrokeTextObserver &other)=delete
 
virtual ~IF_StrokeTextObserver () noexcept
 
IF_StrokeTextObserveroperator= (const IF_StrokeTextObserver &rhs)=delete
 

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

+ Here is the call graph for this function:

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 strokeTextLayerNameChanged ( const GraphicsLayerName newLayerName)
overrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

void strokeTextTextChanged ( const QString &  newText)
overrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

void strokeTextPositionChanged ( const Point newPos)
overrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

void strokeTextRotationChanged ( const Angle newRot)
overrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

void strokeTextHeightChanged ( const PositiveLength newHeight)
overrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

void strokeTextStrokeWidthChanged ( const UnsignedLength newStrokeWidth)
overrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

void strokeTextLetterSpacingChanged ( const StrokeTextSpacing spacing)
overrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

void strokeTextLineSpacingChanged ( const StrokeTextSpacing spacing)
overrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

void strokeTextAlignChanged ( const Alignment newAlign)
overrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

void strokeTextMirroredChanged ( bool  mirrored)
overrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

void strokeTextAutoRotateChanged ( bool  newAutoRotate)
overrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

void strokeTextPathsChanged ( const QVector< Path > &  paths)
overrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

+ 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

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