Class: ewol::Shaper


Synopsis:

+                       Shaper                     (const std::string & _shaperName);
+ ~Shaper (void);
+ 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::EventTime & _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);
+ bool hasSources (void);
- void loadProgram (void);
- void unLoadProgram (void);
- void updateVertex (void);

Object Hierarchy:

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

Description:

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

Detail:

ewol::Shaper ()

Shaper(const std::string & _shaperName);

generic constructor


ewol::~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::EventTime & _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);

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 ..


loadProgram ()

void loadProgram(void);

load the openGL program and get all the ID needed


unLoadProgram ()

void unLoadProgram(void);

Un-Load the openGL program and get all the ID needed


updateVertex ()

void updateVertex(void);

update the internal vertex table.