Tizen Native API
|
This group discusses functions that deal with scaling objects.
- Remarks:
- Edje allows one to build scalable interfaces. Scaling factors, which are set to neutral (
1.0
) values by default (no scaling, actual sizes), are of two types: global and individual. - Scaling affects the values of minimum/maximum part sizes, which are multiplied by it. Font sizes are scaled, too.
Functions | |
void | edje_scale_set (double scale) |
Sets Edje's global scaling factor. | |
double | edje_scale_get (void) |
Gets Edje's global scaling factor. | |
Eina_Bool | edje_object_scale_set (Evas_Object *obj, double scale) |
Sets the scaling factor for a given edje object. | |
double | edje_object_scale_get (const Evas_Object *obj) |
Gets a given Edje object's scaling factor. | |
double | edje_object_base_scale_get (const Evas_Object *obj) |
Gets a given Edje object's base_scale factor. |
Function Documentation
double edje_object_base_scale_get | ( | const Evas_Object * | obj | ) |
Gets a given Edje object's base_scale factor.
This function returns the base_scale factor set on the Edje object. The base_scale can be set in the collection of edc. If it isn't set, the default value is 1.0.
- Since :
- 2.3.1
- Parameters:
-
[in] obj A handle to an edje object
- Returns:
- A base scale factor
double edje_object_scale_get | ( | const Evas_Object * | obj | ) |
Gets a given Edje object's scaling factor.
This function returns the individual
scaling factor set on the obj edje object.
- Since :
- 2.3.1
- Parameters:
-
[in] obj A handle to an edje object
- Returns:
- A scale factor
- See also:
- edje_object_scale_set()
Eina_Bool edje_object_scale_set | ( | Evas_Object * | obj, |
double | scale | ||
) |
Sets the scaling factor for a given edje object.
This function sets an individual scaling factor on the obj edje object. This property (or Edje's global scaling factor, when applicable), affects this object's part sizes. If scale is not zero, then the individual scaling overrides any global scaling set, for the object obj's parts. Put it back to zero to get the effects of global scaling again.
- Since :
- 2.3.1
- Remarks:
- Only parts which, at EDC level, have their
"scale"
property set to1
, are affected by this function. Check the complete syntax reference for EDC files.
- Parameters:
-
[in] obj A handle to an edje object [in] scale The scaling factor (the default value is 0.0
, meaning individual scaling is not set)
- Returns:
- EINA_TRUE if success, otherwise EINA_FALSE
- See also:
- edje_object_scale_get()
- edje_scale_get()
double edje_scale_get | ( | void | ) |
Gets Edje's global scaling factor.
This function returns Edje's global scaling factor.
- Since :
- 2.3.1
- Returns:
- The global scaling factor
- See also:
- edje_scale_set()
void edje_scale_set | ( | double | scale | ) |
Sets Edje's global scaling factor.
- Since :
- 2.3.1
- Remarks:
- Edje's global scaling factor affects all its objects whose individual scaling factors are not altered from the default value (which is zero). If they had it set differently, by edje_object_scale_set(), that factor overrides the global one.
-
Only parts which, at EDC level, have their
"scale"
property set to1
, are affected by this function. Check the complete syntax reference for EDC files.
- Parameters:
-
[in] scale The global scaling factor (the default value is 1.0
)
- See also:
- edje_scale_get()