2011-12-29 23:20:48 -08:00
|
|
|
/**
|
2016-03-16 14:52:23 -07:00
|
|
|
* @defgroup Elm_Scaling Widget Scaling
|
2012-04-16 18:35:46 -07:00
|
|
|
* @ingroup Elementary
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
|
|
|
* Different widgets can be scaled independently. These functions
|
|
|
|
* allow you to manipulate this scaling on a per-widget basis. The
|
|
|
|
* object and all its children get their scaling factors multiplied
|
|
|
|
* by the scale factor set. This is multiplicative, in that if a
|
|
|
|
* child also has a scale size set it is in turn multiplied by its
|
|
|
|
* parent's scale size. @c 1.0 means “don't scale”, @c 2.0 is
|
|
|
|
* double size, @c 0.5 is half, etc.
|
|
|
|
*
|
|
|
|
* @ref general_functions_example_page "This" example contemplates
|
|
|
|
* some of these functions.
|
|
|
|
*/
|
2011-12-29 22:49:28 -08:00
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* Set the scaling factor for a given Elementary object
|
|
|
|
*
|
|
|
|
* @param obj The Elementary to operate on
|
|
|
|
* @param scale Scale factor (from @c 0.0 up, with @c 1.0 meaning
|
|
|
|
* no scaling)
|
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scaling
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2011-12-30 01:48:46 -08:00
|
|
|
EAPI void elm_object_scale_set(Evas_Object *obj, double scale);
|
2011-12-29 22:49:28 -08:00
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* Get the scaling factor for a given Elementary object
|
|
|
|
*
|
|
|
|
* @param obj The object
|
|
|
|
* @return The scaling factor set by elm_object_scale_set()
|
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scaling
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2011-12-30 01:48:46 -08:00
|
|
|
EAPI double elm_object_scale_get(const Evas_Object *obj);
|