summaryrefslogtreecommitdiff
path: root/src/drivers/GDI/Fl_GDI_Graphics_Driver.h
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-01-27 18:24:25 +0000
committerManolo Gouy <Manolo>2016-01-27 18:24:25 +0000
commit6177c23d901c8748fd908b3bd1106b403f017d7f (patch)
tree69f3767c7c403b183713c62b6bfa145b704181df /src/drivers/GDI/Fl_GDI_Graphics_Driver.h
parent8e3f66073f8e30e874eb3e6cf76ab0a614c39aad (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/GDI/Fl_GDI_Graphics_Driver.h')
-rw-r--r--src/drivers/GDI/Fl_GDI_Graphics_Driver.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/drivers/GDI/Fl_GDI_Graphics_Driver.h b/src/drivers/GDI/Fl_GDI_Graphics_Driver.h
index 61dc888f2..86f16b31b 100644
--- a/src/drivers/GDI/Fl_GDI_Graphics_Driver.h
+++ b/src/drivers/GDI/Fl_GDI_Graphics_Driver.h
@@ -40,6 +40,7 @@ protected:
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(const char* str, int n, int x, int y);
void draw(int angle, const char *str, int n, int x, int y);
void rtl_draw(const char* str, int n, int x, int y);
@@ -108,6 +109,21 @@ protected:
void color(uchar r, uchar g, uchar b);
};
+/**
+ The graphics driver used when printing on MSWindows.
+ *
+ This class is implemented only on the MSWindows platform. It 's extremely similar to Fl_GDI_Graphics_Driver.
+ */
+class FL_EXPORT Fl_GDI_Printer_Graphics_Driver : public Fl_GDI_Graphics_Driver {
+public:
+ static const char *class_id;
+ virtual int has_feature(driver_feature mask) { return mask & (NATIVE | PRINTER); }
+ const char *class_name() {return class_id;};
+ void draw(Fl_Pixmap *pxm, int XP, int YP, int WP, int HP, int cx, int cy);
+ void draw(Fl_Bitmap *bm, int XP, int YP, int WP, int HP, int cx, int cy);
+ int draw_scaled(Fl_Image *img, int XP, int YP, int WP, int HP);
+};
+
#endif // FL_GDI_GRAPHICS_DRIVER_H