FLTK 1.3.9
Loading...
Searching...
No Matches
Fl_FormsBitmap.H
1//
2// "$Id$"
3//
4// Forms bitmap header file for the Fast Light Tool Kit (FLTK).
5//
6// Copyright 1998-2010 by Bill Spitzak and others.
7//
8// This library is free software. Distribution and use rights are outlined in
9// the file "COPYING" which should have been included with this file. If this
10// file is missing or damaged, see the license at:
11//
12// http://www.fltk.org/COPYING.php
13//
14// Please report all bugs and problems on the following page:
15//
16// http://www.fltk.org/str.php
17//
18
19/* \file
20 Fl_FormsBitmap widget . */
21
22#ifndef Fl_FormsBitmap_H
23#define Fl_FormsBitmap_H
24
25#include "Fl_Bitmap.H"
26
30class FL_EXPORT Fl_FormsBitmap : public Fl_Widget {
31 Fl_Bitmap *b;
32protected:
33 void draw();
34public:
35 Fl_FormsBitmap(Fl_Boxtype, int, int, int, int, const char * = 0);
36 void set(int W, int H, const uchar *bits);
38 void bitmap(Fl_Bitmap *B) {b = B;}
40 Fl_Bitmap *bitmap() const {return b;}
41};
42
43#endif
44
45//
46// End of "$Id$".
47//
Fl_Boxtype
Definition Enumerations.H:601
The Fl_Bitmap class supports caching and drawing of mono-color (bitmap) images.
Definition Fl_Bitmap.H:33
Forms compatibility Bitmap Image Widget.
Definition Fl_FormsBitmap.H:30
Fl_Bitmap * bitmap() const
Gets a the current associated Fl_Bitmap objects.
Definition Fl_FormsBitmap.H:40
void bitmap(Fl_Bitmap *B)
Sets a new bitmap.
Definition Fl_FormsBitmap.H:38
Fl_Widget is the base class for all widgets in FLTK.
Definition Fl_Widget.H:101
virtual void draw()=0
Draws the widget.
unsigned char uchar
unsigned char
Definition fl_types.h:30