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);
+ ~Shaper (void );

Synopsis:

+ void                         draw                      (bool _disableDepthTest);
+ void clear (void );
+ bool changeStatusIn (int32_t _newStatusId);
+ int32_t getCurrentDisplayedStatus (void );
+ int32_t getNextDisplayedStatus (void );
+ float getTransitionStatus (void );
+ bool periodicCall (const ewol::event::Time & _event);
+ void setOrigin (const vec2 & _newOri);
+ void setSize (const vec2 & _newSize);
+ void setInsideSize (const vec2 & _newInsideSize);
+ void setInsidePos (const vec2 & _newInsidePos);
+ vec2 getPadding (void );
+ void setSource (const std::string & _newFile);
+ const std::string & getSource (void ) const;
+ bool hasSources (void );

Object Hierarchy:

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

Detail:

Shaper

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


~Shaper

+  ~Shaper (void );
generic destructor


draw

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


clear

+ void clear (void );
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 (void );
get the current displayed status of the shaper


getNextDisplayedStatus

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


getTransitionStatus

+ float getTransitionStatus (void );
get the current trasion status


periodicCall

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


setOrigin

+ void setOrigin (const vec2 & _newOri);
set the widget origin (needed fot the display)


setSize

+ void setSize (const vec2 & _newSize);
set the widget size (needed fot the display)


setInsideSize

+ void setInsideSize (const vec2 & _newInsideSize);
set the internal widget size


setInsidePos

+ void setInsidePos (const vec2 & _newInsidePos);
set the internal widget position


getPadding

+ vec2 getPadding (void );
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 (void ) const;
get the shaper file Source


hasSources

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