Show a dropdown box.
More...
#include <CSMAPI_types.h>
◆ AddItem()
SystemMenuItem* SystemMenuInfo::AddItem |
( |
int |
iItemId, |
|
|
const char * |
pText, |
|
|
SystemMenuItem * |
pParent = NULL , |
|
|
Input::KeyShortcut * |
pShortcut = NULL |
|
) |
| |
Add an item to the list.
- Parameters
-
iItemId | The ID of the item. |
pText | The text of the new item. |
pParent | The parent of the new item. Can be NULL. |
- Returns
- Returns SMI_Item if it's valid.
◆ AllocateItem()
Allocate a new item.
- Returns
- Returns the newly allocated item.
◆ calculate()
virtual void SystemMenuInfo::calculate |
( |
| ) |
|
|
virtual |
Re-calculate this element's data.
- Warning
- You should ALWAYS call this at least once BEFORE you call render()!
Implements GuiBase.
◆ getClassName()
virtual const char* SystemMenuInfo::getClassName |
( |
| ) |
|
|
inlinevirtual |
Get this class' name.
- Returns
- Should return the name of this class.
Reimplemented from GuiBase.
◆ getHoverableCount()
virtual int SystemMenuInfo::getHoverableCount |
( |
| ) |
|
|
inlinevirtual |
Get the number of elements that can be hovered over in this element.
- Returns
- Returns the amount of elements that can be hovered over in this element.
Reimplemented from GuiBase.
◆ GetItemById()
Get a menu item by its ID.
- Parameters
-
iItemId | The ID to search for. |
- Returns
- Returns the SMI_Item if it exists, NULL otherwise.
◆ GetItemByIndex()
Get a menu item by its index number.
- Parameters
-
- Returns
- Returns the SMI_Item if it exists, NULL otherwise.
◆ GetItemByText()
Get a menu item by text.
- Parameters
-
pText | The text to search for. |
- Returns
- Returns the SMI_Item if it exists, NULL otherwise.
◆ GetItemCount()
int SystemMenuInfo::GetItemCount |
( |
| ) |
|
Gets the total amount of items in this menu.
- Returns
- Returns the total amount of items.
◆ getSelectableCount()
virtual int SystemMenuInfo::getSelectableCount |
( |
| ) |
|
|
inlinevirtual |
Get the selectable number of elements in this element.
- Returns
- Returns the amount of selectable elements in this element.
Reimplemented from GuiBase.
◆ importantRender()
virtual void SystemMenuInfo::importantRender |
( |
| ) |
|
|
virtual |
Render the important bits of this element.
- Note
- This function is used to draw things that should be at the front of the screen, so make sure to call it AFTER rendering everything else.
Reimplemented from GuiBase.
◆ isHoverable()
virtual bool SystemMenuInfo::isHoverable |
( |
| ) |
|
|
virtual |
Check hoverability status.
- Returns
- Returns true if this element can be hovered over.
Implements GuiBase.
◆ isHovered()
virtual bool SystemMenuInfo::isHovered |
( |
| ) |
|
|
virtual |
Check hover status.
- Returns
- Returns true if this element is being hovered over.
Implements GuiBase.
◆ isSelected()
virtual bool SystemMenuInfo::isSelected |
( |
| ) |
|
|
virtual |
Check selection status.
- Returns
- Returns true if this element is selected.
Implements GuiBase.
◆ position_menu_items()
Position menu items.
- Parameters
-
pItem | The item to position. |
◆ process()
virtual int SystemMenuInfo::process |
( |
GUI_POINT |
mouse | ) |
|
|
virtual |
◆ processKeys()
virtual int SystemMenuInfo::processKeys |
( |
| ) |
|
|
virtual |
◆ setFont()
void SystemMenuInfo::setFont |
( |
FontObject * |
pFont | ) |
|
|
inlinevirtual |
Set this element's font.
- Parameters
-
Reimplemented from GuiBase.
◆ setHovered()
virtual void SystemMenuInfo::setHovered |
( |
int |
value | ) |
|
|
virtual |
Set this GUI element as hovered over or not.
- Parameters
-
Implements GuiBase.
◆ setSelected()
virtual void SystemMenuInfo::setSelected |
( |
int |
value | ) |
|
|
virtual |
Set this GUI element as selected or not.
- Parameters
-
value | The selection value. |
Implements GuiBase.
The documentation for this class was generated from the following file: