2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 #ifndef __gator_dumbwindows_h
11 #define __gator_dumbwindows_h 1
13 #include "gtxwindows.h" /*Base gator window dfns*/
15 /*Value for gwin w_type field*/
16 #define GATOR_WIN_DUMB 1
18 /*Private data for a dumb gwin*/
20 struct gator_dumbgwin {
21 WINDOW *wp; /*Window pointer*/
22 int charwidth; /*Character width in pixels*/
23 int charheight; /*Character height in pixels*/
24 char box_vertchar; /*Vertical char for boxing purposes*/
25 char box_horizchar; /*Horizontal char for boxing purposes*/
29 /*Dumb gwin's creation parameters*/
30 struct gator_dumbgwin_params {
31 struct gwin_createparams gwin_params; /*Basic params for the window*/
32 char box_vertchar; /*Vertical char for boxing purposes*/
33 char box_horizchar; /*Horizontal char for boxing purposes*/
36 /*Dumb windows initialization routine*/
38 extern int gator_dumbgwin_init();
41 * Initialize the dumb window package.
44 * int adebug: Is debugging turned on?
48 * Error value otherwise.
51 /*Dumb window's creation routine*/
53 extern struct gwin *gator_dumbgwin_create();
56 * Create a dumb window.
59 * struct gator_dumbgwin_params *params : Ptr to creation parameters.
62 * Ptr to the created dumb window structure if successful,
63 * Error value otherwise.
66 /*Dumb cleanup routine*/
68 extern int gator_dumbgwin_cleanup();
71 * Clean up after the dumb window package.
74 * struct gwin *gwp : Ptr to base window.
78 * Error value otherwise.
81 extern struct gwinbaseops gator_dumb_gwinbops;
83 /*Dumb window's routines*/
85 extern int gator_dumbgwin_box();
88 * Draw a box around the given dumb window.
91 * struct gwin *gwp : Ptr to the dumb window to draw
96 * Error value otherwise.
99 extern int gator_dumbgwin_clear();
102 * Clear out the given dumb window.
105 * struct gwin *gwp : Ptr to the dumb window to clear
110 * Error value otherwise.
113 extern int gator_dumbgwin_destroy();
116 * Destroy the given dumb window.
119 * struct gwin *gwp : Ptr to the dumb window to destroy.
123 * Error value otherwise.
126 extern int gator_dumbgwin_display();
129 * Display/redraw the given dumb window.
132 * struct gwin *gwp : Ptr to the dumb window to draw.
136 * Error value otherwise.
139 extern int gator_dumbgwin_drawline();
142 * Draw a line between two points in the given dumb
146 * struct gwin *gwp : Ptr to the dumb window in which
147 * the line is to be drawn.
148 * struct gwin_lineparams *params : Ptr to other params.
152 * Error value otherwise.
155 extern int gator_dumbgwin_drawrectangle();
158 * Draw a rectangle in the given dumb window.
161 * struct gwin *gwp : Ptr to the dumb window in which
162 * the rectangle is to be drawn.
163 * struct gwin_rectparams *params : Ptr to other params.
167 * Error value otherwise.
170 extern int gator_dumbgwin_drawchar();
173 * Draw a character in the given dumb window.
176 * struct gwin *gwp : Ptr to the dumb window in which
177 * the character is to be drawn.
178 * struct gwin_charparams *params : Ptr to other params.
182 * Error value otherwise.
185 extern int gator_dumbgwin_drawstring();
188 * Draw a string in the given dumb window.
191 * struct gwin *gwp : Ptr to the dumb window in which
192 * the string is to be drawn.
193 * struct gwin_strparams *params : Ptr to other params.
197 * Error value otherwise.
200 extern int gator_dumbgwin_invert();
203 * Invert a region in the given dumb window.
206 * struct gwin *gwp : Ptr to the dumb window in which
207 * the inverted region lies.
208 * struct gwin_invparams *params : Ptr to other params.
212 * Error value otherwise.
215 extern int gator_dumbgwin_getchar();
216 /* get a character from a window */
218 extern int gator_dumbgwin_getdimensions();
220 extern int gator_dumbgwin_wait();
222 #endif /* __gator_dumbwindows_h */