Flesh out pango markup implementation

This commit is contained in:
Drew DeVault 2016-04-17 11:35:22 -04:00
parent 083316c5ce
commit 84fae94ab9
6 changed files with 33 additions and 18 deletions

View file

@ -23,6 +23,7 @@ struct status_block {
char *name, *instance;
bool separator;
int separator_block_width;
bool markup;
// Airblader features
uint32_t background;
uint32_t border;

View file

@ -4,9 +4,11 @@
#include <cairo/cairo.h>
#include <pango/pangocairo.h>
#include <stdarg.h>
#include <stdbool.h>
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, ...);
PangoLayout *get_pango_layout(cairo_t *cairo, const char *font, const char *text, bool markup);
void get_text_size(cairo_t *cairo, const char *font, int *width, int *height,
bool markup, const char *fmt, ...);
void pango_printf(cairo_t *cairo, const char *font, bool markup, const char *fmt, ...);
#endif