Class: widget::Image


Synopsis:

+  static void              init                 (ewol::WidgetManager & _widgetManager);
+ Image (const std::string & _file,
const ewol::Dimension & _border,
ewol::Dimension:: Millimeter));
+ ~Image (void);
+ void set (const std::string & _file,
const ewol::Dimension & _border);
+ void setFile (const std::string & _file);
+ const std::string & getFile (void);
+ void setBorder (const ewol::Dimension & _border);
+ const ewol::Dimension & getBorder (void);
+ void setImageSize (const ewol::Dimension & _size);
+ const ewol::Dimension & getImageSize (void);
+ void setKeepRatio (bool _keep);
+ bool getKeepRatio (void);
+ void calculateMinMaxSize (void);
+ void onRegenerateDisplay (void);
+ bool onEventInput (const ewol::EventInput & _event);
+ bool loadXML (exml::Element * _node);
# void onDraw (void);
# bool onSetConfig (const ewol::EConfig & _conf);
# bool onGetConfig (const char * _config,
std::string & _result);

Object Hierarchy:

ewol::EObject
    +--> ewol::Widget
        +--> widget::Image

Description:

/** * @ingroup ewolWidgetGroup */

Detail:

widget::init ()

static void init(ewol::WidgetManager & _widgetManager);

Main call of recording the widget on the List of "widget named creator"


widget::Image ()

Image(const std::string & _file,
      const ewol::Dimension & _border,
      ewol::Dimension:: Millimeter));




widget::~Image ()

~Image(void);




set ()

void set(const std::string & _file,
         const ewol::Dimension & _border);

set All the configuration of the current image


setFile ()

void setFile(const std::string & _file);

set the new filename


getFile ()

const std::string & getFile(void);

get the file displayed


setBorder ()

void setBorder(const ewol::Dimension & _border);

set tge Border size around the image


getBorder ()

const ewol::Dimension & getBorder(void);

get the current border request at the image


setImageSize ()

void setImageSize(const ewol::Dimension & _size);

set tge Border size around the image


getImageSize ()

const ewol::Dimension & getImageSize(void);

get the current border request at the image


setKeepRatio ()

void setKeepRatio(bool _keep);

set the current status of keeping ratio.


getKeepRatio ()

bool getKeepRatio(void);

get the current status of keeping ratio.


calculateMinMaxSize ()

void calculateMinMaxSize(void);



onRegenerateDisplay ()

void onRegenerateDisplay(void);



onEventInput ()

bool onEventInput(const ewol::EventInput & _event);



loadXML ()

bool loadXML(exml::Element * _node);



onDraw ()

void onDraw(void);



onSetConfig ()

bool onSetConfig(const ewol::EConfig & _conf);



onGetConfig ()

bool onGetConfig(const char * _config,
                 std::string & _result);