Add function to return the list of monitors.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81106
This commit is contained in:
Christopher Michael 2012-12-17 09:20:53 +00:00 committed by Christopher Michael
parent 2a4d3cb73e
commit fa0264ef5c
2 changed files with 13 additions and 0 deletions

View File

@ -246,6 +246,18 @@ e_smart_randr_monitor_del(Evas_Object *obj, Evas_Object *mon)
sd->monitors = eina_list_remove(sd->monitors, mon);
}
Eina_List *
e_smart_randr_monitors_get(Evas_Object *obj)
{
E_Smart_Data *sd;
/* try to get the objects smart data */
if (!(sd = evas_object_smart_data_get(obj))) return NULL;
/* return the list of monitors */
return sd->monitors;
}
Eina_Bool
e_smart_randr_changed_get(Evas_Object *obj)
{

View File

@ -8,6 +8,7 @@ void e_smart_randr_current_size_set(Evas_Object *obj, Evas_Coord w, Evas_Coord h
void e_smart_randr_monitors_create(Evas_Object *obj);
void e_smart_randr_monitor_add(Evas_Object *obj, Evas_Object *mon);
void e_smart_randr_monitor_del(Evas_Object *obj, Evas_Object *mon);
Eina_List *e_smart_randr_monitors_get(Evas_Object *obj);
Eina_Bool e_smart_randr_changed_get(Evas_Object *obj);
void e_smart_randr_changes_apply(Evas_Object *obj, Ecore_X_Window root);