cosmetic
This commit is contained in:
parent
849e7c1a70
commit
6b448c1aeb
2
config.h
2
config.h
|
@ -25,7 +25,7 @@
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <X11/Xft/Xft.h>
|
#include <X11/Xft/Xft.h>
|
||||||
#include <regex.h>
|
#include <regex.h>
|
||||||
#include <draw.h>
|
#include "draw.h"
|
||||||
|
|
||||||
/** Bar possible position */
|
/** Bar possible position */
|
||||||
enum
|
enum
|
||||||
|
|
8
draw.h
8
draw.h
|
@ -22,10 +22,7 @@
|
||||||
#ifndef AWESOME_DRAW_H
|
#ifndef AWESOME_DRAW_H
|
||||||
#define AWESOME_DRAW_H
|
#define AWESOME_DRAW_H
|
||||||
|
|
||||||
#include "config.h"
|
typedef struct
|
||||||
|
|
||||||
typedef struct DrawCtx DrawCtx;
|
|
||||||
struct DrawCtx
|
|
||||||
{
|
{
|
||||||
Display *display;
|
Display *display;
|
||||||
Drawable drawable;
|
Drawable drawable;
|
||||||
|
@ -34,7 +31,7 @@ struct DrawCtx
|
||||||
int height;
|
int height;
|
||||||
int phys_screen;
|
int phys_screen;
|
||||||
int depth;
|
int depth;
|
||||||
};
|
} DrawCtx;
|
||||||
|
|
||||||
DrawCtx *draw_get_context(Display*, int, int, int);
|
DrawCtx *draw_get_context(Display*, int, int, int);
|
||||||
void draw_free_context(DrawCtx*);
|
void draw_free_context(DrawCtx*);
|
||||||
|
@ -46,5 +43,6 @@ void draw_image_from_argb_data(DrawCtx *, int, int, int, int, int, unsigned char
|
||||||
int draw_get_image_width(const char *filename);
|
int draw_get_image_width(const char *filename);
|
||||||
Drawable draw_rotate(DrawCtx *, int, double, int, int);
|
Drawable draw_rotate(DrawCtx *, int, double, int, int);
|
||||||
unsigned short textwidth(XftFont *, char *);
|
unsigned short textwidth(XftFont *, char *);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80
|
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80
|
||||||
|
|
Loading…
Reference in New Issue