13434
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
1 /* Definitions and headers for communication with Win32 GUI.
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
2 Copyright (C) 1995 Free Software Foundation, Inc.
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
3
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
4 This file is part of GNU Emacs.
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
5
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
6 GNU Emacs is free software; you can redistribute it and/or modify
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
7 it under the terms of the GNU General Public License as published by
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
8 the Free Software Foundation; either version 2, or (at your option)
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
9 any later version.
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
10
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
11 GNU Emacs is distributed in the hope that it will be useful,
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
14 GNU General Public License for more details.
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
15
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
16 You should have received a copy of the GNU General Public License
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
17 along with GNU Emacs; see the file COPYING. If not, write to
|
14186
|
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
19 Boston, MA 02111-1307, USA. */
|
13434
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
20
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
21 #ifndef __WIN32_H__
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
22 #define __WIN32_H__
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
23
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
24 #include <windows.h>
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
25
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
26 typedef struct W32FontStruct {
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
27 TEXTMETRIC tm;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
28 HFONT hfont;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
29 } W32FontStruct;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
30
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
31 typedef HBITMAP Pixmap;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
32 typedef HBITMAP Bitmap;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
33 typedef struct W32FontStruct XFontStruct;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
34 typedef HDC GC;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
35 typedef COLORREF Color;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
36 typedef DWORD Time;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
37 typedef HWND Window;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
38 typedef HCURSOR Cursor;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
39
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
40 #define FACE_DEFAULT (~0)
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
41
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
42 extern HINSTANCE hinst;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
43 extern HINSTANCE hprevinst;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
44 extern LPSTR lpCmdLine;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
45 extern int nCmdShow;
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
46
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
47 /* Bit Gravity */
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
48
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
49 #define ForgetGravity 0
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
50 #define NorthWestGravity 1
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
51 #define NorthGravity 2
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
52 #define NorthEastGravity 3
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
53 #define WestGravity 4
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
54 #define CenterGravity 5
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
55 #define EastGravity 6
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
56 #define SouthWestGravity 7
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
57 #define SouthGravity 8
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
58 #define SouthEastGravity 9
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
59 #define StaticGravity 10
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
60
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
61 #define NoValue 0x0000
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
62 #define XValue 0x0001
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
63 #define YValue 0x0002
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
64 #define WidthValue 0x0004
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
65 #define HeightValue 0x0008
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
66 #define AllValues 0x000F
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
67 #define XNegative 0x0010
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
68 #define YNegative 0x0020
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
69
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
70 #define USPosition (1L << 0) /* user specified x, y */
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
71 #define USSize (1L << 1) /* user specified width, height */
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
72
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
73 #define PPosition (1L << 2) /* program specified position */
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
74 #define PSize (1L << 3) /* program specified size */
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
75 #define PMinSize (1L << 4) /* program specified minimum size */
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
76 #define PMaxSize (1L << 5) /* program specified maximum size */
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
77 #define PResizeInc (1L << 6) /* program specified resize increments */
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
78 #define PAspect (1L << 7) /* program specified min and max aspect ratios */
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
79 #define PBaseSize (1L << 8) /* program specified base for incrementing */
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
80 #define PWinGravity (1L << 9) /* program specified window gravity */
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
81
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
82 extern int XParseGeometry ();
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
83
|
Geoff Voelker <voelker@cs.washington.edu>
parents:
diff
changeset
|
84 #endif
|