summaryrefslogtreecommitdiffstats
path: root/tksao/colorbar/colorbarbase.h
diff options
context:
space:
mode:
Diffstat (limited to 'tksao/colorbar/colorbarbase.h')
-rw-r--r--tksao/colorbar/colorbarbase.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tksao/colorbar/colorbarbase.h b/tksao/colorbar/colorbarbase.h
index 91cea8c..70c4736 100644
--- a/tksao/colorbar/colorbarbase.h
+++ b/tksao/colorbar/colorbarbase.h
@@ -70,6 +70,18 @@ class ColorbarBase : public Widget {
int colorCount;
CBGrid* grid;
+ GC gridGC_;
+
+ XRectangle rectWidget[1];
+ XRectangle rectWindow[1];
+
+ Matrix widgetToCanvas;
+ Matrix canvasToWidget;
+ Matrix widgetToWindow;
+ Matrix windowToWidget;
+
+ Matrix canvasToWindow;
+ Matrix windowToCanvas;
int cnt;
double* lut;
@@ -109,6 +121,8 @@ class ColorbarBase : public Widget {
#endif
protected:
+ void updateGCs();
+ void updateMatrices();
void invalidPixmap();
int postscriptProc(int); // generate postscript