neoGFX
Cross-platform C++ app/game engine
|
#include <gradient_manager.hpp>
Public Member Functions | |
gradient_manager () | |
void | clear_gradients () override |
i_gradient_sampler const & | sampler (i_gradient const &aGradient) override |
i_gradient_filter const & | filter (i_gradient const &aGradient) override |
Public Member Functions inherited from neogfx::i_gradient_manager | |
neolib::ref_ptr< i_gradient > | find_gradient (gradient_id aId) const |
neolib::ref_ptr< i_gradient > | create_gradient () |
neolib::ref_ptr< i_gradient > | create_gradient (i_gradient const &aOther) |
neolib::ref_ptr< i_gradient > | create_gradient (i_string const &aCssDeclaration) |
neolib::ref_ptr< i_gradient > | create_gradient (sRGB_color const &aColor) |
neolib::ref_ptr< i_gradient > | create_gradient (sRGB_color const &aColor, gradient_direction aDirection) |
neolib::ref_ptr< i_gradient > | create_gradient (sRGB_color const &aColor1, sRGB_color const &aColor2, gradient_direction aDirection=gradient_direction::Vertical) |
neolib::ref_ptr< i_gradient > | create_gradient (i_gradient::color_stop_list const &aColorStops, gradient_direction aDirection=gradient_direction::Vertical) |
neolib::ref_ptr< i_gradient > | create_gradient (i_gradient::color_stop_list const &aColorStops, i_gradient::alpha_stop_list const &aAlphaStops, gradient_direction aDirection=gradient_direction::Vertical) |
neolib::ref_ptr< i_gradient > | create_gradient (i_gradient const &aOther, i_gradient::color_stop_list const &aColorStops) |
neolib::ref_ptr< i_gradient > | create_gradient (i_gradient const &aOther, i_gradient::color_stop_list const &aColorStops, i_gradient::alpha_stop_list const &aAlphaStops) |
neolib::ref_ptr< i_gradient > | create_gradient (neolib::i_vector< sRGB_color::abstract_type > const &aColors, gradient_direction aDirection=gradient_direction::Vertical) |
neolib::ref_ptr< i_gradient > | create_gradient (std::initializer_list< sRGB_color > const &aColors, gradient_direction aDirection=gradient_direction::Vertical) |
Public Member Functions inherited from neolib::i_basic_cookie_consumer< CookieType > | |
virtual | ~i_basic_cookie_consumer ()=default |
virtual void | add_ref (cookie_type aCookie)=0 |
virtual void | release (cookie_type aCookie)=0 |
virtual long | use_count (cookie_type aCookie) const =0 |
Public Member Functions inherited from neolib::services::i_service | |
virtual | ~i_service ()=default |
Static Public Attributes | |
static constexpr uint32_t | MaxSamplers = 1024 |
static constexpr uint32_t | MaxFilters = 16 |
Protected Types | |
typedef ref_ptr< i_gradient > | gradient_pointer |
typedef neolib::pair< gradient_pointer, uint32_t > | gradient_list_entry |
typedef neolib::jar< gradient_list_entry > | gradient_list |
typedef std::pair< gradient::color_stop_list, gradient::alpha_stop_list > | sampler_key_t |
typedef std::map< sampler_key_t, gradient_sampler > | sampler_map_t |
typedef std::map< scalar, gradient_filter > | filter_map_t |
Protected Member Functions | |
void | add_ref (gradient_id aId) override |
void | release (gradient_id aId) override |
long | use_count (gradient_id aId) const override |
gradient_id | allocate_gradient_id () |
const gradient_list & | gradients () const |
gradient_list & | gradients () |
neolib::ref_ptr< i_gradient > | add_gradient (neolib::ref_ptr< i_gradient > aGradient) |
Friends | |
class | gradient_object |
neolib::cookie | item_cookie (gradient_list_entry const &) |
Additional Inherited Members | |
Public Types inherited from neogfx::i_gradient_manager | |
typedef i_gradient_manager | abstract_type |
Public Types inherited from neolib::i_basic_cookie_consumer< CookieType > | |
typedef CookieType | cookie_type |
Static Public Member Functions inherited from neogfx::i_gradient_manager | |
static uuid const & | iid () |
Definition at line 97 of file gradient_manager.hpp.
|
protected |
Definition at line 107 of file gradient_manager.hpp.
|
protected |
Definition at line 104 of file gradient_manager.hpp.
|
protected |
Definition at line 103 of file gradient_manager.hpp.
|
protected |
Definition at line 102 of file gradient_manager.hpp.
|
protected |
Definition at line 105 of file gradient_manager.hpp.
|
protected |
Definition at line 106 of file gradient_manager.hpp.
neogfx::gradient_manager::gradient_manager | ( | ) |
|
protected |
|
overrideprotected |
|
protected |
|
overridevirtual |
Implements neogfx::i_gradient_manager.
|
overridevirtual |
Implements neogfx::i_gradient_manager.
|
protected |
|
protected |
|
overrideprotected |
|
overridevirtual |
Implements neogfx::i_gradient_manager.
|
overrideprotected |
|
friend |
Definition at line 99 of file gradient_manager.hpp.
|
friend |
|
staticconstexpr |
Definition at line 111 of file gradient_manager.hpp.
|
staticconstexpr |
Definition at line 110 of file gradient_manager.hpp.