1 /* 2 * wmslib/src/but/box.h, part of wmslib (Library functions) 3 * Copyright (C) 1994-1995 William Shubert. 4 * See "configure.h.in" for more copyright information. 5 * 6 * Includes for but.c 7 */ 8 9 #ifndef _BUT_BOX_H_ 10 11 #ifndef _BUT_BUT_H_ 12 #include <but/but.h> 13 #endif 14 #define _BUT_BOX_H_ 1 15 16 /********************************************************************** 17 * Constants 18 **********************************************************************/ 19 #define BUT_ALEFT 0x01 /* Arrows on left/right. */ 20 #define BUT_ARIGHT 0x02 21 #define BUT_RLEFT 0x04 /* Rounded edges on left/right. */ 22 #define BUT_RRIGHT 0x08 23 #define BUT_SLEFT 0x10 /* Square edges on left/right. */ 24 #define BUT_SRIGHT 0x20 25 26 /********************************************************************** 27 * Functions 28 **********************************************************************/ 29 30 /* Public. */ 31 extern But *butBox_create(ButWin *win, int layer, int flags); 32 extern void butBox_setColors(But *but, int ul, int lr); 33 extern void butBox_setPixmaps(But *but, Pixmap ul, Pixmap lr); 34 35 extern But *butBoxFilled_create(ButWin *win, int layer, int flags); 36 extern void butBoxFilled_setColors(But *but, int ul, int lr, int c); 37 extern void butBoxFilled_setPixmaps(But *but, Pixmap ul, Pixmap lr, Pixmap c); 38 39 40 /* Private. */ 41 extern void but_drawCtb(ButWin *win, int flags, int fgpic, 42 int bgpic, int pbgpic, 43 int x, int y, int w, int h, int bw, int angles); 44 extern void but_drawCt(ButWin *win, int flags, int fgpic, 45 int bgpic, int pbgpic, 46 int x, int y, int w, int h, 47 int bw, const char *text, int angles, 48 int fontnum); 49 /* If bstate is nonzero, invert the ul and lr colors. */ 50 extern void but_drawBox(ButWin *win, int x, int y, 51 int w, int h, int bstate, int bw, int angles, 52 int ulcolor, int lrcolor, Pixmap ulmap, 53 Pixmap lrmap); 54 55 56 #endif /* _BUT_BOX_H_ */ 57