From fabcb4b5841b82eb0d748711dc8d0b92db94278d Mon Sep 17 00:00:00 2001 From: Gustavo Lima Chaves Date: Mon, 29 Nov 2010 13:14:45 +0000 Subject: [PATCH] Ordering documenting groups. SVN revision: 55056 --- legacy/elementary/src/lib/elm_main.c | 158 +++++++++++++-------------- 1 file changed, 79 insertions(+), 79 deletions(-) diff --git a/legacy/elementary/src/lib/elm_main.c b/legacy/elementary/src/lib/elm_main.c index 45ac07d161..2620ade059 100644 --- a/legacy/elementary/src/lib/elm_main.c +++ b/legacy/elementary/src/lib/elm_main.c @@ -1095,6 +1095,59 @@ elm_object_scale_get(const Evas_Object *obj) return elm_widget_scale_get(obj); } +/** + * Get the global scaling factor + * + * This gets the globally configured scaling factor that is applied to all + * objects. + * + * @return The scaling factor + * @ingroup Scaling + */ +EAPI double +elm_scale_get(void) +{ + return _elm_config->scale; +} + +/** + * Set the global scaling factor + * + * This sets the globally configured scaling factor that is applied to all + * objects. + * + * @param scale The scaling factor to set + * @ingroup Scaling + */ +EAPI void +elm_scale_set(double scale) +{ + if (_elm_config->scale == scale) return; + _elm_config->scale = scale; + _elm_rescale(); +} + +/** + * Set the global scaling factor for all applications on the display + * + * This sets the globally configured scaling factor that is applied to all + * objects for all applications. + * @param scale The scaling factor to set + * @ingroup Scaling + */ +EAPI void +elm_scale_all_set(double scale) +{ +#ifdef HAVE_ELEMENTARY_X + static Ecore_X_Atom atom = 0; + unsigned int scale_i = (unsigned int)(scale * 1000.0); + + if (!atom) atom = ecore_x_atom_get("ENLIGHTENMENT_SCALE"); + ecore_x_window_prop_card32_set(ecore_x_window_root_first_get(), + atom, &scale_i, 1); +#endif +} + /** * @defgroup Styles Styles * @@ -1165,59 +1218,6 @@ elm_object_disabled_get(const Evas_Object *obj) return elm_widget_disabled_get(obj); } -/** - * Get the global scaling factor - * - * This gets the globally configured scaling factor that is applied to all - * objects. - * - * @return The scaling factor - * @ingroup Scaling - */ -EAPI double -elm_scale_get(void) -{ - return _elm_config->scale; -} - -/** - * Set the global scaling factor - * - * This sets the globally configured scaling factor that is applied to all - * objects. - * - * @param scale The scaling factor to set - * @ingroup Scaling - */ -EAPI void -elm_scale_set(double scale) -{ - if (_elm_config->scale == scale) return; - _elm_config->scale = scale; - _elm_rescale(); -} - -/** - * Set the global scaling factor for all applications on the display - * - * This sets the globally configured scaling factor that is applied to all - * objects for all applications. - * @param scale The scaling factor to set - * @ingroup Scaling - */ -EAPI void -elm_scale_all_set(double scale) -{ -#ifdef HAVE_ELEMENTARY_X - static Ecore_X_Atom atom = 0; - unsigned int scale_i = (unsigned int)(scale * 1000.0); - - if (!atom) atom = ecore_x_atom_get("ENLIGHTENMENT_SCALE"); - ecore_x_window_prop_card32_set(ecore_x_window_root_first_get(), - atom, &scale_i, 1); -#endif -} - /** * @defgroup Config Elementary Config * @@ -1779,6 +1779,32 @@ elm_finger_size_all_set(Evas_Coord size) #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, + Evas_Coord *h) +{ + if ((w) && (*w < (_elm_config->finger_size * times_w))) + *w = _elm_config->finger_size * times_w; + if ((h) && (*h < (_elm_config->finger_size * times_h))) + *h = _elm_config->finger_size * times_h; +} + /** * @defgroup Caches Caches * @@ -2088,32 +2114,6 @@ elm_edje_collection_cache_all_set(int size) #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, - Evas_Coord *h) -{ - if ((w) && (*w < (_elm_config->finger_size * times_w))) - *w = _elm_config->finger_size * times_w; - if ((h) && (*h < (_elm_config->finger_size * times_h))) - *h = _elm_config->finger_size * times_h; -} - /** * @defgroup Focus Focus *