enesim  0.0.23.1
Drawinglibrary
Functions
Text Span
Renderer

Text span renderer inherits from \1. More...

Functions

EAPI Enesim_Rendererenesim_renderer_text_span_new (void)
EAPI void enesim_renderer_text_span_text_set (Enesim_Renderer *r, const char *str)
 Sets the text of the text span.
EAPI const char * enesim_renderer_text_span_text_get (Enesim_Renderer *r)
EAPI void enesim_renderer_text_span_direction_set (Enesim_Renderer *r, Enesim_Text_Direction direction)
EAPI Enesim_Text_Direction enesim_renderer_text_span_direction_get (Enesim_Renderer *r)
EAPI Enesim_Text_Buffer * enesim_renderer_text_span_buffer_get (Enesim_Renderer *r)
EAPI Enesim_Text_Buffer * enesim_renderer_text_span_real_buffer_get (Enesim_Renderer *r)
EAPI void enesim_renderer_text_span_real_buffer_set (Enesim_Renderer *r, Enesim_Text_Buffer *b)
EAPI void enesim_renderer_text_span_x_set (Enesim_Renderer *r, double x)
 Set the top left X coordinate of a text span renderer. .
EAPI double enesim_renderer_text_span_x_get (Enesim_Renderer *r)
 Retrieve the top left X coordinate of a text span renderer. .
EAPI void enesim_renderer_text_span_y_set (Enesim_Renderer *r, double y)
 Set the top left Y coordinate of a text span renderer. .
EAPI double enesim_renderer_text_span_y_get (Enesim_Renderer *r)
 Retrieve the top left Y coordinate of a text span renderer. .
EAPI void enesim_renderer_text_span_position_set (Enesim_Renderer *r, double x, double y)
 Set the top left coordinates of a text span renderer.
EAPI void enesim_renderer_text_span_position_get (Enesim_Renderer *r, double *x, double *y)
 Retrieve the top left coordinates of a text span renderer.
EAPI void enesim_renderer_text_span_font_set (Enesim_Renderer *r, Enesim_Text_Font *font)
EAPI Enesim_Text_Font * enesim_renderer_text_span_font_get (Enesim_Renderer *r)
EAPI Eina_Bool enesim_renderer_text_span_glyph_coord_at (Enesim_Renderer *r, int x, int y, int *index, int *start, int *end)
EAPI Eina_Bool enesim_renderer_text_span_glyph_index_at (Enesim_Renderer *r, int index, int *start, int *end)

Detailed Description

Text span renderer inherits from \1.


Function Documentation

TODO

  • Add a background/foreground color. Use a rectangle renderer for that Creates a text span renderer
    Returns:
    The new renderer
EAPI void enesim_renderer_text_span_text_set ( Enesim_Renderer r,
const char *  str 
)

Sets the text of the text span.

Parameters:
[in]rThe text span renderer to set the text to
[in]strThe text span text
EAPI void enesim_renderer_text_span_x_set ( Enesim_Renderer r,
double  x 
)

Set the top left X coordinate of a text span renderer. .

Parameters:
[in]rThe text span renderer.
[in]xThe top left X coordinate.

This function sets the top left X coordinate of the text span renderer r to the value x.

Retrieve the top left X coordinate of a text span renderer. .

Parameters:
[in]rThe text span renderer.
Returns:
The top left X coordinate.

This function gets the top left X coordinate of the text span renderer r

EAPI void enesim_renderer_text_span_y_set ( Enesim_Renderer r,
double  y 
)

Set the top left Y coordinate of a text span renderer. .

Parameters:
[in]rThe text span renderer.
[in]yThe top left Y coordinate.

This function sets the top left Y coordinate of the text span renderer r to the value y.

Retrieve the top left Y coordinate of a text span renderer. .

Parameters:
[in]rThe text span renderer.
Returns:
The top left Y coordinate.

This function gets the top left Y coordinate of the text span renderer r

EAPI void enesim_renderer_text_span_position_set ( Enesim_Renderer r,
double  x,
double  y 
)

Set the top left coordinates of a text span renderer.

Parameters:
[in]rThe text span renderer.
[in]xThe top left X coordinate.
[in]yThe top left Y coordinate.

This function sets the top left coordinates of the text span renderer r to the values x and y.

EAPI void enesim_renderer_text_span_position_get ( Enesim_Renderer r,
double *  x,
double *  y 
)

Retrieve the top left coordinates of a text span renderer.

Parameters:
[in]rThe text span renderer.
[out]xThe top left X coordinate.
[out]yThe top left Y coordinate.

This function stores the top left coordinates value of the text span renderer r in the pointers x and y. These pointers can be NULL.

 All Data Structures Variables