ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

GUI::ThemeEval Class Reference

#include <ThemeEval.h>

Collaboration diagram for GUI::ThemeEval:

List of all members.

Public Member Functions

 ThemeEval ()
 ~ThemeEval ()
void buildBuiltinVars ()
int getVar (const Common::String &s)
int getVar (const Common::String &s, int def)
void setVar (const Common::String &name, int val)
bool hasVar (const Common::String &name)
ThemeEvaladdDialog (const Common::String &name, const Common::String &overlays, int16 maxWidth=-1, int16 maxHeight=-1, int inset=0)
ThemeEvaladdLayout (ThemeLayout::LayoutType type, int spacing=-1, ThemeLayout::ItemAlign itemAlign=ThemeLayout::kItemAlignStart)
ThemeEvaladdWidget (const Common::String &name, const Common::String &type, int w=-1, int h=-1, Graphics::TextAlign align=Graphics::kTextAlignStart, bool useRTL=false)
ThemeEvaladdImportedLayout (const Common::String &name)
ThemeEvaladdSpace (int size=-1)
ThemeEvaladdPadding (int16 l, int16 r, int16 t, int16 b)
ThemeEvalcloseLayout ()
ThemeEvalcloseDialog ()
bool hasDialog (const Common::String &name)
void reflowDialogLayout (const Common::String &name, Widget *widgetChain)
bool getWidgetData (const Common::String &widget, int16 &x, int16 &y, int16 &w, int16 &h)
bool getWidgetData (const Common::String &widget, int16 &x, int16 &y, int16 &w, int16 &h, bool &useRTL)
Graphics::TextAlign getWidgetTextHAlign (const Common::String &widget)
void reset ()

Private Types

typedef Common::HashMap
< Common::String, int > 
VariablesMap
typedef Common::HashMap
< Common::String, ThemeLayout * > 
LayoutsMap

Private Attributes

VariablesMap _vars
VariablesMap _builtin
LayoutsMap _layouts
Common::Stack< ThemeLayout * > _curLayout
Common::String _curDialog

Detailed Description

Definition at line 38 of file ThemeEval.h.


Member Typedef Documentation

Definition at line 41 of file ThemeEval.h.

Definition at line 40 of file ThemeEval.h.


Constructor & Destructor Documentation

GUI::ThemeEval::ThemeEval (  )  [inline]

Definition at line 44 of file ThemeEval.h.

GUI::ThemeEval::~ThemeEval (  ) 

Definition at line 32 of file ThemeEval.cpp.


Member Function Documentation

ThemeEval & GUI::ThemeEval::addDialog ( const Common::String name,
const Common::String overlays,
int16  maxWidth = -1,
int16  maxHeight = -1,
int  inset = 0 
)

Definition at line 119 of file ThemeEval.cpp.

ThemeEval & GUI::ThemeEval::addImportedLayout ( const Common::String name  ) 

Definition at line 191 of file ThemeEval.cpp.

ThemeEval & GUI::ThemeEval::addLayout ( ThemeLayout::LayoutType  type,
int  spacing = -1,
ThemeLayout::ItemAlign  itemAlign = ThemeLayout::kItemAlignStart 
)

Definition at line 142 of file ThemeEval.cpp.

ThemeEval& GUI::ThemeEval::addPadding ( int16  l,
int16  r,
int16  t,
int16  b 
) [inline]

Definition at line 83 of file ThemeEval.h.

ThemeEval & GUI::ThemeEval::addSpace ( int  size = -1  ) 

Definition at line 165 of file ThemeEval.cpp.

ThemeEval & GUI::ThemeEval::addWidget ( const Common::String name,
const Common::String type,
int  w = -1,
int  h = -1,
Graphics::TextAlign  align = Graphics::kTextAlignStart,
bool  useRTL = false 
)

Definition at line 89 of file ThemeEval.cpp.

void GUI::ThemeEval::buildBuiltinVars (  ) 

Definition at line 36 of file ThemeEval.cpp.

ThemeEval& GUI::ThemeEval::closeDialog (  )  [inline]

Definition at line 86 of file ThemeEval.h.

ThemeEval& GUI::ThemeEval::closeLayout (  )  [inline]

Definition at line 85 of file ThemeEval.h.

int GUI::ThemeEval::getVar ( const Common::String s  )  [inline]

Definition at line 52 of file ThemeEval.h.

int GUI::ThemeEval::getVar ( const Common::String s,
int  def 
) [inline]

Definition at line 63 of file ThemeEval.h.

bool GUI::ThemeEval::getWidgetData ( const Common::String widget,
int16 x,
int16 y,
int16 w,
int16 h 
)

Definition at line 53 of file ThemeEval.cpp.

bool GUI::ThemeEval::getWidgetData ( const Common::String widget,
int16 x,
int16 y,
int16 w,
int16 h,
bool &  useRTL 
)

Definition at line 59 of file ThemeEval.cpp.

Graphics::TextAlign GUI::ThemeEval::getWidgetTextHAlign ( const Common::String widget  ) 

Definition at line 74 of file ThemeEval.cpp.

bool GUI::ThemeEval::hasDialog ( const Common::String name  ) 

Definition at line 172 of file ThemeEval.cpp.

bool GUI::ThemeEval::hasVar ( const Common::String name  )  [inline]

Definition at line 75 of file ThemeEval.h.

void GUI::ThemeEval::reflowDialogLayout ( const Common::String name,
Widget widgetChain 
)

Definition at line 182 of file ThemeEval.cpp.

void GUI::ThemeEval::reset (  ) 

Definition at line 42 of file ThemeEval.cpp.

void GUI::ThemeEval::setVar ( const Common::String name,
int  val 
) [inline]

Definition at line 73 of file ThemeEval.h.


Member Data Documentation

Definition at line 106 of file ThemeEval.h.

Definition at line 110 of file ThemeEval.h.

Definition at line 109 of file ThemeEval.h.

Definition at line 108 of file ThemeEval.h.

Definition at line 105 of file ThemeEval.h.


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


Generated on Sat Jun 27 2020 05:02:55 for ResidualVM by doxygen 1.7.1
curved edge   curved edge