2017-05-22 07:36:41 -07:00
|
|
|
enum Efl.Text.Format.Wrap {
|
|
|
|
[[Wrap mode of the text (not in effect if not multiline)]]
|
2017-05-31 08:41:37 -07:00
|
|
|
none, [[No wrapping]]
|
|
|
|
char, [[Wrap mode character]]
|
|
|
|
word, [[Wrap mode word]]
|
|
|
|
mixed, [[Wrap mode mixed]]
|
|
|
|
hyphenation [[Wrap mode hyphenation]]
|
2017-05-22 07:36:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
interface Efl.Text.Format {
|
|
|
|
[[The look and layout of the text
|
|
|
|
|
|
|
|
The text format can affect the geometry of the text object, as well as
|
|
|
|
how characters are presented.
|
|
|
|
|
|
|
|
@since 1.20
|
|
|
|
]]
|
2017-06-11 14:16:40 -07:00
|
|
|
eo_prefix: efl_text;
|
2017-05-22 07:36:41 -07:00
|
|
|
methods {
|
2017-06-11 14:16:40 -07:00
|
|
|
@property ellipsis {
|
2017-05-22 07:36:41 -07:00
|
|
|
[[Ellipsis value (number from -1.0 to 1.0)]]
|
|
|
|
values
|
|
|
|
{
|
|
|
|
value: double;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-11 14:16:40 -07:00
|
|
|
@property wrap {
|
2017-05-22 07:36:41 -07:00
|
|
|
[[Wrap mode for use in the text]]
|
|
|
|
values {
|
|
|
|
wrap: Efl.Text.Format.Wrap;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-11 14:16:40 -07:00
|
|
|
@property multiline {
|
2017-05-22 07:36:41 -07:00
|
|
|
[[Multiline is enabled or not]]
|
|
|
|
values {
|
|
|
|
enabled: bool;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-11 14:16:40 -07:00
|
|
|
@property halign {
|
2017-05-22 07:36:41 -07:00
|
|
|
[[Horizontal alignment of text (number from 0.0 to 1.0)]]
|
|
|
|
values
|
|
|
|
{
|
|
|
|
value: double;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-11 14:16:40 -07:00
|
|
|
@property valign {
|
2017-05-22 07:36:41 -07:00
|
|
|
[[Vertical alignment of text (number from -1.0 to 1.0)]]
|
|
|
|
values
|
|
|
|
{
|
|
|
|
value: double;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-11 14:16:40 -07:00
|
|
|
@property linegap {
|
2017-05-22 07:36:41 -07:00
|
|
|
[[Minimal line gap (top and bottom) for each line in the text
|
|
|
|
|
|
|
|
$value is absolute size.
|
|
|
|
]]
|
|
|
|
values
|
|
|
|
{
|
|
|
|
value: double;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-11 14:16:40 -07:00
|
|
|
@property linerelgap {
|
2017-05-22 07:36:41 -07:00
|
|
|
[[Relative line gap (top and bottom) for each line in the text
|
|
|
|
|
|
|
|
The original line gap value is multiplied by $value.
|
|
|
|
]]
|
|
|
|
values
|
|
|
|
{
|
|
|
|
value: double;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-11 14:16:40 -07:00
|
|
|
@property tabstops {
|
2017-05-22 07:36:41 -07:00
|
|
|
[[Tabstops value]]
|
|
|
|
values
|
|
|
|
{
|
|
|
|
value: int;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-11 14:16:40 -07:00
|
|
|
@property password {
|
2017-05-22 07:36:41 -07:00
|
|
|
[[Whether text is a password]]
|
|
|
|
values
|
|
|
|
{
|
|
|
|
enabled: bool;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-11 14:16:40 -07:00
|
|
|
@property replacement_char {
|
2017-05-22 07:36:41 -07:00
|
|
|
[[The character used to replace characters that can not be displayed
|
|
|
|
|
2017-06-11 14:16:40 -07:00
|
|
|
Currently, only used to replace characters if @.password
|
2017-05-22 07:36:41 -07:00
|
|
|
is enabled.
|
|
|
|
]]
|
|
|
|
values {
|
|
|
|
repch: string;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|