32 lines
805 B
C++
32 lines
805 B
C++
|
// Fl_Tabs.C
|
||
|
|
||
|
// This is the "file card tabs" interface to allow you to put lots and lots
|
||
|
// of buttons and switches in a panel, as popularized by many toolkits.
|
||
|
|
||
|
// Each child widget is a card, and it's label() is printed on the card tab.
|
||
|
// Clicking the tab makes that card visible.
|
||
|
|
||
|
#ifndef Fl_Tabs_H
|
||
|
#define Fl_Tabs_H
|
||
|
|
||
|
#include "Fl_Group.H"
|
||
|
|
||
|
class Fl_Tabs : public Fl_Group {
|
||
|
Fl_Widget *value_;
|
||
|
Fl_Widget *push_;
|
||
|
void draw();
|
||
|
int tab_positions(int*, int*);
|
||
|
int tab_height();
|
||
|
void draw_tab(int x1, int x2, int W, int H, Fl_Widget* o, int sel=0);
|
||
|
public:
|
||
|
int handle(int);
|
||
|
Fl_Widget *value();
|
||
|
int value(Fl_Widget *);
|
||
|
Fl_Widget *push() const {return push_;}
|
||
|
int push(Fl_Widget *);
|
||
|
Fl_Tabs(int,int,int,int,const char * = 0);
|
||
|
Fl_Widget *which(int event_x, int event_y);
|
||
|
};
|
||
|
|
||
|
#endif
|