diff options
Diffstat (limited to 'abs/mv-core/ghosd/ghosd-0.0.1/ghosd/ghosd-text.h')
-rw-r--r-- | abs/mv-core/ghosd/ghosd-0.0.1/ghosd/ghosd-text.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/abs/mv-core/ghosd/ghosd-0.0.1/ghosd/ghosd-text.h b/abs/mv-core/ghosd/ghosd-0.0.1/ghosd/ghosd-text.h new file mode 100644 index 0000000..7d3b1fc --- /dev/null +++ b/abs/mv-core/ghosd/ghosd-0.0.1/ghosd/ghosd-text.h @@ -0,0 +1,22 @@ +/* ghosd -- OSD with fake transparency, cairo, and pango. + * Copyright (C) 2006 Evan Martin <martine@danga.com> + */ + +#ifndef __GHOSD_TEXT_H__ +#define __GHOSD_TEXT_H__ + +#include <pango/pango-layout.h> + +/** + * ghosd_text_set_position: + * @ghosd: a #Ghosd object; + * @x: x coordinate in screen pixels. + * @y: y coordinate in screen pixels. + * @layout: the #PangoLayout to draw. + * + * Set ghosd dimensions based on a #PangoLayout. + * See ghosd_set_position() for interpretation of the x and y coordinates. + */ +void ghosd_text_set_position(Ghosd *ghosd, int x, int y, PangoLayout *layout); + +#endif /* __GHOSD_TEXT_H__ */ |