mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
Flesh out pango markup implementation
This commit is contained in:
parent
083316c5ce
commit
84fae94ab9
6 changed files with 33 additions and 18 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue