diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2016-02-13 16:12:57 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2016-02-13 16:12:57 +0000 |
| commit | d8f96b579d9359f62b984b2043a8f8c6854efe98 (patch) | |
| tree | 00b5fa4cd4a195aa82431b0c211a717d6e4b6d86 /FL | |
| parent | 4af616a7a27c3104938bf580502c762becd4417b (diff) | |
Moed Fl::visual and System_Scheme to the driver
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11166 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl.H | 7 | ||||
| -rw-r--r-- | FL/Fl_Screen_Driver.H | 8 |
2 files changed, 13 insertions, 2 deletions
@@ -482,6 +482,8 @@ int main() { static void add_check(Fl_Timeout_Handler, void* = 0); static int has_check(Fl_Timeout_Handler, void* = 0); static void remove_check(Fl_Timeout_Handler, void* = 0); + // private + static void run_checks(); /** Adds file descriptor fd to listen to. @@ -907,16 +909,19 @@ int main() { */ static void copy(const char* stuff, int len, int destination = 0, const char *type = Fl::clipboard_plain_text); // platform dependent -#if defined(__APPLE__) // PORTME: Fl_Screen_Driver ? - additional functions +#if defined(__APPLE__) // PORTME: Fl_Surface_Driver ? - additional functions // not needed + // Fl_Copy_Surface::complete_copy_pdf_and_tiff() #elif defined(WIN32) // not needed + // Fl_Copy_Surface::~Fl_Copy_Surface() #elif defined(FL_DOXYGEN) // don't show in documentation #elif defined(FL_PORTING) # pragma message "FL_PORTING: do you need to implement copy_image() ?" // not implemented by default #else + // takes a raw RGB image and puts it in the copy/paset buffer static void copy_image(const unsigned char* data, int W, int H, int destination = 0); // X11 platform dependent #endif /** diff --git a/FL/Fl_Screen_Driver.H b/FL/Fl_Screen_Driver.H index b5691cafd..e9b7a65a1 100644 --- a/FL/Fl_Screen_Driver.H +++ b/FL/Fl_Screen_Driver.H @@ -32,6 +32,8 @@ // TODO: read screen to image // TODO: application shortcuts +class Fl_Window; + class FL_EXPORT Fl_Screen_Driver : public Fl_Device { @@ -51,6 +53,7 @@ public: static Fl_Screen_Driver *newScreenDriver(); // --- display management virtual void display(const char *disp); + virtual int visual(int flags); // --- screen configuration virtual void init() = 0; virtual int x() = 0; @@ -72,10 +75,13 @@ public: virtual void beep(int type) = 0; // --- global events virtual void flush() = 0; + virtual double wait(double time_to_wait) = 0; + virtual int ready() = 0; + virtual void grab(Fl_Window* win) = 0; // --- global colors virtual int parse_color(const char* p, uchar& r, uchar& g, uchar& b) = 0; virtual void get_system_colors() = 0; - + virtual const char *get_system_scheme(); }; |
