Inkscape
Vector Graphics Editor
|
#include <manager.h>
Public Member Functions | |
std::vector< std::shared_ptr< Space::AnySpace > > | spaces (Space::Traits traits) |
std::shared_ptr< Space::AnySpace > | find (Space::Type type) const |
Finds the first global color space matching the given type. | |
std::shared_ptr< Space::AnySpace > | find (std::string const &name) const |
Finds the global space matching the given name. | |
Static Public Member Functions | |
static Manager & | get () |
Protected Member Functions | |
Manager () | |
~Manager ()=default | |
std::shared_ptr< Space::AnySpace > | addSpace (Space::AnySpace *space) |
Add the given space and assume ownership over it. | |
bool | removeSpace (std::shared_ptr< Space::AnySpace > space) |
Removes the given space from the list of available spaces. | |
Private Member Functions | |
Manager (Manager const &)=delete | |
void | operator= (Manager const &)=delete |
Private Attributes | |
std::vector< std::shared_ptr< Space::AnySpace > > | _spaces |
|
privatedelete |
|
protected |
Definition at line 41 of file manager.cpp.
References addSpace().
|
protecteddefault |
|
protected |
Add the given space and assume ownership over it.
Definition at line 67 of file manager.cpp.
References _spaces, find(), and Inkscape::Colors::Space::AnySpace::getType().
Referenced by Manager().
std::shared_ptr< Space::AnySpace > Inkscape::Colors::Manager::find | ( | Space::Type | type | ) | const |
Finds the first global color space matching the given type.
Definition at line 97 of file manager.cpp.
References _spaces.
Referenced by addSpace(), Inkscape::Colors::Space::CMS::toRGBA(), and Inkscape::Colors::xml_to_paint().
std::shared_ptr< Space::AnySpace > Inkscape::Colors::Manager::find | ( | std::string const & | name | ) | const |
Finds the global space matching the given name.
Definition at line 108 of file manager.cpp.
|
inlinestatic |
Definition at line 36 of file manager.h.
Referenced by Inkscape::UI::Widget::ColorNotebook::_initUI(), Inkscape::Colors::Color::convert(), Inkscape::Extension::Internal::SvgBuilder::convertGfxColor(), Inkscape::Colors::Color::ifValid(), Inkscape::Colors::Color::set(), Inkscape::Colors::Space::CMS::toRGBA(), and Inkscape::Colors::xml_to_paint().
|
privatedelete |
|
protected |
Removes the given space from the list of available spaces.
Definition at line 79 of file manager.cpp.
References _spaces.
std::vector< std::shared_ptr< Space::AnySpace > > Inkscape::Colors::Manager::spaces | ( | Space::Traits | traits | ) |
Definition at line 84 of file manager.cpp.
References _spaces.
Referenced by Inkscape::UI::Widget::ColorNotebook::_initUI().
|
private |
Definition at line 56 of file manager.h.
Referenced by addSpace(), find(), find(), removeSpace(), and spaces().