ShadowedBorderRectangleMaterial

Search for usage in LXR

ShadowedBorderRectangleMaterial Class Reference

#include <shadowedborderrectanglematerial.h>

Inheritance diagram for ShadowedBorderRectangleMaterial:

Public Member Functions

int compare (const QSGMaterial *other) const override
 
QSGMaterialShadercreateShader (QSGRendererInterface::RenderMode) const override
 
QSGMaterialTypetype () const override
 
- Public Member Functions inherited from ShadowedRectangleMaterial
int compare (const QSGMaterial *other) const override
 
QSGMaterialShadercreateShader (QSGRendererInterface::RenderMode) const override
 
QSGMaterialTypetype () const override
 
- Public Member Functions inherited from QSGMaterial
QSGMaterial::Flags flags () const const
 
void setFlag (Flags flags, bool on)
 

Public Attributes

QColor borderColor = Qt::black
 
float borderWidth = 0.0
 
- Public Attributes inherited from ShadowedRectangleMaterial
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
 
- Static Public Attributes inherited from ShadowedRectangleMaterial
static QSGMaterialType staticType
 

Additional Inherited Members

- Public Types inherited from ShadowedRectangleMaterial
enum class  ShaderType { Standard , LowPower }
 
- Public Types inherited from QSGMaterial
enum  Flag
 
typedef  Flags
 

Detailed Description

A material rendering a rectangle with a shadow and a border.

This material uses a distance field shader to render a rectangle with a shadow below it, optionally with rounded corners and a border.

Definition at line 17 of file shadowedborderrectanglematerial.h.

Constructor & Destructor Documentation

◆ ShadowedBorderRectangleMaterial()

ShadowedBorderRectangleMaterial::ShadowedBorderRectangleMaterial ( )

Definition at line 13 of file shadowedborderrectanglematerial.cpp.

Member Function Documentation

◆ compare()

int ShadowedBorderRectangleMaterial::compare ( const QSGMaterial * other) const
overridevirtual

Reimplemented from QSGMaterial.

Definition at line 28 of file shadowedborderrectanglematerial.cpp.

◆ createShader()

QSGMaterialShader * ShadowedBorderRectangleMaterial::createShader ( QSGRendererInterface::RenderMode ) const
overridevirtual

Implements QSGMaterial.

Definition at line 18 of file shadowedborderrectanglematerial.cpp.

◆ type()

QSGMaterialType * ShadowedBorderRectangleMaterial::type ( ) const
overridevirtual

Implements QSGMaterial.

Definition at line 23 of file shadowedborderrectanglematerial.cpp.

Member Data Documentation

◆ borderColor

QColor ShadowedBorderRectangleMaterial::borderColor = Qt::black

Definition at line 27 of file shadowedborderrectanglematerial.h.

◆ borderWidth

float ShadowedBorderRectangleMaterial::borderWidth = 0.0

Definition at line 26 of file shadowedborderrectanglematerial.h.

◆ staticType

QSGMaterialType ShadowedBorderRectangleMaterial::staticType
static

Definition at line 29 of file shadowedborderrectanglematerial.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 Dec 6 2024 12:09:31 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.