Backport: 7246631
:: Add crtc and output configs to smart_data structure. Add functions to set crtc and output configs.
Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 84130 Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
This commit is contained in:
parent
4f8bb6f04c
commit
f2d9856ccb
|
@ -9,6 +9,12 @@ struct _E_Smart_Data
|
||||||
/* canvas variable */
|
/* canvas variable */
|
||||||
Evas *evas;
|
Evas *evas;
|
||||||
|
|
||||||
|
/* crtc config */
|
||||||
|
E_Randr_Crtc_Config *crtc;
|
||||||
|
|
||||||
|
/* output config */
|
||||||
|
E_Randr_Output_Config *output;
|
||||||
|
|
||||||
/* visibility flag */
|
/* visibility flag */
|
||||||
Eina_Bool visible : 1;
|
Eina_Bool visible : 1;
|
||||||
}
|
}
|
||||||
|
@ -46,6 +52,30 @@ e_smart_monitor_add(Evas *evas)
|
||||||
return evas_object_smart_add(evas, smart);
|
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 */
|
/* local functions */
|
||||||
static void
|
static void
|
||||||
_e_smart_add(Evas_Object *obj)
|
_e_smart_add(Evas_Object *obj)
|
||||||
|
|
Loading…
Reference in New Issue