summaryrefslogtreecommitdiffstats
path: root/tksao/frame/frametruecolor24.h
blob: e040b2afca82c99a00df7fedac373762c380420c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (C) 1999-2017
// Smithsonian Astrophysical Observatory, Cambridge, MA, USA
// For conditions of distribution and use, see copyright notice in "copyright"

#ifndef __frametruecolor24_h__
#define __frametruecolor24_h__

#include "frame.h"
#include "truecolor24.h"

class FrameTrueColor24 : public Frame, public TrueColor24 {
private:
  void encodeTrueColor(XColor* src, char* dest) 
  {TrueColor24::encodeTrueColor(src,dest,baseXImage);}
  void encodeTrueColor(unsigned char* src, XImage* ximage) 
  {TrueColor24::encodeTrueColor(src, ximage);}
  void updateColorScale();
  void updateColorScale24();
  void updateColorScale32();

public:
  FrameTrueColor24(Tcl_Interp*, Tk_Canvas, Tk_Item*);
  ~FrameTrueColor24();
};

#endif