Tizen Native API
5.5
|
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. 1.0
means “don't scale”, 2.0
is double size, 0.5
is half, etc.
This example contemplates some of these functions.
Functions | |
double | elm_config_scale_get (void) |
void | elm_config_scale_set (double scale) |
void | elm_object_scale_set (Evas_Object *obj, double scale) |
double | elm_object_scale_get (const Evas_Object *obj) |
Function Documentation
double elm_config_scale_get | ( | void | ) |
Get the global scaling factor
This gets the globally configured scaling factor that is applied to all objects.
- Returns:
- The scaling factor
- Since :
- 2.3.1
void elm_config_scale_set | ( | double | scale | ) |
Set the global scaling factor
This sets the globally configured scaling factor that is applied to all objects.
- Parameters:
-
scale The scaling factor to set
- Since :
- 2.3.1
double elm_object_scale_get | ( | const Evas_Object * | obj | ) |
Get the scaling factor for a given Elementary object
- Parameters:
-
obj The object
- Returns:
- The scaling factor set by elm_object_scale_set()
- Since :
- 2.3.1
void elm_object_scale_set | ( | Evas_Object * | obj, |
double | scale | ||
) |
Set the scaling factor for a given Elementary object
- Parameters:
-
obj The Elementary to operate on scale Scale factor (from 0.0
up, with1.0
meaning no scaling)
- Since :
- 2.3.1
- Examples:
- general_funcs_example.c.