Pioneer
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Editor::ActionEntry Struct Reference

#include <ActionBinder.h>

Public Member Functions

template<typename Functor >
 ActionEntry (std::string_view label, ImGuiKeyChord shortcut, Functor f)
 
template<typename Predicate , typename Functor >
 ActionEntry (std::string_view label, ImGuiKeyChord shortcut, Predicate p, Functor f)
 
template<typename Functor >
 ActionEntry (std::string_view label, const char *icon, ImGuiKeyChord shortcut, Functor f)
 
template<typename Predicate , typename Functor >
 ActionEntry (std::string_view label, const char *icon, ImGuiKeyChord shortcut, Predicate p, Functor f)
 

Public Attributes

std::string label
 
const char * fontIcon
 
ImGuiKeyChord shortcut
 
sigc::slot< bool()> predicate
 
sigc::slot< void()> action
 

Constructor & Destructor Documentation

◆ ActionEntry() [1/4]

template<typename Functor >
Editor::ActionEntry::ActionEntry ( std::string_view  label,
ImGuiKeyChord  shortcut,
Functor  f 
)
inline

◆ ActionEntry() [2/4]

template<typename Predicate , typename Functor >
Editor::ActionEntry::ActionEntry ( std::string_view  label,
ImGuiKeyChord  shortcut,
Predicate  p,
Functor  f 
)
inline

◆ ActionEntry() [3/4]

template<typename Functor >
Editor::ActionEntry::ActionEntry ( std::string_view  label,
const char *  icon,
ImGuiKeyChord  shortcut,
Functor  f 
)
inline

◆ ActionEntry() [4/4]

template<typename Predicate , typename Functor >
Editor::ActionEntry::ActionEntry ( std::string_view  label,
const char *  icon,
ImGuiKeyChord  shortcut,
Predicate  p,
Functor  f 
)
inline

Member Data Documentation

◆ action

sigc::slot<void ()> Editor::ActionEntry::action

◆ fontIcon

const char* Editor::ActionEntry::fontIcon

◆ label

std::string Editor::ActionEntry::label

◆ predicate

sigc::slot<bool ()> Editor::ActionEntry::predicate

◆ shortcut

ImGuiKeyChord Editor::ActionEntry::shortcut

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