1 /*-
2  * Copyright (c) 2007,2008 Igor Serikov
3  *
4  * Permission to use, copy, modify, distribute, and sell this software and its
5  * documentation for any purpose is hereby granted without fee, provided that
6  * the above copyright notice appear in all copies and that both that
7  * copyright notice and this permission notice appear in supporting
8  * documentation. The copyright holders make no representations about the
9  * suitability of this software for any purpose.  It is provided "as is"
10  * without express or implied warranty.
11  *
12  * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
13  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
14  * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
15  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
16  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
17  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18  * PERFORMANCE OF THIS SOFTWARE.
19  */
20 
21 enum {
22     dir_up = 0,
23     dir_right,
24     dir_down,
25     dir_left,
26     dir_none
27 };
28 
29 typedef struct VCOLOR VCOLOR;
30 
31 VCOLOR * AllocVColor (char * Name);
32 void InitView (VCOLOR * Background, VCOLOR * Border, int FieldWidth, int FieldHeight);
33 void ViewDrawPoint (VCOLOR* Color, int x, int y, int dir);
34 
35 void  AppRedraw (int x, int y, int width, int height);
36 int AppKey (int c);
37