FLTK 1.4.5: Fl_FormsBitmap.H Source File

FLTK 1.4.5

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
28 class 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
Fl_Boxtype
FLTK standard box types.
Definition Enumerations.H:644
Fl_Bitmap
The Fl_Bitmap class supports caching and drawing of mono-color (bitmap) images.
Definition Fl_Bitmap.H:32
Fl_FormsBitmap::set
void set(int W, int H, const uchar *bits)
Sets a new bitmap bits with size W,H.
Definition forms_bitmap.cxx:28
Fl_FormsBitmap::draw
void draw() FL_OVERRIDE
Draws the bitmap and its associated box.
Definition forms_bitmap.cxx:34
Fl_FormsBitmap::bitmap
Fl_Bitmap * bitmap() const
Gets a the current associated Fl_Bitmap objects.
Definition Fl_FormsBitmap.H:38
Fl_FormsBitmap::bitmap
void bitmap(Fl_Bitmap *B)
Sets a new bitmap.
Definition Fl_FormsBitmap.H:36
Fl_FormsBitmap::Fl_FormsBitmap
Fl_FormsBitmap(Fl_Boxtype, int, int, int, int, const char *=0)
Creates a bitmap widget from a box type, position, size and optional label specification.
Definition forms_bitmap.cxx:19
FL_OVERRIDE
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46
uchar
unsigned char uchar
unsigned char
Definition fl_types.h:30