i3lock-color

The world's most popular non-default computer lockscreen.
Index Commits Files Refs README LICENSE
fonts.h (477B)
   1 #ifndef FONTS_H
   2 #define FONTS_H
   3 
   4 #include <cairo.h>
   5 #include <cairo-ft.h>
   6 #include <stdbool.h>
   7 
   8 #include <rgba.h>
   9 
  10 #define VERIF_FONT  0
  11 #define WRONG_FONT  1
  12 #define LAYOUT_FONT 2
  13 #define TIME_FONT   3
  14 #define DATE_FONT   4
  15 #define GREETER_FONT   5
  16 
  17 typedef struct text {
  18     bool show;
  19 
  20     char str[512];
  21     double size;
  22     double outline_width;
  23 
  24     cairo_font_face_t *font;
  25 
  26     rgba_t color;
  27     rgba_t outline_color;
  28     double x, y;
  29 
  30     int align;
  31 } text_t;
  32 
  33 #endif