Xinqi Bao's Git
e4f937a080cdafdc44fdd3fc329cd391e996f9f5
1 /* See LICENSE file for copyright and license details. */
4 enum { ColFG
, ColBG
, ColLast
};
9 unsigned long norm
[ColLast
];
10 unsigned long sel
[ColLast
];
21 } DC
; /* draw context */
23 /* forward declarations */
24 void cleanupdraw(DC
*dc
);
25 void setupdraw(DC
*dc
, Window w
);
26 void drawtext(DC
*dc
, const char *text
, unsigned long col
[ColLast
]);
27 void eprint(const char *fmt
, ...);
28 unsigned long getcolor(DC
*dc
, const char *colstr
);
29 void initfont(DC
*dc
, const char *fontstr
);
30 int textnw(DC
*dc
, const char *text
, unsigned int len
);
31 int textw(DC
*dc
, const char *text
);
34 extern const char *progname
;