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

#include <primitives.hpp>

Inheritance diagram for neogfx::text_color:
neolib::variant< color, gradient > neolib::reference_counted< i_variant< abstract_t< Types >... > > neolib::i_variant< abstract_t< Types >... > neolib::i_reference_counted

Public Member Functions

 text_color (color_or_gradient const &aOther)
 
text_coloroperator= (color_or_gradient const &aOther)
 
color::component alpha () const
 
text_color with_alpha (color::component aAlpha) const
 
- Public Member Functions inherited from neolib::variant< color, gradient >
 variant ()
 
 variant (T const &aOther)
 
 variant (T &&aOther)
 
 variant (T const &aOther)
 
 variant (abstract_type &&aOther)
 
 variant (T const &aValue)
 
 variant (T &&aValue)
 
 variant (T const &aValue)
 
 variant (T &&aValue)
 
self_type & operator= (T const &aOther)
 
self_type & operator= (T &&aOther)
 
self_type & operator= (T const &aOther)
 
self_type & operator= (T &&aOther)
 
self_type & operator= (T const &aValue)
 
self_type & operator= (T &&aValue)
 
self_type & operator= (T const &aValue)
 
self_type & operator= (T &&aValue)
 
std::size_t index () const override
 
- Public Member Functions inherited from neolib::reference_counted< i_variant< abstract_t< Types >... > >
 reference_counted () noexcept
 
 reference_counted (const reference_counted &aOther) noexcept
 
 ~reference_counted ()
 
reference_countedoperator= (const reference_counted &)
 
void add_ref () const noexcept override
 
void release () const override
 
int32_t use_count () const noexcept override
 
const base_typerelease_and_take_ownership () const override
 
base_typerelease_and_take_ownership () override
 
void pin () const noexcept override
 
void unpin () const override
 
i_ref_control_blockcontrol_block () override
 
- Public Member Functions inherited from neolib::i_variant< abstract_t< Types >... >
virtual ~i_variant ()=default
 
bool holds_alternative () const
 
T const * get_if () const
 
T * get_if ()
 
T const & get () const
 
T & get ()
 
- Public Member Functions inherited from neolib::i_reference_counted
virtual ~i_reference_counted ()=default
 

Additional Inherited Members

- Public Types inherited from neolib::variant< color, gradient >
using abstract_type = i_variant< abstract_t< Types >... >
 
using std_type = std::variant< std::monostate, Types... >
 
- Public Types inherited from neolib::i_variant< abstract_t< Types >... >
typedef self_type abstract_type
 
- Static Public Attributes inherited from neolib::variant< color, gradient >
static constexpr bool is_copy_constructible_v
 
static constexpr bool is_move_constructible_v
 
static constexpr bool is_copy_assignable_v
 
static constexpr bool is_move_assignable_v
 
static constexpr bool is_alternative_v
 

Detailed Description

Definition at line 112 of file primitives.hpp.

Constructor & Destructor Documentation

◆ text_color()

neogfx::text_color::text_color ( color_or_gradient const &  aOther)
inline

Definition at line 116 of file primitives.hpp.

Member Function Documentation

◆ alpha()

color::component neogfx::text_color::alpha ( ) const
inline

Definition at line 128 of file primitives.hpp.

◆ operator=()

text_color & neogfx::text_color::operator= ( color_or_gradient const &  aOther)
inline

Definition at line 122 of file primitives.hpp.

◆ with_alpha()

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

Definition at line 135 of file primitives.hpp.


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