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)
void addDialog (const Common::String &name, const Common::String &overlays, bool enabled=true, int inset=0)
void addLayout (ThemeLayout::LayoutType type, int spacing, bool center=false)
void addWidget (const Common::String &name, int w, int h, const Common::String &type, bool enabled=true, Graphics::TextAlign align=Graphics::kTextAlignLeft)
bool addImportedLayout (const Common::String &name)
void addSpace (int size)
void addPadding (int16 l, int16 r, int16 t, int16 b)
void closeLayout ()
void closeDialog ()
bool getWidgetData (const Common::String &widget, int16 &x, int16 &y, uint16 &w, uint16 &h)
Graphics::TextAlign getWidgetTextHAlign (const Common::String &widget)
void reset ()

Private Types

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

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

void GUI::ThemeEval::addDialog ( const Common::String name,
const Common::String overlays,
bool  enabled = true,
int  inset = 0 

Definition at line 111 of file ThemeEval.cpp.

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

Definition at line 171 of file ThemeEval.cpp.

void GUI::ThemeEval::addLayout ( ThemeLayout::LayoutType  type,
int  spacing,
bool  center = false 

Definition at line 145 of file ThemeEval.cpp.

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

Definition at line 83 of file ThemeEval.h.

void GUI::ThemeEval::addSpace ( int  size  ) 

Definition at line 166 of file ThemeEval.cpp.

void GUI::ThemeEval::addWidget ( const Common::String name,
int  w,
int  h,
const Common::String type,
bool  enabled = true,
Graphics::TextAlign  align = Graphics::kTextAlignLeft 

Definition at line 83 of file ThemeEval.cpp.

void GUI::ThemeEval::buildBuiltinVars (  ) 

Definition at line 36 of file ThemeEval.cpp.

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

Definition at line 86 of file ThemeEval.h.

void 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,
uint16 w,
uint16 h 

Definition at line 53 of file ThemeEval.cpp.

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

Definition at line 68 of file ThemeEval.cpp.

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

Definition at line 75 of file ThemeEval.h.

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 102 of file ThemeEval.h.

Definition at line 106 of file ThemeEval.h.

Definition at line 105 of file ThemeEval.h.

Definition at line 104 of file ThemeEval.h.

Definition at line 101 of file ThemeEval.h.

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

Generated on Sat Nov 9 2019 05:02:16 for ResidualVM by doxygen 1.7.1
curved edge   curved edge