#include <menus.h>
Inheritance diagram for TMenuBox::
Public Methods | |
TMenuBox (const TRect &bounds, TMenu *aMenu, TMenuView *aParentMenu) | |
virtual void | draw () |
virtual TRect | getItemRect (TMenuItem *item) |
Static Public Methods | |
TStreamable* | build () |
Static Public Attributes | |
const char* | frameChars |
const char* const | name |
Protected Methods | |
TMenuBox (StreamableInit) |
Definition at line 569 of file menus.h.
|
Creates a TMenuBox object by calling TMenuView::TMenuView(bounds). The `bounds' parameter is then adjusted to accommodate the width and length of the items in `aMenu'.
The menu data member is set to `aMenu', which provides the menu selections. Allows an explicit `aParentMenu' which is set to parentMenu. |
|
Each streamable class needs a "builder" to allocate the correct memory for its objects together with the initialized virtual table pointers. This is achieved by calling this constructor with an argument of type StreamableInit. |
|
Called to create an object in certain stream-reading situations. Reimplemented from TMenuView. |
|
Draws the framed menu box and associated menu items in the default colors. Reimplemented from TView. |
|
Returns the rectangle occupied by the given menu item. It can be used to determine if a mouse click has occurred on a given menu selection. Reimplemented from TMenuView. |
|
Undocumented. |
|
Undocumented. Reimplemented from TMenuView. Reimplemented in TMenuPopup. |