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) |
| | Timer dispatch member. More...
|
| 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) |
| | Hook called by the system when a mouse button is pressed. More...
|
| virtual void | MouseUp (const Point &cPosition, uint32 nButtons, Message *pcData) |
| | Hook called by the system when a mouse button is release. More...
|
| virtual void | MouseMove (const Point &cNewPos, int nCode, uint32 nButtons, Message *pcData) |
| | Hook called by the system when the mouse is moved. More...
|
| virtual void | KeyDown (const char *pzString, const char *pzRawString, uint32 nQualifiers) |
| | Hook called by the system when a key is pressed while the view has focus. More...
|
| virtual void | FrameSized (const Point &cDelta) |
| | Virtual hook called by the system when the view is resized. More...
|
| virtual void | Paint (const Rect &cUpdateRect) |
| | Called by the system update "damaged" areas of the view. More...
|
| std::string | GetLabel () const |
| MenuLayout_e | GetLayout () 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 () const |
| Menu * | GetSuperMenu () const |
| MenuItem * | GetSuperItem () |
| void | InvalidateLayout () |
| void | SetCloseMessage (const Message &cMsg) |
| void | SetCloseMsgTarget (const Messenger &cTarget) |
| MenuItem * | Track (const Point &cScreenPos) |
| void | Open (Point cScrPos) |
Friends |
| class | MenuItem |