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

#include <style.hpp>

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

Public Member Functions

define_declared_event(Changed, changed, style_aspect) public style (std::string const &aName, const i_style &aOther)
 
 style (const i_style &aOther)
 
 style (const style &aOther)
 
virtual ~style ()
 
styleoperator= (const i_style &aOther)
 
bool operator== (const i_style &aOther) const
 
bool operator!= (const i_style &aOther) const
 
std::string const & name () const final
 
const margin_list & all_margin () const final
 
const neogfx::marginmargin (margin_role aMarginRole) const final
 
void set_margin (margin_role aMarginRole, const neogfx::margin &aMargin) final
 
const border_listall_border () const final
 
const neogfx::borderborder (border_role aBorderRole) const final
 
void set_border (border_role aBorderRole, const neogfx::border &aBorder) final
 
const padding_listall_padding () const final
 
const neogfx::paddingpadding (padding_role aPaddingRole) const final
 
void set_padding (padding_role aPaddingRole, const neogfx::padding &aPadding) final
 
const sizespacing () const final
 
void set_spacing (const size &aSpacing) final
 
const i_palettepalette () const final
 
i_palettepalette () final
 
void set_palette (const i_palette &aPalette) final
 
void set_palette_color (color_role aRole, const optional_color &aColor) final
 
bool font_available (font_role aRole) const final
 
const neogfx::font_info & font_info (font_role aRole) const final
 
const i_optional< neogfx::font_info > & maybe_font_info (font_role aRole) const final
 
void set_font_info (font_role aRole, const neogfx::font_info &aFontInfo) final
 
const neogfx::font & font (font_role aRole) const final
 
- Public Member Functions inherited from neogfx::i_style
virtual ~i_style ()=default
 
const neogfx::font_info & font_info () const
 
void set_font_info (const neogfx::font_info &aFontInfo)
 
const neogfx::font & font () const
 

Additional Inherited Members

- Public Types inherited from neogfx::i_style
typedef std::array< neogfx::padding, static_cast< std::size_t >(padding_role::COUNT)> padding_list
 
- Public Attributes inherited from neogfx::i_style
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 29 of file style.hpp.

Constructor & Destructor Documentation

◆ style() [1/3]

define_declared_event(Changed, changed, style_aspect) public neogfx::style::style ( std::string const &  aName,
const i_style aOther 
)

◆ style() [2/3]

neogfx::style::style ( const i_style aOther)

◆ style() [3/3]

neogfx::style::style ( const style aOther)

◆ ~style()

virtual neogfx::style::~style ( )
virtual

Member Function Documentation

◆ all_border()

const border_list & neogfx::style::all_border ( ) const
finalvirtual

Implements neogfx::i_style.

◆ all_margin()

const margin_list & neogfx::style::all_margin ( ) const
finalvirtual

Implements neogfx::i_style.

◆ all_padding()

const padding_list & neogfx::style::all_padding ( ) const
finalvirtual

Implements neogfx::i_style.

◆ border()

const neogfx::border & neogfx::style::border ( border_role  aBorderRole) const
finalvirtual

Implements neogfx::i_style.

◆ font()

const neogfx::font & neogfx::style::font ( font_role  aRole) const
finalvirtual

Implements neogfx::i_style.

◆ font_available()

bool neogfx::style::font_available ( font_role  aRole) const
finalvirtual

Implements neogfx::i_style.

◆ font_info()

const neogfx::font_info & neogfx::style::font_info ( font_role  aRole) const
finalvirtual

Implements neogfx::i_style.

◆ margin()

const neogfx::margin & neogfx::style::margin ( margin_role  aMarginRole) const
finalvirtual

Implements neogfx::i_style.

◆ maybe_font_info()

const i_optional< neogfx::font_info > & neogfx::style::maybe_font_info ( font_role  aRole) const
finalvirtual

Implements neogfx::i_style.

◆ name()

std::string const & neogfx::style::name ( ) const
finalvirtual

Implements neogfx::i_style.

◆ operator!=()

bool neogfx::style::operator!= ( const i_style aOther) const

◆ operator=()

style & neogfx::style::operator= ( const i_style aOther)

◆ operator==()

bool neogfx::style::operator== ( const i_style aOther) const

◆ padding()

const neogfx::padding & neogfx::style::padding ( padding_role  aPaddingRole) const
finalvirtual

Implements neogfx::i_style.

◆ palette() [1/2]

const i_palette & neogfx::style::palette ( ) const
finalvirtual

Implements neogfx::i_style.

◆ palette() [2/2]

i_palette & neogfx::style::palette ( )
finalvirtual

Implements neogfx::i_style.

◆ set_border()

void neogfx::style::set_border ( border_role  aBorderRole,
const neogfx::border aBorder 
)
finalvirtual

Implements neogfx::i_style.

◆ set_font_info()

void neogfx::style::set_font_info ( font_role  aRole,
const neogfx::font_info &  aFontInfo 
)
finalvirtual

Implements neogfx::i_style.

◆ set_margin()

void neogfx::style::set_margin ( margin_role  aMarginRole,
const neogfx::margin aMargin 
)
finalvirtual

Implements neogfx::i_style.

◆ set_padding()

void neogfx::style::set_padding ( padding_role  aPaddingRole,
const neogfx::padding aPadding 
)
finalvirtual

Implements neogfx::i_style.

◆ set_palette()

void neogfx::style::set_palette ( const i_palette aPalette)
finalvirtual

Implements neogfx::i_style.

◆ set_palette_color()

void neogfx::style::set_palette_color ( color_role  aRole,
const optional_color aColor 
)
finalvirtual

Implements neogfx::i_style.

◆ set_spacing()

void neogfx::style::set_spacing ( const size aSpacing)
finalvirtual

Implements neogfx::i_style.

◆ spacing()

const size & neogfx::style::spacing ( ) const
finalvirtual

Implements neogfx::i_style.


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