276 virtual void draw_tab(
int x1,
int x2,
int W,
int H, Fl_Widget* o,
int flags,
int sel);
278 virtual int hit_close(Fl_Widget *o,
int event_x,
int event_y);
286 Fl_Tabs(
int X,
int Y,
int W,
int H, const
char *L = 0);
294 int value(Fl_Widget *);
306 Fl_Widget *
push()
const {
return push_; }
309 virtual Fl_Widget *which(
int event_x,
int event_y);
310 void client_area(
int &rx,
int &ry,
int &rw,
int &rh,
int tabh=0);
339 void handle_overflow(
int ov);
unsigned Fl_Align
FLTK type for alignment control.
Definition Enumerations.H:986
Fl_Group and Fl_End classes.
virtual void on_remove(int)
Allow derived groups to act when a child widget is removed from the group.
Definition Fl_Group.cxx:571
virtual int on_move(int, int)
Allow derived groups to act when a widget is moved within the group.
Definition Fl_Group.cxx:499
void draw() FL_OVERRIDE
Draws the widget.
Definition Fl_Group.cxx:943
virtual int on_insert(Fl_Widget *, int)
Allow derived groups to act when a widget is added as a child.
Definition Fl_Group.cxx:475
void handle_overflow_menu()
This is called when the user clicks the overflow pulldown menu button.
Definition Fl_Tabs.cxx:434
virtual void redraw_tabs()
Redraw all tabs (and only the tabs).
Definition Fl_Tabs.cxx:511
int maybe_do_callback(Fl_Widget *o)
Set tab o as selected and call callbacks if needed.
Definition Fl_Tabs.cxx:400
int * tab_width
Array of widths of tabs per child.
Definition Fl_Tabs.H:257
void draw_overflow_menu_button()
Draw square button-like graphics with a down arrow in the top or bottom right corner.
Definition Fl_Tabs.cxx:479
int has_overflow_menu
set in OVERFLOW_PULLDOWN mode if tabs overflow. The actual menu array is created only on demand
Definition Fl_Tabs.H:261
void check_overflow_menu()
Check if the tabs overflow and sets the has_overflow_menu flag accordingly.
Definition Fl_Tabs.cxx:374
@ OVERFLOW_PULLDOWN
Tabs that do not fit will be placed in a pull-down menu.
Definition Fl_Tabs.H:335
@ OVERFLOW_DRAG
The tab bar can be dragged horizontally to reveal additional tabs.
Definition Fl_Tabs.H:336
@ OVERFLOW_CLIP
Only the first tabs that fit will be displayed.
Definition Fl_Tabs.H:334
@ OVERFLOW_COMPRESS
Tabs will be compressed and overlaid on top of each other.
Definition Fl_Tabs.H:333
int tab_offset
for pulldown and drag overflow, this is the horizontal offset when the tabs bar is dragged by the use...
Definition Fl_Tabs.H:255
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:306
Fl_Tabs(int X, int Y, int W, int H, const char *L=0)
Creates a new Fl_Tabs widget using the given position, size, and label string.
Definition Fl_Tabs.cxx:1086
virtual void clear_tab_positions()
Clear internal array of tab positions and widths.
Definition Fl_Tabs.cxx:1174
int handle(int) FL_OVERRIDE
Handle all events in the tabs area and forward the rest to the selected child.
Definition Fl_Tabs.cxx:527
virtual void draw_tab(int x1, int x2, int W, int H, Fl_Widget *o, int flags, int sel)
Draw a tab in the top or bottom tabs area.
Definition Fl_Tabs.cxx:983
void show() FL_OVERRIDE
Ensure proper placement of selected tab.
Definition Fl_Tabs.cxx:77
int * tab_pos
Array of x-offsets of tabs per child + 1.
Definition Fl_Tabs.H:256
void tab_align(Fl_Align a)
Sets the tab label alignment.
Definition Fl_Tabs.H:323
int tab_count
Array size of tab positions etc.
Definition Fl_Tabs.H:259
virtual int hit_close(Fl_Widget *o, int event_x, int event_y)
Check whether the coordinates fall within the "close" button area of the tab.
Definition Fl_Tabs.cxx:315
virtual int hit_overflow_menu(int event_x, int event_y)
Determine if the coordinates are in the area of the overflow menu button.
Definition Fl_Tabs.cxx:336
void resize(int, int, int, int) FL_OVERRIDE
Make sure that we redraw all tabs when the widget size changes.
Definition Fl_Tabs.cxx:71
Fl_Widget * value()
Gets the currently visible widget/tab.
Definition Fl_Tabs.cxx:721
virtual int tab_positions()
Calculate tab positions and widths.
Definition Fl_Tabs.cxx:128
Fl_Align tab_align() const
Gets the tab label alignment.
Definition Fl_Tabs.H:330
int * tab_flags
Array of tab flag of tabs per child.
Definition Fl_Tabs.H:258
virtual int tab_height()
Return space (height) in pixels usable for tabs.
Definition Fl_Tabs.cxx:258
int overflow_type
Definition Fl_Tabs.H:254
Fl_Align tab_align_
tab label alignment
Definition Fl_Tabs.H:260
virtual int hit_tabs_area(int event_x, int event_y)
Determine if the coordinates are within the tabs area.
Definition Fl_Tabs.cxx:357
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46