Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Related Pages

Image: An Image Display Widget

Provides a widget for displaying evas loadable images, and edjes. More...

Enumerations

enum  Ewl_Image_Type {
  EWL_IMAGE_TYPE_NORMAL,
  EWL_IMAGE_TYPE_EDJE
}

Functions

Ewl_Widgetewl_image_new (char *i, char *k)
 Load an image widget with specified image contents.

void ewl_image_init (Ewl_Image *i, char *path, char *key)
 Initialize an image widget to default values and callbacks.

void ewl_image_file_set (Ewl_Image *i, char *im, char *key)
 Change the image file displayed by an image widget.

char * ewl_image_file_get (Ewl_Image *i)
 get the filename this image uses

void ewl_image_proportional_set (Ewl_Image *i, char p)
 Set boolean to determine how to scale.

void ewl_image_scale (Ewl_Image *i, double wp, double hp)
 Scale image dimensions by a percentage.

void ewl_image_scale_to (Ewl_Image *i, int w, int h)
 Scale image dimensions to a specific size.

void ewl_image_tile_set (Ewl_Image *i, int x, int y, int w, int h)
 Tile the image with the given start position and given size.


Detailed Description

Provides a widget for displaying evas loadable images, and edjes.


Enumeration Type Documentation

enum Ewl_Image_Type
 

Widget Theme Keys:
/image/file

/image/group

Enumeration values:
EWL_IMAGE_TYPE_NORMAL  Standard image type.
EWL_IMAGE_TYPE_EDJE  Edje image type.


Function Documentation

char* ewl_image_file_get Ewl_Image *  i  ) 
 

get the filename this image uses

Parameters:
i: the image widget to get the file of
Returns:
Returns the currently set filename

void ewl_image_file_set Ewl_Image *  i,
char *  im,
char *  key
 

Change the image file displayed by an image widget.

Parameters:
i: the image widget to change the displayed image
im: the path to the new image to be displayed by i
key: the key in the file for the image
Returns:
Returns no value.
Set the image displayed by i to the one found at the path im.

void ewl_image_init Ewl_Image *  i,
char *  path,
char *  key
 

Initialize an image widget to default values and callbacks.

Parameters:
i: the image widget to initialize
path: the path to the image displayed
key: the key in the file for the image
Returns:
Returns no value.
Sets the fields and callbacks of i to their default values.

Ewl_Widget* ewl_image_new char *  i,
char *  k
 

Load an image widget with specified image contents.

Parameters:
i: the path to the image to be displayed by the image widget
k: the key for the data in the image or edje
Returns:
Returns a pointer to a new image widget on success, NULL on failure.
The k parameter is primarily used for loading edje groups or keyed data in an image.

void ewl_image_proportional_set Ewl_Image *  i,
char  p
 

Set boolean to determine how to scale.

Parameters:
i: the image to change proportional setting
p: the boolean indicator of proportionality
Returns:
Returns no value.
Changes the flag indicating if the image is scaled proportionally.

void ewl_image_scale Ewl_Image *  i,
double  wp,
double  hp
 

Scale image dimensions by a percentage.

Parameters:
i: the image to scale
wp: the percentage to scale width
hp: the percentage to scale height
Returns:
Returns no value. Scales the given image to wp percent of preferred width by hp percent of preferred height. If i->proportional is set to TRUE, the lesser of wp and hp is applied for both directions.

void ewl_image_scale_to Ewl_Image *  i,
int  w,
int  h
 

Scale image dimensions to a specific size.

Parameters:
i: the image to scale
w: the size to scale width
h: the size to scale height
Returns:
Returns no value.
Scales the given image to w by hp. If i->proportional is set to TRUE, the image is scaled proportional to the lesser scale percentage of preferred size.

void ewl_image_tile_set Ewl_Image *  i,
int  x,
int  y,
int  w,
int  h
 

Tile the image with the given start position and given size.

Parameters:
i: the image to tile
x: the x position of the top right corner
y: the y position of the top right corner
w: the width of the tile
h: the height of the tile
Returns:
Returns no value
Tiles the image across the available area, starting the image at the given position and with the given size.