|
psychic-ui 0.0.0
|
#include <SkinSet.hpp>
Public Member Functions | |
| virtual std::string_view | name () const =0 |
| virtual const Theme & | defaultTheme () const =0 |
| virtual const Theme & | lightTheme () const |
| virtual const Theme & | darkTheme () const |
| const Theme & | theme (ColorScheme scheme) const |
| virtual std::vector< const Theme * > | themes () const |
| bool | hasTheme (const Theme &theme) const |
| virtual void | registerSkins (SkinRegistry &skins) const =0 |
| virtual std::unique_ptr< SkinSet > | fallback () const |
| Public Member Functions inherited from psychic_ui::StyleSheet | |
| StyleSheet (const StyleSheet &)=delete | |
| StyleSheet & | operator= (const StyleSheet &)=delete |
| StyleSheet (StyleSheet &&)=delete | |
| StyleSheet & | operator= (StyleSheet &&)=delete |
| virtual void | load (StyleManager *manager)=0 |
A design system's implementation: a skin per component (registerSkins), the rules that lay them out (load, written from manager->theme()), and the theme it ships with. A set may implement only some skins: the others come from its fallback set, whose skins and rules are registered and loaded first. A style manager has one set at a time (StyleManager::skinSet<S>()).
|
inlinenodiscardvirtual |
The set's theme for a dark system: its default theme unless it has a dark one
Reimplemented in psychic_ui::DeskSkins, and psychic_ui::FloatSkins.
|
nodiscardpure virtual |
The theme the set ships with, for a system that doesn't say whether it is light or dark
Implemented in psychic_ui::DeskSkins, psychic_ui::FloatSkins, and psychic_ui::PivotalSkins.
|
inlinenodiscardvirtual |
Where the skins this set lacks come from; the default set has none
Reimplemented in psychic_ui::DeskSkins, and psychic_ui::FloatSkins.
|
inlinenodiscard |
Whether the theme is one of the set's (themes()), by name
|
inlinenodiscardvirtual |
The set's theme for a light system: its default theme unless it has a light one
Reimplemented in psychic_ui::DeskSkins, psychic_ui::FloatSkins, and psychic_ui::PivotalSkins.
|
inlinenodiscard |
The set's theme for a system color scheme: light, dark, or the default when it is unknown
|
inlinenodiscardvirtual |
The themes made for the set, as a picker lists them: its light, dark and default themes unless it says more
Reimplemented in psychic_ui::PivotalSkins.