tcMenu
Public Member Functions | List of all members
RenderingMenuMgrObserver Class Reference
Inheritance diagram for RenderingMenuMgrObserver:
MenuManagerObserver

Public Member Functions

void structureHasChanged () override
 
bool menuEditStarting (MenuItem *item) override
 
void menuEditEnded (MenuItem *item) override
 
- Public Member Functions inherited from MenuManagerObserver
virtual void activeItemHasChanged (MenuItem *)
 

Member Function Documentation

◆ structureHasChanged()

void RenderingMenuMgrObserver::structureHasChanged ( )
inlineoverridevirtual

Indicates that the menu structure has changed in a way that requires a new bootstrap and complete redraw. For example when a new menu item is added, or when static values such as the name or info block data change.

Implements MenuManagerObserver.

◆ menuEditStarting()

bool RenderingMenuMgrObserver::menuEditStarting ( MenuItem item)
inlineoverridevirtual

This method is called when editing is started with the menu manager, you can prevent editing by returning false.

Parameters
itemthe item that is about to start editing
Returns
true to allow editing, otherwise false

Implements MenuManagerObserver.

◆ menuEditEnded()

void RenderingMenuMgrObserver::menuEditEnded ( MenuItem item)
inlineoverridevirtual

This method indicates that editing has completed editing, it is different to the menu item callback in that it is only called when the menu is edited. You cannot prevent completion, but you could present a dialog if the value was incorrectly adjusted.

Parameters
itemthe item that has finished editing.

Implements MenuManagerObserver.


The documentation for this class was generated from the following file: