#include <SkinSet.hpp>
|
| template<class SkinT, class ImplT> |
| SkinRegistry & | add (std::string_view variant="") |
| template<class SkinT> |
| bool | has (std::string_view variant="") const |
| template<class SkinT> |
| std::shared_ptr< SkinT > | make (std::string_view variant="") const |
|
void | clear () |
Skins by the interface they implement (ButtonSkin, RangeSkin...) and a variant name; "" is the default
◆ add()
template<class SkinT, class ImplT>
| SkinRegistry & psychic_ui::SkinRegistry::add |
( |
std::string_view | variant = "" | ) |
|
|
inline |
Register ImplT as the variant of SkinT, replacing what was registered there. The skins it makes have the variant's name as a class, so one skin serves several variants that rules tell apart (Button ButtonSkinBase.primary).
◆ has()
template<class SkinT>
| bool psychic_ui::SkinRegistry::has |
( |
std::string_view | variant = "" | ) |
const |
|
inline |
Whether something is registered for that interface and variant
◆ make()
template<class SkinT>
| std::shared_ptr< SkinT > psychic_ui::SkinRegistry::make |
( |
std::string_view | variant = "" | ) |
const |
|
inline |
A new skin: the variant if registered, else the interface's default; nullptr if neither is
The documentation for this class was generated from the following file:
- psychic-ui/skins/SkinSet.hpp