class: ewol::resource::ColorFile
Description:
ColorFile is a Resource designed to be specific with the theme (for example black, or white or orange ...)
Constructor and Destructor:
# ColorFile ();
+ virtual ~ColorFile ();
Synopsis:
# void init (const std::string & _filename);
+ DECLARE_RESOURCE_NAMED_FACTORY (ColorFile );
+ void setErrorColor (const etk::Color<float> & _errorColor);
+ int32_t request (const std::string & _paramName);
+ const etk::Color<float> & get (int32_t _id);
+ std::vector<std::string> getColors () const;
+ void reload ();
Object Hierarchy:
+std::enable_shared_from_this<Object>
+ewol::object::ParameterList
+ewol::object::SignalList
+--> +ewol::Object
+--> +ewol::Resource
+--> ewol::resource::ColorFile
Detail:
ColorFile
# ColorFile ();
Constructor of the color property file
Parameter [input]: | _filename | Name of the file needed |
init
# void init (const std::string & _filename);
DECLARE_RESOURCE_NAMED_FACTORY
+ DECLARE_RESOURCE_NAMED_FACTORY (ColorFile );
~ColorFile
+ virtual ~ColorFile ();
Simple Destructor of this class (nothing specific ...)
setErrorColor
+ void setErrorColor (const etk::Color<float> & _errorColor);
Set the error color.
request
+ int32_t request (const std::string & _paramName);
Request the presence of a specific color.
Parameter [input]: | _paramName | Name of the color. |
Return: | | A unique ID of the color (or -1 if an error occured). |
get
+ const etk::Color<float> & get (int32_t _id);
Get the associated color of the ID.
Parameter [input]: | _Id | Id of the color. |
Return: | | The requested color. |
getColors
+ std::vector<std::string> getColors () const;
Get All color name
Return: | | list of all color existing |
reload
+ void reload ();
User request the reload of all resources (usefull when the file depend on DATA:GUI:xxx ...