tizen 2.3 release
[framework/uifw/elementary.git] / src / lib / elm_scale.h
1 /**
2  * @defgroup Scaling Widget Scaling
3  * @ingroup elm_infra_group
4  *
5  * @brief Different widgets can be scaled independently. These functions
6  *        allow you to manipulate this scaling on a per-widget basis. The
7  *        object and all its children get their scaling factors multiplied
8  *        by the scale factor set. This is multiplicative, in that if a
9  *        child also has a scale size set, it is in turn multiplied by its
10  *        parent's scale size. @c 1.0 means “don't scale”, @c 2.0 is
11  *        double size, @c 0.5 is half, etc.
12  *
13  */
14
15 /**
16  * @brief Sets the scaling factor for a given Elementary object.
17  *
18  * @since_tizen 2.3
19  *
20  * @param[in] obj The Elementary to operate on
21  * @param[in] scale The scale factor (from @c 0.0 up, with @c 1.0 meaning
22  *              no scaling)
23  *
24  * @ingroup Scaling
25  */
26 EAPI void   elm_object_scale_set(Evas_Object *obj, double scale);
27
28 /**
29  * @brief Gets the scaling factor for a given Elementary object.
30  *
31  * @since_tizen 2.3
32  *
33  * @param[in] obj The object
34  * @return The scaling factor set by elm_object_scale_set()
35  *
36  * @ingroup Scaling
37  */
38 EAPI double elm_object_scale_get(const Evas_Object *obj);