ASPiK SDK
VSTGUI::Standalone::MenuBuilderAdapter Class Reference

#include <menubuilder.h>

Inheritance diagram for VSTGUI::Standalone::MenuBuilderAdapter:
VSTGUI::Standalone::IMenuBuilder VSTGUI::Interface VSTGUI::Standalone::NoMenuBuilder VSTGUI::Standalone::DrawDeviceTestsCustomization

Public Member Functions

bool showCommandGroupInMenu (const Interface &context, const UTF8String &group) const override
 
bool showCommandInMenu (const Interface &context, const Command &cmd) const override
 
SortFunction getCommandGroupSortFunction (const Interface &context, const UTF8String &group) const override
 
bool prependMenuSeparator (const Interface &context, const Command &cmd) const override
 
- Public Member Functions inherited from VSTGUI::Interface
 Interface (const Interface &)=delete
 
 Interface (Interface &&)=delete
 
Interfaceoperator= (const Interface &)=delete
 
Interfaceoperator= (Interface &&)=delete
 
template<typename T >
const auto dynamicCast () const
 
template<typename T >
auto dynamicCast ()
 

Additional Inherited Members

- Public Types inherited from VSTGUI::Standalone::IMenuBuilder
using SortFunction = std::function< bool(const UTF8String &lhs, const UTF8String &rhs)>
 

Detailed Description

Menu builder adapter

Member Function Documentation

◆ getCommandGroupSortFunction()

SortFunction VSTGUI::Standalone::MenuBuilderAdapter::getCommandGroupSortFunction ( const Interface context,
const UTF8String group 
) const
inlineoverridevirtual

return command group sort function

Parameters
contexteither an IApplication or IWindow instance
groupgroup name
Returns
if you want to sort the menu return a SortFunction otherwise return nullptr

Implements VSTGUI::Standalone::IMenuBuilder.

◆ prependMenuSeparator()

bool VSTGUI::Standalone::MenuBuilderAdapter::prependMenuSeparator ( const Interface context,
const Command cmd 
) const
inlineoverridevirtual

should a menu separator prepend a command

Parameters
contexteither an IApplication or IWindow instance
cmdcommand
Returns
true if a menu separator should be prepended before the command

Implements VSTGUI::Standalone::IMenuBuilder.

◆ showCommandGroupInMenu()

bool VSTGUI::Standalone::MenuBuilderAdapter::showCommandGroupInMenu ( const Interface context,
const UTF8String group 
) const
inlineoverridevirtual

should the command group be visible in the menu

Parameters
contexteither an IApplication or IWindow instance
groupgroup name
Returns
true for visible or false for invisible

Implements VSTGUI::Standalone::IMenuBuilder.

Reimplemented in VSTGUI::Standalone::NoMenuBuilder.

◆ showCommandInMenu()

bool VSTGUI::Standalone::MenuBuilderAdapter::showCommandInMenu ( const Interface context,
const Command cmd 
) const
inlineoverridevirtual

should the command be visible in the menu

Parameters
contexteither an IApplication or IWindow instance
cmdcommand
Returns
true for visible or false for invisible

Implements VSTGUI::Standalone::IMenuBuilder.

Reimplemented in VSTGUI::Standalone::NoMenuBuilder.


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