FLTK 1.4.4

Loading...
Searching...
No Matches
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() FL_OVERRIDE;
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_Boxtype
Fl_Boxtype
FLTK standard box types.
Definition Enumerations.H:644
Fl_FormsPixmap::Fl_FormsPixmap
Fl_FormsPixmap(Fl_Boxtype t, int X, int Y, int W, int H, const char *L=0)
Creates a new Fl_FormsPixmap widget using the given box type, position, size and label string.
Definition forms_pixmap.cxx:26
Fl_FormsPixmap::set
void set(char *const *bits)
Set/create the internal pixmap using raw data.
Definition forms_pixmap.cxx:39
Fl_FormsPixmap::Pixmap
void Pixmap(Fl_Pixmap *B)
Set the internal pixmap pointer to an existing pixmap.
Definition Fl_FormsPixmap.H:42
Fl_FormsPixmap::Pixmap
Fl_Pixmap * Pixmap() const
Get the internal pixmap pointer.
Definition Fl_FormsPixmap.H:45
Fl_Pixmap
The Fl_Pixmap class supports caching and drawing of colormap (pixmap) images, including transparency.
Definition Fl_Pixmap.H:36
Fl_Widget::draw
virtual void draw()=0
Draws the widget.
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