dnai::views::CustomShape Class Reference

#include <customshape.h>

Inheritance diagram for dnai::views::CustomShape:
Inheritance graph
Collaboration diagram for dnai::views::CustomShape:
Collaboration graph

Signals

void radiusChanged (qreal radius)
 
void borderWidthChanged (qreal w)
 
void fillColorChanged (const QColor &color)
 
void borderColorChanged (const QColor &color)
 

Public Member Functions

 CustomShape (QQuickItem *parent=nullptr)
 
virtual QSGNode * updatePaintNode (QSGNode *, UpdatePaintNodeData *) override
 
qreal radius () const
 
qreal borderWidth () const
 
const QColor & fillColor () const
 
const QColor & borderColor () const
 
void setRadius (qreal radius)
 
virtual void setBorderWidth (qreal w)
 
virtual void setFillColor (const QColor &color)
 
virtual void setBorderColor (const QColor &color)
 
void resetRadius ()
 
void resetBorderWidth ()
 
void resetBorderColor ()
 
void resetFillColor ()
 
void resetPos ()
 
void resetShape ()
 

Protected Attributes

qreal m_radius
 
qreal m_borderWidth
 
QColor m_fillColor
 
QColor m_borderColor
 
qreal m_saveRadius
 
qreal m_saveBorderWidth
 
QColor m_saveFillColor
 
QColor m_saveBorderColor
 
QPointF m_savePos
 

Properties

qreal radius
 
qreal borderWidth
 
QColor fillColor
 
QColor borderColor
 

Constructor & Destructor Documentation

dnai::views::CustomShape::CustomShape ( QQuickItem *  parent = nullptr)
explicit

Member Function Documentation

const QColor& dnai::views::CustomShape::borderColor ( ) const
inline
void dnai::views::CustomShape::borderColorChanged ( const QColor &  color)
signal
qreal dnai::views::CustomShape::borderWidth ( ) const
inline
void dnai::views::CustomShape::borderWidthChanged ( qreal  w)
signal
const QColor& dnai::views::CustomShape::fillColor ( ) const
inline
void dnai::views::CustomShape::fillColorChanged ( const QColor &  color)
signal
qreal dnai::views::CustomShape::radius ( ) const
inline
void dnai::views::CustomShape::radiusChanged ( qreal  radius)
signal
void dnai::views::CustomShape::resetBorderColor ( )
void dnai::views::CustomShape::resetBorderWidth ( )
void dnai::views::CustomShape::resetFillColor ( )
void dnai::views::CustomShape::resetPos ( )
void dnai::views::CustomShape::resetRadius ( )
void dnai::views::CustomShape::resetShape ( )
void dnai::views::CustomShape::setBorderColor ( const QColor &  color)
virtual
void dnai::views::CustomShape::setBorderWidth ( qreal  w)
virtual
void dnai::views::CustomShape::setFillColor ( const QColor &  color)
virtual
void dnai::views::CustomShape::setRadius ( qreal  radius)
QSGNode * dnai::views::CustomShape::updatePaintNode ( QSGNode *  n,
UpdatePaintNodeData *   
)
overridevirtual

Member Data Documentation

QColor dnai::views::CustomShape::m_borderColor
protected
qreal dnai::views::CustomShape::m_borderWidth
protected
QColor dnai::views::CustomShape::m_fillColor
protected
qreal dnai::views::CustomShape::m_radius
protected
QColor dnai::views::CustomShape::m_saveBorderColor
protected
qreal dnai::views::CustomShape::m_saveBorderWidth
protected
QColor dnai::views::CustomShape::m_saveFillColor
protected
QPointF dnai::views::CustomShape::m_savePos
protected
qreal dnai::views::CustomShape::m_saveRadius
protected

Property Documentation

QColor dnai::views::CustomShape::borderColor
readwrite
qreal dnai::views::CustomShape::borderWidth
readwrite
QColor dnai::views::CustomShape::fillColor
readwrite
qreal dnai::views::CustomShape::radius
readwrite

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