diff options
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl.H | 3 | ||||
| -rw-r--r-- | FL/Fl_System_Driver.H | 6 | ||||
| -rw-r--r-- | FL/porting.H | 13 |
3 files changed, 7 insertions, 15 deletions
@@ -25,7 +25,7 @@ #include <FL/Fl_Export.H> -#include <FL/Fl_System_Driver.H> // for FL_SOCKET +#include <FL/platform_types.h> // for FL_SOCKET #ifdef FLTK_HAVE_CAIRO # include <FL/Fl_Cairo.H> #endif @@ -50,6 +50,7 @@ class Fl_Window; class Fl_Image; struct Fl_Label; class Fl_Screen_Driver; +class Fl_System_Driver; // Pointers you can use to change FLTK to a foreign language. // Note: Similar pointers are defined in FL/fl_ask.H and src/fl_ask.cxx diff --git a/FL/Fl_System_Driver.H b/FL/Fl_System_Driver.H index 32796b386..4a6b4e2fc 100644 --- a/FL/Fl_System_Driver.H +++ b/FL/Fl_System_Driver.H @@ -24,8 +24,8 @@ #ifndef FL_SYSTEM_DRIVER_H #define FL_SYSTEM_DRIVER_H +#include <FL/Fl.H> #include <FL/Fl_Export.H> -#include <FL/platform_types.h> #include <FL/filename.H> #include <FL/Fl_Preferences.H> #include <stdio.h> @@ -202,6 +202,10 @@ public: virtual int clipboard_contains(const char *type) {return 0;} // implement to support paste-from-clipboard virtual void clipboard_notify_change() {} + virtual void add_fd(int fd, int when, Fl_FD_Handler cb, void* = 0); + virtual void add_fd(int fd, Fl_FD_Handler cb, void* = 0); + virtual void remove_fd(int, int when); + virtual void remove_fd(int); }; #endif // FL_SYSTEM_DRIVER_H diff --git a/FL/porting.H b/FL/porting.H index 8bc02ad48..26504b77c 100644 --- a/FL/porting.H +++ b/FL/porting.H @@ -43,19 +43,6 @@ typedef void *Fl_Offscreen; struct XPoint { int x, y; }; struct XRectangle {int x, y, width, height;}; -//typedef float CGFloat; - -inline Fl_Region XRectangleRegion(int x, int y, int w, int h) { - // write code here - return 0L; -} - -inline void XDestroyRegion(Fl_Region r) { - // write code here -} - -extern void *fl_default_cursor; - inline void fl_open_callback(void (*)(const char *)) {} // This object contains all platform-specific stuff about a window: |
