diff options
Diffstat (limited to 'libraries/elementary/src/lib/elm_scale.h')
-rw-r--r-- | libraries/elementary/src/lib/elm_scale.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/libraries/elementary/src/lib/elm_scale.h b/libraries/elementary/src/lib/elm_scale.h new file mode 100644 index 0000000..4332e73 --- /dev/null +++ b/libraries/elementary/src/lib/elm_scale.h | |||
@@ -0,0 +1,36 @@ | |||
1 | /** | ||
2 | * @defgroup Scaling Widget Scaling | ||
3 | * @ingroup Elementary | ||
4 | * | ||
5 | * 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 | * @ref general_functions_example_page "This" example contemplates | ||
14 | * some of these functions. | ||
15 | */ | ||
16 | |||
17 | /** | ||
18 | * Set the scaling factor for a given Elementary object | ||
19 | * | ||
20 | * @param obj The Elementary to operate on | ||
21 | * @param scale 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 | * Get the scaling factor for a given Elementary object | ||
30 | * | ||
31 | * @param obj The object | ||
32 | * @return The scaling factor set by elm_object_scale_set() | ||
33 | * | ||
34 | * @ingroup Scaling | ||
35 | */ | ||
36 | EAPI double elm_object_scale_get(const Evas_Object *obj); | ||