summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-13 13:29:25 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-13 13:53:49 +0900
commitd5a31f3f307cb59f92bb24b42def504b3cb5e052 (patch)
tree38c21c157b406f7ce984df69205d56df4f9914de /src/lib/elementary/efl_ui_win.c
parent8da23c4247bc29b5297157ed4064ab7b76100fb6 (diff)
edje/elm: Rename _internal_ to _part_ (EO)
In Edje and Elementary, we have part objects, which are what is returned by the interface efl_part(). Those objects can't be of an opaque type as this doesn't work nicely with strongly typed languages such as C++ or C#. In JS, Lua, C the types are weak and mostly runtime-based so it doesn't matter much. As a consequence, the documentation and the types need to look nice in this EO API. Thus, we remove the abusive term "internal" and explicitly call all those classes "part" something. Eventually we want the types to be declared in the EO file so bindings (C#, C++, ...) can generate the proper access methods, returning the best possible types. Note that right now a few of those part types are used in the legacy API but don't actually need to be exposed externally. This is kind of a mega commit that does all the renaming at once, but it's really just a big sed operation. The power of good IDEs :) Ref T5315 Ref T5306
Diffstat (limited to '')
-rw-r--r--src/lib/elementary/efl_ui_win.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 84b986cad0..3d0a2d6f09 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -27,7 +27,7 @@
27#include "interfaces/efl_common_internal.h" 27#include "interfaces/efl_common_internal.h"
28 28
29#include "elm_part_helper.h" 29#include "elm_part_helper.h"
30#include "efl_ui_win_internal_part.eo.h" 30#include "efl_ui_win_part.eo.h"
31 31
32#define MY_CLASS EFL_UI_WIN_CLASS 32#define MY_CLASS EFL_UI_WIN_CLASS
33#define MY_CLASS_NAME "Efl.Ui.Win" 33#define MY_CLASS_NAME "Efl.Ui.Win"
@@ -6991,7 +6991,7 @@ _efl_ui_win_part_file_get(Eo *obj, Efl_Ui_Win_Data *sd, const char *part, const
6991/* Efl.Part begin */ 6991/* Efl.Part begin */
6992 6992
6993static void 6993static void
6994_efl_ui_win_internal_part_efl_gfx_color_set(Eo *obj, Elm_Part_Data *pd, int r, int g, int b, int a) 6994_efl_ui_win_part_efl_gfx_color_set(Eo *obj, Elm_Part_Data *pd, int r, int g, int b, int a)
6995{ 6995{
6996 if (EVAS_COLOR_SANITIZE(r, g, b, a)) 6996 if (EVAS_COLOR_SANITIZE(r, g, b, a))
6997 ERR("Evas only handles premultiplied colors (0 <= R,G,B <= A <= 255)"); 6997 ERR("Evas only handles premultiplied colors (0 <= R,G,B <= A <= 255)");
@@ -7001,20 +7001,20 @@ _efl_ui_win_internal_part_efl_gfx_color_set(Eo *obj, Elm_Part_Data *pd, int r, i
7001} 7001}
7002 7002
7003static void 7003static void
7004_efl_ui_win_internal_part_efl_gfx_color_get(Eo *obj, Elm_Part_Data *pd, int *r, int *g, int *b, int *a) 7004_efl_ui_win_part_efl_gfx_color_get(Eo *obj, Elm_Part_Data *pd, int *r, int *g, int *b, int *a)
7005{ 7005{
7006 _efl_ui_win_part_color_get(pd->obj, pd->sd, pd->part, r, g, b, a); 7006 _efl_ui_win_part_color_get(pd->obj, pd->sd, pd->part, r, g, b, a);
7007 ELM_PART_RETURN_VOID; 7007 ELM_PART_RETURN_VOID;
7008} 7008}
7009 7009
7010static Eina_Bool 7010static Eina_Bool
7011_efl_ui_win_internal_part_efl_file_file_set(Eo *obj, Elm_Part_Data *pd, const char *file, const char *key) 7011_efl_ui_win_part_efl_file_file_set(Eo *obj, Elm_Part_Data *pd, const char *file, const char *key)
7012{ 7012{
7013 ELM_PART_RETURN_VAL(_efl_ui_win_part_file_set(pd->obj, pd->sd, pd->part, file, key)); 7013 ELM_PART_RETURN_VAL(_efl_ui_win_part_file_set(pd->obj, pd->sd, pd->part, file, key));
7014} 7014}
7015 7015
7016static void 7016static void
7017_efl_ui_win_internal_part_efl_file_file_get(Eo *obj, Elm_Part_Data *pd, const char **file, const char **key) 7017_efl_ui_win_part_efl_file_file_get(Eo *obj, Elm_Part_Data *pd, const char **file, const char **key)
7018{ 7018{
7019 _efl_ui_win_part_file_get(pd->obj, pd->sd, pd->part, file, key); 7019 _efl_ui_win_part_file_get(pd->obj, pd->sd, pd->part, file, key);
7020 ELM_PART_RETURN_VOID; 7020 ELM_PART_RETURN_VOID;
@@ -7043,7 +7043,7 @@ ELM_PART_IMPLEMENT_CONTENT_SET(efl_ui_win, EFL_UI_WIN, Efl_Ui_Win_Data, Elm_Part
7043ELM_PART_IMPLEMENT_CONTENT_GET(efl_ui_win, EFL_UI_WIN, Efl_Ui_Win_Data, Elm_Part_Data) 7043ELM_PART_IMPLEMENT_CONTENT_GET(efl_ui_win, EFL_UI_WIN, Efl_Ui_Win_Data, Elm_Part_Data)
7044ELM_PART_IMPLEMENT_CONTENT_UNSET(efl_ui_win, EFL_UI_WIN, Efl_Ui_Win_Data, Elm_Part_Data) 7044ELM_PART_IMPLEMENT_CONTENT_UNSET(efl_ui_win, EFL_UI_WIN, Efl_Ui_Win_Data, Elm_Part_Data)
7045ELM_PART_CONTENT_DEFAULT_SET(efl_ui_win, "content") 7045ELM_PART_CONTENT_DEFAULT_SET(efl_ui_win, "content")
7046#include "efl_ui_win_internal_part.eo.c" 7046#include "efl_ui_win_part.eo.c"
7047 7047
7048/* Efl.Part end */ 7048/* Efl.Part end */
7049 7049