Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
aurore::StyleValue Struct Reference

#include <aurore/core/view_style.hpp>

Public Types

enum class  Type : uint8_t { NONE , NUMBER , COLOR }
 

Public Member Functions

bool operator== (const StyleValue &other) const
 
bool operator!= (const StyleValue &other) const
 

Static Public Member Functions

static StyleValue of (float number)
 
static StyleValue of (NVGcolor color)
 
static StyleValue mix (const StyleValue &from, const StyleValue &to, float t)
 

Public Attributes

Type type = Type::NONE
 
float number = 0.0f
 
NVGcolor color = nvgRGBA(0, 0, 0, 0)
 

Member Enumeration Documentation

◆ Type

enum class aurore::StyleValue::Type : uint8_t
strong
Enumerator
NONE 
NUMBER 
COLOR 

Member Function Documentation

◆ mix()

static StyleValue aurore::StyleValue::mix ( const StyleValue &  from,
const StyleValue &  to,
float  t 
)
static

◆ of() [1/2]

static StyleValue aurore::StyleValue::of ( float  number)
inlinestatic

◆ of() [2/2]

static StyleValue aurore::StyleValue::of ( NVGcolor  color)
inlinestatic

◆ operator!=()

bool aurore::StyleValue::operator!= ( const StyleValue &  other) const
inline

◆ operator==()

bool aurore::StyleValue::operator== ( const StyleValue &  other) const

Member Data Documentation

◆ color

NVGcolor aurore::StyleValue::color = nvgRGBA(0, 0, 0, 0)

◆ number

float aurore::StyleValue::number = 0.0f

◆ type

Type aurore::StyleValue::type = Type::NONE

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