Bg

The bg object is used for setting a solid background to a window or packing into any container object. More...


Functions

EAPI Evas_Object * elm_bg_add (Evas_Object *parent)
 Add a new background to the parent.
EAPI void elm_bg_file_set (Evas_Object *obj, const char *file, const char *group)
 Set the file (image or edje) used for the background.


Detailed Description

The bg object is used for setting a solid background to a window or packing into any container object.

Function Documentation

EAPI Evas_Object* elm_bg_add ( Evas_Object *  parent  ) 

Add a new background to the parent.

Parameters:
parent The parent object
Returns:
The new object or NULL if it cannot be created

EAPI void elm_bg_file_set ( Evas_Object *  obj,
const char *  file,
const char *  group 
)

Set the file (image or edje) used for the background.

Parameters:
obj The bg object
file The file path
group Optional key (group in Edje) within the file
This sets the image file used in the background object. The image (or edje) will be stretched (retaining aspect if its an image file) to completely fill the bg object. This may mean some parts arte not visible.