EAPI double edje_object_scale_get(const Edje_Object *obj);
/**
+ * @brief Gets a given Edje object's base_scale factor.
+ *
+ * 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
+ *
+ * @return The base_scale factor (the default value is @ 1.0, that means the
+ * edc file is made based on scale 1.0.
+ *
+ * @ingroup Edje_Object
+ */
+EAPI double edje_object_base_scale_get(const Edje_Object *obj);
+
+/**
* @defgroup Edje_Part_Drag Edje Drag
* @ingroup Edje_Object_Part
*
}
}
- @property base_scale {
- get {
- [[Gets a given Edje object's base_scale factor.
-
- 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]]
- }
- values {
- base_scale: double(1.0); [[The base_scale factor (the default value is @ 1.0,
- that means the edc file is made based on scale 1.0.]]
- }
- }
-
// TODO: Legacy only. EO may rely on futures.
preload {
[[Preloads the images on the Edje Object in the background.
Efl.Ui.Base.mirrored { set; get; }
Efl.Ui.Base.language { set; get; }
Efl.Ui.Base.scale { set; get; }
+ Efl.Ui.Base.base_scale { get; }
Efl.File.file { get; set; }
Efl.File.mmap { get; set; }
Efl.Container.content_remove;
}
EOLIAN double
-_edje_object_base_scale_get(Eo *obj EINA_UNUSED, Edje *ed)
+_edje_object_efl_ui_base_base_scale_get(Eo *obj EINA_UNUSED, Edje *ed)
{
- if (!(ed->file)) return 1.0;
+ if (!ed->file) return 1.0;
return TO_DOUBLE(ed->file->base_scale);
}
+EAPI double
+edje_object_base_scale_get(const Eo *obj)
+{
+ return efl_ui_base_scale_get(obj);
+}
+
EOLIAN Eina_Bool
_edje_object_efl_ui_base_mirrored_get(Eo *obj EINA_UNUSED, Edje *ed)
{
meaning individual scaling is not set)]]
}
}
+ @property base_scale {
+ [[The base scale of a layout object (read-only).
+
+ The base scale refers to the scale for which the backing EDC file
+ was designed. By default it is 1.0 which means the EDC file was
+ designed for a scale of 1.0.
+
+ This base scale can be specified in an EDC file as the
+ collections' "base_scale" field.
+
+ If the object is not a layout, this will return 1.0.
+ ]]
+ get {
+ [[Gets a given layout object's base_scale factor.]]
+ }
+ values {
+ base_scale: double(1.0); [[The base_scale factor (the default value
+ is 1.0, meaning that the edc file was
+ designed based on scale 1.0).]]
+ }
+ }
}
}