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
332
333
334
335
336
337
338
339
340
341
342
|
//
// "$Id$"
//
// core code stubs for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2015 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see the license at:
//
// http://www.fltk.org/COPYING.php
//
// Please report all bugs and problems on the following page:
//
// http://www.fltk.org/str.php
//
#ifndef FL_DOXYGEN
#include <FL/Fl.H>
#include <FL/fl_utf8.h>
#include <FL/Fl_Window.H>
#include <FL/fl_draw.H>
#include <FL/Enumerations.H>
#include <FL/Fl_Tooltip.H>
#include <FL/Fl_Paged_Device.H>
#include "flstring.h"
#include "Fl_Font.H"
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <time.h>
#include <signal.h>
extern unsigned int fl_codepage;
Fl_Fontdesc* fl_fonts = NULL;
void *fl_gc = NULL;
Window fl_window = NULL;
void fl_set_status(int x, int y, int w, int h)
{
# pragma message "FL_PORTING: implement fl_set_status"
}
void Fl::add_fd(int n, int events, void (*cb)(FL_SOCKET, void*), void *v) {
# pragma message "FL_PORTING: implement Fl::add_fd"
}
void Fl::add_fd(int fd, void (*cb)(FL_SOCKET, void*), void* v) {
# pragma message "FL_PORTING: implement Fl::add_fd"
}
void Fl::remove_fd(int n, int events) {
# pragma message "FL_PORTING: implement Fl::remove_fd"
}
void Fl::remove_fd(int n) {
# pragma message "FL_PORTING: implement Fl::remove_fd"
}
static void nothing() {}
void (*fl_lock_function)() = nothing;
void (*fl_unlock_function)() = nothing;
//void* Fl::thread_message() {
//# pragma message "FL_PORTING: implement Fl::thread_message"
//}
int fl_wait(double time_to_wait) {
# pragma message "FL_PORTING: implement fl_wait"
Fl::flush();
return 0;
}
int fl_ready() {
# pragma message "FL_PORTING: implement fl_ready"
return 0;
}
void fl_open_display() {
# pragma message "FL_PORTING: implement fl_open_display()"
}
void Fl::enable_im() {
# pragma message "FL_PORTING: implement Fl::enable_im"
}
void Fl::disable_im() {
# pragma message "FL_PORTING: implement Fl::disable_im"
}
int Fl::x()
{
# pragma message "FL_PORTING: implement Fl::x"
return 0;
}
int Fl::y()
{
# pragma message "FL_PORTING: implement Fl::y"
return 0;
}
int Fl::h()
{
# pragma message "FL_PORTING: implement Fl::h"
return 600;
}
int Fl::w()
{
# pragma message "FL_PORTING: implement Fl::w"
return 800;
}
char *fl_selection_buffer[2];
int fl_selection_length[2];
int fl_selection_buffer_length[2];
char fl_i_own_selection[2];
void fl_update_clipboard(void) {
# pragma message "FL_PORTING: implement fl_update_clipboard"
}
// call this when you create a selection:
void Fl::copy(const char *stuff, int len, int clipboard, const char *type) {
# pragma message "FL_PORTING: implement Fl::copy"
}
// Call this when a "paste" operation happens:
void Fl::paste(Fl_Widget &receiver, int clipboard, const char *type) {
# pragma message "FL_PORTING: implement Fl::paste"
}
int Fl::clipboard_contains(const char *type)
{
# pragma message "FL_PORTING: implement Fl::clipboard_contains"
return 0;
}
void fl_get_codepage()
{
# pragma message "FL_PORTING: implement fl_get_codepage"
}
int Fl_X::fake_X_wm(const Fl_Window* w,int &X,int &Y, int &bt,int &bx, int &by) {
# pragma message "FL_PORTING: don't ask. We do't know either..."
return 0;
}
void Fl_Window::resize(int X,int Y,int W,int H) {
# pragma message "FL_PORTING: implement Fl_Window::resize"
}
//void Fl_X::make_fullscreen(int X, int Y, int W, int H) {
//# pragma message "FL_PORTING: implement Fl_X::make_fullscreen"
//}
void Fl_Window::fullscreen_x() {
# pragma message "FL_PORTING: implement Fl_Window::fullscreen_x"
}
void Fl_Window::fullscreen_off_x(int X, int Y, int W, int H) {
# pragma message "FL_PORTING: implement Fl_Window::fullscreen_off_x"
}
void fl_fix_focus(); // in Fl.cxx
char fl_show_iconic;
int fl_disable_transient_for; // secret method of removing TRANSIENT_FOR
Fl_X* Fl_X::make(Fl_Window* w) {
# pragma message "FL_PORTING: implement Fl_X::make"
return 0;
}
void Fl::add_timeout(double time, Fl_Timeout_Handler cb, void* data)
{
# pragma message "FL_PORTING: implement Fl::add_timeout"
}
void Fl::repeat_timeout(double time, Fl_Timeout_Handler cb, void* data)
{
# pragma message "FL_PORTING: implement Fl::repeat_timeout"
}
int Fl::has_timeout(Fl_Timeout_Handler cb, void* data)
{
# pragma message "FL_PORTING: implement Fl::has_timeout"
return 0;
}
void Fl::remove_timeout(Fl_Timeout_Handler cb, void* data)
{
# pragma message "FL_PORTING: implement Fl::remove_timeout"
}
void Fl_Window::size_range_() {
size_range_set = 1;
}
#include <FL/filename.H> // need so FL_EXPORT fl_filename_name works
// returns pointer to the filename, or null if name ends with '/'
const char *fl_filename_name(const char *name) {
# pragma message "FL_PORTING: implement fl_filename_name"
return 0;
}
void Fl_Window::label(const char *name,const char *iname) {
# pragma message "FL_PORTING: implement Fl_Window::label"
}
void Fl_X::set_default_icons(const Fl_RGB_Image *icons[], int count) {
# pragma message "FL_PORTING: implement Fl_X::set_defult_icons"
}
void Fl_X::set_icons() {
# pragma message "FL_PORTING: implement Fl_X::set_icons"
}
int Fl_X::set_cursor(Fl_Cursor c) {
# pragma message "FL_PORTING: implement Fl_X::set_cursor"
return 1;
}
int Fl_X::set_cursor(const Fl_RGB_Image *image, int hotx, int hoty) {
# pragma message "FL_PORTING: implement Fl_X::set_cursor"
return 1;
}
void Fl_Window::show() {
# pragma message "FL_PORTING: implement Fl_Window::show"
}
Fl_Window *Fl_Window::current_;
void Fl_Window::make_current() {
# pragma message "FL_PORTING: implement Fl_Window::make_current"
}
void fl_free_fonts(void)
{
# pragma message "FL_PORTING: implement fl_free_fonts"
}
//Fl_Region XRectangleRegion(int x, int y, int w, int h) {
//}
FL_EXPORT Window fl_xid_(const Fl_Window *w) {
Fl_X *temp = Fl_X::i(w);
return temp ? temp->xid : 0;
}
int Fl_Window::decorated_w()
{
return w();
}
int Fl_Window::decorated_h()
{
return h();
}
void Fl_Paged_Device::print_window(Fl_Window *win, int x_offset, int y_offset)
{
# pragma message "FL_PORTING: implement Fl_Paged_Device::print_window"
}
//void Fl_Paged_Device::draw_decorated_window(Fl_Window *win, int x_offset, int y_offset, Fl_Surface_Device *toset)
//{
//}
Fl_Bitmask fl_create_bitmask(int w, int h, const uchar *data)
{
# pragma message "FL_PORTING: implement fl_create_bitmask"
return 0;
}
//Fl_Bitmask fl_create_alphamask(int w, int h, int d, int ld, const uchar *data)
//{
//# pragma message "FL_PORTING: implement fl_create_alphamask"
// return 0;
//}
void fl_delete_bitmask(Fl_Bitmask bm)
{
# pragma message "FL_PORTING: implement fl_delete_bitmask"
}
Fl_Offscreen fl_create_offscreen(int w, int h)
{
# pragma message "FL_PORTING: implement fl_create_offscreen"
return 0;
}
//void fl_copy_offscreen(int x,int y,int w,int h, Fl_Offscreen gWorld, int srcx,int srcy)
//{
//# pragma message "FL_PORTING: implement fl_copy_offscreen"
//}
void fl_delete_offscreen(Fl_Offscreen gWorld)
{
# pragma message "FL_PORTING: implement fl_delete_offscreen"
}
void fl_begin_offscreen(Fl_Offscreen gWorld)
{
# pragma message "FL_PORTING: implement fl_begin_offscreen"
}
void fl_end_offscreen()
{
# pragma message "FL_PORTING: implement fl_end_offscreen"
}
Fl_Font_Descriptor::~Fl_Font_Descriptor()
{
# pragma message "FL_PORTING: implement Fl_Font_Descriptor::~Fl_Font_Descriptor"
}
int Fl::dnd()
{
# pragma message "FL_PORTING: implement Fl::dnd"
return 0;
}
void Fl::get_mouse(int &x, int &y)
{
# pragma message "FL_PORTING: implement Fl::get_mouse"
x = 0; y = 0;
}
#endif // FL_DOXYGEN
//
// End of "$Id$".
//
|