forked from enlightenment/efl
efl_ui_layout: implement remaining efl.layout.calc methods
this is just proxying the method calls onto the inner edje object ref T5719 Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de> Differential Revision: https://phab.enlightenment.org/D7740
This commit is contained in:
parent
a44399fc5d
commit
70827b4d7e
|
@ -6,6 +6,7 @@
|
|||
#define ELM_LAYOUT_PROTECTED
|
||||
#define EFL_UI_WIDGET_PART_BG_PROTECTED
|
||||
#define EFL_PART_PROTECTED
|
||||
#define EFL_LAYOUT_CALC_PROTECTED
|
||||
|
||||
#include <Elementary.h>
|
||||
|
||||
|
@ -1758,6 +1759,41 @@ _efl_ui_layout_efl_layout_calc_calc_thaw(Eo *obj, Efl_Ui_Layout_Data *sd)
|
|||
return 0;
|
||||
}
|
||||
|
||||
EOLIAN void
|
||||
_efl_ui_layout_efl_layout_calc_calc_auto_update_hints_set(Eo *obj EINA_UNUSED, Efl_Ui_Layout_Data *sd EINA_UNUSED, Eina_Bool update)
|
||||
{
|
||||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
||||
efl_layout_calc_auto_update_hints_set(wd->resize_obj, update);
|
||||
}
|
||||
|
||||
EOLIAN Eina_Bool
|
||||
_efl_ui_layout_efl_layout_calc_calc_auto_update_hints_get(const Eo *obj EINA_UNUSED, Efl_Ui_Layout_Data *sd EINA_UNUSED)
|
||||
{
|
||||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EINA_FALSE);
|
||||
return efl_layout_calc_auto_update_hints_get(wd->resize_obj);
|
||||
}
|
||||
|
||||
EOLIAN Eina_Size2D
|
||||
_efl_ui_layout_efl_layout_calc_calc_size_min(Eo *obj EINA_UNUSED, Efl_Ui_Layout_Data *sd EINA_UNUSED, Eina_Size2D restricted)
|
||||
{
|
||||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, restricted);
|
||||
return efl_layout_calc_size_min(wd->obj, restricted);
|
||||
}
|
||||
|
||||
EOLIAN Eina_Rect
|
||||
_efl_ui_layout_efl_layout_calc_calc_parts_extends(Eo *obj EINA_UNUSED, Efl_Ui_Layout_Data *sd EINA_UNUSED)
|
||||
{
|
||||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, (Eina_Rect){.rect = {0, 0, 0, 0}});
|
||||
return efl_layout_calc_parts_extends(wd->obj);
|
||||
}
|
||||
|
||||
EOLIAN void
|
||||
_efl_ui_layout_efl_layout_calc_calc_force(Eo *obj EINA_UNUSED, Efl_Ui_Layout_Data *sd EINA_UNUSED)
|
||||
{
|
||||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
||||
efl_layout_calc_force(wd->obj);
|
||||
}
|
||||
|
||||
static Eina_Bool
|
||||
_efl_ui_layout_part_cursor_set(Efl_Ui_Layout_Data *sd, const char *part_name, const char *cursor)
|
||||
{
|
||||
|
|
|
@ -53,6 +53,10 @@ class Efl.Ui.Layout extends Efl.Ui.Widget implements Efl.Container, Efl.File,
|
|||
Efl.Canvas.Group.group_calculate;
|
||||
Efl.Layout.Calc.calc_freeze;
|
||||
Efl.Layout.Calc.calc_thaw;
|
||||
Efl.Layout.Calc.calc_auto_update_hints { get; set; }
|
||||
Efl.Layout.Calc.calc_size_min;
|
||||
Efl.Layout.Calc.calc_parts_extends;
|
||||
Efl.Layout.Calc.calc_force;
|
||||
Efl.Layout.Signal.signal_callback_add;
|
||||
Efl.Layout.Signal.signal_callback_del;
|
||||
Efl.Layout.Signal.signal_emit;
|
||||
|
|
Loading…
Reference in New Issue