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
Parameter [input]: _file Filaneme of the new image
Parameter [input]: _border New border size to set
setFile ()
void setFile(const std::string & _file);
set the new filename
Parameter [input]: _file Filaneme of the new image
getFile ()
const std::string & getFile(void);
get the file displayed
Return: the filename of the image
setBorder ()
void setBorder(const ewol::Dimension & _border);
set tge Border size around the image
Parameter [input]: _border New border size to set
getBorder ()
const ewol::Dimension & getBorder(void);
get the current border request at the image
Return: the border size
setImageSize ()
void setImageSize(const ewol::Dimension & _size);
set tge Border size around the image
Parameter [input]: _size New border size to set
getImageSize ()
const ewol::Dimension & getImageSize(void);
get the current border request at the image
Return: the border size
setKeepRatio ()
void setKeepRatio(bool _keep);
set the current status of keeping ratio.
Parameter [input]: _keep The new status of keeping the ratio of this image.
getKeepRatio ()
bool getKeepRatio(void);
get the current status of keeping ratio.
Return: The status of keeping the ratio of this image.
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);
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
-
Parameter [input]: _file Filaneme of the new image
Parameter [input]: _border New border size to set
setFile ()
void setFile(const std::string & _file);
set the new filename
-
Parameter [input]: _file Filaneme of the new image
getFile ()
const std::string & getFile(void);
get the file displayed
-
Return: the filename of the image
setBorder ()
void setBorder(const ewol::Dimension & _border);
set tge Border size around the image
-
Parameter [input]: _border New border size to set
getBorder ()
const ewol::Dimension & getBorder(void);
get the current border request at the image
-
Return: the border size
setImageSize ()
void setImageSize(const ewol::Dimension & _size);
set tge Border size around the image
-
Parameter [input]: _size New border size to set
getImageSize ()
const ewol::Dimension & getImageSize(void);
get the current border request at the image
-
Return: the border size
setKeepRatio ()
void setKeepRatio(bool _keep);
set the current status of keeping ratio.
-
Parameter [input]: _keep The new status of keeping the ratio of this image.
getKeepRatio ()
bool getKeepRatio(void);
get the current status of keeping ratio.
-
Return: The status of keeping the ratio of this image.
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);