Control::Enum< N > Struct Template Referencefinal
Inheritance diagram for Control::Enum< N >:
Public Member Functions | |
constexpr | Enum (const char *name, std::size_t i, const std::array< const char *, N > &v) |
constexpr | Enum (const char *name, std::size_t i, const std::array< const char *, N > &v, const typename EnumBase< N >::Pixmaps_T &pixmaps) |
void | convert (const ossia::timed_vec< std::string > &source, ossia::timed_vec< std::string > &sink) |
template<typename Sink > | |
void | convert (const ossia::timed_vec< std::string > &source, ossia::timed_vec< Sink > &sink) |
bool | fromValue (const ossia::value &v, std::string &str) const |
template<typename T > | |
bool | fromValue (const ossia::value &v, T &integer_like) const |
auto | fromValue (const ossia::value &v) const |
Public Member Functions inherited from Control::EnumBase< N > | |
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 |
Static Public Attributes | |
static constexpr const bool | must_validate = true |
Additional Inherited Members | |
Public Types inherited from Control::EnumBase< N > | |
using | type = std::string |
using | Pixmaps_T = std::array< const char *, 2 *N > |
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) |
Public Attributes inherited from Control::EnumBase< N > | |
const std::size_t | init {} |
const std::array< const char *, N > | values |
Pixmaps_T | pixmaps |
The documentation for this struct was generated from the following file: