class: ewol::compositing::Shaper


Description:

the Shaper system is a basic theme configuration for every widget, it corespond at a background display described by a pool of files

Constructor and Destructor:

+                                                      Shaper                    (const std::string & _shaperName);
+ virtual ~Shaper ();

Synopsis:

+ void                                         draw                      (bool _disableDepthTest);
+ void clear ();
+ bool changeStatusIn (int32_t _newStatusId);
+ int32_t getCurrentDisplayedStatus ();
+ int32_t getNextDisplayedStatus ();
+ float getTransitionStatus ();
+ bool periodicCall (const ewol::event::Time & _event);
+ ewol::Padding getPadding ();
+ ewol::Padding getPaddingIn ();
+ ewol::Padding getPaddingOut ();
+ ewol::Padding getBorder ();
+ void setSource (const std::string & _newFile);
+ const std::string & getSource () const;
+ bool hasSources ();
+ void setShape (const vec2 & _origin,
const vec2 & _size,
const vec2 & _insidePos,
const vec2 & _insideSize);
+ void setShape (const vec2 & _origin,
const vec2 & _size);
+ int32_t requestColor (const std::string & _name);
+ const etk::Color<float> & getColor (int32_t _id);
+ int32_t requestConfig (const std::string & _name);
+ double getConfigNumber (int32_t _id);
+ void setActivateState (int32_t _status);
+ bool operator == (const Shaper & _obj) const;
+ bool operator != (const Shaper & _obj) const;

Object Hierarchy:

+ewol::Compositing
+--> ewol::compositing::Shaper

Detail:

Shaper

+  Shaper (const std::string & _shaperName);
generic constructor


~Shaper

+ virtual  ~Shaper ();
generic destructor


draw

+ void draw (bool _disableDepthTest);
draw All the refistered text in the current element on openGL


clear

+ void clear ();
clear alll tre registered element in the current element


changeStatusIn

+ bool changeStatusIn (int32_t _newStatusId);
change the current status in an other


getCurrentDisplayedStatus

+ int32_t getCurrentDisplayedStatus ();
get the current displayed status of the shaper


getNextDisplayedStatus

+ int32_t getNextDisplayedStatus ();
get the next displayed status of the shaper


getTransitionStatus

+ float getTransitionStatus ();
get the current trasion status


periodicCall

+ bool periodicCall (const ewol::event::Time & _event);
Same as the widfget periodic call (this is for change display)


getPadding

+ ewol::Padding getPadding ();
get the padding declared by the user in the config file


getPaddingIn

+ ewol::Padding getPaddingIn ();



getPaddingOut

+ ewol::Padding getPaddingOut ();



getBorder

+ ewol::Padding getBorder ();
get the padding declared by the user in the config file


setSource

+ void setSource (const std::string & _newFile);
change the shaper Source


getSource

+ const std::string & getSource () const;
get the shaper file Source


hasSources

+ bool hasSources ();
Sometimes the user declare an image but not allocate the ressources all the time, this is to know it ..


setShape

+ void setShape (const vec2 & _origin,
const vec2 & _size,
const vec2 & _insidePos,
const vec2 & _insideSize);


setShape

+ void setShape (const vec2 & _origin,
const vec2 & _size);



requestColor

+ int32_t requestColor (const std::string & _name);
Get an ID on the color instance element


getColor

+ const etk::Color<float> & getColor (int32_t _id);
Get The color associated at an ID.


requestConfig

+ int32_t requestConfig (const std::string & _name);
Get an ID on the configuration instance element


getConfigNumber

+ double getConfigNumber (int32_t _id);
Get The number associated at an ID.


setActivateState

+ void setActivateState (int32_t _status);
Set activate state of the element


operator ==

+ bool operator == (const Shaper & _obj) const;



operator !=

+ bool operator != (const Shaper & _obj) const;