chiark / gitweb /
Imported Debian patch 1.0.0-6
[e16] / src / screen.h
1 /*
2  * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
3  * Copyright (C) 2004-2007 Kim Woelders
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a copy
6  * of this software and associated documentation files (the "Software"), to
7  * deal in the Software without restriction, including without limitation the
8  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9  * sell copies of the Software, and to permit persons to whom the Software is
10  * furnished to do so, subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice shall be included in
13  * all copies of the Software, its documentation and marketing & publicity
14  * materials, and acknowledgment shall be given in the documentation, materials
15  * and software packages that this Software was used.
16  *
17  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20  * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
21  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23  */
24 #ifndef _SCREEN_H_
25 #define _SCREEN_H_
26
27 /* screen.c */
28 void                ScreenInit(void);
29 void                ScreenAdd(int type, int head, int x, int y, unsigned int w,
30                               unsigned int h);
31 void                ScreenSplit(unsigned int nx, unsigned int ny);
32 void                ScreenShowInfo(const char *prm);
33 int                 ScreenGetGeometry(int x, int y, int *px, int *py,
34                                       int *pw, int *ph);
35 void                ScreenGetGeometryByHead(int head, int *px, int *py,
36                                             int *pw, int *ph);
37 int                 ScreenGetAvailableArea(int x, int y, int *px, int *py,
38                                            int *pw, int *ph);
39 int                 ScreenGetGeometryByPointer(int *px, int *py,
40                                                int *pw, int *ph);
41 int                 ScreenGetAvailableAreaByPointer(int *px, int *py,
42                                                     int *pw, int *ph);
43
44 #endif /* _SCREEN_H_ */