Main Page | File List | Globals | Related Pages

signals_image.c File Reference

Edje Signal handlers for the main Entice Image. More...


Functions

void _entice_delete_current (void *data, Evas_Object *o, const char *emission, const char *source)
 Delete the current image in entice from the disk.

void _entice_remove_current (void *data, Evas_Object *o, const char *emission, const char *source)
 Remove the current image from entice's filelist.

void _entice_image_next (void *data, Evas_Object *o, const char *emission, const char *source)
 Load the next image in the file list.

void _entice_image_prev (void *data, Evas_Object *o, const char *emission, const char *source)
 Load the previous image in the file list.

void _entice_zoom_in (void *data, Evas_Object *o, const char *emission, const char *source)
 Zoom in on the displayed image.

void _entice_zoom_out (void *data, Evas_Object *o, const char *emission, const char *source)
 Zoom out on the displayed image.

void _entice_zoom_default (void *data, Evas_Object *o, const char *emission, const char *source)
 Zoom with a 1:1 aspect ratio relative to the original image's size.


Detailed Description

Edje Signal handlers for the main Entice Image.

Edc snippets and function explanations.

I want to add new functionality to Entice!

These are callbacks for all the signals Entice responds to If you want to add a new callback for entice,image do the following 1. Add a function to signals_image.[ch] 2. Add a function to entice.[ch] 3. Have your signals_image.c function call your entice.c function Keep the data in entice.c and the request for state changes separate

Function Documentation

void _entice_delete_current void *  data,
Evas_Object *  o,
const char *  emission,
const char *  source
 

Delete the current image in entice from the disk.

Parameters:
data ignored
o ignored
emission ignored
source ignored
There is currently no error checking done, or reporting saying whether or not the deletion was successful. The signal you want your theme to emit to delete the file from disk is "entice,imageDelete"

Example .edc code to do this

program { name, "DeleteFileRequest"; signal, ""; source, ""; action, SIGNAL_EMIT "entice,image,current,delete" ""; }

void _entice_image_next void *  data,
Evas_Object *  o,
const char *  emission,
const char *  source
 

Load the next image in the file list.

Parameters:
data ignored
o ignored
emission ignored
source ignored
Load the next image in the filelist, if there's < 2 elements in the list emitting this signal does nothing. The signal you want your theme to emit to load the next image is "entice,image,next"

Example .edc code to do this

program { name, "ImageNextRequest"; signal, ""; source, ""; action, SIGNAL_EMIT "entice,image,next" ""; }

void _entice_image_prev void *  data,
Evas_Object *  o,
const char *  emission,
const char *  source
 

Load the previous image in the file list.

Parameters:
data ignored
o ignored
emission ignored
source ignored
Load the previous image in the filelist, if there's < 2 elements in the list emitting this signal does nothing. The signal you want your theme to emit to load the previous image is "entice,image,prev"

Example .edc code to do this

program { name, "ImagePreviousRequest"; signal, ""; source, ""; action, SIGNAL_EMIT "entice,image,prev" ""; }

void _entice_remove_current void *  data,
Evas_Object *  o,
const char *  emission,
const char *  source
 

Remove the current image from entice's filelist.

Parameters:
data ignored
o ignored
emission ignored
source ignored
The current image is removed, and the next image in the filelist is loaded. The signal you want your theme to emit to remove the currently displayed image from entice's filelist is "entice,image,remove"

Example .edc code to do this

program { name, "RemoveFileRequest"; signal, ""; source, ""; action, SIGNAL_EMIT "entice,image,remove" ""; }

void _entice_zoom_default void *  data,
Evas_Object *  o,
const char *  emission,
const char *  source
 

Zoom with a 1:1 aspect ratio relative to the original image's size.

Parameters:
data ignored
o ignored
emission ignored
source ignored
Set zoom to be 1:1 relative to the images original size. The signal you want your theme to emit to zoom in on the currently displayed image is "entice,imageZoomDefault"

Example .edc code to do this

program { name, "ImageZoomDefaultRequest"; signal, ""; source, ""; action, SIGNAL_EMIT "entice,image,current,zoom,reset" ""; }

void _entice_zoom_in void *  data,
Evas_Object *  o,
const char *  emission,
const char *  source
 

Zoom in on the displayed image.

Parameters:
data ignored
o ignored
emission ignored
source ignored
Zoom in on the currently displayed image. The signal you want your theme to emit to zoom in on the currently displayed image is "entice,imageZoomIn"

Example .edc code to do this

program { name, "ImageZoomInRequest"; signal, ""; source, ""; action, SIGNAL_EMIT "entice,image,current,zoom,in" ""; }

void _entice_zoom_out void *  data,
Evas_Object *  o,
const char *  emission,
const char *  source
 

Zoom out on the displayed image.

Parameters:
data ignored
o ignored
emission ignored
source ignored
Zoom in on the currently displayed image. The signal you want your theme to emit to zoom in on the currently displayed image is "entice,imageZoomOut"

Example .edc code to do this

program { name, "ImageZoomInRequest"; signal, ""; source, ""; action, SIGNAL_EMIT "entice,image,current,zoom,out" ""; }