57 return static_cast<style_aspect>(
static_cast<uint32_t
>(aLhs) |
static_cast<uint32_t
>(aRhs));
62 return static_cast<style_aspect>(
static_cast<uint32_t
>(aLhs) &
static_cast<uint32_t
>(aRhs));
83 typedef std::array<neogfx::margin, static_cast<std::size_t>(
margin_role::COUNT)> margin_list;
89 virtual std::string
const&
name()
const = 0;
119 const neogfx::font&
font()
const
void set_font_info(const neogfx::font_info &aFontInfo)
virtual const padding_list & all_padding() const =0
virtual ~i_style()=default
virtual const neogfx::padding & padding(padding_role aPaddingRole) const =0
virtual std::string const & name() const =0
virtual const neogfx::font_info & font_info(font_role aRole) const =0
virtual const neogfx::font & font(font_role aRole) const =0
virtual void set_font_info(font_role aRole, const neogfx::font_info &aFontInfo)=0
virtual const neogfx::border & border(border_role aBorderRole) const =0
virtual i_palette & palette()=0
virtual bool font_available(font_role aRole) const =0
const neogfx::font & font() const
virtual const i_optional< neogfx::font_info > & maybe_font_info(font_role aRole) const =0
virtual void set_palette(const i_palette &aPalette)=0
virtual const size & spacing() const =0
virtual void set_padding(padding_role aPaddingRole, const neogfx::padding &aPadding)=0
virtual void set_palette_color(color_role aRole, const optional_color &aColor)=0
virtual const neogfx::margin & margin(margin_role aMarginRole) const =0
virtual const i_palette & palette() const =0
virtual void set_spacing(const size &aSpacing)=0
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
virtual void set_margin(margin_role aMarginRole, const neogfx::margin &aMargin)=0
virtual void set_border(border_role aBorderRole, const neogfx::border &aBorder)=0
virtual const border_list & all_border() const =0
virtual const margin_list & all_margin() const =0
constexpr style_aspect operator&(style_aspect aLhs, style_aspect aRhs)
optional< font_role > optional_font_role
constexpr style_aspect operator|(style_aspect aLhs, style_aspect aRhs)
#define declare_event(declName,...)