Image Object Border Functions

Functions that adjust the unscaled image border of image objects. More...

Functions

EAPI void evas_object_image_border_set (Evas_Object *obj, int l, int r, int t, int b)
 Sets how much of each border of the given evas image object is not to be scaled.
EAPI void evas_object_image_border_get (Evas_Object *obj, int *l, int *r, int *t, int *b)
 Retrieves how much of each border of the given evas image is not to be scaled.
EAPI void evas_object_image_border_center_fill_set (Evas_Object *obj, Evas_Bool fill)
 Sets if the center part of an image (not the border) should be drawn.
EAPI Evas_Bool evas_object_image_border_center_fill_get (Evas_Object *obj)
 Retrieves If the center of an image object is to be filled or not.

Detailed Description

Functions that adjust the unscaled image border of image objects.


Function Documentation

EAPI Evas_Bool evas_object_image_border_center_fill_get ( Evas_Object obj  ) 

Retrieves If the center of an image object is to be filled or not.

See evas_object_image_border_set for more information.

Parameters:
obj The given evas image object.
Returns:
If the center is to be filled or not.

EAPI void evas_object_image_border_center_fill_set ( Evas_Object obj,
Evas_Bool  fill 
)

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

See evas_object_image_border_set for more information.

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 evas image object.
fill If the center of the image object should be drawn/filled

EAPI void evas_object_image_border_get ( Evas_Object obj,
int *  l,
int *  r,
int *  t,
int *  b 
)

Retrieves how much of each border of the given evas image is not to be scaled.

See evas_object_image_border_set for more information.

If any of l, r, t or b are NULL, then the NULL parameter is ignored.

Parameters:
obj The given evas image object.
l Pointer to an integer to store the left border width in.
r Pointer to an integer to store the right border width in.
t Pointer to an integer to store the top border width in.
b Pointer to an integer to store the bottom border width in.

EAPI void evas_object_image_border_set ( Evas_Object obj,
int  l,
int  r,
int  t,
int  b 
)

Sets how much of each border of the given evas image object is not to be scaled.

When rendering, the image may be scaled to fit the size of the image object. This function sets what area around the border of the image is not to be scaled. This sort of function is useful for widget theming, where, for example, buttons may be of varying sizes, but the border size must remain constant.

The units used for l, r, t and b are output units.

Parameters:
obj The given evas image object.
l Distance of the left border that is not to be stretched.
r Distance of the right border that is not to be stretched.
t Distance of the top border that is not to be stretched.
b Distance of the bottom border that is not to be stretched.