neoGFX
Cross-platform C++ app/game engine
neogfx::text_appearance Class Reference

#include <primitives.hpp>

Classes

struct  no_effect
 
struct  no_paper
 

Public Member Functions

template<typename InkType , typename PaperType >
 text_appearance (const InkType &aInk, const PaperType &aPaper, const optional_text_effect &aEffect)
 
template<typename InkType , typename PaperType >
 text_appearance (const InkType &aInk, const PaperType &aPaper, const text_effect &aEffect)
 
template<typename InkType >
 text_appearance (const InkType &aInk, const optional_text_effect &aEffect)
 
template<typename InkType >
 text_appearance (const InkType &aInk, const text_effect &aEffect)
 
template<typename InkType , typename PaperType >
 text_appearance (const InkType &aInk, const PaperType &aPaper)
 
template<typename InkType >
 text_appearance (const InkType &aInk)
 
bool operator== (const text_appearance &aRhs) const
 
bool operator!= (const text_appearance &aRhs) const
 
const text_colorink () const
 
const optional_text_colorpaper () const
 
const optional_text_effecteffect () const
 
bool only_calculate_effect () const
 
text_appearance with_ink (const text_color &aInk) const
 
text_appearance with_paper (const optional_text_color &aPaper) const
 
text_appearance with_effect (const optional_text_effect &aEffect) const
 
text_appearance with_alpha (color::component aAlpha) const
 
text_appearance with_alpha (double aAlpha) const
 
text_appearance with_only_effect_calculation () const
 

Detailed Description

Definition at line 280 of file primitives.hpp.

Constructor & Destructor Documentation

◆ text_appearance() [1/6]

template<typename InkType , typename PaperType >
neogfx::text_appearance::text_appearance ( const InkType &  aInk,
const PaperType &  aPaper,
const optional_text_effect aEffect 
)
inline

Definition at line 287 of file primitives.hpp.

◆ text_appearance() [2/6]

template<typename InkType , typename PaperType >
neogfx::text_appearance::text_appearance ( const InkType &  aInk,
const PaperType &  aPaper,
const text_effect aEffect 
)
inline

Definition at line 295 of file primitives.hpp.

◆ text_appearance() [3/6]

template<typename InkType >
neogfx::text_appearance::text_appearance ( const InkType &  aInk,
const optional_text_effect aEffect 
)
inline

Definition at line 303 of file primitives.hpp.

◆ text_appearance() [4/6]

template<typename InkType >
neogfx::text_appearance::text_appearance ( const InkType &  aInk,
const text_effect aEffect 
)
inline

Definition at line 310 of file primitives.hpp.

◆ text_appearance() [5/6]

template<typename InkType , typename PaperType >
neogfx::text_appearance::text_appearance ( const InkType &  aInk,
const PaperType &  aPaper 
)
inline

Definition at line 317 of file primitives.hpp.

◆ text_appearance() [6/6]

template<typename InkType >
neogfx::text_appearance::text_appearance ( const InkType &  aInk)
inline

Definition at line 324 of file primitives.hpp.

Member Function Documentation

◆ effect()

const optional_text_effect& neogfx::text_appearance::effect ( ) const
inline

Definition at line 347 of file primitives.hpp.

◆ ink()

const text_color& neogfx::text_appearance::ink ( ) const
inline

Definition at line 339 of file primitives.hpp.

◆ only_calculate_effect()

bool neogfx::text_appearance::only_calculate_effect ( ) const
inline

Definition at line 351 of file primitives.hpp.

◆ operator!=()

bool neogfx::text_appearance::operator!= ( const text_appearance aRhs) const
inline

Definition at line 334 of file primitives.hpp.

◆ operator==()

bool neogfx::text_appearance::operator== ( const text_appearance aRhs) const
inline

Definition at line 330 of file primitives.hpp.

◆ paper()

const optional_text_color& neogfx::text_appearance::paper ( ) const
inline

Definition at line 343 of file primitives.hpp.

◆ with_alpha() [1/2]

text_appearance neogfx::text_appearance::with_alpha ( color::component  aAlpha) const
inline

Definition at line 368 of file primitives.hpp.

◆ with_alpha() [2/2]

text_appearance neogfx::text_appearance::with_alpha ( double  aAlpha) const
inline

Definition at line 372 of file primitives.hpp.

◆ with_effect()

text_appearance neogfx::text_appearance::with_effect ( const optional_text_effect aEffect) const
inline

Definition at line 364 of file primitives.hpp.

◆ with_ink()

text_appearance neogfx::text_appearance::with_ink ( const text_color aInk) const
inline

Definition at line 356 of file primitives.hpp.

◆ with_only_effect_calculation()

text_appearance neogfx::text_appearance::with_only_effect_calculation ( ) const
inline

Definition at line 376 of file primitives.hpp.

◆ with_paper()

text_appearance neogfx::text_appearance::with_paper ( const optional_text_color aPaper) const
inline

Definition at line 360 of file primitives.hpp.


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