openMSX
Public Member Functions | Public Attributes | List of all members
openmsx::PersistentElementEnum< C > Struct Template Reference

#include <ImGuiPartInterface.hh>

Inheritance diagram for openmsx::PersistentElementEnum< C >:
Inheritance graph
[legend]
Collaboration diagram for openmsx::PersistentElementEnum< C >:
Collaboration graph
[legend]

Public Member Functions

constexpr PersistentElementEnum (zstring_view name_, int C::*p_, std::initializer_list< int > valid_)
 
void load (C &c, std::string_view value) const
 
- Public Member Functions inherited from openmsx::PersistentElement< C, int >
void save (ImGuiTextBuffer &buf, C &c) const
 
void load (C &c, zstring_view value) const
 
- Public Member Functions inherited from openmsx::PersistentElementBase< C, int >
constexpr PersistentElementBase (zstring_view name_, int C::*p_)
 
int & get (C &c) const
 

Public Attributes

std::initializer_list< int > valid
 
- Public Attributes inherited from openmsx::PersistentElementBase< C, int >
zstring_view name
 
int C::* p
 

Detailed Description

template<typename C>
struct openmsx::PersistentElementEnum< C >

Definition at line 92 of file ImGuiPartInterface.hh.

Constructor & Destructor Documentation

◆ PersistentElementEnum()

template<typename C >
constexpr openmsx::PersistentElementEnum< C >::PersistentElementEnum ( zstring_view  name_,
int C::*  p_,
std::initializer_list< int >  valid_ 
)
inlineconstexpr

Definition at line 94 of file ImGuiPartInterface.hh.

Member Function Documentation

◆ load()

template<typename C >
void openmsx::PersistentElementEnum< C >::load ( C c,
std::string_view  value 
) const
inline

Member Data Documentation

◆ valid

template<typename C >
std::initializer_list<int> openmsx::PersistentElementEnum< C >::valid

Definition at line 93 of file ImGuiPartInterface.hh.

Referenced by openmsx::PersistentElementEnum< C >::load().


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