MyGUI::Align Struct Reference

#include <MyGUI_Align.h>

Public Types

enum  Enum {
  HCenter = MYGUI_FLAG_NONE, VCenter = MYGUI_FLAG_NONE, Center = HCenter | VCenter, Left = MYGUI_FLAG(1),
  Right = MYGUI_FLAG(2), HStretch = Left | Right, Top = MYGUI_FLAG(3), Bottom = MYGUI_FLAG(4),
  VStretch = Top | Bottom, Stretch = HStretch | VStretch, Default = Left | Top, HRelative = MYGUI_FLAG(5),
  VRelative = MYGUI_FLAG(6), Relative = HRelative | VRelative
}
typedef std::map< std::string,
int > 
MapAlign

Public Member Functions

 Align (Enum _value=Default)
bool isHCenter ()
bool isVCenter ()
bool isCenter ()
bool isLeft ()
bool isRight ()
bool isHStretch ()
bool isTop ()
bool isBottom ()
bool isVStretch ()
bool isStretch ()
bool isDefault ()
bool isHRelative ()
bool isVRelative ()
bool isRelative ()
Alignoperator|= (Align const &_other)
std::string print () const

Static Public Member Functions

static Align parse (const std::string &_value)

Friends

Align operator| (Enum const &a, Enum const &b)
Align operator| (Align const &a, Align const &b)
bool operator== (Align const &a, Align const &b)
bool operator!= (Align const &a, Align const &b)
std::ostream & operator<< (std::ostream &_stream, const Align &_value)
 std::ostream write operator
std::istream & operator>> (std::istream &_stream, Align &_value)

Detailed Description

Definition at line 32 of file MyGUI_Align.h.


Member Typedef Documentation

typedef std::map<std::string, int> MyGUI::Align::MapAlign

Definition at line 84 of file MyGUI_Align.h.


Member Enumeration Documentation

Enumerator:
HCenter 

center horizontally

VCenter 

center vertically

Center 

center in the dead center

Left 

value from the left (and center vertically)

Right 

value from the right (and center vertically)

HStretch 

stretch horizontally proportionate to parent window (and center vertically)

Top 

value from the top (and center horizontally)

Bottom 

value from the bottom (and center horizontally)

VStretch 

stretch vertically proportionate to parent window (and center horizontally)

Stretch 

stretch proportionate to parent window

Default 

default value (value from left and top)

HRelative 
VRelative 
Relative 

Definition at line 34 of file MyGUI_Align.h.


Constructor & Destructor Documentation

MyGUI::Align::Align ( Enum  _value = Default  )  [inline]

Definition at line 56 of file MyGUI_Align.h.


Member Function Documentation

bool MyGUI::Align::isBottom (  )  [inline]

Definition at line 67 of file MyGUI_Align.h.

bool MyGUI::Align::isCenter (  )  [inline]

Definition at line 60 of file MyGUI_Align.h.

bool MyGUI::Align::isDefault (  )  [inline]

Definition at line 71 of file MyGUI_Align.h.

bool MyGUI::Align::isHCenter (  )  [inline]

Definition at line 58 of file MyGUI_Align.h.

bool MyGUI::Align::isHRelative (  )  [inline]

Definition at line 73 of file MyGUI_Align.h.

bool MyGUI::Align::isHStretch (  )  [inline]

Definition at line 64 of file MyGUI_Align.h.

bool MyGUI::Align::isLeft (  )  [inline]

Definition at line 62 of file MyGUI_Align.h.

bool MyGUI::Align::isRelative (  )  [inline]

Definition at line 75 of file MyGUI_Align.h.

bool MyGUI::Align::isRight (  )  [inline]

Definition at line 63 of file MyGUI_Align.h.

bool MyGUI::Align::isStretch (  )  [inline]

Definition at line 70 of file MyGUI_Align.h.

bool MyGUI::Align::isTop (  )  [inline]

Definition at line 66 of file MyGUI_Align.h.

bool MyGUI::Align::isVCenter (  )  [inline]

Definition at line 59 of file MyGUI_Align.h.

bool MyGUI::Align::isVRelative (  )  [inline]

Definition at line 74 of file MyGUI_Align.h.

bool MyGUI::Align::isVStretch (  )  [inline]

Definition at line 68 of file MyGUI_Align.h.

Align& MyGUI::Align::operator|= ( Align const &  _other  )  [inline]

Definition at line 77 of file MyGUI_Align.h.

static Align MyGUI::Align::parse ( const std::string &  _value  )  [inline, static]

Definition at line 86 of file MyGUI_Align.h.

std::string MyGUI::Align::print (  )  const [inline]

Definition at line 106 of file MyGUI_Align.h.


Friends And Related Function Documentation

bool operator!= ( Align const &  a,
Align const &  b 
) [friend]

Definition at line 82 of file MyGUI_Align.h.

std::ostream & operator<< ( std::ostream &  os,
const Align _value 
) [friend]

std::ostream write operator

Definition at line 131 of file MyGUI_Align.h.

bool operator== ( Align const &  a,
Align const &  b 
) [friend]

Definition at line 81 of file MyGUI_Align.h.

std::istream& operator>> ( std::istream &  _stream,
Align _value 
) [friend]

Definition at line 137 of file MyGUI_Align.h.

Align operator| ( Align const &  a,
Align const &  b 
) [friend]

Definition at line 79 of file MyGUI_Align.h.

Align operator| ( Enum const &  a,
Enum const &  b 
) [friend]

Definition at line 78 of file MyGUI_Align.h.


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

Generated on 3 Dec 2009 for MyGUI by  doxygen 1.6.1