aboutsummaryrefslogtreecommitdiff
path: root/draw.h
blob: 2bbb3c23f23de4063aabe23d513e49522975fdb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef COMET_DRAW_H
#define COMET_DRAW_H

#include <pango/pango-font.h>
#include <pango/pango-types.h>

#include "window.h"

// TODO: Make opaque
typedef struct {
    PangoFontDescription *desc;
    int height;
    int left_pad;
    int right_pad;
    int top_pad;
    double alpha;
} Drawable;

Drawable *draw_create(const char *font, int height, int left_pad, int right_pad, int top_pad, double alpha);

void draw_paint(Drawable *draw, Window *win);

void draw_destroy(Drawable *draw);

#endif

// vim: ts=4 sw=4 et