efl.evas.Text
Class¶efl.evas.
Text
(Canvas canvas, font=None, shadow_color=None, glow_color=None, glow2_color=None, outline_color=None, **kwargs)¶Bases: efl.evas.Object
Parameters: |
|
---|
ascent
¶Type: | int |
---|
ascent_get
()¶char_coords_get
(x, y)¶Retrieve position and dimension information of a character at desired position.
Like char_pos_get()
, but instead of providing the character
index one can give its position.
Parameters: |
|
---|---|
Return type: | (int x, int y, int w, int h) |
char_pos_get
(char_index)¶Retrieve position and dimension information of a character.
This function is used to obtain the x, y, width and height of a the character located at char_index within this object.
Parameters: | char_index – index of desired character. |
---|---|
Return type: | (int x, int y, int w, int h) |
descent
¶Type: | int |
---|
descent_get
()¶font
¶Set the font family and size on a given text object.
Parameters: |
|
---|
This function allows the font name and size of a text object to be
set. The font
string has to follow fontconfig’s convention on
naming fonts, as it’s the underlying library used to query system
fonts by Evas (see the fc-list
command’s output, on your system,
to get an idea).
See: | font_source |
---|
font_get
()¶font_set
(font, size=10)¶font_source
¶Set the font (source) file to be used on a given text object.
Parameters: | font – The font file’s path. |
---|
This function allows the font file to be explicitly set for a given text object, overriding system lookup, which will first occur in the given file’s contents.
See: | font |
---|
font_source_get
()¶font_source_set
(value)¶glow2_color
¶Type: | (int r, int g, int b, int a) |
---|
glow2_color_get
()¶glow2_color_set
(r, g, b, a)¶glow_color
¶Type: | (int r, int g, int b, int a) |
---|
glow_color_get
()¶glow_color_set
(r, g, b, a)¶horiz_advance
¶Type: | int |
---|
horiz_advance_get
()¶inset
¶Type: | int |
---|
inset_get
()¶max_ascent
¶Type: | int |
---|
max_ascent_get
()¶max_descent
¶Type: | int |
---|
max_descent_get
()¶outline_color
¶Type: | (int r, int g, int b, int a) |
---|
outline_color_get
()¶outline_color_set
(r, g, b, a)¶shadow_color
¶Type: | (int r, int g, int b, int a) |
---|
shadow_color_get
()¶shadow_color_set
(r, g, b, a)¶style
¶Text drawing style.
One of:
Type: | Evas_Text_Style_Type |
---|
style_get
()¶style_pad
¶Type: | (int l, int r, int t, int b) |
---|
style_pad_get
()¶style_set
(value)¶text
¶Sets the text string to be displayed by the given text object.
Type: | unicode |
---|
text_get
()¶text_set
(value)¶vert_advance
¶Type: | int |
---|
vert_advance_get
()¶