Text

Text — Rendering text.

Synopsis


#include <ghosd/ghosd-text.h>


void        ghosd_text_set_position         (Ghosd *ghosd,
                                             int x,
                                             int y,
                                             PangoLayout *layout);

Description

I expect to flesh out this API, so this is mostly a placeholder for now.

Details

ghosd_text_set_position ()

void        ghosd_text_set_position         (Ghosd *ghosd,
                                             int x,
                                             int y,
                                             PangoLayout *layout);

Set ghosd dimensions based on a PangoLayout. See ghosd_set_position() for interpretation of the x and y coordinates.

ghosd : a Ghosd object;
x : x coordinate in screen pixels.
y : y coordinate in screen pixels.
layout : the PangoLayout to draw.