diff --git a/src/modules/conf_randr/e_smart_monitor.c b/src/modules/conf_randr/e_smart_monitor.c index 1b59d8781..59e1fca0f 100644 --- a/src/modules/conf_randr/e_smart_monitor.c +++ b/src/modules/conf_randr/e_smart_monitor.c @@ -9,6 +9,12 @@ struct _E_Smart_Data /* canvas variable */ Evas *evas; + /* crtc config */ + E_Randr_Crtc_Config *crtc; + + /* output config */ + E_Randr_Output_Config *output; + /* visibility flag */ Eina_Bool visible : 1; } @@ -46,6 +52,30 @@ e_smart_monitor_add(Evas *evas) return evas_object_smart_add(evas, smart); } +void +e_smart_monitor_crtc_set(Evas_Object *obj, E_Randr_Crtc_Config *crtc) +{ + E_Smart_Data *sd; + + /* try to get the objects smart data */ + if (!(sd = evas_object_smart_data_get(obj))) return; + + /* set the crtc config */ + sd->crtc = crtc; +} + +void +e_smart_monitor_output_set(Evas_Object *obj, E_Randr_Output_Config *output) +{ + E_Smart_Data *sd; + + /* try to get the objects smart data */ + if (!(sd = evas_object_smart_data_get(obj))) return; + + /* set the output config */ + sd->output = output; +} + /* local functions */ static void _e_smart_add(Evas_Object *obj)