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)
/**
* @defgroup Start Getting Started
+ * @ingroup Main
*
* To write an Elementary app, you can get started with the following:
*
eet_init();
ecore_init();
+
+#ifdef HAVE_ELEMENTARY_EMAP
+ emap_init();
+#endif
ecore_app_args_set(argc, (const char **)argv);
memset(_elm_policies, 0, sizeof(_elm_policies));
_elm_unneed_e_dbus();
_elm_unneed_ethumb();
ecore_file_shutdown();
+
+#ifdef HAVE_ELEMENTARY_EMAP
+ emap_shutdown();
+#endif
+
ecore_shutdown();
eet_shutdown();
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
*
#endif
}
-/**
- * Set the style
- *
- * This sets the name of the style
- * @param obj The object
- * @param style The style name to use
- * @ingroup Styles
- */
EAPI void
elm_object_style_set(Evas_Object *obj,
const char *style)
elm_widget_style_set(obj, style);
}
-/**
- * Get the style
- *
- * This gets the style being used for that widget. Note that the string
- * pointer is only valid as longas the object is valid and the style doesn't
- * change.
- *
- * @param obj The object
- * @return The style name
- * @ingroup Styles
- */
EAPI const char *
elm_object_style_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
/**
* @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
/**
* @defgroup Engine Elementary Engine
+ * @ingroup Main
*
* These are functions setting and querying which rendering engine
* Elementary will use for drawing its windows' pixels.
/**
* @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
}
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,
/**
* @defgroup Caches Caches
+ * @ingroup Main
*
* These are functions which let one fine-tune some cache values for
* Elementary applications, thus allowing for performance adjustments.
/**
* @defgroup Scrolling Scrolling
+ * @ingroup Main
*
* These are functions setting how scrollable views in Elementary
* widgets should behave on user interaction.
/**
* @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
/**
* @defgroup Debug Debug
+ * @ingroup Main
*/
/**