00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef Fl_Tabs_H
00023 #define Fl_Tabs_H
00024
00025 #include "Fl_Group.H"
00026
00201 class FL_EXPORT Fl_Tabs : public Fl_Group {
00202 #if FLTK_ABI_VERSION >= 10304
00203
00204 #else
00205
00206 Fl_Widget *value_;
00207 #endif
00208 Fl_Widget *push_;
00209 int *tab_pos;
00210 int *tab_width;
00211 int tab_count;
00212 int tab_positions();
00213 void clear_tab_positions();
00214 int tab_height();
00215 void draw_tab(int x1, int x2, int W, int H, Fl_Widget* o, int sel=0);
00216 protected:
00217 void redraw_tabs();
00218 void draw();
00219
00220 public:
00221 int handle(int);
00222 Fl_Widget *value();
00223 int value(Fl_Widget *);
00234 Fl_Widget *push() const {return push_;}
00235 int push(Fl_Widget *);
00236 Fl_Tabs(int,int,int,int,const char * = 0);
00237 Fl_Widget *which(int event_x, int event_y);
00238 ~Fl_Tabs();
00239 void client_area(int &rx, int &ry, int &rw, int &rh, int tabh=0);
00240 };
00241
00242 #endif
00243
00244
00245
00246