aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/client/pango.h12
-rw-r--r--include/client/window.h1
2 files changed, 13 insertions, 0 deletions
diff --git a/include/client/pango.h b/include/client/pango.h
new file mode 100644
index 00000000..e25a2211
--- /dev/null
+++ b/include/client/pango.h
@@ -0,0 +1,12 @@
+#ifndef _SWAY_CLIENT_PANGO_H
+#define _SWAY_CLIENT_PANGO_H
+
+#include "client/window.h"
+#include "client/buffer.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, ...);
+
+#endif
diff --git a/include/client/window.h b/include/client/window.h
index af954003..eff9032d 100644
--- a/include/client/window.h
+++ b/include/client/window.h
@@ -34,6 +34,7 @@ struct window {
struct wl_callback *frame_cb;
struct cursor cursor;
uint32_t width, height;
+ char *font;
cairo_t *cairo;
};