e_view_text: move the position of code 52/324052/1
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 12 May 2025 10:36:24 +0000 (19:36 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Mon, 12 May 2025 12:16:16 +0000 (21:16 +0900)
Change-Id: Id69d2b7cf74990a5afed2b533ed2c77119e65038

src/bin/core/e_view_text.c
src/include/e_view_text.h

index 2f108aa52e4e72d501317538f32e058806d2b78f..7b0e19dafb216e1230cfd58a59970c7581443582 100644 (file)
@@ -107,42 +107,6 @@ e_view_text_create(E_View_Tree *parent, int width, int height, const int color[4
    return text;
 }
 
-E_API E_View_Text *
-e_view_textblock_create(E_View_Tree *parent, char *style)
-{
-   E_Canvas *canvas;
-   E_View_Text *text;
-   Evas_Object *eo;
-   Evas_Textblock_Style *st;
-
-   assert(parent != NULL);
-
-   text = malloc(sizeof(*text));
-   if (!text)
-     return NULL;
-
-   canvas = e_canvas_get(&parent->view);
-   eo = evas_object_textblock_add(canvas->evas);
-   if (!eo)
-     {
-        free(text);
-        return NULL;
-     }
-
-   e_view_init(&text->view, E_VIEW_TYPE_TEXT, (E_View_Impl*)&view_text_impl, eo, parent);
-
-   st = evas_textblock_style_new();
-   evas_textblock_style_set(st, style);
-   evas_object_textblock_style_set(eo, st);
-   evas_textblock_style_free(st);
-
-   wl_signal_init(&text->events.resize);
-
-   evas_object_event_callback_add(text->view.eo, EVAS_CALLBACK_RESIZE, _view_text_evas_object_cb_resize, text);
-
-   return text;
-}
-
 E_API E_View *
 e_view_text_view_get(E_View_Text *text)
 {
@@ -239,6 +203,42 @@ e_view_text_text_get(E_View_Text *text)
    return evas_object_text_text_get(text->view.eo);
 }
 
+E_API E_View_Text *
+e_view_textblock_create(E_View_Tree *parent, char *style)
+{
+   E_Canvas *canvas;
+   E_View_Text *text;
+   Evas_Object *eo;
+   Evas_Textblock_Style *st;
+
+   assert(parent != NULL);
+
+   text = malloc(sizeof(*text));
+   if (!text)
+     return NULL;
+
+   canvas = e_canvas_get(&parent->view);
+   eo = evas_object_textblock_add(canvas->evas);
+   if (!eo)
+     {
+        free(text);
+        return NULL;
+     }
+
+   e_view_init(&text->view, E_VIEW_TYPE_TEXT, (E_View_Impl*)&view_text_impl, eo, parent);
+
+   st = evas_textblock_style_new();
+   evas_textblock_style_set(st, style);
+   evas_object_textblock_style_set(eo, st);
+   evas_textblock_style_free(st);
+
+   wl_signal_init(&text->events.resize);
+
+   evas_object_event_callback_add(text->view.eo, EVAS_CALLBACK_RESIZE, _view_text_evas_object_cb_resize, text);
+
+   return text;
+}
+
 E_API void
 e_view_textblock_text_markup_set(E_View_Text *text, char *markup)
 {
index 31dfc8a199c82f44de1e8b43a8766fb1772568bc..65e4a846d988334b2987abcac974f40e4fcd18b5 100644 (file)
@@ -14,11 +14,6 @@ typedef struct _E_View_Text E_View_Text;
  */
 E_View_Text *e_view_text_create(E_View_Tree *parent, int width, int height, const int color[4]);
 
-/**
- * TODO
- */
-E_View_Text *e_view_textblock_create(E_View_Tree *parent, char *style);
-
 /**
  * TODO
  */
@@ -77,8 +72,12 @@ const char *e_view_text_text_get(E_View_Text *text);
 /**
  * TODO
  */
-void e_view_textblock_text_markup_set(E_View_Text *text, char *markup);
+E_View_Text *e_view_textblock_create(E_View_Tree *parent, char *style);
 
+/**
+ * TODO
+ */
+void e_view_textblock_text_markup_set(E_View_Text *text, char *markup);
 
 #ifdef  __cplusplus
 }