Polyphase Game Engine
Loading...
Searching...
No Matches
UITypes.h File Reference
#include "glm/glm.hpp"
#include <string>
#include <vector>
#include <utility>

Go to the source code of this file.

Classes

struct  CSSValue
 

Enumerations

enum class  CSSValueType : uint8_t {
  None , Number , Percent , Color ,
  String , Enum , Auto
}
 

Functions

const char * UIElementToWidgetType (const char *elementName)
 
const char * UIWidgetTypeToElement (const char *widgetType)
 
CSSValue ParseCSSColor (const char *str)
 
CSSValue ParseCSSLength (const char *str)
 
CSSValue ParseCSSGenericValue (const char *str)
 
void ParseInlineStyle (const char *styleStr, std::vector< std::pair< std::string, CSSValue > > &outProps)
 
void ApplyCSSProperty (Widget *widget, const char *elementType, const std::string &propName, const CSSValue &value)
 

Enumeration Type Documentation

◆ CSSValueType

enum class CSSValueType : uint8_t
strong
Enumerator
None 
Number 
Percent 
Color 
String 
Enum 
Auto 

Function Documentation

◆ ApplyCSSProperty()

void ApplyCSSProperty ( Widget widget,
const char *  elementType,
const std::string &  propName,
const CSSValue value 
)

◆ ParseCSSColor()

CSSValue ParseCSSColor ( const char *  str)

◆ ParseCSSGenericValue()

CSSValue ParseCSSGenericValue ( const char *  str)

◆ ParseCSSLength()

CSSValue ParseCSSLength ( const char *  str)

◆ ParseInlineStyle()

void ParseInlineStyle ( const char *  styleStr,
std::vector< std::pair< std::string, CSSValue > > &  outProps 
)

◆ UIElementToWidgetType()

const char * UIElementToWidgetType ( const char *  elementName)

◆ UIWidgetTypeToElement()

const char * UIWidgetTypeToElement ( const char *  widgetType)