-
Notifications
You must be signed in to change notification settings - Fork 1
/
wlib.h
62 lines (57 loc) · 2.27 KB
/
wlib.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
* COPS (c) 1995 - 2003 Sven & Wilfried Behne
* 2004 F.Naumann & O.Skancke
*
* A XCONTROL compatible CPX manager.
*
* This file is part of COPS.
*
* COPS is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* COPS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with XaAES; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _wlib_h
#define _wlib_h
#include <gemx.h>
#include "wstruct.h"
short init_wlib(short id);
short reset_wlib(void);
WINDOW *get_window_list(void);
WINDOW *search_struct(short handle);
WINDOW *create_window(short kind, GRECT *border, short *handle, char *name, char *iconified_name);
void set_slpos(WINDOW *window);
void set_slsize(WINDOW *window);
void redraw_window(short handle, GRECT *area);
void delete_window(short handle, short delete);
void move_window(short handle, GRECT *area);
void arr_window(short handle, short command);
void up_window(WINDOW *window, long dy);
void dn_window(WINDOW *window, long dy);
void lf_window(WINDOW *window, long dx);
void rt_window(WINDOW *window, long dx);
void hlsid_window(short handle, short hslid);
void vslid_window(short handle, short vslid);
void size_window(short handle, GRECT *size);
void full_window(short handle, short max_width, short max_height);
void iconify_window(short handle, GRECT *size);
void uniconify_window(short handle, GRECT *size);
void switch_window(void);
#define uppage_window(w) up_window(w, w->workarea.g_h)
#define dnpage_window(w) dn_window(w, w->workarea.g_h)
#define upline_window(w) up_window(w, w->dy)
#define dnline_window(w) dn_window(w, w->dy)
#define lfpage_window(w) lf_window(w, w->workarea.g_w)
#define rtpage_window(w) rt_window(w, w->workarea.g_w)
#define lfline_window(w) lf_window(w, w->dx)
#define rtline_window(w) rt_window(w, w->dx)
#endif /* _wlib_h */