1 // Copyright 2013 Samsung Electronics. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ewk_text_style_private_h
6 #define ewk_text_style_private_h
14 #include <ui/gfx/geometry/point.h>
16 struct SelectionColor {
23 struct SelectionStylePrams {
27 SelectionColor bg_color;
29 std::string font_size;
31 int un_order_list_state;
32 int text_align_center_state;
33 int text_align_left_state;
34 int text_align_right_state;
35 int text_align_full_state;
39 struct _Ewk_Text_Style {
40 _Ewk_Text_Style(const SelectionStylePrams& params, const gfx::Point& start_point, const gfx::Point& end_point) {
41 selectionParams = params;
43 position.startPoint.x = start_point.x();
44 position.startPoint.y = start_point.y();
45 position.endPoint.x = end_point.x();
46 position.endPoint.y = end_point.y();
48 bgColor = params.bg_color;
50 fontSize = eina_stringshare_add(params.font_size.c_str());
51 hasComposition = params.has_composition;
55 eina_stringshare_del(fontSize);
58 SelectionStylePrams selectionParams;
59 Eina_Stringshare* fontSize;
60 Eina_Bool hasComposition;
63 Evas_Point startPoint;
67 SelectionColor bgColor;