QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskMenuSkinlet Class Reference

Detailed Description

Definition at line 14 of file QskMenuSkinlet.h.

Inheritance diagram for QskMenuSkinlet:

Public Types

enum  NodeRole { ContentsRole = Inherited::RoleCount , PanelRole , RoleCount }
 
- Public Types inherited from QskPopupSkinlet
enum  NodeRole { OverlayRole , RoleCount }
 

Public Member Functions

Q_INVOKABLE QskMenuSkinlet (QskSkin *=nullptr)
 
QRectF subControlRect (const QskSkinnable *, const QRectF &, QskAspect::Subcontrol) const override
 
int sampleCount (const QskSkinnable *, QskAspect::Subcontrol) const override
 
QRectF sampleRect (const QskSkinnable *, const QRectF &, QskAspect::Subcontrol, int index) const override
 
int sampleIndexAt (const QskSkinnable *, const QRectF &, QskAspect::Subcontrol, const QPointF &) const override
 
QskAspect::States sampleStates (const QskSkinnable *, QskAspect::Subcontrol, int index) const override
 
QVariant sampleAt (const QskSkinnable *, QskAspect::Subcontrol, int index) const override
 
QSizeF sizeHint (const QskSkinnable *, Qt::SizeHint, const QSizeF &) const override
 
- Public Member Functions inherited from QskPopupSkinlet
Q_INVOKABLE QskPopupSkinlet (QskSkin *=nullptr)
 
QRectF subControlRect (const QskSkinnable *, const QRectF &, QskAspect::Subcontrol) const override
 
- Public Member Functions inherited from QskSkinlet
Q_INVOKABLE QskSkinlet (QskSkin *=nullptr)
 
QskSkinskin () const
 
virtual void updateNode (QskSkinnable *, QSGNode *parent) const
 
const QVector< quint8 > & nodeRoles () const
 
void setOwnedBySkinnable (bool on)
 
bool isOwnedBySkinnable () const
 

Protected Member Functions

QSGNode * updateSubNode (const QskSkinnable *, quint8 nodeRole, QSGNode *) const override
 
QSGNode * updateContentsNode (const QskPopup *, QSGNode *) const
 
QSGNode * updateMenuNode (const QskSkinnable *, QSGNode *) const
 
QSGNode * updateSampleNode (const QskSkinnable *, QskAspect::Subcontrol, int index, QSGNode *) const override
 
- Protected Member Functions inherited from QskPopupSkinlet
QSGNode * updateSubNode (const QskSkinnable *, quint8 nodeRole, QSGNode *) const override
 
- Protected Member Functions inherited from QskSkinlet
void setNodeRoles (const QVector< quint8 > &)
 
void appendNodeRoles (const QVector< quint8 > &)
 
virtual QSGNode * updateBackgroundNode (const QskControl *, QSGNode *) const
 
virtual QSGNode * updateDebugNode (const QskControl *, QSGNode *node) const
 
QSGNode * updateBoxNode (const QskSkinnable *, QSGNode *, QskAspect::Subcontrol) const
 
QSGNode * updateArcNode (const QskSkinnable *, QSGNode *, QskAspect::Subcontrol) const
 
QSGNode * updateArcNode (const QskSkinnable *, QSGNode *, qreal startAngle, qreal spanAngle, QskAspect::Subcontrol) const
 
QSGNode * updateBoxClipNode (const QskSkinnable *, QSGNode *, QskAspect::Subcontrol) const
 
QSGNode * updateTextNode (const QskSkinnable *, QSGNode *, const QString &, QskAspect::Subcontrol) const
 
QSGNode * updateSymbolNode (const QskSkinnable *, QSGNode *, QskAspect::Subcontrol) const
 
QSGNode * updateGraphicNode (const QskSkinnable *, QSGNode *, const QskGraphic &, QskAspect::Subcontrol, Qt::Orientations mirrored=Qt::Orientations()) const
 
QSGNode * updateSeriesNode (const QskSkinnable *, QskAspect::Subcontrol, QSGNode *) const
 
void replaceChildNode (quint8 nodeRole, QSGNode *parentNode, QSGNode *oldNode, QSGNode *newNode) const
 
QSizeF hintWithoutConstraint (const QSizeF &hint, const QSizeF &constraint) const
 

Additional Inherited Members

- Static Public Member Functions inherited from QskSkinlet
static QSGNode * updateBoxNode (const QskSkinnable *, QSGNode *, const QRectF &, QskAspect::Subcontrol)
 
static QSGNode * updateBoxNode (const QskSkinnable *, QSGNode *, const QRectF &, const QskGradient &, QskAspect::Subcontrol)
 
static QSGNode * updateBoxNode (const QskSkinnable *, QSGNode *, const QRectF &, const QskBoxShapeMetrics &, const QskBoxBorderMetrics &, const QskBoxBorderColors &, const QskGradient &)
 
static QSGNode * updateBoxNode (const QskSkinnable *, QSGNode *, const QRectF &, const QskBoxHints &)
 
static QSGNode * updateInterpolatedBoxNode (const QskSkinnable *, QSGNode *, const QRectF &, QskAspect aspect1, QskAspect aspect2, qreal ratio)
 
static QSGNode * updateArcNode (const QskSkinnable *, QSGNode *, const QRectF &, QskAspect::Subcontrol)
 
static QSGNode * updateArcNode (const QskSkinnable *, QSGNode *, const QRectF &, const QskGradient &, QskAspect::Subcontrol)
 
