Control::EnumBase< N > Struct Template Reference
Inheritance diagram for Control::EnumBase< N >:
WidgetFactory::Enum Control::Enum< N > Control::UnvalidatedEnum< N >

Public Types

using type = std::string
 
using Pixmaps_T = std::array< const char *, 2 *N >
 

Public Member Functions

const auto & getValues () const
 
constexpr EnumBase (const char *name, std::size_t i, const std::array< const char *, N > &v)
 
constexpr EnumBase (const char *name, std::size_t i, const std::array< const char *, N > &v, const Pixmaps_T &pixmaps)
 
ossia::value toValue (std::string v) const
 
ossia::value toValue (int v) const
 
auto create_inlet (Id< Process::Port > id, QObject *parent) const
 
auto create_inlet (DataStream::Deserializer &id, QObject *parent) const
 
auto create_inlet (JSONObject::Deserializer &&id, QObject *parent) const
 
void setup_exec (auto &v) const
 

Public Attributes

const std::size_t init {}
 
const std::array< const char *, N > values
 
Pixmaps_T pixmaps
 

Additional Inherited Members

- Static Public Member Functions inherited from WidgetFactory::Enum
static Process::PortItemLayout layout () noexcept
 
static const auto & toStd (const char *const &s)
 
static const auto & toStd (const std::string &s)
 
static auto toStd (const QString &s)
 
static const auto & convert (const std::string &str, const char *)
 
static auto convert (const std::string &str, const QString &)
 
template<typename T , typename Control_T >
static auto make_widget (const T &slider, Control_T &inlet, const score::DocumentContext &ctx, QWidget *parent, QObject *context)
 
template<typename T , typename Control_T >
static auto make_item (const T &slider, Control_T &inlet, const score::DocumentContext &ctx, QGraphicsItem *parent, QObject *context)
 

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