lib/ewl_image.c File Reference
#include "ewl_base.h"
#include "ewl_image.h"
#include "ewl_private.h"
#include "ewl_macros.h"
#include "ewl_debug.h"
#include <Evas.h>
#include <Edje.h>

Functions | |
| void | ewl_image_cb_configure (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_image_cb_destroy (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_image_cb_mouse_down (Ewl_Widget *w, void *ev_data, void *user_data __UNUSED__) |
| void | ewl_image_cb_mouse_move (Ewl_Widget *w, void *ev_data, void *user_data __UNUSED__) |
| void | ewl_image_cb_mouse_up (Ewl_Widget *w, void *ev_data, void *user_data __UNUSED__) |
| void | ewl_image_cb_obscure (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_image_cb_reparent (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| void | ewl_image_cb_reveal (Ewl_Widget *w, void *ev_data __UNUSED__, void *user_data __UNUSED__) |
| unsigned int | ewl_image_constrain_get (Ewl_Image *i) |
| Get the current constrain value set on the image. | |
| void | ewl_image_constrain_set (Ewl_Image *i, unsigned int size) |
| Set a size which, if the image is bigger than, scale proportionally. | |
| const char * | ewl_image_file_key_get (Ewl_Image *i) |
| void | ewl_image_file_key_set (Ewl_Image *i, const char *key) |
| Sets the key to use for the image. | |
| const char * | ewl_image_file_path_get (Ewl_Image *i) |
| get the filename this image uses | |
| void | ewl_image_file_path_set (Ewl_Image *i, const char *path) |
| Sets the path to the image file. | |
| void | ewl_image_file_set (Ewl_Image *i, const char *im, const char *key) |
| Change the image file displayed by an image widget. | |
| void | ewl_image_flip (Ewl_Image *img, Ewl_Orientation orient) |
| Flips the given image in the given direction. | |
| int | ewl_image_init (Ewl_Image *i) |
| Initialize an image widget to default values and callbacks. | |
| Ewl_Widget * | ewl_image_new (void) |
| Load an image widget with specified image contents. | |
| char | ewl_image_proportional_get (Ewl_Image *i) |
| Get boolean to determine how to scale. | |
| void | ewl_image_proportional_set (Ewl_Image *i, char p) |
| Set boolean to determine how to scale. | |
| void | ewl_image_rotate (Ewl_Image *i, Ewl_Rotate rotate) |
| Rotates the given image by the given rotate value. | |
| void | ewl_image_scale_get (Ewl_Image *i, double *wp, double *hp) |
| Retrieve the percentage an image is scaled. | |
| void | ewl_image_scale_set (Ewl_Image *i, double wp, double hp) |
| Scale image dimensions by a percentage. | |
| void | ewl_image_size_get (Ewl_Image *i, int *w, int *h) |
| Scale image dimensions to a specific size. | |
| void | ewl_image_size_set (Ewl_Image *i, int w, int h) |
| Scale image dimensions to a specific size. | |
| Ewl_Widget * | ewl_image_thumbnail_get (Ewl_Image *i) |
| Create a widget representing a thumbnailed version of the image. | |
| int | ewl_image_thumbnail_init (Ewl_Image_Thumbnail *image) |
| Initialize an Ewl_Image_Thumbnail to default values. | |
| Ewl_Widget * | ewl_image_thumbnail_new (void) |
| This will create and initialize a new Ewl_Image_Thumbnail widget. | |
| void | ewl_image_thumbnail_request (Ewl_Image_Thumbnail *thumb, const char *path) |
| This will request the generation of a thumbnail for the image given by path. | |
| Ewl_Thumbnail_Size | ewl_image_thumbnail_size_get (Ewl_Image_Thumbnail *thumb) |
| This will return the current size of thumbnails. | |
| void | ewl_image_thumbnail_size_set (Ewl_Image_Thumbnail *thumb, Ewl_Thumbnail_Size s) |
| This will set the size of the thumbnails. | |
| 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. | |
| Ewl_View * | ewl_image_view_get (void) |
| Creates and returns a view to be used by Ewl_Image widgets. | |
Function Documentation
| void ewl_image_cb_configure | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References Ewl_Image::cs, CURRENT_H, CURRENT_W, CURRENT_X, CURRENT_Y, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, EWL_IMAGE, EWL_IMAGE_TYPE_EDJE, EWL_WIDGET_TYPE, Ewl_Image::h, Ewl_Image::image, Ewl_Image::oh, Ewl_Image::ow, Ewl_Image::proportional, Ewl_Image::set, Ewl_Image::tile, Ewl_Image::type, Ewl_Image::w, Ewl_Image::x, and Ewl_Image::y.
Referenced by ewl_image_init().
| void ewl_image_cb_destroy | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_IMAGE, EWL_IMAGE_TYPE, IF_FREE, Ewl_Image::key, and Ewl_Image::path.
Referenced by ewl_image_init().
| void ewl_image_cb_mouse_down | ( | Ewl_Widget * | w, | |
| void * | ev_data, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References Ewl_Event_Mouse_Down::button, Ewl_Embed::canvas, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_embed_widget_find(), EWL_IMAGE, EWL_IMAGE_TYPE, EWL_IMAGE_TYPE_EDJE, and Ewl_Image::type.
Referenced by ewl_image_init().
| void ewl_image_cb_mouse_move | ( | Ewl_Widget * | w, | |
| void * | ev_data, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References Ewl_Embed::canvas, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_embed_widget_find(), EWL_IMAGE, EWL_IMAGE_TYPE, EWL_IMAGE_TYPE_EDJE, Ewl_Image::type, Ewl_Event_Mouse::x, and Ewl_Event_Mouse::y.
Referenced by ewl_image_init().
| void ewl_image_cb_mouse_up | ( | Ewl_Widget * | w, | |
| void * | ev_data, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References Ewl_Event_Mouse_Up::button, Ewl_Embed::canvas, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_embed_widget_find(), EWL_IMAGE, EWL_IMAGE_TYPE, EWL_IMAGE_TYPE_EDJE, and Ewl_Image::type.
Referenced by ewl_image_init().
| void ewl_image_cb_obscure | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, ewl_embed_object_cache(), ewl_embed_widget_find(), EWL_IMAGE, EWL_IMAGE_TYPE, and Ewl_Image::image.
Referenced by ewl_image_init().
| void ewl_image_cb_reparent | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, EWL_IMAGE, EWL_IMAGE_TYPE, and Ewl_Image::image.
| void ewl_image_cb_reveal | ( | Ewl_Widget * | w, | |
| void *ev_data | __UNUSED__, | |||
| void *user_data | __UNUSED__ | |||
| ) |
References Ewl_Image::ah, Ewl_Image::aw, Ewl_Embed::canvas, Ewl_Image::cs, DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, ewl_embed_object_request(), ewl_embed_widget_find(), EWL_IMAGE, EWL_IMAGE_TYPE, EWL_IMAGE_TYPE_EDJE, EWL_OBJECT, ewl_object_preferred_inner_h_set(), ewl_object_preferred_inner_w_set(), Ewl_Image::image, Ewl_Image::key, Ewl_Image::oh, Ewl_Image::ow, Ewl_Image::path, Ewl_Image::proportional, Ewl_Image::sh, Ewl_Widget::smart_object, Ewl_Image::sw, and Ewl_Image::type.
Referenced by ewl_image_init().