efl

Форк
0
/
efl_canvas_layout_part_text.eo 
62 строки · 2.5 Кб
1
enum @beta Efl.Canvas.Layout_Part_Text_Expand
2
{
3
   [[Text layout policy to enforce. If none is set, only min/max descriptions
4
     are taken into account.
5
   ]]
6
   none = 0,        [[No policy. Use default description parameters.]]
7
   min_x = 1,       [[Text is tied to the left side of the container.]]
8
   min_y = 1 << 1,  [[Text is tied to the top side of the container.]]
9
   max_x = 1 << 2,  [[Text is tied to the right side of the container.]]
10
   max_y = 1 << 3,  [[Text is tied to the bottom side of the container.]]
11
}
12

13
class @beta Efl.Canvas.Layout_Part_Text extends Efl.Canvas.Layout_Part implements Efl.Text,
14
Efl.Text_Markup, Efl.Text_Format, Efl.Text_Font_Properties, Efl.Text_Style
15
{
16
   [[Represents a TEXT part of a layout
17

18
     Its lifetime is limited to one function call only, unless an extra
19
     reference is explicitly held.
20
   ]]
21
   methods {
22
        @property text_expand {
23
           [[Sizing policy for text parts.
24

25
            This will determine whether to consider height or width
26
            constraints, if text-specific behaviors occur (such as ellipsis,
27
            line-wrapping etc.
28
           ]]
29
           values {
30
              type: Efl.Canvas.Layout_Part_Text_Expand; [[Desired sizing policy.]]
31
           }
32
        }
33

34
   }
35
   data: null;
36
   implements {
37
      Efl.Text.text { set; get; }
38
      Efl.Text_Markup.markup { get; set; }
39
      Efl.Text_Format.ellipsis { set; get; }
40
      Efl.Text_Format.wrap { set; get; }
41
      Efl.Text_Font_Properties.font_family { set; get; }
42
      Efl.Text_Font_Properties.font_size { set; get; }
43
      Efl.Text_Style.text_color { set; get; }
44
      Efl.Text_Style.text_background_type { set; get; }
45
      Efl.Text_Style.text_background_color { set; get;}
46
      Efl.Text_Style.text_underline_type { set; }
47
      Efl.Text_Style.text_underline_color { set; get; }
48
      Efl.Text_Style.text_secondary_underline_color { set; get; }
49
      Efl.Text_Style.text_underline_dashed_color { set; get; }
50
      Efl.Text_Style.text_underline_height { set; }
51
      Efl.Text_Style.text_underline_dashed_width { set; }
52
      Efl.Text_Style.text_underline_dashed_gap { set; }
53
      Efl.Text_Style.text_strikethrough_type { set; }
54
      Efl.Text_Style.text_strikethrough_color { set; get; }
55
      Efl.Text_Style.text_effect_type { set; }
56
      Efl.Text_Style.text_shadow_direction { set; }
57
      Efl.Text_Style.text_outline_color { set; get; }
58
      Efl.Text_Style.text_shadow_color { set; get; }
59
      Efl.Text_Style.text_glow_color { set; get; }
60
      Efl.Text_Style.text_secondary_glow_color { set; get; }
61
   }
62
}
63

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.