[Migration] Fixed build error.
[framework/uifw/elementary.git] / src / lib / elm_main.c
index ebdbeb5..522f263 100644 (file)
 
 static Elm_Version _version = { VMAJ, VMIN, VMIC, VREV };
 EAPI Elm_Version *elm_version = &_version;
+/**
+ * @defgroup Main Main
+ * @ingroup Elementary
+ *
+ * This group includes functions of elm_main.c
+ */
+
 
 Eina_Bool
 _elm_dangerous_call_check(const char *call)
@@ -48,6 +55,7 @@ _elm_dangerous_call_check(const char *call)
 
 /**
  * @defgroup Start Getting Started
+ * @ingroup Main
  *
  * To write an Elementary app, you can get started with the following:
  *
@@ -1196,6 +1204,20 @@ elm_object_scale_get(const Evas_Object *obj)
    return elm_widget_scale_get(obj);
 }
 
+EAPI void
+elm_object_text_part_set(Evas_Object *obj, const char *item, const char *label)
+{
+   EINA_SAFETY_ON_NULL_RETURN(obj);
+   elm_widget_text_part_set(obj, item, label);
+}
+
+EAPI const char *
+elm_object_text_part_get(const Evas_Object *obj, const char *item)
+{
+   EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL);
+   return elm_widget_text_part_get(obj, item);
+}
+
 /**
  * Get the global scaling factor
  *
@@ -1281,6 +1303,7 @@ elm_object_disabled_get(const Evas_Object *obj)
 
 /**
  * @defgroup Config Elementary Config
+ * @ingroup Main
  *
  * Elementary configuration is formed by a set options bounded to a
  * given @ref Profile profile, like @ref Theme theme, @ref Fingers
@@ -1329,6 +1352,7 @@ elm_config_reload(void)
 
 /**
  * @defgroup Profile Elementary Profile
+ * @ingroup Main
  *
  * Profiles are pre-set options that affect the whole look-and-feel of
  * Elementary-based applications. There are, for example, profiles
@@ -1461,6 +1485,7 @@ elm_profile_all_set(const char *profile)
 
 /**
  * @defgroup Engine Elementary Engine
+ * @ingroup Main
  *
  * These are functions setting and querying which rendering engine
  * Elementary will use for drawing its windows' pixels.
@@ -1505,6 +1530,7 @@ elm_engine_set(const char *engine)
 
 /**
  * @defgroup Fonts Elementary Fonts
+ * @ingroup Main
  *
  * These are functions dealing with font rendering, selection and the
  * like for Elementary applications. One might fetch which system
@@ -1823,6 +1849,45 @@ elm_finger_size_all_set(Evas_Coord size)
 }
 
 EAPI void
+elm_autocapitalization_allow_all_set(Eina_Bool on)
+{
+#ifdef HAVE_ELEMENTARY_X
+   static Ecore_X_Atom atom = 0;
+   unsigned int on_i = (unsigned int)on;
+
+   if (!atom) atom = ecore_x_atom_get("ENLIGHTENMENT_AUTOCAPITAL_ALLOW");
+   ecore_x_window_prop_card32_set(ecore_x_window_root_first_get(),
+                                  atom, &on_i, 1);
+#endif
+}
+
+EAPI void
+elm_autoperiod_allow_all_set(Eina_Bool on)
+{
+#ifdef HAVE_ELEMENTARY_X
+   static Ecore_X_Atom atom = 0;
+   unsigned int on_i = (unsigned int)on;
+
+   if (!atom) atom = ecore_x_atom_get("ENLIGHTENMENT_AUTOPERIOD_ALLOW");
+   ecore_x_window_prop_card32_set(ecore_x_window_root_first_get(),
+                                  atom, &on_i, 1);
+#endif
+}
+/**
+ * Adjust size of an element for finger usage
+ *
+ * This takes width and height sizes (in pixels) as input and a size multiple
+ * (which is how many fingers you want to place within the area), and adjusts
+ * the size tobe large enough to accommodate finger. On return the w and h
+ * sizes poiner do by these parameters will be modified.
+ *
+ * @param times_w How many fingers should fit horizontally
+ * @param w Pointer to the width size to adjust
+ * @param times_h How many fingers should fit vertically
+ * @param h Pointer to the height size to adjust
+ * @ingroup Fingers
+ */
+EAPI void
 elm_coords_finger_size_adjust(int         times_w,
                               Evas_Coord *w,
                               int         times_h,
@@ -1836,6 +1901,7 @@ elm_coords_finger_size_adjust(int         times_w,
 
 /**
  * @defgroup Caches Caches
+ * @ingroup Main
  *
  * These are functions which let one fine-tune some cache values for
  * Elementary applications, thus allowing for performance adjustments.
@@ -2437,6 +2503,7 @@ elm_focus_highlight_animate_set(Eina_Bool animate)
 
 /**
  * @defgroup Scrolling Scrolling
+ * @ingroup Main
  *
  * These are functions setting how scrollable views in Elementary
  * widgets should behave on user interaction.
@@ -2998,6 +3065,7 @@ elm_scroll_thumbscroll_border_friction_all_set(double friction)
 
 /**
  * @defgroup Scrollhints Scrollhints
+ * @ingroup Main
  *
  * Objects when inside a scroller can scroll, but this may not always be
  * desirable in certain situations. This allows an object to hint to itself
@@ -3319,6 +3387,7 @@ elm_object_event_callback_del(Evas_Object *obj, Elm_Event_Cb func, const void *d
 
 /**
  * @defgroup Debug Debug
+ * @ingroup Main
  */
 
 /**