Polyphase Game Engine
Loading...
Searching...
No Matches
UITypes.cpp File Reference
#include "UI/UITypes.h"
#include "Nodes/Widgets/Widget.h"
#include "Nodes/Widgets/Canvas.h"
#include "Nodes/Widgets/Quad.h"
#include "Nodes/Widgets/Text.h"
#include "Nodes/Widgets/Button.h"
#include "Nodes/Widgets/ArrayWidget.h"
#include "Nodes/Widgets/Poly.h"
#include "Nodes/Widgets/PolyRect.h"
#include "AssetManager.h"
#include "Assets/Texture.h"
#include "Assets/Font.h"
#include "Log.h"
#include <cstring>
#include <cstdlib>
#include <cctype>
#include <cmath>

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)
 

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)