1 /*
2  * wmslib/src/abut/term.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 "term" scrolling terminal-like widgety thing.
7  */
8 
9 #ifndef  _ABUT_TERM_H_
10 #define  _ABUT_TERM_H_  1
11 
12 #ifndef  _ABUT_ABUT_H_
13 #include  <abut/abut.h>
14 #endif
15 #ifndef  _ABUT_SWIN_H_
16 #include <abut/swin.h>
17 #endif
18 #ifndef  _BUT_TBIN_H_
19 #include <but/tbin.h>
20 #endif
21 
22 
23 /**********************************************************************
24  * Data types
25  **********************************************************************/
26 typedef enum  {
27   abutTermState_fastUp, abutTermState_slowUp, abutTermState_steady,
28   abutTermState_slowDown, abutTermState_fastDown
29 } AbutTermState;
30 
31 
32 typedef struct  AbutTerm_struct  {
33   Abut  *abut;
34   AbutSwin  *swin;
35   But  *bg;
36   But  *tbin;
37   AbutTermState state;
38   MAGIC_STRUCT
39 } AbutTerm;
40 
41 
42 /**********************************************************************
43  * Functions
44  **********************************************************************/
45 extern AbutTerm  *abutTerm_create(Abut *abut, ButWin *parent,
46 				  int layer, bool editable);
47 extern void  abutTerm_destroy(AbutTerm *term);
48 extern void  abutTerm_resize(AbutTerm *term, int x, int y, int w, int h);
49 extern void  abutTerm_set(AbutTerm *term, const char *text);
50 #define  abutTerm_get(term)  butTbin_get((term)->tbin)
51 extern void  abutTerm_append(AbutTerm *term, const char *appText);
52 
53 #endif  /* _ABUT_TERM_H_ */
54