diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-03-28 22:22:46 +0200 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-03-30 00:47:58 +0200 |
commit | cefcce48aad4e452be9d081b1cd1521e2b042e97 (patch) | |
tree | a1baadb89b2d94f63175f61c2459d77cd2819ab4 /include/client | |
parent | da567317ab27ec033fa53c6e4b4823dcfce7d24d (diff) | |
download | sway-cefcce48aad4e452be9d081b1cd1521e2b042e97.tar.xz |
Make client/pango.h not depend on client/window.h
Diffstat (limited to 'include/client')
-rw-r--r-- | include/client/pango.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/client/pango.h b/include/client/pango.h index e25a2211..97c31e38 100644 --- a/include/client/pango.h +++ b/include/client/pango.h @@ -1,12 +1,12 @@ #ifndef _SWAY_CLIENT_PANGO_H #define _SWAY_CLIENT_PANGO_H -#include "client/window.h" -#include "client/buffer.h" +#include <cairo/cairo.h> +#include <pango/pangocairo.h> #include <stdarg.h> -PangoLayout *get_pango_layout(struct window *window, struct buffer *buffer, const char *text); -void get_text_size(struct window *window, int *width, int *height, const char *fmt, ...); -void pango_printf(struct window *window, const char *fmt, ...); +PangoLayout *get_pango_layout(cairo_t *cairo, const char *font, const char *text); +void get_text_size(cairo_t *cairo, const char *font, int *width, int *height, const char *fmt, ...); +void pango_printf(cairo_t *cairo, const char *font, const char *fmt, ...); #endif |