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