cgv
Loading...
Searching...
No Matches
cgv::gui::help_menu_entry_registration< T > Struct Template Reference

convenience class to register a factory of the given class type that must be derived from cgv::gui::help_menu_entry More...

#include <help_menu_entry.h>

Public Member Functions

 help_menu_entry_registration (const std::string &_created_type_name, const std::string &_menu_entry_name="")
 this registers an instance of a factory implementation that only takes classes derived from cgv::gui::help_menu_entry the instance will be automatically registered as a singleton under the 'Help' section in the menu bar
 

Detailed Description

template<class T>
struct cgv::gui::help_menu_entry_registration< T >

convenience class to register a factory of the given class type that must be derived from cgv::gui::help_menu_entry

Definition at line 103 of file help_menu_entry.h.

Constructor & Destructor Documentation

◆ help_menu_entry_registration()

template<class T >
cgv::gui::help_menu_entry_registration< T >::help_menu_entry_registration ( const std::string &  _created_type_name,
const std::string &  _menu_entry_name = "" 
)
inline

this registers an instance of a factory implementation that only takes classes derived from cgv::gui::help_menu_entry the instance will be automatically registered as a singleton under the 'Help' section in the menu bar

parameters:

  • _created_type_name ... name of the type of the instances created by the factory
  • _menu_entry_name ... name to show in the menu bar dropdown

Definition at line 110 of file help_menu_entry.h.

References cgv::base::register_object().


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