1
0
Fork 0
mirror of https://github.com/Raymo111/i3lock-color.git synced 2024-11-11 13:50:52 -05:00
i3lock-color/fonts.h

32 lines
425 B
C
Raw Normal View History

2018-02-03 09:27:11 -05:00
#ifndef FONTS_H
#define FONTS_H
2018-01-19 23:47:25 -05:00
#include <cairo.h>
#include <cairo-ft.h>
#include <stdbool.h>
2020-03-08 16:17:05 -04:00
#include <rgba.h>
2018-02-03 09:27:11 -05:00
#define VERIF_FONT 0
#define WRONG_FONT 1
#define LAYOUT_FONT 2
#define TIME_FONT 3
#define DATE_FONT 4
#define GREETER_FONT 5
2018-01-19 23:47:25 -05:00
typedef struct text {
bool show;
char str[512];
2018-01-19 23:47:25 -05:00
double size;
cairo_font_face_t *font;
rgba_t color;
double x, y;
int align;
} text_t;
2018-02-03 09:27:11 -05:00
#endif