lib/edje/edje_object.eo \
lib/edje/efl_canvas_layout_part.eo \
lib/edje/efl_canvas_layout_part_box.eo \
- lib/edje/efl_canvas_layout_part_table.eo \
+ lib/edje/efl_canvas_layout_part_external.eo \
lib/edje/efl_canvas_layout_part_swallow.eo \
- lib/edje/efl_canvas_layout_external.eo \
+ lib/edje/efl_canvas_layout_part_table.eo \
lib/edje/efl_canvas_layout_part_text.eo \
lib/edje/edje_edit.eo
#include "efl_canvas_layout_part_table.eo.h"
#include "efl_canvas_layout_part_swallow.eo.h"
#include "efl_canvas_layout_part_text.eo.h"
-#include "efl_canvas_layout_external.eo.h"
+#include "efl_canvas_layout_part_external.eo.h"
#include "edje_private.h"
#include "edje_part_helper.h"
-#define MY_CLASS EFL_CANVAS_LAYOUT_EXTERNAL_CLASS
+#define MY_CLASS EFL_CANVAS_LAYOUT_PART_EXTERNAL_CLASS
static void _external_compose(Eo *obj, Edje *ed, const char *part);
}
EOLIAN static Efl_Gfx *
-_efl_canvas_layout_external_efl_container_content_get(Eo *obj, void *_pd EINA_UNUSED)
+_efl_canvas_layout_part_external_efl_container_content_get(Eo *obj, void *_pd EINA_UNUSED)
{
PROXY_DATA_GET(obj, pd);
RETURN_VAL(_edje_object_part_external_object_get(pd->ed, pd->part));
}
-#include "efl_canvas_layout_external.eo.c"
+#include "efl_canvas_layout_part_external.eo.c"
}
static Eina_Rbtree_Direction
-_edje_box_layout_external_node_cmp(const Eina_Rbtree *left, const Eina_Rbtree *right, EINA_UNUSED void *data)
+_edje_box_layout_part_external_node_cmp(const Eina_Rbtree *left, const Eina_Rbtree *right, EINA_UNUSED void *data)
{
Edje_Box_Layout *l = (Edje_Box_Layout *)left;
Edje_Box_Layout *r = (Edje_Box_Layout *)right;
}
static int
-_edje_box_layout_external_find_cmp(const Eina_Rbtree *node, const void *key, EINA_UNUSED int length, EINA_UNUSED void *data)
+_edje_box_layout_part_external_find_cmp(const Eina_Rbtree *node, const void *key, EINA_UNUSED int length, EINA_UNUSED void *data)
{
Edje_Box_Layout *l = (Edje_Box_Layout *)node;
return strcmp(key, l->name);
}
static Edje_Box_Layout *
-_edje_box_layout_external_find(const char *name)
+_edje_box_layout_part_external_find(const char *name)
{
return (Edje_Box_Layout *)eina_rbtree_inline_lookup
- (_edje_box_layout_registry, name, 0, _edje_box_layout_external_find_cmp,
+ (_edje_box_layout_registry, name, 0, _edje_box_layout_part_external_find_cmp,
NULL);
}
return EINA_TRUE;
}
- l = _edje_box_layout_external_find(name);
+ l = _edje_box_layout_part_external_find(name);
if (!l) return EINA_FALSE;
*cb = l->func;
}
static void
-_edje_box_layout_external_free(Eina_Rbtree *node, EINA_UNUSED void *data)
+_edje_box_layout_part_external_free(Eina_Rbtree *node, EINA_UNUSED void *data)
{
Edje_Box_Layout *l = (Edje_Box_Layout *)node;
}
static Edje_Box_Layout *
-_edje_box_layout_external_new(const char *name, Evas_Object_Box_Layout func, void *(*layout_data_get)(void *), void (*layout_data_free)(void *), void (*free_data)(void *), void *data)
+_edje_box_layout_part_external_new(const char *name, Evas_Object_Box_Layout func, void *(*layout_data_get)(void *), void (*layout_data_free)(void *), void (*free_data)(void *), void *data)
{
Edje_Box_Layout *l;
size_t name_len;
return;
}
- l = _edje_box_layout_external_find(name);
+ l = _edje_box_layout_part_external_find(name);
if (!l)
{
if (!func)
return;
}
- l = _edje_box_layout_external_new
+ l = _edje_box_layout_part_external_new
(name, func, layout_data_get, layout_data_free, free_data, data);
if (!l)
return;
_edje_box_layout_registry = eina_rbtree_inline_insert
(_edje_box_layout_registry, (Eina_Rbtree *)l,
- _edje_box_layout_external_node_cmp, NULL);
+ _edje_box_layout_part_external_node_cmp, NULL);
}
else
{
_edje_box_layout_registry = eina_rbtree_inline_remove
(_edje_box_layout_registry, (Eina_Rbtree *)l,
- _edje_box_layout_external_node_cmp, NULL);
- _edje_box_layout_external_free((Eina_Rbtree *)l, NULL);
+ _edje_box_layout_part_external_node_cmp, NULL);
+ _edje_box_layout_part_external_free((Eina_Rbtree *)l, NULL);
}
}
}
return;
eina_rbtree_delete
- (_edje_box_layout_registry, _edje_box_layout_external_free, NULL);
+ (_edje_box_layout_registry, _edje_box_layout_part_external_free, NULL);
_edje_box_layout_registry = NULL;
}
+++ /dev/null
-import edje_types;
-
-class Efl.Canvas.Layout.External (Efl.Canvas.Layout.Part, Efl.Container,
- Efl.Canvas.Object)
-{
- [[Class representing an external part in Edje layouts.
-
- An object of this type is an Efl.Part object, which means its lifecycle
- is limited to one and only one function call.
-
- An external part contains one object, which can be retrieved with
- @Efl.Container.content.get(). Do not delete this object. Just like for
- other parts, Edje is in charge of the visibility, geometry, clip, etc...
-
- Common usage is then, in pseudo-C:
- Eo *widget = efl_content_get(efl_part(layout, "extpartname"));
- efl_text_set(widget, "hello");
-
- Note that as a shortcut the widget's functions can be called directly on
- this part object. In pseudo-C++:
- dynamic_cast<efl::Text>(layout.part("title")).text_set("hello");
- Or in pseudo-C:
- efl_text_set(efl_part(layout, "title"), "hello");
- Or in pseudo-script:
- layout["title"].text = "hello";
-
- @since 1.20
- ]]
- data: null;
- implements {
- Efl.Container.content { get; }
- }
-}
--- /dev/null
+import edje_types;
+
+class Efl.Canvas.Layout.Part_External (Efl.Canvas.Layout.Part, Efl.Container,
+ Efl.Canvas.Object)
+{
+ [[Class representing an external part in Edje layouts.
+
+ An object of this type is an Efl.Part object, which means its lifecycle
+ is limited to one and only one function call.
+
+ An external part contains one object, which can be retrieved with
+ @Efl.Container.content.get(). Do not delete this object. Just like for
+ other parts, Edje is in charge of the visibility, geometry, clip, etc...
+
+ Common usage is then, in pseudo-C:
+ Eo *widget = efl_content_get(efl_part(layout, "extpartname"));
+ efl_text_set(widget, "hello");
+
+ Note that as a shortcut the widget's functions can be called directly on
+ this part object. In pseudo-C++:
+ dynamic_cast<efl::Text>(layout.part("title")).text_set("hello");
+ Or in pseudo-C:
+ efl_text_set(efl_part(layout, "title"), "hello");
+ Or in pseudo-script:
+ layout["title"].text = "hello";
+
+ @since 1.20
+ ]]
+ data: null;
+ implements {
+ Efl.Container.content { get; }
+ }
+}