Create string tightly when retrive string from cbhm callback event
[framework/web/webkit-efl.git] / Source / WebKit2 / UIProcess / API / efl / ewk_text_style.h
1 /*
2  * Copyright (C) 2012 Samsung Electronics
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public License
15  * along with this library; see the file COPYING.LIB.  If not, write to
16  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19
20 #ifndef ewk_text_style_h
21 #define ewk_text_style_h
22
23 #include <Eina.h>
24 #include <Evas.h>
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 typedef enum {
31     EWK_TEXT_STYLE_STATE_FALSE,
32     EWK_TEXT_STYLE_STATE_TRUE,
33     EWK_TEXT_STYLE_STATE_MIXED
34 } Ewk_Text_Style_State;
35
36 typedef struct _Ewk_Text_Style Ewk_Text_Style;
37
38 EAPI Ewk_Text_Style_State ewk_text_style_underline_get(Ewk_Text_Style* text_style);
39 EAPI Ewk_Text_Style_State ewk_text_style_italic_get(Ewk_Text_Style* text_style);
40 EAPI Ewk_Text_Style_State ewk_text_style_bold_get(Ewk_Text_Style* text_style);
41 EAPI Eina_Bool ewk_text_style_position_get(Ewk_Text_Style* text_style, Evas_Point* start_point, Evas_Point* end_point);
42 EAPI Eina_Bool ewk_text_style_bg_color_get(Ewk_Text_Style* textStyle, int* r, int* g, int* b, int* a);
43 EAPI Eina_Bool ewk_text_style_color_get(Ewk_Text_Style* textStyle, int* r, int* g, int* b, int* a);
44 EAPI const char* ewk_text_style_font_size_get(Ewk_Text_Style* textStyle);
45 EAPI Eina_Bool ewk_text_style_has_composition_get(Ewk_Text_Style* textStyle);
46
47 #ifdef __cplusplus
48 }
49 #endif
50
51 #endif // ewk_text_style_h