Interface for content menus.
More...
#include <ContentMenuWidget.hpp>
Inherits Widget.
|
| virtual void | setMenuHost (MultiWidgets::WidgetPtr host)=0 |
| | Set host widget for the menu. More... |
| |
| virtual MenuNode | createRootItem (const Nimble::Vector2f &loc, float rotation=0)=0 |
| | Create a root item at given location. More... |
| |
| virtual MenuNode | createTeaser (const Nimble::Vector2f &loc, bool open)=0 |
| | Create a closed, moving root item as a teaser. More... |
| |
| virtual void | removeItem (MenuNodeId id)=0 |
| | Remove menu item with the given id. More... |
| |
|
virtual MultiWidgets::WidgetPtr | getNode (MenuNodeId id)=0 |
| | Get the widget corresponding to the given menu node id. |
| |
|
virtual void | clear ()=0 |
| | Clear all open menus. |
| |
Interface for content menus.
| virtual MenuNode Showcase::ContentMenuWidget::createRootItem |
( |
const Nimble::Vector2f & |
loc, |
|
|
float |
rotation = 0 |
|
) |
| |
|
pure virtual |
Create a root item at given location.
- Returns
- id of the created menu item
| virtual MenuNode Showcase::ContentMenuWidget::createTeaser |
( |
const Nimble::Vector2f & |
loc, |
|
|
bool |
open |
|
) |
| |
|
pure virtual |
Create a closed, moving root item as a teaser.
Teasers aren't removed on timeout
- Parameters
-
| loc | location for the item |
| open | open the teaser when created |
- Returns
- id of the created menu item
| virtual void Showcase::ContentMenuWidget::removeItem |
( |
MenuNodeId |
id | ) |
|
|
pure virtual |
Remove menu item with the given id.
- Parameters
-
| virtual void Showcase::ContentMenuWidget::setMenuHost |
( |
MultiWidgets::WidgetPtr |
host | ) |
|
|
pure virtual |
Set host widget for the menu.
Created menu items are added under the host widget, which can be different from the menu's parent