}
EOLIAN static int
-_elm_layout_freeze(Eo *obj, Elm_Layout_Smart_Data *_pd EINA_UNUSED)
+_elm_layout_efl_canvas_layout_calc_calc_freeze(Eo *obj, Elm_Layout_Smart_Data *sd)
{
- ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, 1);
- ELM_LAYOUT_DATA_GET(obj, sd);
+ ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, 0);
if ((sd->frozen)++ != 0) return sd->frozen;
}
EOLIAN static int
-_elm_layout_thaw(Eo *obj, Elm_Layout_Smart_Data *_pd EINA_UNUSED)
+_elm_layout_efl_canvas_layout_calc_calc_thaw(Eo *obj, Elm_Layout_Smart_Data *sd)
{
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, 0);
- ELM_LAYOUT_DATA_GET(obj, sd);
if (--(sd->frozen) != 0) return sd->frozen;
return efl_ui_cursor_set(efl_part(obj, part), NULL);
}
+EAPI int
+elm_layout_freeze(Evas_Object *obj)
+{
+ return efl_canvas_layout_calc_freeze(obj);
+}
+
+EAPI int
+elm_layout_thaw(Evas_Object *obj)
+{
+ return efl_canvas_layout_calc_thaw(obj);
+}
+
/* End of legacy only */
}
class Elm.Layout (Elm.Widget, Efl.Part, Efl.Container, Efl.File,
- Efl.Ui.View, Efl.Ui.Model.Connect, Efl.Ui.Model.Factory.Connect)
+ Efl.Ui.View, Efl.Ui.Model.Connect, Efl.Ui.Model.Factory.Connect,
+ Efl.Canvas.Layout_Calc)
{
[[Elementary layout class]]
legacy_prefix: elm_layout;
settings loaded \@ref elm_layout_file_set.]]
}
}
- freeze {
- [[Freezes the Elementary layout object.
-
- This function puts all changes on hold. Successive freezes will
- nest, requiring an equal number of thaws.
-
- See also @.thaw.
- ]]
- return: int; [[The frozen state or 0 on error.]]
- }
theme_enable {
[[Enable theme]]
legacy: null;
when the signal was emitted.]]
}
}
- thaw {
- [[Thaws the Elementary object.
-
- This function thaws the given Edje object and the Elementary
- sizing calc.
-
- Note: If sucessives freezes were done, an equal number of
- thaws will be required.
-
- See also @.freeze.
- ]]
- return: int; [[The frozen state or 0 if the object is not frozen or on error.]]
- }
signal_emit {
[[Send a (Edje) signal to a given layout widget's underlying Edje
object.
Efl.File.file { get; set; }
Efl.File.mmap { get; set; }
Efl.Canvas.Group.group_calculate;
+ Efl.Canvas.Layout_Calc.calc_freeze;
+ Efl.Canvas.Layout_Calc.calc_thaw;
Elm.Widget.focus_direction;
Elm.Widget.sub_object_add;
Elm.Widget.theme_apply;
EAPI void elm_layout_mmap_get(Eo *obj, const Eina_File **file, const char **group);
/**
+ * @brief Freezes the Elementary layout object.
+ *
+ * This function puts all changes on hold. Successive freezes will nest,
+ * requiring an equal number of thaws.
+ *
+ * See also @ref elm_layout_thaw.
+ *
+ * @return The frozen state or 0 on error.
+ */
+EAPI int elm_layout_freeze(Evas_Object *obj);
+
+/**
+ * @brief Thaws the Elementary object.
+ *
+ * This function thaws the given Edje object and the Elementary sizing calc.
+ *
+ * @note If sucessives freezes were done, an equal number of thaws will be
+ * required.
+ *
+ * See also @ref elm_layout_freeze.
+ *
+ * @return The frozen state or 0 if the object is not frozen or on error.
+ */
+EAPI int elm_layout_thaw(Evas_Object *obj);
+
+/**
* @brief Append child to layout box part.
*
* Once the object is appended, it will become child of the layout. Its