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

#include <palette.hpp>

Inheritance diagram for neogfx::palette:
neogfx::i_palette

Public Types

typedef i_palette abstract_type
 

Public Member Functions

define_declared_event(Changed, changed) public palette (current_style_palette_proxy_t)
 
 palette (const i_palette &aOther)
 
 palette (const palette &aOther)
 
 palette (const i_palette &aOther, palette_proxy_t)
 
 palette (const palette &aOther, palette_proxy_t)
 
paletteoperator= (const i_palette &aOther)
 
paletteoperator= (const palette &aOther)
 
bool operator== (const palette &aOther) const
 
bool operator!= (const palette &aOther) const
 
bool operator== (const i_palette &aOther) const override
 
bool operator!= (const i_palette &aOther) const override
 
bool has_color (color_role aRole) const override
 
neogfx::color color (color_role aRole) const override
 
const optional_colormaybe_color (color_role aRole) const override
 
void set_color (color_role aRole, const optional_color &aColor) override
 
neogfx::color default_text_color_for_widget (const i_widget &aWidget) const override
 
bool has_proxy () const override
 
const i_paletteproxy () const override
 
- Public Member Functions inherited from neogfx::i_palette
virtual ~i_palette ()=default
 

Protected Member Functions

virtual const i_paletteproxy_ptr () const override
 

Detailed Description

Definition at line 32 of file palette.hpp.

Member Typedef Documentation

◆ abstract_type

Definition at line 35 of file palette.hpp.

Constructor & Destructor Documentation

◆ palette() [1/5]

define_declared_event(Changed, changed) public neogfx::palette::palette ( current_style_palette_proxy_t  )

◆ palette() [2/5]

neogfx::palette::palette ( const i_palette aOther)

◆ palette() [3/5]

neogfx::palette::palette ( const palette aOther)

◆ palette() [4/5]

neogfx::palette::palette ( const i_palette aOther,
palette_proxy_t   
)

◆ palette() [5/5]

neogfx::palette::palette ( const palette aOther,
palette_proxy_t   
)

Member Function Documentation

◆ color()

neogfx::color neogfx::palette::color ( color_role  aRole) const
overridevirtual

Implements neogfx::i_palette.

◆ default_text_color_for_widget()

neogfx::color neogfx::palette::default_text_color_for_widget ( const i_widget aWidget) const
overridevirtual

Implements neogfx::i_palette.

◆ has_color()

bool neogfx::palette::has_color ( color_role  aRole) const
overridevirtual

Implements neogfx::i_palette.

◆ has_proxy()

bool neogfx::palette::has_proxy ( ) const
overridevirtual

Implements neogfx::i_palette.

◆ maybe_color()

const optional_color & neogfx::palette::maybe_color ( color_role  aRole) const
overridevirtual

Implements neogfx::i_palette.

◆ operator!=() [1/2]

bool neogfx::palette::operator!= ( const i_palette aOther) const
overridevirtual

Implements neogfx::i_palette.

◆ operator!=() [2/2]

bool neogfx::palette::operator!= ( const palette aOther) const

◆ operator=() [1/2]

palette & neogfx::palette::operator= ( const i_palette aOther)

◆ operator=() [2/2]

palette & neogfx::palette::operator= ( const palette aOther)

◆ operator==() [1/2]

bool neogfx::palette::operator== ( const i_palette aOther) const
overridevirtual

Implements neogfx::i_palette.

◆ operator==() [2/2]

bool neogfx::palette::operator== ( const palette aOther) const

◆ proxy()

const i_palette & neogfx::palette::proxy ( ) const
overridevirtual

Implements neogfx::i_palette.

◆ proxy_ptr()

virtual const i_palette * neogfx::palette::proxy_ptr ( ) const
overrideprotectedvirtual

Implements neogfx::i_palette.

◆ set_color()

void neogfx::palette::set_color ( color_role  aRole,
const optional_color aColor 
)
overridevirtual

Implements neogfx::i_palette.


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