Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorRendering::ZoneColor Struct Reference

Parsed zone color data for shader rendering. More...

#include <PhosphorRendering/ZoneShaderCommon.h>

Public Member Functions

 ZoneColor ()=default
 ZoneColor (float red, float green, float blue, float alpha=1.0f)
QVector4D toVector4D () const

Static Public Member Functions

static ZoneColor fromQColor (const QColor &color)

Public Attributes

float r = 0.0f
float g = 0.0f
float b = 0.0f
float a = 1.0f

Detailed Description

Parsed zone color data for shader rendering.

Constructor & Destructor Documentation

◆ ZoneColor() [1/2]

PhosphorRendering::ZoneColor::ZoneColor ( )
default

◆ ZoneColor() [2/2]

PhosphorRendering::ZoneColor::ZoneColor ( float red,
float green,
float blue,
float alpha = 1.0f )
inline

Member Function Documentation

◆ fromQColor()

ZoneColor PhosphorRendering::ZoneColor::fromQColor ( const QColor & color)
inlinestatic

◆ toVector4D()

QVector4D PhosphorRendering::ZoneColor::toVector4D ( ) const
inline

Member Data Documentation

◆ a

float PhosphorRendering::ZoneColor::a = 1.0f

◆ b

float PhosphorRendering::ZoneColor::b = 0.0f

◆ g

float PhosphorRendering::ZoneColor::g = 0.0f

◆ r

float PhosphorRendering::ZoneColor::r = 0.0f

The documentation for this struct was generated from the following file: