1 /* 2 * src/abut.h, part of wmslib library 3 * Copyright (C) 1995-1996 William Shubert. 4 * See "configure.h.in" for more copyright information. 5 */ 6 7 #ifndef _ABUT_ABUT_H_ 8 9 #ifndef _WMS_CLP_H_ 10 #include <wms/clp.h> 11 #endif 12 #ifdef _ABUT_ABUT_H_ 13 Levelization Error. 14 #endif 15 16 #define _ABUT_ABUT_H_ 1 17 18 19 /********************************************************************** 20 * Types 21 **********************************************************************/ 22 23 /* Private. */ 24 typedef struct Abut_struct { 25 ButEnv *env; 26 const char *ok, *cancel; 27 int butH; 28 int ulColor, lrColor, bgColor; 29 Pixmap ulPixmap, lrPixmap, bgPixmap; 30 Clp *clp; 31 MAGIC_STRUCT 32 } Abut; 33 34 35 /********************************************************************** 36 * Functions available 37 **********************************************************************/ 38 extern Abut *abut_create(ButEnv *env, const char *ok, const char *cancel); 39 extern void abut_destroy(Abut *a); 40 extern void abut_setColors(Abut *a, int ul, int lr, int bg); 41 extern void abut_setPixmaps(Abut *a, Pixmap ul, Pixmap lr, Pixmap bg); 42 #define abut_setClp(a, c) ((a)->clp = (c)) 43 #define abut_setButH(a, h) ((a)->butH = (h)) 44 45 #endif /* _ABUT_ABUT_H_ */ 46