summaryrefslogtreecommitdiff
path: root/src/DataImage.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/DataImage.H')
-rw-r--r--src/DataImage.H15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/DataImage.H b/src/DataImage.H
index 99910e5..fe6200d 100644
--- a/src/DataImage.H
+++ b/src/DataImage.H
@@ -20,20 +20,25 @@
#ifndef DATAIMAGE_H
#define DATAIMAGE_H
+#include <FL/Fl_Widget.H>
+#include <FL/Fl_Image.H>
-
-class DataImage : Fl_Widget {
+class DataImage : public Fl_Widget {
private:
+ int d;
+ uchar *data;
public:
- DataImage(int w, int h);
+ DataImage(int X, int Y, int W, int H);
~DataImage();
- int set_pixel(nt x, int y, char r, char g, char b);
+ int set_pixel(int x, int y, char r, char g, char b);
+
+ void draw();
- static int get_pixel(Fl_RGB_Image *img, int x, int y,
+ static int get_pixel(Fl_Image *img, int x, int y,
char *r, char *g, char *b);
};