summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-07-12 14:30:42 -0400
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-07-16 14:48:45 +0200
commit66ba42e74dcc86ac71c46b831d0965790aa7097b (patch)
tree0544a5522f402fe59770a81d8e841c9e62d339bf
parent1b2a5570c3d1b24f8335512e22f8b9103b9741f6 (diff)
efl_ui_widget_part: implement some expected methods
checking part type and part geometry is pretty common, so these base implementations can fill in gaps in existing functionality Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9317
-rw-r--r--src/lib/elementary/efl_ui_widget.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_widget.c b/src/lib/elementary/efl_ui_widget.c
index 91fccee918..2ed0f9b379 100644
--- a/src/lib/elementary/efl_ui_widget.c
+++ b/src/lib/elementary/efl_ui_widget.c
@@ -5554,6 +5554,24 @@ _efl_ui_widget_part_efl_object_destructor(Eo *obj, Elm_Part_Data *pd)
5554 efl_destructor(efl_super(obj, EFL_UI_WIDGET_PART_CLASS)); 5554 efl_destructor(efl_super(obj, EFL_UI_WIDGET_PART_CLASS));
5555} 5555}
5556 5556
5557static Efl_Canvas_Layout_Part_Type
5558_efl_ui_widget_part_efl_canvas_layout_part_type_get(const Eo *obj EINA_UNUSED, Elm_Part_Data *pd)
5559{
5560 Elm_Widget_Smart_Data *sd = efl_data_scope_safe_get(pd->obj, MY_CLASS);
5561 return efl_canvas_layout_part_type_get(efl_part(sd->resize_obj, pd->part));
5562}
5563
5564static Eina_Rect
5565_efl_ui_widget_part_efl_gfx_entity_geometry_get(const Eo *obj EINA_UNUSED, Elm_Part_Data *pd)
5566{
5567 Elm_Widget_Smart_Data *sd = efl_data_scope_safe_get(pd->obj, MY_CLASS);
5568 return efl_gfx_entity_geometry_get(efl_part(sd->resize_obj, pd->part));
5569}
5570
5571#define EFL_UI_WIDGET_PART_EXTRA_OPS \
5572 EFL_OBJECT_OP_FUNC(efl_canvas_layout_part_type_get, _efl_ui_widget_part_efl_canvas_layout_part_type_get), \
5573 EFL_OBJECT_OP_FUNC(efl_gfx_entity_geometry_get, _efl_ui_widget_part_efl_gfx_entity_geometry_get)
5574
5557#include "efl_ui_widget_part.eo.c" 5575#include "efl_ui_widget_part.eo.c"
5558 5576
5559/* Efl.Part end */ 5577/* Efl.Part end */