-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathga-windows-4.3.rs
More file actions
331 lines (329 loc) · 12.2 KB
/
ga-windows-4.3.rs
File metadata and controls
331 lines (329 loc) · 12.2 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
/* automatically generated by rust-bindgen 0.71.1 */
/* OS: windows */
/* Platform: */
/* rustc 1.85.1 (4eb161250 2025-03-15) */
/* R version: 4.3.3 */
pub type popup = menu;
#[doc = " printer.c"]
pub type printer = objptr;
#[doc = " metafile.c"]
pub type metafile = objptr;
#[doc = " gmenus.c"]
#[repr(C)]
pub struct MenuItem {
pub nm: *mut ::std::os::raw::c_char,
pub fn_: menufn,
pub key: ::std::os::raw::c_int,
pub m: menuitem,
}
pub const DblClick: u32 = 16;
pub const Border: u32 = 269484032;
pub const lSolid: u32 = 0;
pub const lDash: u32 = 69;
pub const lShortDash: u32 = 67;
pub const lLongDash: u32 = 72;
pub const lDot: u32 = 65;
pub const lDashDot: u32 = 16709;
pub const lShortDashDot: u32 = 16707;
pub const lLongDashDot: u32 = 16712;
pub const lDashDotDot: u32 = 4272453;
pub const lShortDashDotDot: u32 = 4272451;
pub const lLongDashDotDot: u32 = 4272456;
pub const HWINSB: u32 = 0;
pub const VWINSB: u32 = 1;
pub const CONTROLSB: u32 = 2;
unsafe extern "C" {
#[doc = " renamed functions"]
pub fn GA_gamainloop();
pub fn GA_gabeep();
pub fn GA_appcleanup();
pub fn GA_ismdi() -> ::std::os::raw::c_int;
pub fn GA_isUnicodeWindow(c: control) -> ::std::os::raw::c_int;
pub fn GA_isiconic(w: window) -> ::std::os::raw::c_int;
pub fn GA_screen_coords(c: control) -> rect;
pub fn GA_newmdimenu() -> menu;
pub fn GA_newpopup(fn_: actionfn) -> popup;
pub fn GA_gmenubar(fn_: actionfn, arg1: *mut MenuItem) -> menubar;
pub fn GA_gpopup(fn_: actionfn, arg1: *mut MenuItem) -> popup;
pub fn GA_gchangepopup(w: window, p: popup);
#[doc = " next is limited to current window..."]
pub fn GA_gchangemenubar(mb: menubar);
#[doc = " tooltips.c"]
pub fn GA_addtooltip(c: control, tp: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
#[doc = " status.c"]
pub fn GA_addstatusbar() -> ::std::os::raw::c_int;
pub fn GA_delstatusbar() -> ::std::os::raw::c_int;
pub fn GA_setstatus(text: *const ::std::os::raw::c_char);
#[doc = " dialogs.c"]
pub fn GA_setuserfilter(arg1: *const ::std::os::raw::c_char);
pub fn GA_askchangedir();
pub fn GA_askcdstring(
question: *const ::std::os::raw::c_char,
default_string: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
pub fn GA_askfilesavewithdir(
title: *const ::std::os::raw::c_char,
default_name: *const ::std::os::raw::c_char,
dir: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
pub fn GA_askfilenames(
title: *const ::std::os::raw::c_char,
default_name: *const ::std::os::raw::c_char,
multi: ::std::os::raw::c_int,
filters: *const ::std::os::raw::c_char,
filterindex: ::std::os::raw::c_int,
strbuf: *mut ::std::os::raw::c_char,
bufsize: ::std::os::raw::c_int,
dir: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
pub fn GA_countFilenames(strbuf: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
pub fn setuserfilterW(arg1: *const wchar_t);
pub fn askfilenameW(
title: *const ::std::os::raw::c_char,
default_name: *const ::std::os::raw::c_char,
) -> *mut wchar_t;
pub fn askfilenamesW(
title: *const wchar_t,
default_name: *const wchar_t,
multi: ::std::os::raw::c_int,
filters: *const wchar_t,
filterindex: ::std::os::raw::c_int,
dir: *const wchar_t,
) -> *mut wchar_t;
pub fn askfilesaveW(
title: *const ::std::os::raw::c_char,
default_name: *const ::std::os::raw::c_char,
) -> *mut wchar_t;
#[doc = " rgb.c"]
pub fn GA_nametorgb(colourname: *const ::std::os::raw::c_char) -> rgb;
pub fn GA_rgbtoname(in_: rgb) -> *const ::std::os::raw::c_char;
pub fn GA_rgbtonum(in_: rgb) -> ::std::os::raw::c_int;
pub fn GA_myGetSysColor(arg1: ::std::os::raw::c_int) -> rgb;
pub fn GA_dialog_bg() -> rgb;
#[doc = " clipboard.c"]
pub fn GA_copytoclipboard(src: drawing);
pub fn GA_copystringtoclipboard(str_: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
pub fn GA_getstringfromclipboard(
str_: *mut ::std::os::raw::c_char,
n: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
pub fn GA_clipboardhastext() -> ::std::os::raw::c_int;
#[doc = " gimage.c"]
pub fn GA_bitmaptoimage(bm: bitmap) -> image;
pub fn GA_newprinter(w: f64, h: f64, name: *const ::std::os::raw::c_char) -> printer;
pub fn GA_nextpage(p: printer);
pub fn GA_newmetafile(
name: *const ::std::os::raw::c_char,
width: f64,
height: f64,
xpinch: f64,
ypinch: f64,
) -> metafile;
pub fn GA_ggetcliprect(d: drawing) -> rect;
pub fn GA_gsetcliprect(d: drawing, r: rect);
pub fn GA_gbitblt(db: bitmap, sb: bitmap, p: point, r: rect);
pub fn GA_gscroll(d: drawing, dp: point, r: rect);
pub fn GA_ginvert(d: drawing, r: rect);
pub fn GA_ggetpixel(d: drawing, p: point) -> rgb;
pub fn GA_gsetpixel(d: drawing, p: point, c: rgb);
pub fn GA_gdrawline(
d: drawing,
width: ::std::os::raw::c_int,
style: ::std::os::raw::c_int,
c: rgb,
p1: point,
p2: point,
fast: ::std::os::raw::c_int,
lend: ::std::os::raw::c_int,
ljoin: ::std::os::raw::c_int,
lmitre: f32,
);
pub fn GA_gdrawrect(
d: drawing,
width: ::std::os::raw::c_int,
style: ::std::os::raw::c_int,
c: rgb,
r: rect,
fast: ::std::os::raw::c_int,
lend: ::std::os::raw::c_int,
ljoin: ::std::os::raw::c_int,
lmitre: f32,
);
pub fn GA_gfillrect(d: drawing, fill: rgb, r: rect);
pub fn GA_gcopy(d: drawing, d2: drawing, r: rect);
pub fn GA_gcopyalpha(d: drawing, d2: drawing, r: rect, alpha: ::std::os::raw::c_int);
pub fn gcopyalpha2(d: drawing, src: image, r: rect);
pub fn GA_gdrawellipse(
d: drawing,
width: ::std::os::raw::c_int,
border: rgb,
r: rect,
fast: ::std::os::raw::c_int,
lend: ::std::os::raw::c_int,
ljoin: ::std::os::raw::c_int,
lmitre: f32,
);
pub fn GA_gfillellipse(d: drawing, fill: rgb, r: rect);
pub fn GA_gdrawpolyline(
d: drawing,
width: ::std::os::raw::c_int,
style: ::std::os::raw::c_int,
c: rgb,
p: *mut point,
n: ::std::os::raw::c_int,
closepath: ::std::os::raw::c_int,
fast: ::std::os::raw::c_int,
lend: ::std::os::raw::c_int,
ljoin: ::std::os::raw::c_int,
lmitre: f32,
);
pub fn GA_gsetpolyfillmode(d: drawing, oddeven: ::std::os::raw::c_int);
pub fn GA_gfillpolygon(d: drawing, fill: rgb, p: *mut point, n: ::std::os::raw::c_int);
pub fn gfillpolypolygon(
d: drawing,
fill: rgb,
p: *mut point,
npoly: ::std::os::raw::c_int,
nper: *mut ::std::os::raw::c_int,
);
pub fn gdrawimage(d: drawing, img: image, dr: rect, sr: rect);
pub fn gmaskimage(d: drawing, img: image, dr: rect, sr: rect, mask: image);
pub fn GA_gdrawstr(
d: drawing,
f: font,
c: rgb,
p: point,
s: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
pub fn GA_gdrawstr1(
d: drawing,
f: font,
c: rgb,
p: point,
s: *const ::std::os::raw::c_char,
hadj: f64,
);
pub fn GA_gstrrect(d: drawing, f: font, s: *const ::std::os::raw::c_char) -> rect;
pub fn GA_gstrsize(d: drawing, f: font, s: *const ::std::os::raw::c_char) -> point;
pub fn GA_gstrwidth(
d: drawing,
f: font,
s: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
pub fn GA_gcharmetric(
d: drawing,
f: font,
c: ::std::os::raw::c_int,
ascent: *mut ::std::os::raw::c_int,
descent: *mut ::std::os::raw::c_int,
width: *mut ::std::os::raw::c_int,
);
pub fn GA_gnewfont(
d: drawing,
face: *const ::std::os::raw::c_char,
style: ::std::os::raw::c_int,
size: ::std::os::raw::c_int,
rot: f64,
usePoints: ::std::os::raw::c_int,
) -> font;
pub fn GA_gnewfont2(
d: drawing,
face: *const ::std::os::raw::c_char,
style: ::std::os::raw::c_int,
size: ::std::os::raw::c_int,
rot: f64,
usePoints: ::std::os::raw::c_int,
quality: ::std::os::raw::c_int,
) -> font;
pub fn GA_ghasfixedwidth(f: font) -> ::std::os::raw::c_int;
pub fn GA_newfield_no_border(text: *const ::std::os::raw::c_char, r: rect) -> field;
pub fn GA_gdrawwcs(
d: drawing,
f: font,
c: rgb,
p: point,
s: *const wchar_t,
) -> ::std::os::raw::c_int;
pub fn GA_gwcswidth(d: drawing, f: font, s: *const wchar_t) -> ::std::os::raw::c_int;
pub fn GA_gwcharmetric(
d: drawing,
f: font,
c: ::std::os::raw::c_int,
ascent: *mut ::std::os::raw::c_int,
descent: *mut ::std::os::raw::c_int,
width: *mut ::std::os::raw::c_int,
);
pub fn GA_gwdrawstr1(
d: drawing,
f: font,
c: rgb,
p: point,
s: *const wchar_t,
cnt: ::std::os::raw::c_int,
hadj: f64,
);
pub fn gstrwidth1(
d: drawing,
f: font,
s: *const ::std::os::raw::c_char,
enc: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
#[doc = " pixels"]
pub fn GA_devicewidth(dev: drawing) -> ::std::os::raw::c_int;
pub fn GA_deviceheight(dev: drawing) -> ::std::os::raw::c_int;
#[doc = " mm"]
pub fn GA_devicewidthmm(dev: drawing) -> ::std::os::raw::c_int;
pub fn GA_deviceheightmm(dev: drawing) -> ::std::os::raw::c_int;
#[doc = " pixels per inch"]
pub fn GA_devicepixelsx(dev: drawing) -> ::std::os::raw::c_int;
pub fn GA_devicepixelsy(dev: drawing) -> ::std::os::raw::c_int;
pub fn GA_isTopmost(w: window) -> ::std::os::raw::c_int;
pub fn GA_BringToTop(w: window, stay: ::std::os::raw::c_int);
pub fn GA_getHandle(w: window) -> *mut ::std::os::raw::c_void;
pub fn GA_msgWindow(c: window, type_: ::std::os::raw::c_int);
pub fn GA_gchangescrollbar(
sb: scrollbar,
which: ::std::os::raw::c_int,
where_: ::std::os::raw::c_int,
max: ::std::os::raw::c_int,
pagesize: ::std::os::raw::c_int,
disablenoscroll: ::std::os::raw::c_int,
);
pub fn GA_gsetcursor(d: drawing, c: cursor);
pub fn GA_newtoolbar(height: ::std::os::raw::c_int) -> control;
pub fn GA_newtoolbutton(img: image, r: rect, fn_: actionfn) -> button;
pub fn GA_scrolltext(c: textbox, lines: ::std::os::raw::c_int);
pub fn GA_ggetkeystate() -> ::std::os::raw::c_int;
pub fn GA_scrollcaret(c: textbox, lines: ::std::os::raw::c_int);
pub fn GA_gsetmodified(c: textbox, modified: ::std::os::raw::c_int);
pub fn GA_ggetmodified(c: textbox) -> ::std::os::raw::c_int;
pub fn GA_getlinelength(c: textbox) -> ::std::os::raw::c_int;
pub fn GA_getcurrentline(
c: textbox,
line: *mut ::std::os::raw::c_char,
length: ::std::os::raw::c_int,
);
pub fn GA_getseltext(c: textbox, text: *mut ::std::os::raw::c_char);
pub fn GA_setlimittext(t: textbox, limit: ::std::os::raw::c_long);
pub fn GA_getlimittext(t: textbox) -> ::std::os::raw::c_long;
pub fn GA_checklimittext(t: textbox, n: ::std::os::raw::c_long);
pub fn GA_getpastelength() -> ::std::os::raw::c_long;
pub fn GA_textselectionex(
obj: control,
start: *mut ::std::os::raw::c_long,
end: *mut ::std::os::raw::c_long,
);
pub fn GA_selecttextex(
obj: control,
start: ::std::os::raw::c_long,
end: ::std::os::raw::c_long,
);
pub fn GA_finddialog(t: textbox);
pub fn GA_replacedialog(t: textbox);
pub fn GA_modeless_active() -> ::std::os::raw::c_int;
#[doc = " menus.c"]
pub fn GA_remove_menu_item(obj: menuitem);
#[doc = " events.c"]
pub fn GA_toolbar_show();
pub fn GA_toolbar_hide();
}