From 367e567b7b14d88bc723dba6bde156bd705bf86c Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 17 Mar 2017 16:33:14 +0000 Subject: Remove class Fl_Translated_Xlib_Graphics_Driver and move its processing to Fl_Xlib_Graphics_Driver. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12205 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H') diff --git a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H index a84952aed..2735de5fc 100644 --- a/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H +++ b/src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H @@ -53,6 +53,10 @@ struct _XRegion { This class is implemented only on the Xlib platform. */ class FL_EXPORT Fl_Xlib_Graphics_Driver : public Fl_Graphics_Driver { +private: + int offset_x_, offset_y_; // translation between user and graphical coordinates: graphical = user + offset + unsigned depth_; // depth of translation stack + int stack_x_[20], stack_y_[20]; // translation stack allowing cumulative translations #if USE_XFT void drawUCS4(const void *str, int n, int x, int y); #endif @@ -84,6 +88,8 @@ protected: public: Fl_Xlib_Graphics_Driver(void); virtual ~Fl_Xlib_Graphics_Driver(); + void translate_all(int dx, int dy); + void untranslate_all(); virtual int has_feature(driver_feature mask) { return mask & NATIVE; } virtual void *gc() { return gc_; } virtual void gc(void *value); -- cgit v1.2.3