ShadowedRectangleNode

Search for usage in LXR

#include <shadowedrectanglenode.h>

Inheritance diagram for ShadowedRectangleNode:

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 ()
 
- Public Member Functions inherited from QSGGeometryNode
QSGMaterialmaterial () const const
 
QSGMaterialopaqueMaterial () const const
 
void setMaterial (QSGMaterial *material)
 
void setOpaqueMaterial (QSGMaterial *material)
 
- Public Member Functions inherited from QSGBasicGeometryNode
QSGGeometrygeometry ()
 
const QSGGeometrygeometry () const const
 
void setGeometry (QSGGeometry *geometry)
 
- Public Member Functions inherited from QSGNode
void appendChildNode (QSGNode *node)
 
QSGNodechildAtIndex (int i) const const
 
int childCount () const const
 
QSGNodefirstChild () const const
 
Flags flags () const const
 
void insertChildNodeAfter (QSGNode *node, QSGNode *after)
 
void insertChildNodeBefore (QSGNode *node, QSGNode *before)
 
virtual bool isSubtreeBlocked () const const
 
QSGNodelastChild () const const
 
void markDirty (DirtyState bits)
 
QSGNodenextSibling () const const
 
QSGNodeparent () const const
 
void prependChildNode (QSGNode *node)
 
virtual void preprocess ()
 
QSGNodepreviousSibling () const const
 
void removeAllChildNodes ()
 
void removeChildNode (QSGNode *node)
 
void setFlag (Flag f, bool enabled)
 
void setFlags (Flags f, bool enabled)
 
NodeType type () const const
 

Protected Member Functions

virtual QSGMaterialTypeborderlessMaterialType ()
 
virtual QSGMaterialTypeborderMaterialType ()
 
virtual ShadowedRectangleMaterialcreateBorderlessMaterial ()
 
virtual ShadowedBorderRectangleMaterialcreateBorderMaterial ()
 

Protected Attributes

QSGGeometrym_geometry
 
ShadowedRectangleMaterialm_material = nullptr
 
ShadowedRectangleMaterial::ShaderType m_shaderType = ShadowedRectangleMaterial::ShaderType::Standard
 

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
 

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.

Constructor & Destructor Documentation

◆ ShadowedRectangleNode()

ShadowedRectangleNode::ShadowedRectangleNode ( )

Definition at line 18 of file shadowedrectanglenode.cpp.

Member Function Documentation

◆ borderlessMaterialType()

QSGMaterialType * ShadowedRectangleNode::borderlessMaterialType ( )
protectedvirtual

Definition at line 199 of file shadowedrectanglenode.cpp.

◆ borderMaterialType()

QSGMaterialType * ShadowedRectangleNode::borderMaterialType ( )
protectedvirtual

Definition at line 204 of file shadowedrectanglenode.cpp.

◆ createBorderlessMaterial()

ShadowedRectangleMaterial * ShadowedRectangleNode::createBorderlessMaterial ( )
protectedvirtual

Definition at line 189 of file shadowedrectanglenode.cpp.

◆ createBorderMaterial()

ShadowedBorderRectangleMaterial * ShadowedRectangleNode::createBorderMaterial ( )
protectedvirtual

Definition at line 194 of file shadowedrectanglenode.cpp.

◆ setBorderColor()

void ShadowedRectangleNode::setBorderColor ( const QColor & color)

Definition at line 150 of file shadowedrectanglenode.cpp.

◆ 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.

◆ setBorderWidth()

void ShadowedRectangleNode::setBorderWidth ( qreal width)

Definition at line 133 of file shadowedrectanglenode.cpp.

◆ setColor()

void ShadowedRectangleNode::setColor ( const QColor & color)

Definition at line 103 of file shadowedrectanglenode.cpp.

◆ setOffset()

void ShadowedRectangleNode::setOffset ( const QVector2D & offset)

Definition at line 121 of file shadowedrectanglenode.cpp.

◆ setRadius()

void ShadowedRectangleNode::setRadius ( const QVector4D & radius)

Definition at line 88 of file shadowedrectanglenode.cpp.

◆ setRect()

void ShadowedRectangleNode::setRect ( const QRectF & rect)

Definition at line 54 of file shadowedrectanglenode.cpp.

◆ setShaderType()

void ShadowedRectangleNode::setShaderType ( ShadowedRectangleMaterial::ShaderType type)

Definition at line 164 of file shadowedrectanglenode.cpp.

◆ setShadowColor()

void ShadowedRectangleNode::setShadowColor ( const QColor & color)

Definition at line 112 of file shadowedrectanglenode.cpp.

◆ setSize()

void ShadowedRectangleNode::setSize ( qreal size)

Definition at line 76 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.

Member Data Documentation

◆ m_geometry

QSGGeometry* ShadowedRectangleNode::m_geometry
protected

Definition at line 67 of file shadowedrectanglenode.h.

◆ m_material

ShadowedRectangleMaterial* ShadowedRectangleNode::m_material = nullptr
protected

Definition at line 68 of file shadowedrectanglenode.h.

◆ m_shaderType

ShadowedRectangleMaterial::ShaderType ShadowedRectangleNode::m_shaderType = ShadowedRectangleMaterial::ShaderType::Standard
protected

Definition at line 69 of file shadowedrectanglenode.h.


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 22 2024 12:05:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.