ewol::compositing::Shaper Class Reference

#include <Shaper.hpp>

Inheritance diagram for ewol::compositing::Shaper:
ewol::Compositing

Public Member Functions

 Shaper (const std::string &_shaperName="")
 
virtual ~Shaper ()
 
void draw (bool _disableDepthTest=true)
 
void clear ()
 
bool setState (int32_t _newState)
 
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
 
- Public Member Functions inherited from ewol::Compositing
 Compositing ()
 
virtual ~Compositing ()
 
virtual void resetMatrix ()
 
virtual void translate (const vec3 &_vect)
 
virtual void rotate (const vec3 &_vect, float _angle)
 
virtual void scale (const vec3 &_vect)
 
virtual void setMatrix (const mat4 &_mat)
 

Additional Inherited Members

- Protected Attributes inherited from ewol::Compositing
mat4 m_matrixApply
 

Detailed 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 & Destructor Documentation

§ Shaper()

ewol::compositing::Shaper::Shaper ( const std::string &  _shaperName = "")

generic constructor

Parameters
[in]_shaperNameName of the file that might be loaded

§ ~Shaper()

virtual ewol::compositing::Shaper::~Shaper ( )
virtual

generic destructor

Member Function Documentation

§ changeStatusIn()

bool ewol::compositing::Shaper::changeStatusIn ( int32_t  _newStatusId)

change the current status in an other

Parameters
[in]_newStatusIdthe next new status requested
Returns
true The widget must call this fuction periodicly (and redraw itself)
false No need to request the periodic call.

§ clear()

void ewol::compositing::Shaper::clear ( )
virtual

clear alll tre registered element in the current element

Reimplemented from ewol::Compositing.

§ draw()

void ewol::compositing::Shaper::draw ( bool  _disableDepthTest = true)
virtual

draw All the refistered text in the current element on openGL

Implements ewol::Compositing.

§ getBorder()

ewol::Padding ewol::compositing::Shaper::getBorder ( )

get the padding declared by the user in the config file

Returns
the padding property

§ getColor()

const etk::Color<float>& ewol::compositing::Shaper::getColor ( int32_t  _id)

Get The color associated at an ID.

Parameters
[in]_idId of the color
Returns
the reference on the color

§ getConfigNumber()

double ewol::compositing::Shaper::getConfigNumber ( int32_t  _id)

Get The number associated at an ID.

Parameters
[in]_idId of the parameter
Returns
the requested number.

§ getCurrentDisplayedStatus()

int32_t ewol::compositing::Shaper::getCurrentDisplayedStatus ( )
inline

get the current displayed status of the shaper

Returns
The Status Id

§ getNextDisplayedStatus()

int32_t ewol::compositing::Shaper::getNextDisplayedStatus ( )
inline

get the next displayed status of the shaper

Returns
The next status Id (-1 if no status in next)

§ getPadding()

ewol::Padding ewol::compositing::Shaper::getPadding ( )

get the padding declared by the user in the config file

Returns
the padding property

§ getSource()

const std::string& ewol::compositing::Shaper::getSource ( ) const
inline

get the shaper file Source

Returns
the shapper file name

§ getTransitionStatus()

float ewol::compositing::Shaper::getTransitionStatus ( )
inline

get the current trasion status

Returns
value of the transition status (0.0f when no activity)

§ hasSources()

bool ewol::compositing::Shaper::hasSources ( )

Sometimes the user declare an image but not allocate the ressources all the time, this is to know it ..

Returns
the validity od the resources.

§ periodicCall()

bool ewol::compositing::Shaper::periodicCall ( const ewol::event::Time _event)

Same as the widfget periodic call (this is for change display)

Parameters
[in]_eventThe current time of the call.
Returns
true The widget must call this fuction periodicly (and redraw itself)
false No need to request the periodic call.

§ requestColor()

int32_t ewol::compositing::Shaper::requestColor ( const std::string &  _name)

Get an ID on the color instance element.

Parameters
[in]_nameName of the element requested
Returns
The Id of the color

§ requestConfig()

int32_t ewol::compositing::Shaper::requestConfig ( const std::string &  _name)

Get an ID on the configuration instance element.

Parameters
[in]_nameName of the element requested
Returns
The Id of the element

§ setActivateState()

void ewol::compositing::Shaper::setActivateState ( int32_t  _status)
inline

Set activate state of the element.

Parameters
[in]_statusNew activate status

§ setShape()

void ewol::compositing::Shaper::setShape ( const vec2 _origin,
const vec2 _size,
const vec2 _insidePos,
const vec2 _insideSize 
)

set the shape property:


  • _size *
  • *
  • * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * *
  • *
  • | | *
  • | * * | *
  • | * * - - - - - - - - - - - - - - - - - - * * | *
  • * _insideSize * *
  • | * | | * | *
  • | * | | * | *
  • | * | | * | *
  • | * | | * | *
  • | * | | * | *
  • | * | | * | *
  • * _insidePos * *
  • | * * - - - - - - - - - - - - - - - - - - * * | *
  • | *************************************************** | *
  • *
  • | | *
  • *
  • * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * *
  • *
  • *
    _origin
Parameters
[in]_originOrigin of the display
[in]_sizeSize of the display
[in]_insidePosPositin of the internal data
[in]_insideSizeSize of the internal data

§ setSource()

void ewol::compositing::Shaper::setSource ( const std::string &  _newFile)

change the shaper Source

Parameters
[in]_newFileNew file of the shaper

§ setState()

bool ewol::compositing::Shaper::setState ( int32_t  _newState)

Change the current state.

Parameters
[in]_newStateCurrent state of the configuration
Returns
true Need redraw.
false No need redraw.

The documentation for this class was generated from the following file:
  • framework/atria-soft/ewol/ewol/compositing/Shaper.hpp