class: ewol::widget::Image


Constructor and Destructor:

+                                  Image               (const std::string & _file,
const ewol::Dimension & _border);
+ virtual ~Image (void );

Synopsis:

+         const char* const        eventPressed;
+ const char* const configRatio;
+ const char* const configSize;
+ const char* const configBorder;
+ const char* const configSource;
+ void init (ewol::widget::Manager & _widgetManager);
# ewol::compositing::Image m_compositing;
+ void set (const std::string & _file,
const ewol::Dimension & _border);
# std::string m_fileName;
+ void setFile (const std::string & _file);
+ const std::string & getFile (void ) const;
# ewol::Dimension m_border;
+ void setBorder (const ewol::Dimension & _border);
+ const ewol::Dimension & getBorder (void ) const;
# ewol::Dimension m_imageSize;
+ void setImageSize (const ewol::Dimension & _size);
+ const ewol::Dimension & getImageSize (void ) const;
# bool m_keepRatio;
+ void setKeepRatio (bool _keep);
+ bool getKeepRatio (void ) const;
# virtual void onDraw (void );
# virtual bool onSetConfig (const ewol::object::Config & _conf);
# virtual bool onGetConfig (const char* _config,
std::string & _result) const;
+ virtual void calculateMinMaxSize (void );
+ virtual void onRegenerateDisplay (void );
+ virtual bool onEventInput (const ewol::event::Input & _event);
+ virtual bool loadXML (exml::Element* _node);

Object Hierarchy:

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

Detail:

eventPressed

+ const char* const eventPressed;



configRatio

+ const char* const configRatio;



configSize

+ const char* const configSize;



configBorder

+ const char* const configBorder;



configSource

+ const char* const configSource;



init

+ void init (ewol::widget::Manager & _widgetManager);
Main call of recording the widget on the List of "widget named creator"


m_compositing

# ewol::compositing::Image m_compositing;
compositing element of the image.


Image

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


~Image

+ virtual  ~Image (void );


set

+ void set (const std::string & _file,
const ewol::Dimension & _border);
set All the configuration of the current image


m_fileName

# std::string m_fileName;
file name of the image.


setFile

+ void setFile (const std::string & _file);
set the new filename


getFile

+ const std::string & getFile (void ) const;
get the file displayed


m_border

# ewol::Dimension m_border;
border to add at the image.


setBorder

+ void setBorder (const ewol::Dimension & _border);
set tge Border size around the image


getBorder

+ const ewol::Dimension & getBorder (void ) const;
get the current border request at the image


m_imageSize

# ewol::Dimension m_imageSize;
border to add at the image.


setImageSize

+ void setImageSize (const ewol::Dimension & _size);
set tge Border size around the image


getImageSize

+ const ewol::Dimension & getImageSize (void ) const;
get the current border request at the image


m_keepRatio

# bool m_keepRatio;
keep the image ratio between width and hight


setKeepRatio

+ void setKeepRatio (bool _keep);
set the current status of keeping ratio.


getKeepRatio

+ bool getKeepRatio (void ) const;
get the current status of keeping ratio.


onDraw

# virtual void onDraw (void );
Common widget drawing function (called by the drawing thread [Android, X11, ...])


onSetConfig

# virtual bool onSetConfig (const ewol::object::Config & _conf);
Configuration requested to the curent Object


onGetConfig

# virtual bool onGetConfig (const char* _config,
std::string & _result) const;
Receive a configuration message from an other element system or from the curent Object


calculateMinMaxSize

+ virtual void calculateMinMaxSize (void );
calculate the minimum and maximum size (need to estimate expend properties of the widget)
Note: : INTERNAL EWOL SYSTEM


onRegenerateDisplay

+ virtual void onRegenerateDisplay (void );
Event generated when a redraw is needed


onEventInput

+ virtual bool onEventInput (const ewol::event::Input & _event);
Event on an input of this Widget (finger, mouse, stilet)


loadXML

+ virtual bool loadXML (exml::Element* _node);
load properties with an XML node.