Evas_Object_Image_Fill_Group

Langue: en

Version: 168479 (fedora - 05/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

Image Object Fill Rectangle Functions - Functions that deal with what areas of the image object are to be tiled with the given image.

Functions


EAPI void evas_object_image_border_center_fill_set (Evas_Object *obj, Evas_Bool fill)
Sets if the center part of the given image object (not the border) should be drawn.
EAPI Evas_Bool evas_object_image_border_center_fill_get (const Evas_Object *obj)
Retrieves if the center of the given image object is to be drawn or not.
EAPI void evas_object_image_fill_set (Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h)
Sets the rectangle of the given image object that the image will be drawn to.
EAPI void evas_object_image_fill_get (const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h)
Retrieves the dimensions of the rectangle of the given image object that the image will be drawn to.
EAPI void evas_object_image_fill_spread_set (Evas_Object *obj, int spread)
Sets the tiling mode for the given evas image object's fill.
EAPI int evas_object_image_fill_spread_get (const Evas_Object *obj)
Retrieves the spread (tiling mode) for the given image object's fill.

Detailed Description

Functions that deal with what areas of the image object are to be tiled with the given image.

Function Documentation

EAPI Evas_Bool evas_object_image_border_center_fill_get (const Evas_Object * obj)

Retrieves if the center of the given image object is to be drawn or not.

See evas_object_image_fill_set for more details.

Parameters:

obj The given image object.

Returns:

If the center is to be drawn or not.

EAPI void evas_object_image_border_center_fill_set (Evas_Object * obj, Evas_Bool fill)

Sets if the center part of the given image object (not the border) should be drawn.

When rendering, the image may be scaled to fit the size of the image object. This function sets if the center part of the scaled image is to be drawn or left completely blank. Very useful for frames and decorations.

Parameters:

obj The given image object.
fill Whether the center should be drawn.

EAPI void evas_object_image_fill_get (const Evas_Object * obj, Evas_Coord * x, Evas_Coord * y, Evas_Coord * w, Evas_Coord * h)

Retrieves the dimensions of the rectangle of the given image object that the image will be drawn to.

See evas_object_image_fill_set for more details.

Parameters:

obj The given image object.
x Location to store the X coordinate for the top left corner of the image in, or NULL.
y Location to store the Y coordinate for the top left corner of the image in, or NULL.
w Location to store the width of the image in, or NULL.
h Location to store the height of the image in, or NULL.

EAPI void evas_object_image_fill_set (Evas_Object * obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h)

Sets the rectangle of the given image object that the image will be drawn to.

Note that the image will be tiled around this one rectangle. To have only one copy of the image drawn, x and y must be 0 and w and h need to be the width and height of the image object respectively.

The default values for the fill parameters is x = 0, y = 0, w = 32 and h = 32.

Parameters:

obj The given image object.
x The X coordinate for the top left corner of the image.
y The Y coordinate for the top left corner of the image.
w The width of the image.
h The height of the image.

EAPI int evas_object_image_fill_spread_get (const Evas_Object * obj)

Retrieves the spread (tiling mode) for the given image object's fill.

Parameters:

obj The given evas image object.

Returns:

The current spread mode of the image object.

References EVAS_TEXTURE_REPEAT.

EAPI void evas_object_image_fill_spread_set (Evas_Object * obj, int spread)

Sets the tiling mode for the given evas image object's fill.

Parameters:

obj The given evas image object.
spread One of EVAS_TEXTURE_REFLECT, EVAS_TEXTURE_REPEAT, EVAS_TEXTURE_RESTRICT, or EVAS_TEXTURE_PAD.

Author

Generated automatically by Doxygen for Evas from the source code.