RectNode
RectNode Class Reference
#include <rectnode.h>
Inheritance diagram for RectNode:
Public Member Functions | |
RectNode (bool filled=false) | |
void | setColor (const QColor &color) |
void | setFilled (bool filled) |
void | setRect (int x, int y, int w, int h) |
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) |
virtual void | preprocess () |
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 | |
Detailed Description
QSGGeometryNode derived class that draws filled and non-filled rectangles.
- Version
- 1.0
Definition at line 21 of file rectnode.h.
Constructor & Destructor Documentation
◆ RectNode()
|
explicit |
Definition at line 11 of file rectnode.cpp.
Member Function Documentation
◆ setColor()
void RectNode::setColor | ( | const QColor & | color | ) |
setColor sets the color of rectangle
Definition at line 35 of file rectnode.cpp.
◆ setFilled()
void RectNode::setFilled | ( | bool | filled | ) |
setFilled sets whether the rectangle should be filled or no
- Parameters
-
filled true to be filled, false otherwise
Definition at line 44 of file rectnode.cpp.
◆ setRect()
void RectNode::setRect | ( | int | x, |
int | y, | ||
int | w, | ||
int | h ) |
setRect sets rectangle to display
- Parameters
-
x - x coordinate of left-top corner y - y coordinate of left-top corner w - width h - height
Definition at line 25 of file rectnode.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 Mon Nov 18 2024 12:16:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.