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

34 lines
477 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;
double outline_width;
2018-01-19 23:47:25 -05:00
cairo_font_face_t *font;
rgba_t color;
rgba_t outline_color;
2018-01-19 23:47:25 -05:00
double x, y;
int align;
} text_t;
2018-02-03 09:27:11 -05:00
#endif