63 lines
2.5 KiB
Plaintext
63 lines
2.5 KiB
Plaintext
enum @beta Efl.Canvas.Layout_Part_Text_Expand
|
|
{
|
|
[[Text layout policy to enforce. If none is set, only min/max descriptions
|
|
are taken into account.
|
|
]]
|
|
none = 0, [[No policy. Use default description parameters.]]
|
|
min_x = 1, [[Text is tied to the left side of the container.]]
|
|
min_y = 1 << 1, [[Text is tied to the top side of the container.]]
|
|
max_x = 1 << 2, [[Text is tied to the right side of the container.]]
|
|
max_y = 1 << 3, [[Text is tied to the bottom side of the container.]]
|
|
}
|
|
|
|
class @beta Efl.Canvas.Layout_Part_Text extends Efl.Canvas.Layout_Part implements Efl.Text,
|
|
Efl.Text_Markup, Efl.Text_Format, Efl.Text_Font_Properties, Efl.Text_Style
|
|
{
|
|
[[Represents a TEXT part of a layout
|
|
|
|
Its lifetime is limited to one function call only, unless an extra
|
|
reference is explicitly held.
|
|
]]
|
|
methods {
|
|
@property text_expand {
|
|
[[Sizing policy for text parts.
|
|
|
|
This will determine whether to consider height or width
|
|
constraints, if text-specific behaviors occur (such as ellipsis,
|
|
line-wrapping etc.
|
|
]]
|
|
values {
|
|
type: Efl.Canvas.Layout_Part_Text_Expand; [[Desired sizing policy.]]
|
|
}
|
|
}
|
|
|
|
}
|
|
data: null;
|
|
implements {
|
|
Efl.Text.text { set; get; }
|
|
Efl.Text_Markup.markup { get; set; }
|
|
Efl.Text_Format.ellipsis { set; get; }
|
|
Efl.Text_Format.wrap { set; get; }
|
|
Efl.Text_Font_Properties.font_family { set; get; }
|
|
Efl.Text_Font_Properties.font_size { set; get; }
|
|
Efl.Text_Style.text_color { set; get; }
|
|
Efl.Text_Style.text_background_type { set; get; }
|
|
Efl.Text_Style.text_background_color { set; get;}
|
|
Efl.Text_Style.text_underline_type { set; }
|
|
Efl.Text_Style.text_underline_color { set; get; }
|
|
Efl.Text_Style.text_secondary_underline_color { set; get; }
|
|
Efl.Text_Style.text_underline_dashed_color { set; get; }
|
|
Efl.Text_Style.text_underline_height { set; }
|
|
Efl.Text_Style.text_underline_dashed_width { set; }
|
|
Efl.Text_Style.text_underline_dashed_gap { set; }
|
|
Efl.Text_Style.text_strikethrough_type { set; }
|
|
Efl.Text_Style.text_strikethrough_color { set; get; }
|
|
Efl.Text_Style.text_effect_type { set; }
|
|
Efl.Text_Style.text_shadow_direction { set; }
|
|
Efl.Text_Style.text_outline_color { set; get; }
|
|
Efl.Text_Style.text_shadow_color { set; get; }
|
|
Efl.Text_Style.text_glow_color { set; get; }
|
|
Efl.Text_Style.text_secondary_glow_color { set; get; }
|
|
}
|
|
}
|