Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
iv::mimics::MimicControlMenu Class Reference

#include <MimicControlMenu.hpp>

Public Member Functions

 MimicControlMenu (std::string_view title)
 
void addCommand (std::string_view text, iv::types::color color, const std::shared_ptr< IMenuOptionRunCommand > &runCommand, const std::optional< std::string_view > &msgConfirmation=std::nullopt, const std::optional< std::function< bool(CDialog *)> > &commandEvaluation=std::nullopt)
 
void addPanel (std::string_view text, iv::types::color color, bool hasAccept, const std::shared_ptr< IMenuOptionPanelBuilder > &panelBuilder)
 
void addMsgColor (iv::types::color colorRgb, std::string_view text)
 
std::shared_ptr< CMenuContextbuildMenuContext () const
 
bool hasOptions () const
 

Private Attributes

std::string m_title
 
std::vector< std::shared_ptr< MenuOption > > m_menuOptions
 
std::vector< CTxtColorm_msgState
 

Constructor & Destructor Documentation

◆ MimicControlMenu()

iv::mimics::MimicControlMenu::MimicControlMenu ( std::string_view title)
explicit

Member Function Documentation

◆ addCommand()

void iv::mimics::MimicControlMenu::addCommand ( std::string_view text,
iv::types::color color,
const std::shared_ptr< IMenuOptionRunCommand > & runCommand,
const std::optional< std::string_view > & msgConfirmation = std::nullopt,
const std::optional< std::function< bool(CDialog *)> > & commandEvaluation = std::nullopt )

◆ addMsgColor()

void iv::mimics::MimicControlMenu::addMsgColor ( iv::types::color colorRgb,
std::string_view text )

◆ addPanel()

void iv::mimics::MimicControlMenu::addPanel ( std::string_view text,
iv::types::color color,
bool hasAccept,
const std::shared_ptr< IMenuOptionPanelBuilder > & panelBuilder )

◆ buildMenuContext()

std::shared_ptr< CMenuContext > iv::mimics::MimicControlMenu::buildMenuContext ( ) const
nodiscard

◆ hasOptions()

bool iv::mimics::MimicControlMenu::hasOptions ( ) const
nodiscard

Member Data Documentation

◆ m_menuOptions

std::vector<std::shared_ptr<MenuOption> > iv::mimics::MimicControlMenu::m_menuOptions
private

◆ m_msgState

std::vector<CTxtColor> iv::mimics::MimicControlMenu::m_msgState
private

◆ m_title

std::string iv::mimics::MimicControlMenu::m_title
private

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