swayfx/include/client/pango.h

17 lines
531 B
C
Raw Normal View History

#ifndef _SWAY_CLIENT_PANGO_H
#define _SWAY_CLIENT_PANGO_H
#include <cairo/cairo.h>
#include <pango/pangocairo.h>
#include <stdarg.h>
2016-04-18 01:35:22 +10:00
#include <stdbool.h>
2016-09-06 01:52:52 +10:00
#include <stdint.h>
2016-09-06 01:52:52 +10:00
PangoLayout *get_pango_layout(cairo_t *cairo, const char *font, const char *text,
int32_t scale, bool markup);
2016-04-18 01:35:22 +10:00
void get_text_size(cairo_t *cairo, const char *font, int *width, int *height,
2016-09-06 01:52:52 +10:00
int32_t scale, bool markup, const char *fmt, ...);
void pango_printf(cairo_t *cairo, const char *font, int32_t scale, bool markup, const char *fmt, ...);
#endif