1 /* 2 * wmslib/src/but/textin.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 textin.c 7 */ 8 9 #ifndef _BUT_TBIN_H_ 10 #define _BUT_TBIN_H_ 1 11 12 /********************************************************************** 13 * Functions 14 **********************************************************************/ 15 extern But *butTbin_create(ButWin *win, int layer, 16 int flags, const char *text); 17 extern void butTbin_set(But *but, const char *str); 18 extern void butTbin_setMaxLines(But *but, int maxLines); 19 extern const char *butTbin_get(But *but); 20 extern int butTbin_numLines(But *but); 21 extern void butTbin_insert(But *but, const char *appText); 22 extern void butTbin_delete(But *but, int delStart, int delLen); 23 extern int butTbin_len(But *but); 24 /* 25 * The offWinCallback function will be called whenever your cursor leaves 26 * the window. Useful if you're on a canvas and want the cursor to 27 * stay on the canvas. 28 */ 29 extern void butTbin_setOffWinCallback(But *but, 30 void (*func)(But *but, int activeLine, 31 int passiveLine, 32 int mouseY)); 33 extern void butTbin_setReadOnly(But *but, bool ro); 34 35 36 #endif /* _BUT_TBIN_H_ */ 37