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
QSGNode::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 (QSGNode::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 (QSGNode::Flag f, bool enabled)
void setFlags (QSGNode::Flags f, bool enabled)
QSGNode::NodeType type () const const

Additional Inherited Members

- Public Types inherited from QSGNode
enum  DirtyStateBit
enum  Flag
enum  NodeType
- Public Attributes inherited from QSGNode
typedef DirtyState
typedef Flags

Detailed Description

QSGGeometryNode derived class that draws filled and non-filled rectangles.

Artem Fedoskin

Definition at line 21 of file rectnode.h.

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

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

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-2023 The KDE developers.
Generated on Sun Dec 3 2023 04:06:24 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.