MyGUI
3.2.1
|
#include <MyGUI_Align.h>
Public Types | |
enum | Enum { HCenter = 0, VCenter = 0, Center = HCenter | VCenter, Left = (1<<( 1 )), Right = (1<<( 2 )), HStretch = Left | Right, Top = (1<<( 3 )), Bottom = (1<<( 4 )), VStretch = Top | Bottom, Stretch = HStretch | VStretch, Default = Left | Top } |
typedef std::map< std::string, int > | MapAlign |
Public Member Functions | |
Align (Enum _value=Default) | |
bool | isHCenter () const |
bool | isVCenter () const |
bool | isCenter () const |
bool | isLeft () const |
bool | isRight () const |
bool | isHStretch () const |
bool | isTop () const |
bool | isBottom () const |
bool | isVStretch () const |
bool | isStretch () const |
bool | isDefault () const |
Align & | operator|= (Align const &_other) |
std::string | print () const |
int | getValue () 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::istream & | operator>> (std::istream &_stream, Align &_value) |
Definition at line 19 of file MyGUI_Align.h.
typedef std::map<std::string, int> MyGUI::Align::MapAlign |
Definition at line 125 of file MyGUI_Align.h.
enum MyGUI::Align::Enum |
Definition at line 21 of file MyGUI_Align.h.
MyGUI::Align::Align | ( | Enum | _value = Default | ) | [inline] |
Definition at line 39 of file MyGUI_Align.h.
int MyGUI::Align::getValue | ( | ) | const [inline] |
Definition at line 203 of file MyGUI_Align.h.
bool MyGUI::Align::isBottom | ( | ) | const [inline] |
Definition at line 79 of file MyGUI_Align.h.
bool MyGUI::Align::isCenter | ( | ) | const [inline] |
Definition at line 54 of file MyGUI_Align.h.
bool MyGUI::Align::isDefault | ( | ) | const [inline] |
Definition at line 94 of file MyGUI_Align.h.
bool MyGUI::Align::isHCenter | ( | ) | const [inline] |
Definition at line 44 of file MyGUI_Align.h.
bool MyGUI::Align::isHStretch | ( | ) | const [inline] |
Definition at line 69 of file MyGUI_Align.h.
bool MyGUI::Align::isLeft | ( | ) | const [inline] |
Definition at line 59 of file MyGUI_Align.h.
bool MyGUI::Align::isRight | ( | ) | const [inline] |
Definition at line 64 of file MyGUI_Align.h.
bool MyGUI::Align::isStretch | ( | ) | const [inline] |
Definition at line 89 of file MyGUI_Align.h.
bool MyGUI::Align::isTop | ( | ) | const [inline] |
Definition at line 74 of file MyGUI_Align.h.
bool MyGUI::Align::isVCenter | ( | ) | const [inline] |
Definition at line 49 of file MyGUI_Align.h.
bool MyGUI::Align::isVStretch | ( | ) | const [inline] |
Definition at line 84 of file MyGUI_Align.h.
Definition at line 99 of file MyGUI_Align.h.
static Align MyGUI::Align::parse | ( | const std::string & | _value | ) | [inline, static] |
Definition at line 127 of file MyGUI_Align.h.
std::string MyGUI::Align::print | ( | ) | const [inline] |
Definition at line 143 of file MyGUI_Align.h.
Definition at line 120 of file MyGUI_Align.h.
std::ostream& operator<< | ( | std::ostream & | _stream, |
const Align & | _value | ||
) | [friend] |
Definition at line 174 of file MyGUI_Align.h.
Definition at line 115 of file MyGUI_Align.h.
std::istream& operator>> | ( | std::istream & | _stream, |
Align & | _value | ||
) | [friend] |
Definition at line 180 of file MyGUI_Align.h.
Definition at line 105 of file MyGUI_Align.h.
Definition at line 110 of file MyGUI_Align.h.