Public Methods |
| Menu (Rect cFrame, const char *pzName, MenuLayout_e eLayout, uint32 nResizeMask=CF_FOLLOW_LEFT|CF_FOLLOW_RIGHT|CF_FOLLOW_TOP, uint32 nFlags=WID_WILL_DRAW|WID_CLEAR_BACKGROUND|WID_FULL_UPDATE_ON_RESIZE) |
| ~Menu () |
int | Lock (void) const |
void | Unlock (void) const |
virtual void | TimerTick (int nID) |
void | AttachedToWindow (void) |
void | DetachedFromWindow (void) |
void | WindowActivated (bool bIsActive) |
| Hook called when the window hosting this view gain or loose focus. More...
|
Point | GetPreferredSize (bool bLargest) const |
virtual void | MouseDown (const Point &cPosition, uint32 nButtons) |
virtual void | MouseUp (const Point &cPosition, uint32 nButtons, Message *pcData) |
virtual void | MouseMove (const Point &cNewPos, int nCode, uint32 nButtons, Message *pcData) |
virtual void | KeyDown (const char *pzString, const char *pzRawString, uint32 nQualifiers) |
virtual void | FrameSized (const Point &cDelta) |
virtual void | Paint (const Rect &cUpdateRect) |
| Called by the system update "damaged" areas of the view. More...
|
const char* | GetLabel (void) const |
bool | AddItem (const char *pzLabel, Message *pcMessage) |
bool | AddItem (MenuItem *pcItem) |
bool | AddItem (MenuItem *pcItem, int nIndex) |
bool | AddItem (Menu *pcItem) |
bool | AddItem (Menu *pcItem, int nIndex) |
MenuItem* | RemoveItem (int nIndex) |
bool | RemoveItem (MenuItem *pcItem) |
bool | RemoveItem (Menu *pcMenu) |
MenuItem* | GetItemAt (int nIndex) const |
MenuItem* | GetItemAt (Point cPos) const |
Menu* | GetSubMenuAt (int nIndex) const |
int | GetItemCount (void) const |
int | GetIndexOf (MenuItem *pcItem) const |
int | GetIndexOf (Menu *pcMenu) const |
MenuItem* | FindItem (int nCode) const |
MenuItem* | FindItem (const char *pzName) const |
virtual status_t | SetTargetForItems (Handler *pcTarget) |
virtual status_t | SetTargetForItems (Messenger cMessenger) |
MenuItem* | FindMarked (void) const |
Menu* | GetSuperMenu (void) const |
MenuItem* | GetSuperItem (void) |
void | InvalidateLayout (void) |
MenuItem* | Track (const Point &cScreenPos) |
void | Open (Point cScrPos) |
Friends |
class | MenuItem |