ShadowedTextureNode
ShadowedTextureNode Class Reference
#include <shadowedtexturenode.h>
Inheritance diagram for ShadowedTextureNode:
Public Member Functions | |
void | preprocess () override |
void | setTextureSource (QSGTextureProvider *source) |
Public Member Functions inherited from ShadowedRectangleNode | |
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 () |
Public Member Functions inherited from QSGGeometryNode | |
QSGMaterial * | material () const const |
QSGMaterial * | opaqueMaterial () const const |
void | setMaterial (QSGMaterial *material) |
void | setOpaqueMaterial (QSGMaterial *material) |
Public Member Functions inherited from QSGBasicGeometryNode | |
QSGGeometry * | geometry () |
const QSGGeometry * | geometry () const const |
void | setGeometry (QSGGeometry *geometry) |
Public Member Functions inherited from QSGNode | |
void | appendChildNode (QSGNode *node) |
QSGNode * | childAtIndex (int i) const const |
int | childCount () const const |
QSGNode * | firstChild () const const |
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 (DirtyState bits) |
QSGNode * | nextSibling () const const |
QSGNode * | parent () const const |
void | prependChildNode (QSGNode *node) |
QSGNode * | previousSibling () const const |
void | removeAllChildNodes () |
void | removeChildNode (QSGNode *node) |
void | setFlag (Flag f, bool enabled) |
void | setFlags (Flags f, bool enabled) |
NodeType | type () const const |
Additional Inherited Members | |
Public Types inherited from QSGNode | |
typedef | DirtyState |
enum | DirtyStateBit |
enum | Flag |
typedef | Flags |
enum | NodeType |
Public Attributes inherited from QSGNode | |
BasicNodeType | |
ClipNodeType | |
DirtyForceUpdate | |
DirtyGeometry | |
DirtyMaterial | |
DirtyMatrix | |
DirtyNodeAdded | |
DirtyNodeRemoved | |
DirtyOpacity | |
DirtyPropagationMask | |
DirtySubtreeBlocked | |
DirtyUsePreprocess | |
GeometryNodeType | |
InternalReserved | |
IsVisitableNode | |
OpacityNodeType | |
OwnedByParent | |
OwnsGeometry | |
OwnsMaterial | |
OwnsOpaqueMaterial | |
RenderNodeType | |
RootNodeType | |
TransformNodeType | |
UsePreprocess | |
Protected Member Functions inherited from ShadowedRectangleNode | |
Protected Attributes inherited from ShadowedRectangleNode | |
QSGGeometry * | m_geometry |
ShadowedRectangleMaterial * | m_material = nullptr |
ShadowedRectangleMaterial::ShaderType | m_shaderType = ShadowedRectangleMaterial::ShaderType::Standard |
Detailed Description
Scene graph node for a shadowed texture source.
This node will set up the geometry and materials for a shadowed rectangle, optionally with rounded corners, using a supplied texture source as the color for the rectangle.
- 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
- ShadowedTexture
Definition at line 27 of file shadowedtexturenode.h.
Constructor & Destructor Documentation
◆ ShadowedTextureNode()
ShadowedTextureNode::ShadowedTextureNode | ( | ) |
Definition at line 29 of file shadowedtexturenode.cpp.
◆ ~ShadowedTextureNode()
ShadowedTextureNode::~ShadowedTextureNode | ( | ) |
Definition at line 35 of file shadowedtexturenode.cpp.
Member Function Documentation
◆ preprocess()
|
overridevirtual |
Reimplemented from QSGNode.
Definition at line 57 of file shadowedtexturenode.cpp.
◆ setTextureSource()
void ShadowedTextureNode::setTextureSource | ( | QSGTextureProvider * | source | ) |
Definition at line 40 of file shadowedtexturenode.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:51:51 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:51:51 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.