static QSGNode * updateArcNode (const QskSkinnable *, QSGNode *, const QRectF &, qreal borderWidth, const QColor &borderColor, const QskGradient &, const QskArcMetrics &)
 
static QSGNode * updateArcNode (const QskSkinnable *, QSGNode *, const QRectF &, qreal startAngle, qreal spanAngle, QskAspect::Subcontrol)
 
static QSGNode * updateArcNode (const QskSkinnable *, QSGNode *, const QRectF &, const QskGradient &, qreal startAngle, qreal spanAngle, QskAspect::Subcontrol)
 
static QSGNode * updateLineNode (const QskSkinnable *, QSGNode *, const QLineF &, QskAspect::Subcontrol)
 
static QSGNode * updateLinesNode (const QskSkinnable *, QSGNode *, const QVector< QLineF > &, QskAspect::Subcontrol)
 
static QSGNode * updateTextNode (const QskSkinnable *, QSGNode *, const QRectF &, Qt::Alignment, const QString &, QskAspect::Subcontrol)
 
static QSGNode * updateTextNode (const QskSkinnable *, QSGNode *, const QRectF &, Qt::Alignment, const QString &, const QFont &, const QskTextOptions &, const QskTextColors &, Qsk::TextStyle)
 
static QSGNode * updateGraphicNode (const QskSkinnable *, QSGNode *, const QskGraphic &, const QskColorFilter &, const QRectF &, Qt::Alignment, Qt::Orientations mirrored=Qt::Orientations())
 
static QSGNode * updateGraphicNode (const QskSkinnable *, QSGNode *, const QskGraphic &, const QskColorFilter &, const QRectF &, Qt::Orientations mirrored=Qt::Orientations())
 
static QSGNode * updateBoxClipNode (const QskSkinnable *, QSGNode *, const QRectF &, QskAspect::Subcontrol)
 

Member Enumeration Documentation

◆ NodeRole

enum QskMenuSkinlet::NodeRole

Definition at line 21 of file QskMenuSkinlet.h.

Constructor & Destructor Documentation

◆ QskMenuSkinlet()

QskMenuSkinlet::QskMenuSkinlet ( QskSkin skin = nullptr)

Definition at line 209 of file QskMenuSkinlet.cpp.

Member Function Documentation

◆ sampleAt()

QVariant QskMenuSkinlet::sampleAt ( const QskSkinnable skinnable,
QskAspect::Subcontrol  subControl,
int  index 
) const
overridevirtual

Reimplemented from QskSkinlet.

Definition at line 447 of file QskMenuSkinlet.cpp.

◆ sampleCount()

int QskMenuSkinlet::sampleCount ( const QskSkinnable skinnable,
QskAspect::Subcontrol  subControl 
) const
overridevirtual

Reimplemented from QskSkinlet.

Definition at line 385 of file QskMenuSkinlet.cpp.

◆ sampleIndexAt()

int QskMenuSkinlet::sampleIndexAt ( const QskSkinnable skinnable,
const QRectF &  contentsRect,
QskAspect::Subcontrol  subControl,
const QPointF &  pos 
) const
overridevirtual

Reimplemented from QskSkinlet.

Definition at line 377 of file QskMenuSkinlet.cpp.

◆ sampleRect()

QRectF QskMenuSkinlet::sampleRect ( const QskSkinnable skinnable,
const QRectF &  contentsRect,
QskAspect::Subcontrol  subControl,
int  index 
) const
overridevirtual

Reimplemented from QskSkinlet.

Definition at line 307 of file QskMenuSkinlet.cpp.

◆ sampleStates()

QskAspect::States QskMenuSkinlet::sampleStates ( const QskSkinnable skinnable,
QskAspect::Subcontrol  subControl,
int  index 
) const
overridevirtual

Reimplemented from QskSkinlet.

Definition at line 405 of file QskMenuSkinlet.cpp.

◆ sizeHint()

QSizeF QskMenuSkinlet::sizeHint ( const QskSkinnable skinnable,
Qt::SizeHint  which,
const QSizeF &   
) const
overridevirtual

Reimplemented from QskSkinlet.

Definition at line 585 of file QskMenuSkinlet.cpp.

◆ subControlRect()

QRectF QskMenuSkinlet::subControlRect ( const QskSkinnable skinnable,
const QRectF &  contentsRect,
QskAspect::Subcontrol  subControl 
) const
overridevirtual

Reimplemented from QskSkinlet.

Definition at line 268 of file QskMenuSkinlet.cpp.

◆ updateContentsNode()

QSGNode * QskMenuSkinlet::updateContentsNode ( const QskPopup popup,
QSGNode *  contentsNode 
) const
protected

Definition at line 467 of file QskMenuSkinlet.cpp.

◆ updateMenuNode()

QSGNode * QskMenuSkinlet::updateMenuNode ( const QskSkinnable skinnable,
QSGNode *  contentsNode 
) const
protected

Definition at line 474 of file QskMenuSkinlet.cpp.

◆ updateSampleNode()

QSGNode * QskMenuSkinlet::updateSampleNode ( const QskSkinnable skinnable,
QskAspect::Subcontrol  subControl,
int  index,
QSGNode *  node 
) const
overrideprotectedvirtual

Reimplemented from QskSkinlet.

Definition at line 529 of file QskMenuSkinlet.cpp.

◆ updateSubNode()

QSGNode * QskMenuSkinlet::updateSubNode ( const QskSkinnable skinnable,
quint8  nodeRole,
QSGNode *  node 
) const
overrideprotectedvirtual

Reimplemented from QskSkinlet.

Definition at line 218 of file QskMenuSkinlet.cpp.