RectNode

Search for usage in LXR

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

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.

Author
Artem Fedoskin
Version
1.0

Definition at line 21 of file rectnode.h.

Constructor & Destructor Documentation

◆ RectNode()

RectNode::RectNode ( bool filled = false)
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
filledtrue 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 Fri Dec 20 2024 11:53:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.