|
Public Types |
typedef Slot2< bool, MenuItem *,
PG_Pointer > | MenuItemSlot |
enum | MI_FLAGS { MIF_NONE = 0,
MIF_DISABLED = 0x01,
MIF_SEPARATOR = 0x02,
MIF_SUBMENU = 0x04
} |
Public Member Functions |
| MenuItem (PG_PopupMenu *parent, char *caption, int id, MI_FLAGS flags) |
| MenuItem (PG_PopupMenu *parent, char *caption, PG_PopupMenu *submenu) |
| ~MenuItem () |
bool | measureItem (PG_Rect *rect, bool full=false) |
bool | isPointInside (int x, int y) |
void | moveTo (int x, int y) |
SDL_Surface * | getNormal () const |
SDL_Surface * | getDisabled () const |
SDL_Surface * | getSelected () const |
bool | paintNormal (SDL_Surface *canvas, PG_Color *tcol, PG_Color *scol=NULL) |
bool | paintDisabled (SDL_Surface *canvas, PG_Color *tcol, PG_Color *scol=NULL) |
bool | paintSelected (SDL_Surface *canvas, PG_Color *tcol, PG_Color *scol=NULL) |
void | disable () |
void | enable () |
bool | isDisabled () const |
bool | isEnabled () const |
void | select () |
void | unselect () |
bool | isSelected () const |
bool | isSeparator () const |
bool | isSubMenu () const |
bool | isMute () const |
int | Width () const |
int | Height () const |
int | getId () const |
PG_PopupMenu * | getSubMenu () const |
const string & | getCaption () const |
| operator PG_Point const & () const |
Public Attributes |
SignalSelectMenuItem | sigSelectMenuItem |
Protected Attributes |
unsigned | myFlags |
string | myCaption |
PG_PopupMenu * | myParent |
PG_PopupMenu * | mySubMenu |
int | myId |
SDL_Surface * | sNormal |
SDL_Surface * | sSelected |
SDL_Surface * | sDisabled |
bool | selected |