source: NonGTP/FLTK/include/fltk/Box.h @ 773

Revision 773, 1.9 KB checked in by gumbau, 19 years ago (diff)

FLTK imported to SVN repository to be linked agains the GeoTool? application

RevLine 
[773]1//
2// "$Id: Box.h 4303 2005-05-01 03:33:52Z spitzak $"
3//
4// Define your own values for box() on a widget by making one of these.
5//
6// Copyright 2002 by Bill Spitzak and others.
7//
8// This library is free software; you can redistribute it and/or
9// modify it under the terms of the GNU Library General Public
10// License as published by the Free Software Foundation; either
11// version 2 of the License, or (at your option) any later version.
12//
13// This library is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16// Library General Public License for more details.
17//
18// You should have received a copy of the GNU Library General Public
19// License along with this library; if not, write to the Free Software
20// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21// USA.
22//
23// Please report all bugs and problems to "fltk-bugs@fltk.org".
24//
25
26#ifndef fltk_Box_h
27#define fltk_Box_h
28
29#include "Color.h"
30#include "Flags.h"
31#include "Symbol.h"
32
33namespace fltk {
34
35typedef Symbol Box;
36
37class FL_API FrameBox : public Box {
38protected:
39  const char* data_;
40  const FrameBox* down;
41  int dx, dy, dw, dh;
42public:
43  const char* data() const {return data_;}
44  void _draw(const Rectangle&) const;
45  void inset(Rectangle&) const;
46  bool fills_rectangle() const;
47  bool is_frame() const;
48  FrameBox(const char* n, const char* c, const FrameBox* d=0);
49};
50
51class FL_API FlatBox : public Box {
52public:
53  void _draw(const Rectangle&) const;
54  bool fills_rectangle() const;
55  bool is_frame() const;
56  FlatBox(const char* n);
57};
58
59class FL_API HighlightBox : public FlatBox {
60  const Box* down;
61public:
62  void _draw(const Rectangle&) const;
63  void inset(Rectangle&) const;
64  bool fills_rectangle() const;
65  bool is_frame() const;
66  HighlightBox(const char* n, const Box* d);
67};
68
69}
70
71#endif
72
73//
74// End of "$Id: Box.h 4303 2005-05-01 03:33:52Z spitzak $".
75//
Note: See TracBrowser for help on using the repository browser.