FLTK 1.3.3

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

- File List
- File Members

Fl_Tabs.H
1 //
2 // "$Id: Fl_Tabs.H 10120 2014-03-23 17:36:59Z 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
201 class FL_EXPORT Fl_Tabs : public Fl_Group {
202 Fl_Widget *value_;
203 Fl_Widget *push_;
204 int *tab_pos; // array of x-offsets of tabs per child + 1
205 int *tab_width; // array of widths of tabs per child + 1
206 int tab_count; // array size
207 int tab_positions(); // allocate and calculate tab positions
208 void clear_tab_positions();
209 int tab_height();
210 void draw_tab(int x1, int x2, int W, int H, Fl_Widget* o, int sel=0);
211 protected:
212 void redraw_tabs();
213 void draw();
214
215 public:
216 int handle(int);
217 Fl_Widget *value();
218 int value(Fl_Widget *);
229 Fl_Widget *push() const {return push_;}
230 int push(Fl_Widget *);
231 Fl_Tabs(int,int,int,int,const char * = 0);
232 Fl_Widget *which(int event_x, int event_y);
233 ~Fl_Tabs();
234 void client_area(int &rx, int &ry, int &rw, int &rh, int tabh=0);
235 };
236
237 #endif
238
239 //
240 // End of "$Id: Fl_Tabs.H 10120 2014-03-23 17:36:59Z greg.ercolano $".
241 //
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:738
Fl_Tabs::push
Fl_Widget * push() const
Returns the tab group for the tab the user has currently down-clicked on and remains over until FL_RE...
Definition: Fl_Tabs.H:229
Fl_Group
The Fl_Group class is the FLTK container widget.
Definition: Fl_Group.H:41
Fl_Group::handle
int handle(int)
Handles the specified event.
Definition: Fl_Group.cxx:147
Fl_Tabs
The Fl_Tabs widget is the "file card tabs" interface that allows you to put lots and lots of buttons ...
Definition: Fl_Tabs.H:201
- © 1998-2014 by Bill Spitzak and others.