FLTK
Fl_FormsPixmap.H
1 //
2 // Forms pixmap header file for the Fast Light Tool Kit (FLTK).
3 //
4 // Copyright 1998-2010 by Bill Spitzak and others.
5 //
6 // This library is free software. Distribution and use rights are outlined in
7 // the file "COPYING" which should have been included with this file. If this
8 // file is missing or damaged, see the license at:
9 //
10 // https://www.fltk.org/COPYING.php
11 //
12 // Please see the following page on how to report bugs and issues:
13 //
14 // https://www.fltk.org/bugs.php
15 //
16 
17 /* \file
18  Fl_FormsPixmap widget . */
19 
20 #ifndef Fl_FormsPixmap_H
21 #define Fl_FormsPixmap_H
22 
23 #include "Fl_Pixmap.H"
24 
29 class FL_EXPORT Fl_FormsPixmap : public Fl_Widget {
30  Fl_Pixmap *b;
31 protected:
32  void draw();
33 public:
34  Fl_FormsPixmap(Fl_Boxtype t, int X, int Y, int W, int H, const char *L= 0);
35 
36  void set(/*const*/char * const * bits);
37 
42  void Pixmap(Fl_Pixmap *B) {b = B;}
43 
45  Fl_Pixmap *Pixmap() const {return b;}
46 };
47 
48 #endif
Fl_Widget is the base class for all widgets in FLTK.
Definition: Fl_Widget.H:85
The Fl_Pixmap class supports caching and drawing of colormap (pixmap) images, including transparency...
Definition: Fl_Pixmap.H:36
void Pixmap(Fl_Pixmap *B)
Set the internal pixmap pointer to an existing pixmap.
Definition: Fl_FormsPixmap.H:42
virtual void draw()=0
Draws the widget.
Fl_Boxtype
FLTK standard box types.
Definition: Enumerations.H:598
Forms pixmap drawing routines.
Definition: Fl_FormsPixmap.H:29
Fl_Pixmap * Pixmap() const
Get the internal pixmap pointer.
Definition: Fl_FormsPixmap.H:45