FLTK 1.4.0
Loading...
Searching...
No Matches
Fl_Box.H
Go to the documentation of this file.
1//
2// Box header file for the Fast Light Tool Kit (FLTK).
3//
4// Copyright 1998-2023 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
21#ifndef Fl_Box_H
22#define Fl_Box_H
23
24#ifndef Fl_Widget_H
25#include "Fl_Widget.H"
26#endif
27
33class FL_EXPORT Fl_Box : public Fl_Widget {
34protected:
35 void draw() FL_OVERRIDE;
36public:
45 Fl_Box(int X, int Y, int W, int H, const char *l=0);
46
48 Fl_Box(Fl_Boxtype b, int X, int Y, int W, int H, const char *l);
49
50 int handle(int) FL_OVERRIDE;
51};
52
53#endif
Fl_Boxtype
FLTK standard box types.
Definition Enumerations.H:626
Fl_Widget and Fl_Label classes.
This widget simply draws its box, and possibly its label.
Definition Fl_Box.H:33
Fl_Widget is the base class for all widgets in FLTK.
Definition Fl_Widget.H:104
virtual void draw()=0
Draws the widget.
virtual int handle(int event)
Handles the specified event.
Definition Fl_Widget.cxx:102
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46