summaryrefslogtreecommitdiff
path: root/src/DataImage.H
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-06-25 11:49:32 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-06-25 11:49:32 +0200
commit7d900b4ede22215413e4a0ddd1675c650ba3225f (patch)
tree6e39f45e68578ebc33e42b920c2370cefd954a3e /src/DataImage.H
parent8b9902ac6e239bd36681a2997ee1bdfa4239a5d8 (diff)
implement various helper methods
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);
};