diff options
| author | Manolo Gouy <Manolo> | 2017-03-17 16:33:14 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-03-17 16:33:14 +0000 |
| commit | 367e567b7b14d88bc723dba6bde156bd705bf86c (patch) | |
| tree | 78e4472938a1f16ba8a6b7d7aefee3974ce02316 /src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H | |
| parent | 300e0b32a9b18e9ab37185532d3a7c885e710f02 (diff) | |
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
Diffstat (limited to 'src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H')
| -rw-r--r-- | src/drivers/Xlib/Fl_Xlib_Graphics_Driver.H | 6 |
1 files changed, 6 insertions, 0 deletions
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); |
