26 #ifdef FLTK_HAVE_CAIRO
27 # include <FL/Fl_Cairo.H>
33 # define Fl_Object Fl_Widget
47 #if defined(WIN32) && !defined(__CYGWIN__)
49 # define FL_SOCKET unsigned __int64
51 # define FL_SOCKET int
54 # define FL_SOCKET int
139 static int e_is_click;
143 static void *e_clipboard_data;
144 static const char *e_clipboard_type;
153 static int compose_state;
154 static void call_screen_init();
156 static void reset_marked_text();
157 static void insertion_point_location(
int x,
int y,
int height);
184 OPTION_ARROW_FOCUS = 0,
218 static unsigned char options_[OPTION_LAST];
219 static unsigned char options_read_;
226 static bool option(Fl_Option opt);
231 static void option(Fl_Option opt,
bool val);
240 static void (*idle)();
244 static void **awake_data_;
245 static int awake_ring_size_;
246 static int awake_ring_head_;
247 static int awake_ring_tail_;
248 static const char* scheme_;
251 static int e_original_keysym;
252 static int scrollbar_size_;
262 static double version();
265 static int arg(
int argc,
char **argv,
int& i);
266 static int args(
int argc,
char **argv,
int& i,
Fl_Args_Handler cb = 0);
267 static void args(
int argc,
char **argv);
275 static void display(
const char*);
276 static int visual(
int);
286 static int gl_visual(
int,
int *alist=0);
287 static void own_colormap();
288 static void get_system_colors();
294 static int scheme(
const char *name);
296 static const char*
scheme() {
return scheme_;}
326 return (scheme_ && name && !strcmp(name,scheme_));
333 static int reload_scheme();
334 static int scrollbar_size();
335 static void scrollbar_size(
int W);
339 static double wait(
double time);
416 static void add_fd(
int fd,
int when,
Fl_FD_Handler cb,
void* = 0);
420 static void remove_fd(
int,
int when);
422 static void remove_fd(
int);
429 static void redraw();
451 static void (*warning)(
const char*, ...);
466 static void (*error)(
const char*, ...);
483 static void (*fatal)(
const char*, ...);
546 static int event() {
return e_number;}
589 static void get_mouse(
int &,
int &);
714 static int event_key(
int key);
720 static int get_key(
int key);
754 static int compose(
int &del);
755 static void compose_reset();
756 static int event_inside(
int,
int,
int,
int);
757 static int event_inside(
const Fl_Widget*);
764 static void enable_im();
769 static void disable_im();
811 #if FLTK_ABI_VERSION >= 10303 || defined(FL_DOXYGEN)
814 static void copy(
const char* stuff,
int len,
int destination,
const char *type);
815 static void copy(
const char* stuff,
int len,
int destination = 0);
818 #if !(defined(__APPLE__) || defined(WIN32) || defined(FL_DOXYGEN))
819 static void copy_image(
const unsigned char* data,
int W,
int H,
int destination = 0);
852 #if FLTK_ABI_VERSION >= 10303 || defined(FL_DOXYGEN)
855 static void paste(
Fl_Widget &receiver,
int source,
const char *type);
856 static void paste(
Fl_Widget &receiver,
int source );
888 static int clipboard_contains(
const char *type);
912 static void selection(
Fl_Widget &owner,
const char*,
int len);
929 static int screen_count();
938 screen_xywh(X, Y, W, H, x, y);
940 static void screen_xywh(
int &X,
int &Y,
int &W,
int &H,
int mx,
int my);
941 static void screen_xywh(
int &X,
int &Y,
int &W,
int &H,
int n);
942 static void screen_xywh(
int &X,
int &Y,
int &W,
int &H,
int mx,
int my,
int mw,
int mh);
943 static int screen_num(
int x,
int y);
944 static int screen_num(
int x,
int y,
int w,
int h);
945 static void screen_dpi(
float &h,
float &v,
int n=0);
946 static void screen_work_area(
int &X,
int &Y,
int &W,
int &H,
int mx,
int my);
947 static void screen_work_area(
int &X,
int &Y,
int &W,
int &H,
int n);
956 screen_work_area(X, Y, W, H, x, y);
972 static void set_color(
Fl_Color i,
unsigned c);
973 static unsigned get_color(
Fl_Color i);
980 static void free_color(
Fl_Color i,
int overlay = 0);
983 static const char* get_font(
Fl_Font);
996 static const char* get_font_name(
Fl_Font,
int* attributes = 0);
1008 static int get_font_sizes(
Fl_Font,
int*& sizep);
1009 static void set_font(
Fl_Font,
const char*);
1029 static Fl_Font set_fonts(
const char* = 0);
1053 static int draw_box_active();
1061 static void default_atclose(
Fl_Window*,
void*);
1152 static void unlock();
1153 static void awake(
void* message = 0);
1162 static void* thread_message();
1195 static void delete_widget(
Fl_Widget *w);
1196 static void do_widget_deletion();
1197 static void watch_widget_pointer(
Fl_Widget *&w);
1198 static void release_widget_pointer(
Fl_Widget *&w);
1199 static void clear_widget_pointer(
Fl_Widget const *w);
1202 #ifdef FLTK_HAVE_CAIRO
1208 static cairo_t * cairo_make_current(
Fl_Window* w);
1233 static cairo_t *
cairo_cc() {
return cairo_state_.cc(); }
1238 static void cairo_cc(cairo_t * c,
bool own=
false){ cairo_state_.cc(c, own); }
1241 static cairo_t * cairo_make_current(
void* gc);
1242 static cairo_t * cairo_make_current(
void* gc,
int W,
int H);
1247 #endif // FLTK_HAVE_CAIRO