lib/ewl_image.h File Reference
#include "ewl_view.h"
Include dependency graph for ewl_image.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | Ewl_Image |
Inherits from Ewl_Widget and extends to provide an image widget. More... | |
struct | Ewl_Image_Thumbnail |
Inherits from Ewl_Image and extends to provide reference to original image. More... | |
Defines | |
#define | EWL_IMAGE(image) ((Ewl_Image *) image) |
#define | EWL_IMAGE_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_IMAGE_TYPE)) |
#define | EWL_IMAGE_THUMBNAIL(image) ((Ewl_Image_Thumbnail *) image) |
#define | EWL_IMAGE_THUMBNAIL_IS(w) |
#define | EWL_IMAGE_THUMBNAIL_TYPE "image_thumbnail" |
#define | EWL_IMAGE_TYPE "image" |
Typedefs | |
typedef Ewl_Image | Ewl_Image |
typedef Ewl_Image_Thumbnail | Ewl_Image_Thumbnail |
Functions | |
void | ewl_image_cb_configure (Ewl_Widget *w, void *ev_data, void *user_data) |
void | ewl_image_cb_destroy (Ewl_Widget *w, void *ev_data, void *user_data) |
void | ewl_image_cb_obscure (Ewl_Widget *w, void *ev_data, void *user_data) |
void | ewl_image_cb_reveal (Ewl_Widget *w, void *ev_data, void *user_data) |
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. | |
void * | ewl_image_data_get (Ewl_Image *i, int *w, int *h, Ewl_Image_Data_Mode mode) |
Retrieve the data of the image widget. | |
unsigned int | ewl_image_data_set (Ewl_Image *i, void *data, int w, int h, Ewl_Colorspace cs) |
Set the data of the image. | |
void | ewl_image_data_update_add (Ewl_Image *i, int x, int y, int w, int h) |
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 *im) |
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. |