#include <public/IMenuManager.h>
Public Member Functions | |
| virtual unsigned int | GetStyleAPIVersion () |
| Returns the style API version. | |
| virtual const char * | GetStyleName ()=0 |
| Returns the name of the menu style. | |
| virtual IMenuPanel * | CreatePanel ()=0 |
| Creates an IMenuPanel object. | |
| virtual IBaseMenu * | CreateMenu (IMenuHandler *handler, IdentityToken_t *pOwner=NULL)=0 |
| Creates an IBaseMenu object of this style. | |
| virtual unsigned int | GetMaxPageItems ()=0 |
| Returns the maximum number of items per page. | |
| virtual MenuSource | GetClientMenu (int client, void **object)=0 |
| Returns whether or not a client is viewing a menu. | |
| virtual bool | CancelClientMenu (int client, bool autoIgnore=false)=0 |
| Cancels a client's menu. | |
| virtual Handle_t | GetHandle ()=0 |
| Returns a Handle the IMenuStyle object. | |
| virtual unsigned int | GetApproxMemUsage ()=0 |
| For the Handle system, returns approximate memory usage. | |
Definition at line 339 of file IMenuManager.h.
| virtual unsigned int SourceMod::IMenuStyle::GetStyleAPIVersion | ( | ) | [inline, virtual] |
| virtual const char* SourceMod::IMenuStyle::GetStyleName | ( | ) | [pure virtual] |
Returns the name of the menu style.
| virtual IMenuPanel* SourceMod::IMenuStyle::CreatePanel | ( | ) | [pure virtual] |
Creates an IMenuPanel object.
Note: the object should be freed using DeleteThis.
| virtual IBaseMenu* SourceMod::IMenuStyle::CreateMenu | ( | IMenuHandler * | handler, | |
| IdentityToken_t * | pOwner = NULL | |||
| ) | [pure virtual] |
Creates an IBaseMenu object of this style.
Note: the object should be freed using IBaseMenu::Destroy.
| handler | IMenuHandler pointer. | |
| pOwner | Optional IdentityToken_t owner for handle creation. |
| virtual unsigned int SourceMod::IMenuStyle::GetMaxPageItems | ( | ) | [pure virtual] |
Returns the maximum number of items per page.
Menu implementations must return >= 2. Styles with only 1 or 0 items per page are not valid.
| virtual MenuSource SourceMod::IMenuStyle::GetClientMenu | ( | int | client, | |
| void ** | object | |||
| ) | [pure virtual] |
Returns whether or not a client is viewing a menu.
| client | Client index. | |
| object | Optional pointer to retrieve menu object, if any. |
| virtual bool SourceMod::IMenuStyle::CancelClientMenu | ( | int | client, | |
| bool | autoIgnore = false | |||
| ) | [pure virtual] |
Cancels a client's menu.
| client | Client index. | |
| autoIgnore | If true, no menus can be created during the cancellation process. |
| virtual Handle_t SourceMod::IMenuStyle::GetHandle | ( | ) | [pure virtual] |
| virtual unsigned int SourceMod::IMenuStyle::GetApproxMemUsage | ( | ) | [pure virtual] |
For the Handle system, returns approximate memory usage.
1.5.1