1 /* 2 * wmslib/src/but/text.h, part of wmslib (Library functions) 3 * Copyright (C) 1995 William Shubert. 4 * See "configure.h.in" for more copyright information. 5 * 6 * Includes for text.c 7 */ 8 9 #ifndef _BUT_TEXT_H_ 10 #define _BUT_TEXT_H_ 1 11 12 /********************************************************************** 13 * Data types 14 **********************************************************************/ 15 typedef enum { 16 butText_left, butText_right, butText_center, butText_just 17 } ButTextAlign; 18 19 /********************************************************************** 20 * Functions 21 **********************************************************************/ 22 extern But *butText_create(ButWin *win, int layer, int flags, 23 const char *text, ButTextAlign align); 24 extern int butText_resize(But *but, int x, int y, int h); 25 extern const char *butText_get(But *but); 26 extern void butText_set(But *but, const char *text); 27 extern void butText_setFont(But *but, int fontnum); 28 extern void butText_setColor(But *but, int color, bool stipple); 29 30 #endif /* _BUT_TEXT_H_ */ 31