E (RandR): Add function to retrieve monitor's output.
authorChristopher Michael <cp.michael@samsung.com>
Thu, 11 Oct 2012 12:42:20 +0000 (12:42 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Thu, 11 Oct 2012 12:42:20 +0000 (12:42 +0000)
Signed-off-by: Christopher Michael <cp.michael@samsung.com>
SVN revision: 77867

src/modules/conf_randr/e_smart_monitor.c

index 0c7e1e1..247bcc6 100644 (file)
@@ -373,6 +373,19 @@ e_smart_monitor_crtc_get(Evas_Object *obj)
    return crtc;
 }
 
+E_Randr_Output_Info *
+e_smart_monitor_output_get(Evas_Object *obj)
+{
+   E_Smart_Data *sd;
+
+   if (!obj) return NULL;
+
+   if (!(sd = evas_object_smart_data_get(obj)))
+     return NULL;
+
+   return sd->output;
+}
+
 void 
 e_smart_monitor_crtc_geometry_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h)
 {