Menu interface.
Public Member Functions | |
| virtual tBool | ClearItems ()=0 |
| Clear/removes all the items in the menu. More... | |
| virtual iWidgetMenuItem * | AddItem (const achar *aaszName, iHString *ahspID, tWidgetMenuItemFlags aFlags)=0 |
| Add a menu item. More... | |
| virtual tBool | RemoveItem (iWidgetMenuItem *apItem)=0 |
| Remove the item at the specified index. More... | |
| virtual tU32 | GetNumItems () const =0 |
| Get the number of items. More... | |
| virtual iWidgetMenuItem * | GetItem (tU32 anIndex) const =0 |
| Get the item at the specified index. More... | |
| virtual iWidgetMenuItem * | GetItemFromName (const achar *aaszName) const =0 |
| Get the index of the first item with the specified name. More... | |
| virtual iWidgetMenuItem * | GetItemFromID (iHString *ahspID) const =0 |
| Get the index of the first item with the specified id. More... | |
| virtual tBool | Open ()=0 |
| Open the menu. More... | |
| virtual tBool | Close ()=0 |
| Close the menu. More... | |
| virtual tBool | SortItems ()=0 |
| Sort the items. More... | |
| virtual tU32 | GetMenuWidth () const =0 |
| Get the menu's width in pixels. {Property}. More... | |
| virtual tU32 | GetMenuHeight () const =0 |
| Get the menu's height in pixels. {Property}. More... | |
| virtual tU32 | GetItemWidth () const =0 |
| Get the item's width in pixels. {Property}. More... | |
| virtual tU32 | GetItemHeight () const =0 |
| Get the item's height in pixels. {Property}. More... | |
| virtual void | UpdateSizes ()=0 |
| Update the menu's sizes. More... | |
Public Member Functions inherited from iUnknown | |
| virtual tBool | IsOK () const =0 |
| Check if the object is valid. More... | |
| virtual tI32 | AddRef ()=0 |
| Signal that one more reference of the object has been created. More... | |
| virtual tI32 | Release ()=0 |
| Release a reference of the object. More... | |
| virtual void | DeleteThis ()=0 |
| Bypass any reference counting and delete this object. More... | |
| virtual void | Invalidate ()=0 |
| Invalidate the object. More... | |
| virtual iUnknown * | QueryInterface (const tUUID &aIID)=0 |
| Query an interface. More... | |
| virtual void | ListInterfaces (iMutableCollection *apLst, tU32 anFlags) const =0 |
| Fill a UUID list containing the UUIDs of the implemented interfaces. More... | |
| virtual tI32 | SetNumRefs (tI32 anNumRefs)=0 |
| Set the reference counter directly. More... | |
| virtual tI32 | GetNumRefs () const =0 |
| Get the number of references to this object. More... | |
|
pure virtual |
Clear/removes all the items in the menu.
|
pure virtual |
Add a menu item.
| aaszName | is the name and text of the item. It can contain a & that will notify the shortcut key to use. |
| ahspID | is the ID of the item. |
| aFlags | are the flags of the item. |
|
pure virtual |
Remove the item at the specified index.
| apItem | is the item to remove. |
|
pure virtual |
Get the number of items.
|
pure virtual |
Get the item at the specified index.
|
pure virtual |
Get the index of the first item with the specified name.
|
pure virtual |
Get the index of the first item with the specified id.
|
pure virtual |
Open the menu.
|
pure virtual |
Close the menu.
|
pure virtual |
Sort the items.
|
pure virtual |
Get the menu's width in pixels. {Property}.
|
pure virtual |
Get the menu's height in pixels. {Property}.
|
pure virtual |
Get the item's width in pixels. {Property}.
|
pure virtual |
Get the item's height in pixels. {Property}.
|
pure virtual |
Update the menu's sizes.
1.8.7