FLTK 1.3.2

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

Fl_Tabs.H
1 //
2 // "$Id: Fl_Tabs.H 8864 2011-07-19 04:49:30Z greg.ercolano $"
3 //
4 // Tab 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_Tabs widget . */
21
22 #ifndef Fl_Tabs_H
23 #define Fl_Tabs_H
24
25 #include "Fl_Group.H"
26
53 class FL_EXPORT Fl_Tabs : public Fl_Group {
54 Fl_Widget *value_;
55 Fl_Widget *push_;
56 int *tab_pos; // array of x-offsets of tabs per child + 1
57 int *tab_width; // array of widths of tabs per child + 1
58 int tab_count; // array size
59 int tab_positions(); // allocate and calculate tab positions
60 void clear_tab_positions();
61 int tab_height();
62 void draw_tab(int x1, int x2, int W, int H, Fl_Widget* o, int sel=0);
63 protected:
64 void redraw_tabs();
65 void draw();
66
67 public:
68 int handle(int);
69 Fl_Widget *value();
70 int value(Fl_Widget *);
71 Fl_Widget *push() const {return push_;}
72 int push(Fl_Widget *);
73 Fl_Tabs(int,int,int,int,const char * = 0);
74 Fl_Widget *which(int event_x, int event_y);
75 ~Fl_Tabs();
76 void client_area(int &rx, int &ry, int &rw, int &rh, int tabh=0);
77 };
78
79 #endif
80
81 //
82 // End of "$Id: Fl_Tabs.H 8864 2011-07-19 04:49:30Z greg.ercolano $".
83 //
Fl_Widget
Fl_Widget is the base class for all widgets in FLTK.
Definition: Fl_Widget.H:100
Fl_Group::draw
void draw()
Draws the widget.
Definition: Fl_Group.cxx:736
Fl_Group
The Fl_Group class is the FLTK container widget.
Definition: Fl_Group.H:36
Fl_Group::handle
int handle(int)
Handles the specified event.
Definition: Fl_Group.cxx:145
Fl_Tabs
The Fl_Tabs widget is the &quot;file card tabs&quot; interface that allows you to put lots and lots of buttons ...
Definition: Fl_Tabs.H:53
- © 1998-2012 by Bill Spitzak and others.