Tizen Native API
|
Functions | |
void | edje_scale_set (double scale) |
Set Edje's global scaling factor. | |
double | edje_scale_get (void) |
Retrieve Edje's global scaling factor. | |
Eina_Bool | edje_object_scale_set (Edje_Object *obj, double scale) |
Set the scaling factor for a given Edje object. | |
double | edje_object_scale_get (const Edje_Object *obj) |
Get a given Edje object's scaling factor. | |
double | edje_object_base_scale_get (const Edje_Object *obj) |
Get a given Edje object's base_scale factor. |
Functions that deal with scaling objects.
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.
Function Documentation
double edje_object_base_scale_get | ( | const Edje_Object * | obj | ) |
Get a given Edje object's base_scale factor.
- Since :
- 2.3
This function returns the base_scale factor set on the obj Edje object. The base_scale can be set in the collection of edc. If it isn't set, the default value is 1.0
- Parameters:
-
[in] obj The edje object
double edje_object_scale_get | ( | const Edje_Object * | obj | ) |
Get a given Edje object's scaling factor.
- Since :
- 2.3
- Remarks:
- This function returns the
individual
scaling factor set on the obj Edje object.
- See also:
- edje_object_scale_set() for more details
- Parameters:
-
[in] obj The edje object
Eina_Bool edje_object_scale_set | ( | Edje_Object * | obj, |
double | scale | ||
) |
Set the scaling factor for a given Edje object.
- Since :
- 2.3
- Remarks:
- This function sets an individual scaling factor on the obj Edje object. This property (or Edje's global scaling factor, when applicable), will affect this object's part sizes. If
scale
is not zero, than the individual scaling will override any global scaling set, for the objectobj's
parts. Put it back to zero to get the effects of the global scaling again.
- Warning:
- Only parts which, at EDC level, had the
scale
property set to1
, will be affected by this function. Check the complete edcref syntax reference for EDC files.
- See also:
- edje_object_scale_get()
- edje_scale_get() for more details
- Parameters:
-
[in] obj The edje object [in] scale The scaling factor (the default value is 0.0
, meaning individual scaling not set)
double edje_scale_get | ( | void | ) |
Retrieve Edje's global scaling factor.
- Since :
- 2.3
- Returns:
- The global scaling factor
- Remarks:
- This function returns Edje's global scaling factor.
- See also:
- edje_scale_set() for more details
void edje_scale_set | ( | double | scale | ) |
Set Edje's global scaling factor.
- Since :
- 2.3
- Parameters:
-
[in] scale The global scaling factor (the default value is 1.0
)
- Remarks:
- Edje's global scaling factor will affect all its objects which hadn't their individual scaling factors altered from the default value (which is zero). If they had it set differently, by edje_object_scale_set(), that factor will override the global one.
- Warning:
- Only parts which, at EDC level, had the
"scale"
property set to1
, will be affected by this function. Check the complete syntax reference for EDC files.
- See also:
- edje_scale_get().