FLTK 1.4.0
Loading...
Searching...
No Matches
Fl_FormsBitmap.H
1//
2// Forms bitmap 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_FormsBitmap widget . */
19
20#ifndef Fl_FormsBitmap_H
21#define Fl_FormsBitmap_H
22
23#include "Fl_Bitmap.H"
24
28class FL_EXPORT Fl_FormsBitmap : public Fl_Widget {
29 Fl_Bitmap *b;
30protected:
31 void draw() FL_OVERRIDE;
32public:
33 Fl_FormsBitmap(Fl_Boxtype, int, int, int, int, const char * = 0);
34 void set(int W, int H, const uchar *bits);
36 void bitmap(Fl_Bitmap *B) {b = B;}
38 Fl_Bitmap *bitmap() const {return b;}
39};
40
41#endif
Fl_Boxtype
FLTK standard box types.
Definition Enumerations.H:626
The Fl_Bitmap class supports caching and drawing of mono-color (bitmap) images.
Definition Fl_Bitmap.H:32
Forms compatibility Bitmap Image Widget.
Definition Fl_FormsBitmap.H:28
Fl_Bitmap * bitmap() const
Gets a the current associated Fl_Bitmap objects.
Definition Fl_FormsBitmap.H:38
void bitmap(Fl_Bitmap *B)
Sets a new bitmap.
Definition Fl_FormsBitmap.H:36
Fl_Widget is the base class for all widgets in FLTK.
Definition Fl_Widget.H:104
virtual void draw()=0
Draws the widget.
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46
unsigned char uchar
unsigned char
Definition fl_types.h:30