// ---------------------------------------------------------------------------- // raster.h, Raster scan Widget for display of fuzzy modes // // Copyright (C) 2006-2008 // Dave Freese, W1HKJ // // This file is part of fldigi. // // Fldigi is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Fldigi is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with fldigi. If not, see . // ---------------------------------------------------------------------------- #ifndef _RASTER_H #define _RASTER_H #include #include "feld.h" class Raster : public Fl_Widget { public: private: unsigned char *vidbuf; int width; int height; int col; //int row; int Nrows; int rowheight; int space; int vidpos; // column start position int numcols; // number of columns to redraw int yp; public: Raster(int, int, int, int); ~Raster(); void draw(); int handle(int); void resize(int x, int y, int w, int h); unsigned char *buffer() { return vidbuf;} int size() { return width * height;} void data(int data[], int len); void clear(); void show() { Fl_Widget::show();} void hide() { Fl_Widget::hide();} }; #endif