diff options
| author | Manolo Gouy <Manolo> | 2016-01-27 18:24:25 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-01-27 18:24:25 +0000 |
| commit | 6177c23d901c8748fd908b3bd1106b403f017d7f (patch) | |
| tree | 69f3767c7c403b183713c62b6bfa145b704181df /src/drivers/Quartz/Fl_Quartz_Graphics_Driver.h | |
| parent | 8e3f66073f8e30e874eb3e6cf76ab0a614c39aad (diff) | |
Further things related to the r11063 commit.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11064 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Quartz/Fl_Quartz_Graphics_Driver.h')
| -rw-r--r-- | src/drivers/Quartz/Fl_Quartz_Graphics_Driver.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.h b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.h index ae597fe13..150e51358 100644 --- a/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.h +++ b/src/drivers/Quartz/Fl_Quartz_Graphics_Driver.h @@ -39,10 +39,11 @@ * This class is implemented only on the Mac OS X platform. */ -class FL_EXPORT Fl_Quartz_Graphics_Driver : public Fl_Graphics_Driver { +class Fl_Quartz_Graphics_Driver : public Fl_Graphics_Driver { public: static const char *class_id; const char *class_name() {return class_id;}; + virtual int has_feature(driver_feature mask) { return mask & NATIVE; } void draw(Fl_Pixmap *pxm, int XP, int YP, int WP, int HP, int cx, int cy); void draw(Fl_Bitmap *pxm, int XP, int YP, int WP, int HP, int cx, int cy); @@ -116,6 +117,14 @@ protected: }; +/** Graphics driver used for Mac OS X printing. */ +class Fl_Quartz_Printer_Graphics_Driver : public Fl_Quartz_Graphics_Driver { +public: + virtual int has_feature(driver_feature mask) { return mask & (NATIVE | PRINTER); } +}; + + + #endif // FL_CFG_GFX_QUARTZ_H // |
