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

#include <ThemeLayout.h>

Inheritance diagram for GUI::ThemeLayout:
Collaboration diagram for GUI::ThemeLayout:

List of all members.

Public Types

enum  LayoutType {
  kLayoutMain, kLayoutVertical, kLayoutHorizontal, kLayoutWidget,
  kLayoutTabWidget
}

Public Member Functions

 ThemeLayout (ThemeLayout *p)
virtual ~ThemeLayout ()
virtual void reflowLayout ()=0
virtual void resetLayout ()
void addChild (ThemeLayout *child)
void setPadding (int8 left, int8 right, int8 top, int8 bottom)
virtual bool getWidgetData (const Common::String &name, int16 &x, int16 &y, uint16 &w, uint16 &h)
virtual Graphics::TextAlign getWidgetTextHAlign (const Common::String &name)
void importLayout (ThemeLayout *layout)
Graphics::TextAlign getTextHAlign ()

Protected Member Functions

int16 getWidth ()
int16 getHeight ()
void offsetX (int newX)
void offsetY (int newY)
void setWidth (int16 width)
void setHeight (int16 height)
void setTextHAlign (Graphics::TextAlign align)
virtual LayoutType getLayoutType ()=0
virtual ThemeLayoutmakeClone (ThemeLayout *newParent)=0

Protected Attributes

ThemeLayout_parent
int16 _x
int16 _y
int16 _w
int16 _h
Common::Rect _padding
Common::Array< ThemeLayout * > _children
bool _centered
int16 _defaultW
int16 _defaultH
Graphics::TextAlign _textHAlign

Friends

class ThemeLayoutMain
class ThemeLayoutStacked
class ThemeLayoutSpacing
class ThemeLayoutWidget

Detailed Description

Definition at line 38 of file ThemeLayout.h.


Member Enumeration Documentation

Enumerator:
kLayoutMain 
kLayoutVertical 
kLayoutHorizontal 
kLayoutWidget 
kLayoutTabWidget 

Definition at line 44 of file ThemeLayout.h.


Constructor & Destructor Documentation

GUI::ThemeLayout::ThemeLayout ( ThemeLayout p  )  [inline]

Definition at line 52 of file ThemeLayout.h.

virtual GUI::ThemeLayout::~ThemeLayout (  )  [inline, virtual]

Definition at line 57 of file ThemeLayout.h.


Member Function Documentation

void GUI::ThemeLayout::addChild ( ThemeLayout child  )  [inline]

Definition at line 66 of file ThemeLayout.h.

int16 GUI::ThemeLayout::getHeight (  )  [inline, protected]

Definition at line 77 of file ThemeLayout.h.

virtual LayoutType GUI::ThemeLayout::getLayoutType (  )  [protected, pure virtual]
Graphics::TextAlign GUI::ThemeLayout::getTextHAlign (  )  [inline]

Definition at line 106 of file ThemeLayout.h.

bool GUI::ThemeLayout::getWidgetData ( const Common::String name,
int16 x,
int16 y,
uint16 w,
uint16 h 
) [virtual]

Reimplemented in GUI::ThemeLayoutWidget, GUI::ThemeLayoutTabWidget, and GUI::ThemeLayoutSpacing.

Definition at line 52 of file ThemeLayout.cpp.

Graphics::TextAlign GUI::ThemeLayout::getWidgetTextHAlign ( const Common::String name  )  [virtual]

Reimplemented in GUI::ThemeLayoutWidget.

Definition at line 68 of file ThemeLayout.cpp.

int16 GUI::ThemeLayout::getWidth (  )  [inline, protected]

Definition at line 76 of file ThemeLayout.h.

void GUI::ThemeLayout::importLayout ( ThemeLayout layout  ) 

Definition at line 36 of file ThemeLayout.cpp.

virtual ThemeLayout* GUI::ThemeLayout::makeClone ( ThemeLayout newParent  )  [protected, pure virtual]
void GUI::ThemeLayout::offsetX ( int  newX  )  [inline, protected]

Definition at line 79 of file ThemeLayout.h.

void GUI::ThemeLayout::offsetY ( int  newY  )  [inline, protected]

Definition at line 85 of file ThemeLayout.h.

virtual void GUI::ThemeLayout::reflowLayout (  )  [pure virtual]
virtual void GUI::ThemeLayout::resetLayout (  )  [inline, virtual]

Reimplemented in GUI::ThemeLayoutMain.

Definition at line 64 of file ThemeLayout.h.

void GUI::ThemeLayout::setHeight ( int16  height  )  [inline, protected]

Definition at line 92 of file ThemeLayout.h.

void GUI::ThemeLayout::setPadding ( int8  left,
int8  right,
int8  top,
int8  bottom 
) [inline]

Definition at line 68 of file ThemeLayout.h.

void GUI::ThemeLayout::setTextHAlign ( Graphics::TextAlign  align  )  [inline, protected]

Definition at line 93 of file ThemeLayout.h.

void GUI::ThemeLayout::setWidth ( int16  width  )  [inline, protected]

Definition at line 91 of file ThemeLayout.h.


Friends And Related Function Documentation

friend class ThemeLayoutMain [friend]

Definition at line 39 of file ThemeLayout.h.

friend class ThemeLayoutSpacing [friend]

Definition at line 41 of file ThemeLayout.h.

friend class ThemeLayoutStacked [friend]

Definition at line 40 of file ThemeLayout.h.

friend class ThemeLayoutWidget [friend]

Definition at line 42 of file ThemeLayout.h.


Member Data Documentation

bool GUI::ThemeLayout::_centered [protected]

Definition at line 119 of file ThemeLayout.h.

Definition at line 118 of file ThemeLayout.h.

Definition at line 120 of file ThemeLayout.h.

Definition at line 120 of file ThemeLayout.h.

Definition at line 116 of file ThemeLayout.h.

Definition at line 117 of file ThemeLayout.h.

Definition at line 115 of file ThemeLayout.h.

Definition at line 121 of file ThemeLayout.h.

Definition at line 116 of file ThemeLayout.h.

Definition at line 116 of file ThemeLayout.h.

Definition at line 116 of file ThemeLayout.h.


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


Generated on Sat Mar 23 2019 05:08:12 for ResidualVM by doxygen 1.7.1
curved edge   curved edge