mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
Make client/pango.h not depend on client/window.h
This commit is contained in:
parent
da567317ab
commit
cefcce48aa
3 changed files with 26 additions and 28 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue