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, kLayoutSpace
}
enum  ItemAlign { kItemAlignStart, kItemAlignCenter, kItemAlignEnd, kItemAlignStretch }
 

Cross-direction alignment of layout children.

More...

Public Member Functions

 ThemeLayout (ThemeLayout *p)
virtual ~ThemeLayout ()
virtual void reflowLayout (Widget *widgetChain)=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, int16 &w, int16 &h, bool &useRTL)
bool getUseRTL ()
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 bool isBound (Widget *widgetChain) const
 Checks if the layout element is attached to a GUI widget.
virtual LayoutType getLayoutType () const =0
virtual ThemeLayoutmakeClone (ThemeLayout *newParent)=0

Protected Attributes

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

Friends

class ThemeLayoutMain
class ThemeLayoutStacked
class ThemeLayoutSpacing
class ThemeLayoutWidget

Detailed Description

Definition at line 40 of file ThemeLayout.h.


Member Enumeration Documentation

Cross-direction alignment of layout children.

Enumerator:
kItemAlignStart 

Items are aligned to the left for vertical layouts or to the top for horizontal layouts.

kItemAlignCenter 

Items are centered in the container.

kItemAlignEnd 

Items are aligned to the right for vertical layouts or to the bottom for horizontal layouts.

kItemAlignStretch 

Items are resized to match the size of the layout in the cross-direction.

Definition at line 56 of file ThemeLayout.h.

Enumerator:
kLayoutMain 
kLayoutVertical 
kLayoutHorizontal 
kLayoutWidget 
kLayoutTabWidget 
kLayoutSpace 

Definition at line 46 of file ThemeLayout.h.


Constructor & Destructor Documentation

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

Definition at line 63 of file ThemeLayout.h.

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

Definition at line 68 of file ThemeLayout.h.


Member Function Documentation

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

Definition at line 76 of file ThemeLayout.h.

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

Definition at line 87 of file ThemeLayout.h.

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

Definition at line 124 of file ThemeLayout.h.

bool GUI::ThemeLayout::getUseRTL (  )  [inline]

Definition at line 118 of file ThemeLayout.h.

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

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

Definition at line 74 of file ThemeLayout.cpp.

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

Reimplemented in GUI::ThemeLayoutWidget.

Definition at line 92 of file ThemeLayout.cpp.

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

Definition at line 86 of file ThemeLayout.h.

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

Definition at line 39 of file ThemeLayout.cpp.

virtual bool GUI::ThemeLayout::isBound ( Widget widgetChain  )  const [inline, protected, virtual]

Checks if the layout element is attached to a GUI widget.

Layout elements that are not bound do not take space.

Reimplemented in GUI::ThemeLayoutWidget.

Definition at line 110 of file ThemeLayout.h.

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

Definition at line 89 of file ThemeLayout.h.

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

Definition at line 95 of file ThemeLayout.h.

virtual void GUI::ThemeLayout::reflowLayout ( Widget widgetChain  )  [pure virtual]
void GUI::ThemeLayout::resetLayout (  )  [virtual]

Reimplemented in GUI::ThemeLayoutMain.

Definition at line 64 of file ThemeLayout.cpp.

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

Definition at line 102 of file ThemeLayout.h.

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

Definition at line 78 of file ThemeLayout.h.

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

Definition at line 103 of file ThemeLayout.h.

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

Definition at line 101 of file ThemeLayout.h.


Friends And Related Function Documentation

friend class ThemeLayoutMain [friend]

Definition at line 41 of file ThemeLayout.h.

friend class ThemeLayoutSpacing [friend]

Definition at line 43 of file ThemeLayout.h.

friend class ThemeLayoutStacked [friend]

Definition at line 42 of file ThemeLayout.h.

friend class ThemeLayoutWidget [friend]

Definition at line 44 of file ThemeLayout.h.


Member Data Documentation

Definition at line 137 of file ThemeLayout.h.

Definition at line 138 of file ThemeLayout.h.

Definition at line 138 of file ThemeLayout.h.

Definition at line 134 of file ThemeLayout.h.

Definition at line 136 of file ThemeLayout.h.

Definition at line 133 of file ThemeLayout.h.

Definition at line 139 of file ThemeLayout.h.

bool GUI::ThemeLayout::_useRTL [protected]

Definition at line 135 of file ThemeLayout.h.

Definition at line 134 of file ThemeLayout.h.

Definition at line 134 of file ThemeLayout.h.

Definition at line 134 of file ThemeLayout.h.


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


Generated on Sat Aug 1 2020 05:04:02 for ResidualVM by doxygen 1.7.1
curved edge   curved edge