src/engine.c
/*!
 * Renders a single PangoLayout horizontally. Places text on the vertical
 middle of the canvas.
 * @param layout the PangoLayout to draw.
 * @param x the X coordinate on the canvas to draw.
 * @param text_height height of the text in pixels.
 */
Renders a single PangoLayout horizontally. Places text on the vertical
middle of the canvas.
@param layout the PangoLayout to draw.
@param x the X coordinate on the canvas to draw.
@param text_height height of the text in pixels.
Renders a single PangoLayout horizontally . Places text on the vertical middle of the canvas . @param layout the PangoLayout to draw . @param x the X coordinate on the canvas to draw . @param text_height height of the text in pixels .
static void engine_draw_text(PangoLayout *layout,
		int x, unsigned int text_height)
{
	cairo_set_source_rgba(cairo_context,
			default_foreground[0],
			default_foreground[1],
			default_foreground[2], 1);
	cairo_move_to(cairo_context, x, (canvas_height - text_height) / 2);
	pango_cairo_update_layout(cairo_context, layout);
	pango_cairo_show_layout(cairo_context, layout);
}
static void engine_draw_text ( PangoLayout * layout , int x , unsigned int text_height ) { cairo_set_source_rgba ( cairo_context , default_foreground [ 0 ] , default_foreground [ 1 ] , default_foreground [ 2 ] , 1 ) ; cairo_move_to ( cairo_context , x , ( canvas_height - text_height ) / 2 ) ; pango_cairo_update_layout ( cairo_context , layout ) ; pango_cairo_show_layout ( cairo_context , layout ) ; }
Renders a single PangoLayout horizontally.
Renders a single PangoLayout horizontally .