summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/ghosd/ghosd-0.0.1/ghosd/ghosd-text.h
blob: 7d3b1fc49a1f95069926c3bbb69cb7ffbf8de1da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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__ */