summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_object_textblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas/canvas/evas_object_textblock.c')
-rw-r--r--src/lib/evas/canvas/evas_object_textblock.c30
1 files changed, 16 insertions, 14 deletions
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c
index 89397d2bf6..3636c42875 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -15561,11 +15561,26 @@ _efl_canvas_text_efl_text_style_backing_color_get(const Eo *obj EINA_UNUSED, Efl
15561 _FMT_COLOR_RET(backing); 15561 _FMT_COLOR_RET(backing);
15562} 15562}
15563 15563
15564static struct
15565{
15566 Eina_Bool underline_single : 1;
15567 Eina_Bool underline_double : 1;
15568 Eina_Bool underline_dashed : 1;
15569} _style_underline_map[] = {
15570 { 0, 0, 0 },
15571 { 1, 0, 0 },
15572 { 1, 1, 0 },
15573 { 0, 0, 1 }
15574};
15575
15564static void 15576static void
15565_efl_canvas_text_efl_text_style_underline_type_set(Eo *obj EINA_UNUSED, Efl_Canvas_Text_Data *o EINA_UNUSED, Efl_Text_Style_Underline_Type type EINA_UNUSED) 15577_efl_canvas_text_efl_text_style_underline_type_set(Eo *obj EINA_UNUSED, Efl_Canvas_Text_Data *o EINA_UNUSED, Efl_Text_Style_Underline_Type type EINA_UNUSED)
15566{ 15578{
15567 ASYNC_BLOCK; 15579 ASYNC_BLOCK;
15568 _FMT_SET(underline, type); 15580 _FMT_SET(underline, _style_underline_map[type].underline_single);
15581 _FMT_SET(underline2, _style_underline_map[type].underline_double);
15582 _FMT_SET(underline_dash, _style_underline_map[type].underline_dashed);
15583
15569} 15584}
15570 15585
15571static Efl_Text_Style_Underline_Type 15586static Efl_Text_Style_Underline_Type
@@ -15640,19 +15655,6 @@ _efl_canvas_text_efl_text_style_underline_dashed_gap_get(const Eo *obj EINA_UNUS
15640} 15655}
15641 15656
15642static void 15657static void
15643_efl_canvas_text_efl_text_style_underline2_type_set(Eo *obj EINA_UNUSED, Efl_Canvas_Text_Data *o EINA_UNUSED, Efl_Text_Style_Underline_Type type EINA_UNUSED)
15644{
15645 ASYNC_BLOCK;
15646 _FMT_SET(underline2, type);
15647}
15648
15649static Efl_Text_Style_Underline_Type
15650_efl_canvas_text_efl_text_style_underline2_type_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Text_Data *o EINA_UNUSED)
15651{
15652 return _FMT(underline2);
15653}
15654
15655static void
15656_efl_canvas_text_efl_text_style_underline2_color_set(Eo *obj EINA_UNUSED, Efl_Canvas_Text_Data *o EINA_UNUSED, unsigned char r EINA_UNUSED, unsigned char g EINA_UNUSED, unsigned char b EINA_UNUSED, unsigned char a EINA_UNUSED) 15658_efl_canvas_text_efl_text_style_underline2_color_set(Eo *obj EINA_UNUSED, Efl_Canvas_Text_Data *o EINA_UNUSED, unsigned char r EINA_UNUSED, unsigned char g EINA_UNUSED, unsigned char b EINA_UNUSED, unsigned char a EINA_UNUSED)
15657{ 15659{
15658 ASYNC_BLOCK; 15660 ASYNC_BLOCK;