ShadowedRectangleNode
#include <shadowedrectanglenode.h>

Public Member Functions | |
void | setBorderColor (const QColor &color) |
void | setBorderEnabled (bool enabled) |
void | setBorderWidth (qreal width) |
void | setColor (const QColor &color) |
void | setOffset (const QVector2D &offset) |
void | setRadius (const QVector4D &radius) |
void | setRect (const QRectF &rect) |
void | setShaderType (ShadowedRectangleMaterial::ShaderType type) |
void | setShadowColor (const QColor &color) |
void | setSize (qreal size) |
void | updateGeometry () |
![]() | |
QSGMaterial * | material () const const |
QSGMaterial * | opaqueMaterial () const const |
void | setMaterial (QSGMaterial *material) |
void | setOpaqueMaterial (QSGMaterial *material) |
![]() | |
QSGGeometry * | geometry () |
const QSGGeometry * | geometry () const const |
void | setGeometry (QSGGeometry *geometry) |
![]() | |
void | appendChildNode (QSGNode *node) |
QSGNode * | childAtIndex (int i) const const |
int | childCount () const const |
QSGNode * | firstChild () const const |
QSGNode::Flags | flags () const const |
void | insertChildNodeAfter (QSGNode *node, QSGNode *after) |
void | insertChildNodeBefore (QSGNode *node, QSGNode *before) |
virtual bool | isSubtreeBlocked () const const |
QSGNode * | lastChild () const const |
void | markDirty (QSGNode::DirtyState bits) |
QSGNode * | nextSibling () const const |
QSGNode * | parent () const const |
void | prependChildNode (QSGNode *node) |
virtual void | preprocess () |
QSGNode * | previousSibling () const const |
void | removeAllChildNodes () |
void | removeChildNode (QSGNode *node) |
void | setFlag (QSGNode::Flag f, bool enabled) |
void | setFlags (QSGNode::Flags f, bool enabled) |
QSGNode::NodeType | type () const const |
Protected Member Functions | |
virtual QSGMaterialType * | borderlessMaterialType () |
virtual QSGMaterialType * | borderMaterialType () |
virtual ShadowedRectangleMaterial * | createBorderlessMaterial () |
virtual ShadowedBorderRectangleMaterial * | createBorderMaterial () |
Protected Attributes | |
QSGGeometry * | m_geometry |
ShadowedRectangleMaterial * | m_material = nullptr |
ShadowedRectangleMaterial::ShaderType | m_shaderType = ShadowedRectangleMaterial::ShaderType::Standard |
Additional Inherited Members | |
![]() | |
enum | DirtyStateBit |
enum | Flag |
enum | NodeType |
![]() | |
BasicNodeType | |
ClipNodeType | |
DirtyForceUpdate | |
DirtyGeometry | |
DirtyMaterial | |
DirtyMatrix | |
DirtyNodeAdded | |
DirtyNodeRemoved | |
DirtyOpacity | |
DirtyPropagationMask | |
typedef | DirtyState |
DirtySubtreeBlocked | |
DirtyUsePreprocess | |
typedef | Flags |
GeometryNodeType | |
InternalReserved | |
IsVisitableNode | |
OpacityNodeType | |
OwnedByParent | |
OwnsGeometry | |
OwnsMaterial | |
OwnsOpaqueMaterial | |
RenderNodeType | |
RootNodeType | |
TransformNodeType | |
UsePreprocess | |
Detailed Description
Scene graph node for a shadowed rectangle.
This node will set up the geometry and materials for a shadowed rectangle, optionally with rounded corners.
- Note
- You must call updateGeometry() after setting properties of this node, otherwise the node's state will not correctly reflect all the properties.
- See also
- ShadowedRectangle
Definition at line 30 of file shadowedrectanglenode.h.
Member Function Documentation
◆ setBorderEnabled()
void ShadowedRectangleNode::setBorderEnabled | ( | bool | enabled | ) |
Set whether to draw a border.
Note that this will switch between a material with or without border. This means this needs to be called before any other setters.
Definition at line 26 of file shadowedrectanglenode.cpp.
◆ updateGeometry()
void ShadowedRectangleNode::updateGeometry | ( | ) |
Update the geometry for this node.
This is done as an explicit step to avoid the geometry being recreated multiple times while updating properties.
Definition at line 169 of file shadowedrectanglenode.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 6 2023 04:13:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.