Tizen Native API
5.0
|
Functions that operate on single line, single style text objects.
For multiline and multiple style text, see Textblock Object Functions.
See some examples on this group of functions.
- Warning:
- We don't guarantee any proper results if you create a Text object without setting the evas engine.
Defines | |
#define | EVAS_TEXT_STYLE_BASIC_SET(x, s) do { x = ((x) & ~EVAS_TEXT_STYLE_MASK_BASIC) | (s); } while (0) |
#define | EVAS_TEXT_STYLE_SHADOW_DIRECTION_SET(x, s) do { x = ((x) & ~EVAS_TEXT_STYLE_MASK_SHADOW_DIRECTION) | (s); } while (0) |
Define Documentation
#define EVAS_TEXT_STYLE_BASIC_SET | ( | x, | |
s | |||
) | do { x = ((x) & ~EVAS_TEXT_STYLE_MASK_BASIC) | (s); } while (0) |
Text style type creation macro. Use style types on the 's' arguments, being 'x' your style variable.
#define EVAS_TEXT_STYLE_SHADOW_DIRECTION_SET | ( | x, | |
s | |||
) | do { x = ((x) & ~EVAS_TEXT_STYLE_MASK_SHADOW_DIRECTION) | (s); } while (0) |
Text style type creation macro. This one will impose shadow directions on the style type variable -- use the EVAS_TEXT_STYLE_SHADOW_DIRECTION_*
values on 's', incrementally.
Function Documentation
Evas_Object* evas_object_text_add | ( | Evas * | e | ) |
Creates a new text object on the provided canvas.
- Parameters:
-
e The canvas to create the text object on.
- Returns:
NULL
on error, a pointer to a new text object on success.
Text objects are for simple, single line text elements. If you want more elaborated text blocks, see Textblock Object Functions.
- See also:
- evas_object_text_font_source_set()
- evas_object_text_font_set()
- evas_object_text_text_set()
- Since :
- 2.3
- Examples:
- ecore_evas_window_sizes_example.c, eina_tiler_01.c, and evas-text.c.