FLTK 1.3.4
Fl_Pack.H
1 //
2 // "$Id: Fl_Pack.H 8864 2011-07-19 04:49:30Z greg.ercolano $"
3 //
4 // Pack header file for the Fast Light Tool Kit (FLTK).
5 //
6 // Copyright 1998-2010 by Bill Spitzak and others.
7 //
8 // This library is free software. Distribution and use rights are outlined in
9 // the file "COPYING" which should have been included with this file. If this
10 // file is missing or damaged, see the license at:
11 //
12 // http://www.fltk.org/COPYING.php
13 //
14 // Please report all bugs and problems on the following page:
15 //
16 // http://www.fltk.org/str.php
17 //
18 
19 /* \file
20  Fl_Pack widget . */
21 
22 #ifndef Fl_Pack_H
23 #define Fl_Pack_H
24 
25 #include <FL/Fl_Group.H>
26 
43 class FL_EXPORT Fl_Pack : public Fl_Group {
44  int spacing_;
45 
46 public:
47  enum { // values for type(int)
48  VERTICAL = 0,
49  HORIZONTAL = 1
50  };
51 
52 protected:
53  void draw();
54 
55 public:
56  Fl_Pack(int x,int y,int w ,int h,const char *l = 0);
61  int spacing() const {return spacing_;}
66  void spacing(int i) {spacing_ = i;}
68  uchar horizontal() const {return type();}
69 };
70 
71 #endif
72 
73 //
74 // End of "$Id: Fl_Pack.H 8864 2011-07-19 04:49:30Z greg.ercolano $".
75 //
This widget was designed to add the functionality of compressing and aligning widgets.
Definition: Fl_Pack.H:43
void draw()
Draws the widget.
Definition: Fl_Group.cxx:738
void spacing(int i)
Sets the number of extra pixels of blank space that are added between the children.
Definition: Fl_Pack.H:66
The Fl_Group class is the FLTK container widget.
Definition: Fl_Group.H:41
int spacing() const
Gets the number of extra pixels of blank space that are added between the children.
Definition: Fl_Pack.H:61
unsigned char uchar
unsigned char
Definition: fl_types.h:30
uchar horizontal() const
Same as Fl_Group::type()
Definition: Fl_Pack.H:68
uchar type() const
Gets the widget type.
Definition: Fl_Widget.H:274