neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::i_style Class Referenceabstract

#include <i_style.hpp>

Inheritance diagram for neogfx::i_style:
neogfx::style

Classes

struct  no_font_for_role
 

Public Types

typedef std::array< neogfx::padding, static_cast< std::size_t >(padding_role::COUNT)> padding_list
 

Public Member Functions

virtual ~i_style ()=default
 
virtual std::string const & name () const =0
 
virtual const margin_list & all_margin () const =0
 
virtual const neogfx::marginmargin (margin_role aMarginRole) const =0
 
virtual void set_margin (margin_role aMarginRole, const neogfx::margin &aMargin)=0
 
virtual const border_listall_border () const =0
 
virtual const neogfx::borderborder (border_role aBorderRole) const =0
 
virtual void set_border (border_role aBorderRole, const neogfx::border &aBorder)=0
 
virtual const padding_listall_padding () const =0
 
virtual const neogfx::paddingpadding (padding_role aPaddingRole) const =0
 
virtual void set_padding (padding_role aPaddingRole, const neogfx::padding &aPadding)=0
 
virtual const sizespacing () const =0
 
virtual void set_spacing (const size &aSpacing)=0
 
virtual const i_palettepalette () const =0
 
virtual i_palettepalette ()=0
 
virtual void set_palette (const i_palette &aPalette)=0
 
virtual void set_palette_color (color_role aRole, const optional_color &aColor)=0
 
virtual bool font_available (font_role aRole) const =0
 
virtual const neogfx::font_info & font_info (font_role aRole) const =0
 
virtual const i_optional< neogfx::font_info > & maybe_font_info (font_role aRole) const =0
 
virtual void set_font_info (font_role aRole, const neogfx::font_info &aFontInfo)=0
 
virtual const neogfx::font & font (font_role aRole) const =0
 
const neogfx::font_info & font_info () const
 
void set_font_info (const neogfx::font_info &aFontInfo)
 
const neogfx::font & font () const
 

Public Attributes

declare_event(changed, style_aspect) public typedef std::array< neogfx::border, static_cast< std::size_t >(border_role::COUNT)> border_list
 

Detailed Description

Definition at line 76 of file i_style.hpp.

Member Typedef Documentation

◆ padding_list

typedef std::array<neogfx::padding, static_cast<std::size_t>(padding_role::COUNT)> neogfx::i_style::padding_list

Definition at line 85 of file i_style.hpp.

Constructor & Destructor Documentation

◆ ~i_style()

virtual neogfx::i_style::~i_style ( )
virtualdefault

Member Function Documentation

◆ all_border()

virtual const border_list & neogfx::i_style::all_border ( ) const
pure virtual

Implemented in neogfx::style.

◆ all_margin()

virtual const margin_list & neogfx::i_style::all_margin ( ) const
pure virtual

Implemented in neogfx::style.

◆ all_padding()

virtual const padding_list & neogfx::i_style::all_padding ( ) const
pure virtual

Implemented in neogfx::style.

◆ border()

virtual const neogfx::border & neogfx::i_style::border ( border_role  aBorderRole) const
pure virtual

Implemented in neogfx::style.

◆ font() [1/2]

const neogfx::font & neogfx::i_style::font ( ) const
inline

Definition at line 119 of file i_style.hpp.

◆ font() [2/2]

virtual const neogfx::font & neogfx::i_style::font ( font_role  aRole) const
pure virtual

Implemented in neogfx::style.

◆ font_available()

virtual bool neogfx::i_style::font_available ( font_role  aRole) const
pure virtual

Implemented in neogfx::style.

◆ font_info() [1/2]

const neogfx::font_info & neogfx::i_style::font_info ( ) const
inline

Definition at line 111 of file i_style.hpp.

◆ font_info() [2/2]

virtual const neogfx::font_info & neogfx::i_style::font_info ( font_role  aRole) const
pure virtual

Implemented in neogfx::style.

◆ margin()

virtual const neogfx::margin & neogfx::i_style::margin ( margin_role  aMarginRole) const
pure virtual

Implemented in neogfx::style.

◆ maybe_font_info()

virtual const i_optional< neogfx::font_info > & neogfx::i_style::maybe_font_info ( font_role  aRole) const
pure virtual

Implemented in neogfx::style.

◆ name()

virtual std::string const & neogfx::i_style::name ( ) const
pure virtual

Implemented in neogfx::style.

◆ padding()

virtual const neogfx::padding & neogfx::i_style::padding ( padding_role  aPaddingRole) const
pure virtual

Implemented in neogfx::style.

◆ palette() [1/2]

virtual const i_palette & neogfx::i_style::palette ( ) const
pure virtual

Implemented in neogfx::style.

◆ palette() [2/2]

virtual i_palette & neogfx::i_style::palette ( )
pure virtual

Implemented in neogfx::style.

◆ set_border()

virtual void neogfx::i_style::set_border ( border_role  aBorderRole,
const neogfx::border aBorder 
)
pure virtual

Implemented in neogfx::style.

◆ set_font_info() [1/2]

void neogfx::i_style::set_font_info ( const neogfx::font_info &  aFontInfo)
inline

Definition at line 115 of file i_style.hpp.

◆ set_font_info() [2/2]

virtual void neogfx::i_style::set_font_info ( font_role  aRole,
const neogfx::font_info &  aFontInfo 
)
pure virtual

Implemented in neogfx::style.

◆ set_margin()

virtual void neogfx::i_style::set_margin ( margin_role  aMarginRole,
const neogfx::margin aMargin 
)
pure virtual

Implemented in neogfx::style.

◆ set_padding()

virtual void neogfx::i_style::set_padding ( padding_role  aPaddingRole,
const neogfx::padding aPadding 
)
pure virtual

Implemented in neogfx::style.

◆ set_palette()

virtual void neogfx::i_style::set_palette ( const i_palette aPalette)
pure virtual

Implemented in neogfx::style.

◆ set_palette_color()

virtual void neogfx::i_style::set_palette_color ( color_role  aRole,
const optional_color aColor 
)
pure virtual

Implemented in neogfx::style.

◆ set_spacing()

virtual void neogfx::i_style::set_spacing ( const size aSpacing)
pure virtual

Implemented in neogfx::style.

◆ spacing()

virtual const size & neogfx::i_style::spacing ( ) const
pure virtual

Implemented in neogfx::style.

Member Data Documentation

◆ border_list

declare_event (changed, style_aspect) public typedef std::array<neogfx::border, static_cast<std::size_t>(border_role::COUNT)> neogfx::i_style::border_list

Definition at line 84 of file i_style.hpp.


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