mirror of
https://codeberg.org/adnano/wmenu.git
synced 2025-10-29 05:40:20 -04:00
Initial commit
This commit is contained in:
commit
2f1c189d53
13 changed files with 1825 additions and 0 deletions
18
pango.h
Normal file
18
pango.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#ifndef DMENU_PANGO_H
|
||||
#define DMENU_PANGO_H
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <cairo/cairo.h>
|
||||
#include <pango/pangocairo.h>
|
||||
|
||||
int get_font_height(const char *font);
|
||||
PangoLayout *get_pango_layout(cairo_t *cairo, const char *font,
|
||||
const char *text, double scale);
|
||||
void get_text_size(cairo_t *cairo, const char *font, int *width, int *height,
|
||||
int *baseline, double scale, const char *fmt, ...);
|
||||
int text_width(cairo_t *cairo, const char *font, const char *text);
|
||||
void pango_printf(cairo_t *cairo, const char *font, double scale,
|
||||
const char *fmt, ...);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue