Public Types | Public Member Functions | Static Public Member Functions | Friends

MyGUI::MessageBoxStyle Struct Reference

#include <MyGUI_MessageStyle.h>

Public Types

enum  Enum {
  None = 0, Ok = (1<<( 0 )), Yes = (1<<( 1 )), No = (1<<( 2 )),
  Abort = (1<<( 3 )), Retry = (1<<( 4 )), Ignore = (1<<( 5 )), Cancel = (1<<( 6 )),
  Try = (1<<( 7 )), Continue = (1<<( 8 )), _IndexUserButton1 = 9, Button1 = (1<<( _IndexUserButton1 )),
  Button2 = (1<<( _IndexUserButton1 + 1 )), Button3 = (1<<( _IndexUserButton1 + 2 )), Button4 = (1<<( _IndexUserButton1 + 3 )), _CountUserButtons = 4,
  _IndexIcon1 = _IndexUserButton1 + _CountUserButtons, IconDefault = (1<<( _IndexIcon1 )), IconInfo = (1<<( _IndexIcon1 )), IconQuest = (1<<( _IndexIcon1 + 1 )),
  IconError = (1<<( _IndexIcon1 + 2 )), IconWarning = (1<<( _IndexIcon1 + 3 )), Icon1 = (1<<( _IndexIcon1 )), Icon2 = (1<<( _IndexIcon1 + 1 )),
  Icon3 = (1<<( _IndexIcon1 + 2 )), Icon4 = (1<<( _IndexIcon1 + 3 )), Icon5 = (1<<( _IndexIcon1 + 4 )), Icon6 = (1<<( _IndexIcon1 + 5 )),
  Icon7 = (1<<( _IndexIcon1 + 6 )), Icon8 = (1<<( _IndexIcon1 + 7 ))
}
typedef std::map< std::string,
int > 
MapAlign

Public Member Functions

 MessageBoxStyle (Enum _value=None)
MessageBoxStyleoperator|= (MessageBoxStyle const &_other)
MessageBoxStyle operator| (Enum const &a)
size_t getIconIndex ()
size_t getButtonIndex ()
std::vector< MessageBoxStylegetButtons ()

Static Public Member Functions

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

Friends

MessageBoxStyle operator| (Enum const &a, Enum const &b)
bool operator== (MessageBoxStyle const &a, MessageBoxStyle const &b)
bool operator!= (MessageBoxStyle const &a, MessageBoxStyle const &b)

Detailed Description

Definition at line 33 of file MyGUI_MessageStyle.h.


Member Typedef Documentation

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

Definition at line 140 of file MyGUI_MessageStyle.h.


Member Enumeration Documentation

Enumerator:
None 
Ok 
Yes 
No 
Abort 
Retry 
Ignore 
Cancel 
Try 
Continue 
_IndexUserButton1 
Button1 
Button2 
Button3 
Button4 
_CountUserButtons 
_IndexIcon1 
IconDefault 
IconInfo 
IconQuest 
IconError 
IconWarning 
Icon1 
Icon2 
Icon3 
Icon4 
Icon5 
Icon6 
Icon7 
Icon8 

Definition at line 36 of file MyGUI_MessageStyle.h.


Constructor & Destructor Documentation

MyGUI::MessageBoxStyle::MessageBoxStyle ( Enum  _value = None  )  [inline]

Definition at line 76 of file MyGUI_MessageStyle.h.


Member Function Documentation

size_t MyGUI::MessageBoxStyle::getButtonIndex (  )  [inline]

Definition at line 103 of file MyGUI_MessageStyle.h.

std::vector<MessageBoxStyle> MyGUI::MessageBoxStyle::getButtons (  )  [inline]

Definition at line 120 of file MyGUI_MessageStyle.h.

size_t MyGUI::MessageBoxStyle::getIconIndex (  )  [inline]

Definition at line 86 of file MyGUI_MessageStyle.h.

MessageBoxStyle MyGUI::MessageBoxStyle::operator| ( Enum const &  a  )  [inline]

Definition at line 80 of file MyGUI_MessageStyle.h.

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

Definition at line 78 of file MyGUI_MessageStyle.h.

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

Definition at line 142 of file MyGUI_MessageStyle.h.


Friends And Related Function Documentation

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

Definition at line 83 of file MyGUI_MessageStyle.h.

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

Definition at line 82 of file MyGUI_MessageStyle.h.

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

Definition at line 79 of file MyGUI_MessageStyle.h.


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