Polyphase Game Engine
Loading...
Searching...
No Matches
CSSValue Struct Reference

#include <UITypes.h>

Public Member Functions

bool IsValid () const
 

Static Public Member Functions

static CSSValue MakeNumber (float val)
 
static CSSValue MakePercent (float val)
 
static CSSValue MakeColor (glm::vec4 col)
 
static CSSValue MakeString (const std::string &str)
 
static CSSValue MakeEnum (const std::string &str)
 

Public Attributes

CSSValueType mType = CSSValueType::None
 
float mNumber = 0.0f
 
glm::vec4 mColor = { 0.0f, 0.0f, 0.0f, 1.0f }
 
std::string mString
 

Member Function Documentation

◆ IsValid()

bool CSSValue::IsValid ( ) const
inline

◆ MakeColor()

CSSValue CSSValue::MakeColor ( glm::vec4  col)
static

◆ MakeEnum()

CSSValue CSSValue::MakeEnum ( const std::string &  str)
static

◆ MakeNumber()

CSSValue CSSValue::MakeNumber ( float  val)
static

◆ MakePercent()

CSSValue CSSValue::MakePercent ( float  val)
static

◆ MakeString()

CSSValue CSSValue::MakeString ( const std::string &  str)
static

Member Data Documentation

◆ mColor

glm::vec4 CSSValue::mColor = { 0.0f, 0.0f, 0.0f, 1.0f }

◆ mNumber

float CSSValue::mNumber = 0.0f

◆ mString

std::string CSSValue::mString

◆ mType

CSSValueType CSSValue::mType = CSSValueType::None

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