]> git.saurik.com Git - wxWidgets.git/blame - contrib/src/stc/scintilla/include/WinDefs.h
Added RTLD_GLOBAL to dlopen() flags which is needed if libraries depend
[wxWidgets.git] / contrib / src / stc / scintilla / include / WinDefs.h
CommitLineData
9ce192d4
RD
1// Scintilla source code edit control
2// WinDefs.h - the subset of definitions from Windows needed by Scintilla for GTK+
3// Copyright 1998-2000 by Neil Hodgson <neilh@scintilla.org>
4// The License.txt file describes the conditions under which this software may be distributed.
5
6#ifndef WINDEFS_H
7#define WINDEFS_H
8
9#define WORD short
10#define WPARAM unsigned long
11#define LPARAM long
12#define LRESULT long
13#define DWORD long
14
15#define UINT unsigned int
16#define LPSTR char *
17#define LONG long
18
19/* RTF control */
20#define EM_CANPASTE (1074)
21#define EM_CANUNDO (198)
22#define EM_CHARFROMPOS (215)
23#define EM_DISPLAYBAND (1075)
24#define EM_EMPTYUNDOBUFFER (205)
25#define EM_EXGETSEL (1076)
26#define EM_EXLIMITTEXT (1077)
27#define EM_EXLINEFROMCHAR (1078)
28#define EM_EXSETSEL (1079)
29#define EM_FINDTEXT (1080)
30#define EM_FINDTEXTEX (1103)
31#define EM_FINDWORDBREAK (1100)
32#define EM_FMTLINES (200)
33#define EM_FORMATRANGE (1081)
34#define EM_GETCHARFORMAT (1082)
35#define EM_GETEVENTMASK (1083)
36#define EM_GETFIRSTVISIBLELINE (206)
37#define EM_GETHANDLE (189)
38#define EM_GETLIMITTEXT (213)
39#define EM_GETLINE (196)
40#define EM_GETLINECOUNT (186)
41#define EM_GETMARGINS (212)
42#define EM_GETMODIFY (184)
43#define EM_GETIMECOLOR (1129)
44#define EM_GETIMEOPTIONS (1131)
45#define EM_GETOPTIONS (1102)
46#define EM_GETOLEINTERFACE (1084)
47#define EM_GETPARAFORMAT (1085)
48#define EM_GETPASSWORDCHAR (210)
49#define EM_GETPUNCTUATION (1125)
50#define EM_GETRECT (178)
51#define EM_GETSEL (176)
52#define EM_GETSELTEXT (1086)
53#define EM_GETTEXTRANGE (1099)
54#define EM_GETTHUMB (190)
55#define EM_GETWORDBREAKPROC (209)
56#define EM_GETWORDBREAKPROCEX (1104)
57#define EM_GETWORDWRAPMODE (1127)
58#define EM_HIDESELECTION (1087)
59#define EM_LIMITTEXT (197)
60#define EM_LINEFROMCHAR (201)
61#define EM_LINEINDEX (187)
62#define EM_LINELENGTH (193)
63#define EM_LINESCROLL (182)
64#define EM_PASTESPECIAL (1088)
65#define EM_POSFROMCHAR (214)
66#define EM_REPLACESEL (194)
67#define EM_REQUESTRESIZE (1089)
68#define EM_SCROLL (181)
69#define EM_SCROLLCARET (183)
70#define EM_SELECTIONTYPE (1090)
71#define EM_SETBKGNDCOLOR (1091)
72#define EM_SETCHARFORMAT (1092)
73#define EM_SETEVENTMASK (1093)
74#define EM_SETHANDLE (188)
75#define EM_SETIMECOLOR (1128)
76#define EM_SETIMEOPTIONS (1130)
77#define EM_SETLIMITTEXT (197)
78#define EM_SETMARGINS (211)
79#define EM_SETMODIFY (185)
80#define EM_SETOLECALLBACK (1094)
81#define EM_SETOPTIONS (1101)
82#define EM_SETPARAFORMAT (1095)
83#define EM_SETPASSWORDCHAR (204)
84#define EM_SETPUNCTUATION (1124)
85#define EM_SETREADONLY (207)
86#define EM_SETRECT (179)
87#define EM_SETRECTNP (180)
88#define EM_SETSEL (177)
89#define EM_SETTABSTOPS (203)
90#define EM_SETTARGETDEVICE (1096)
91#define EM_SETWORDBREAKPROC (208)
92#define EM_SETWORDBREAKPROCEX (1105)
93#define EM_SETWORDWRAPMODE (1126)
94#define EM_STREAMIN (1097)
95#define EM_STREAMOUT (1098)
96#define EM_UNDO (199)
97
98#define WM_NULL (0)
99#define WM_CLEAR (771)
100#define WM_COMMAND (273)
101#define WM_COPY (769)
102#define WM_CUT (768)
103#define WM_GETTEXT (13)
104#define WM_GETTEXTLENGTH (14)
105#define WM_NOTIFY (78)
106#define WM_PASTE (770)
107#define WM_SETTEXT (12)
108#define WM_UNDO (772)
109
110#define EN_CHANGE (768)
111#define EN_KILLFOCUS (512)
112#define EN_SETFOCUS (256)
113
114#define EC_LEFTMARGIN 1
115#define EC_RIGHTMARGIN 2
116#define EC_USEFONTINFO 0xffff
117
118#if PLAT_GTK
119#define VK_DOWN GDK_Down
120#define VK_UP GDK_Up
121#define VK_LEFT GDK_Left
122#define VK_RIGHT GDK_Right
123#define VK_HOME GDK_Home
124#define VK_END GDK_End
125#define VK_PRIOR GDK_Page_Up
126#define VK_NEXT GDK_Page_Down
127#define VK_DELETE GDK_Delete
128#define VK_INSERT GDK_Insert
129#define VK_ESCAPE GDK_Escape
130#define VK_BACK GDK_BackSpace
131#define VK_TAB GDK_Tab
132#define VK_RETURN GDK_Return
133#define VK_ADD GDK_KP_Add
134#define VK_SUBTRACT GDK_KP_Subtract
135#endif
136
137#if PLAT_WX
138#define VK_DOWN WXK_DOWN
139#define VK_UP WXK_UP
140#define VK_LEFT WXK_LEFT
141#define VK_RIGHT WXK_RIGHT
142#define VK_HOME WXK_HOME
143#define VK_END WXK_END
144#define VK_PRIOR WXK_PRIOR
145#define VK_NEXT WXK_NEXT
146#define VK_DELETE WXK_DELETE
147#define VK_INSERT WXK_INSERT
148#define VK_ESCAPE WXK_ESCAPE
149#define VK_BACK WXK_BACK
150#define VK_TAB WXK_TAB
151#define VK_RETURN WXK_RETURN
152#define VK_ADD WXK_ADD
153#define VK_SUBTRACT WXK_SUBTRACT
154
155// Are these needed any more
156#define LPSTR char *
157#define LONG long
158#define LPDWORD (long *)
159#endif
160
161/* SELCHANGE structure */
162#define SEL_EMPTY (0)
163#define SEL_TEXT (1)
164#define SEL_OBJECT (2)
165#define SEL_MULTICHAR (4)
166#define SEL_MULTIOBJECT (8)
167
168/* FINDREPLACE structure */
169#define FR_MATCHCASE (0x4)
170#define FR_WHOLEWORD (0x2)
171#define FR_DOWN (0x1)
172
173#define SHIFT_PRESSED 1
174#define LEFT_CTRL_PRESSED 2
175#define LEFT_ALT_PRESSED 4
176
177struct RECT {
178 LONG left;
179 LONG top;
180 LONG right;
181 LONG bottom;
182};
183
184struct CHARRANGE {
185 LONG cpMin;
186 LONG cpMax;
187};
188
189struct TEXTRANGE {
190 CHARRANGE chrg;
191 LPSTR lpstrText;
192};
193
194struct FINDTEXTEX {
195 CHARRANGE chrg;
196 LPSTR lpstrText;
197 CHARRANGE chrgText;
198};
199
200struct NMHDR {
201 WindowID hwndFrom;
202 UINT idFrom;
203 UINT code;
204};
205
206struct FORMATRANGE {
207 SurfaceID hdc;
208 SurfaceID hdcTarget;
209 RECT rc;
210 RECT rcPage;
211 CHARRANGE chrg;
212};
213
214#define MAKELONG(a, b) ((a) | ((b) << 16))
215#define LOWORD(x) (x & 0xffff)
216#define HIWORD(x) (x >> 16)
217
218#endif