#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 () |
Align & | operator|= (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) |
Definition at line 32 of file MyGUI_Align.h.
typedef std::map<std::string, int> MyGUI::Align::MapAlign |
Definition at line 84 of file MyGUI_Align.h.
enum MyGUI::Align::Enum |
Definition at line 34 of file MyGUI_Align.h.
MyGUI::Align::Align | ( | Enum | _value = Default |
) | [inline] |
Definition at line 56 of file MyGUI_Align.h.
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.
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.
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.
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.
Definition at line 79 of file MyGUI_Align.h.
Definition at line 78 of file MyGUI_Align.h.