Porting code to allow isf and ise-default to build 78/2678/1
authorbrianjjones <brian.j.jones@intel.com>
Fri, 11 Jan 2013 21:16:51 +0000 (13:16 -0800)
committerbrianjjones <brian.j.jones@intel.com>
Fri, 11 Jan 2013 21:16:51 +0000 (13:16 -0800)
src/lib/ecore_evas/Ecore_Evas.h
src/lib/ecore_evas/ecore_evas.c

index da85db2..db42d1d 100644 (file)
@@ -662,6 +662,26 @@ EAPI void        ecore_evas_maximized_set(Ecore_Evas *ee, Eina_Bool on);
  */
 EAPI Eina_Bool   ecore_evas_maximized_get(const Ecore_Evas *ee);
 /**
+ * @brief Set Ecore_Evas's window profile list.
+ *
+ * @param ee The Ecore_Evas
+ * @param profiles The profile name list
+ * @param num_profiles The number of profile names
+ *
+ * @warning Support for this depends on the underlying windowing system.
+ * @since 1.7.0
+ */
+EAPI void        ecore_evas_profiles_set(Ecore_Evas *ee, const char **profiles, unsigned int num_profiles);
+/**
+ * @brief Get Ecore_Evas's window profile name.
+ *
+ * @param ee The Ecore_Evas
+ * @return The profile name
+ *
+ * @since 1.7.0
+ */
+EAPI const char *ecore_evas_profile_get(const Ecore_Evas *ee);
+/**
  * @brief Move an Ecore_Evas.
  *
  * @param ee The Ecore_Evas to move
index 7a2ac9a..e480c86 100644 (file)
@@ -1936,6 +1936,31 @@ ecore_evas_maximized_get(const Ecore_Evas *ee)
 }
 
 EAPI void
+ecore_evas_profiles_set(Ecore_Evas *ee, const char **profiles, unsigned int num_profiles)
+{
+   if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
+     {
+        ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS,
+                         "ecore_evas_profiles_set");
+        return;
+     }
+   IFC(ee, fn_profiles_set) (ee, profiles, num_profiles);
+   IFE;
+}
+
+EAPI const char *
+ecore_evas_profile_get(const Ecore_Evas *ee)
+{
+   if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))
+     {
+        ECORE_MAGIC_FAIL(ee, ECORE_MAGIC_EVAS,
+                         "ecore_evas_profile_get");
+        return NULL;
+     }
+   return ee->prop.profile;
+}
+
+EAPI void
 ecore_evas_fullscreen_set(Ecore_Evas *ee, Eina_Bool on)
 {
    if (!ECORE_MAGIC_CHECK(ee, ECORE_MAGIC_EVAS))