#include <pgpopupmenu.h>
Inheritance diagram for PG_PopupMenu::MenuItem:

Public Types | |
| typedef SigC::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, const std::string &caption, int id, MI_FLAGS flags) | |
| MenuItem (PG_PopupMenu *parent, const std::string &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 |
| Return the width of the rectangle. | |
| int | Height () const |
| Return the height of the rectangle. | |
| int | getId () const |
| PG_PopupMenu * | getSubMenu () const |
| const PG_String & | getCaption () const |
| operator PG_Point const & () const | |
Public Attributes | |
| SignalSelectMenuItem | sigSelectMenuItem |
Protected Attributes | |
| unsigned | myFlags |
| PG_String | myCaption |
| PG_String | myRightCaption |
| PG_PopupMenu * | myParent |
| PG_PopupMenu * | mySubMenu |
| int | myId |
| SDL_Surface * | sNormal |
| SDL_Surface * | sSelected |
| SDL_Surface * | sDisabled |
| bool | selected |
Classes | |
| class | SignalSelectMenuItem |
| Signal type declaration. More... | |
icon drawing
Definition at line 87 of file pgpopupmenu.h.
|
|
Definition at line 105 of file pgpopupmenu.h. |
|
|
Definition at line 89 of file pgpopupmenu.h. |
|
||||||||||||||||||||
|
Definition at line 42 of file pgpopupmenu.cpp. References MIF_SUBMENU, and myFlags. |
|
||||||||||||||||
|
Definition at line 56 of file pgpopupmenu.cpp. |
|
|
Definition at line 69 of file pgpopupmenu.cpp. |
|
|
Definition at line 373 of file pgpopupmenu.h. References MIF_DISABLED, and myFlags. |
|
|
Definition at line 377 of file pgpopupmenu.h. References MIF_DISABLED, and myFlags. |
|
|
Definition at line 430 of file pgpopupmenu.h. References myCaption. |
|
|
Definition at line 365 of file pgpopupmenu.h. References sDisabled. |
|
|
Definition at line 422 of file pgpopupmenu.h. References myId. Referenced by Menu::execAction(), and PG_PopupMenu::item_with_id::operator()(). |
|
|
Definition at line 361 of file pgpopupmenu.h. References sNormal. |
|
|
Definition at line 369 of file pgpopupmenu.h. References sSelected. |
|
|
Definition at line 426 of file pgpopupmenu.h. References mySubMenu. |
|
|
Return the height of the rectangle.
Reimplemented from PG_Rect. Definition at line 418 of file pgpopupmenu.h. |
|
|
Definition at line 381 of file pgpopupmenu.h. References MIF_DISABLED, and myFlags. Referenced by PG_PopupMenu::eventBlit(), and PG_PopupMenu::eventKeyDown(). |
|
|
Definition at line 385 of file pgpopupmenu.h. References myFlags. |
|
|
Definition at line 409 of file pgpopupmenu.h. References MIF_DISABLED, MIF_SEPARATOR, and myFlags. Referenced by PG_PopupMenu::handleClick(). |
|
||||||||||||
|
Definition at line 156 of file pgpopupmenu.cpp. References PG_Rect::my_height, PG_Rect::my_width, PG_Rect::my_xpos, and PG_Rect::my_ypos. |
|
|
Definition at line 397 of file pgpopupmenu.h. References selected. Referenced by PG_PopupMenu::eventBlit(). |
|
|
Definition at line 401 of file pgpopupmenu.h. References MIF_SEPARATOR, and myFlags. Referenced by PG_PopupMenu::eventBlit(), PG_PopupMenu::eventMouseButtonUp(), and measureItem(). |
|
|
Definition at line 405 of file pgpopupmenu.h. References MIF_SUBMENU, and myFlags. Referenced by PG_PopupMenu::handleClick(). |
|
||||||||||||
|
Definition at line 91 of file pgpopupmenu.cpp. References PG_Widget::GetFont(), PG_Widget::GetTextSize(), isSeparator(), PG_PopupMenu::maxItemWidth(), PG_PopupMenu::minTabWidth, PG_Rect::my_height, PG_Rect::my_width, myCaption, myParent, and myRightCaption. Referenced by PG_PopupMenu::eventBlit(), and PG_PopupMenu::recalcRect(). |
|
||||||||||||
|
Definition at line 356 of file pgpopupmenu.h. References PG_Point::x, and PG_Point::y. |
|
|
Definition at line 434 of file pgpopupmenu.h. |
|
||||||||||||||||
|
Definition at line 217 of file pgpopupmenu.cpp. References sDisabled. Referenced by PG_PopupMenu::eventBlit(). |
|
||||||||||||||||
|
Definition at line 203 of file pgpopupmenu.cpp. References sNormal. Referenced by PG_PopupMenu::eventBlit(). |
|
||||||||||||||||
|
Definition at line 210 of file pgpopupmenu.cpp. References sSelected. Referenced by PG_PopupMenu::eventBlit(). |
|
|
Definition at line 389 of file pgpopupmenu.h. References selected. |
|
|
Definition at line 393 of file pgpopupmenu.h. References selected. Referenced by PG_PopupMenu::eventKeyDown(), and PG_PopupMenu::handleClick(). |
|
|
Return the width of the rectangle.
Reimplemented from PG_Rect. Definition at line 414 of file pgpopupmenu.h. |
|
|
Definition at line 157 of file pgpopupmenu.h. Referenced by getCaption(), and measureItem(). |
|
|
Definition at line 156 of file pgpopupmenu.h. Referenced by disable(), enable(), isDisabled(), isEnabled(), isMute(), isSeparator(), isSubMenu(), and MenuItem(). |
|
|
Definition at line 162 of file pgpopupmenu.h. Referenced by getId(). |
|
|
Definition at line 159 of file pgpopupmenu.h. Referenced by measureItem(). |
|
|
Definition at line 158 of file pgpopupmenu.h. Referenced by measureItem(). |
|
|
Definition at line 161 of file pgpopupmenu.h. Referenced by getSubMenu(). |
|
|
Definition at line 166 of file pgpopupmenu.h. Referenced by getDisabled(), and paintDisabled(). |
|
|
Definition at line 168 of file pgpopupmenu.h. Referenced by isSelected(), select(), and unselect(). |
|
|
Definition at line 103 of file pgpopupmenu.h. Referenced by PG_PopupMenu::addMenuItem(), PG_PopupMenu::eventKeyDown(), PG_PopupMenu::handleClick(), and PG_PopupMenu::SetMenuItemSlot(). |
|
|
Definition at line 164 of file pgpopupmenu.h. Referenced by getNormal(), and paintNormal(). |
|
|
Definition at line 165 of file pgpopupmenu.h. Referenced by getSelected(), and paintSelected(). |
1.4.2