23#include <unordered_map>
34 style(std::string
const& aName);
45 std::string
const&
name() const final;
75 mutable
std::unordered_map<
font_role, optional_font_info> iFontInfo;
76 mutable
std::unordered_map<
font_role, optional_font> iFont;
const neogfx::font & font() const
std::array< neogfx::padding, static_cast< std::size_t >(padding_role::COUNT)> padding_list
const neogfx::font_info & font_info() const
declare_event(changed, style_aspect) public typedef std::array< neogfx::border, static_cast< std::size_t >(border_role::COUNT)> border_list
const margin_list & all_margin() const final
style & operator=(const i_style &aOther)
std::string const & name() const final
void set_palette_color(color_role aRole, const optional_color &aColor) final
style(const style &aOther)
bool font_available(font_role aRole) const final
const size & spacing() const final
style(const i_style &aOther)
void set_padding(padding_role aPaddingRole, const neogfx::padding &aPadding) final
const border_list & all_border() const final
define_declared_event(Changed, changed, style_aspect) public style(std::string const &aName, const i_style &aOther)
const i_optional< neogfx::font_info > & maybe_font_info(font_role aRole) const final
void set_border(border_role aBorderRole, const neogfx::border &aBorder) final
void set_margin(margin_role aMarginRole, const neogfx::margin &aMargin) final
void set_font_info(font_role aRole, const neogfx::font_info &aFontInfo) final
bool operator==(const i_style &aOther) const
const padding_list & all_padding() const final
void set_spacing(const size &aSpacing) final
void set_palette(const i_palette &aPalette) final
bool operator!=(const i_style &aOther) const
#define define_declared_event(name, declName,...)