ShadowedRectangleMaterial
#include <shadowedrectanglematerial.h>
Public Types | |
enum class | ShaderType { Standard , LowPower } |
Public Types inherited from QSGMaterial | |
enum | Flag |
typedef | Flags |
Public Member Functions | |
int | compare (const QSGMaterial *other) const override |
QSGMaterialShader * | createShader (QSGRendererInterface::RenderMode) const override |
QSGMaterialType * | type () const override |
Public Member Functions inherited from QSGMaterial | |
QSGMaterial::Flags | flags () const const |
void | setFlag (Flags flags, bool on) |
Public Attributes | |
QVector2D | aspect = QVector2D{1.0, 1.0} |
QColor | color = Qt::white |
QVector2D | offset |
QVector4D | radius = QVector4D{0.0, 0.0, 0.0, 0.0} |
ShaderType | shaderType = ShaderType::Standard |
QColor | shadowColor = Qt::black |
float | size = 0.0 |
Public Attributes inherited from QSGMaterial | |
Blending | |
CustomCompileStep | |
NoBatching | |
RequiresDeterminant | |
RequiresFullMatrix | |
RequiresFullMatrixExceptTranslate | |
Static Public Attributes | |
static QSGMaterialType | staticType |
Detailed Description
A material rendering a rectangle with a shadow.
This material uses a distance field shader to render a rectangle with a shadow below it, optionally with rounded corners.
Definition at line 19 of file shadowedrectanglematerial.h.
Member Enumeration Documentation
◆ ShaderType
|
strong |
Definition at line 22 of file shadowedrectanglematerial.h.
Constructor & Destructor Documentation
◆ ShadowedRectangleMaterial()
ShadowedRectangleMaterial::ShadowedRectangleMaterial | ( | ) |
Definition at line 13 of file shadowedrectanglematerial.cpp.
Member Function Documentation
◆ compare()
|
overridevirtual |
Reimplemented from QSGMaterial.
Definition at line 28 of file shadowedrectanglematerial.cpp.
◆ createShader()
|
overridevirtual |
Implements QSGMaterial.
Definition at line 18 of file shadowedrectanglematerial.cpp.
◆ type()
|
overridevirtual |
Implements QSGMaterial.
Definition at line 23 of file shadowedrectanglematerial.cpp.
Member Data Documentation
◆ aspect
Definition at line 33 of file shadowedrectanglematerial.h.
◆ color
Definition at line 36 of file shadowedrectanglematerial.h.
◆ offset
QVector2D ShadowedRectangleMaterial::offset |
Definition at line 38 of file shadowedrectanglematerial.h.
◆ radius
Definition at line 35 of file shadowedrectanglematerial.h.
◆ shaderType
ShaderType ShadowedRectangleMaterial::shaderType = ShaderType::Standard |
Definition at line 39 of file shadowedrectanglematerial.h.
◆ shadowColor
Definition at line 37 of file shadowedrectanglematerial.h.
◆ size
float ShadowedRectangleMaterial::size = 0.0 |
Definition at line 34 of file shadowedrectanglematerial.h.
◆ staticType
|
static |
Definition at line 41 of file shadowedrectanglematerial.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.