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


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.


get

+ const etk::Color<float> & get (int32_t _id);
Get the associated color of the ID.


getColors

+ std::vector<std::string> getColors () const;
Get All color name


reload

+ void reload ();
User request the reload of all resources (usefull when the file depend on DATA:GUI:xxx ...