• Main Page
  • Related Pages
  • Modules
  • Classes
  • Files
  • File List
  • File Members

Fl_Tabs.H

00001 //
00002 // "$Id$"
00003 //
00004 // Tab header file for the Fast Light Tool Kit (FLTK).
00005 //
00006 // Copyright 1998-2010 by Bill Spitzak and others.
00007 //
00008 // This library is free software. Distribution and use rights are outlined in
00009 // the file "COPYING" which should have been included with this file.  If this
00010 // file is missing or damaged, see the license at:
00011 //
00012 //     http://www.fltk.org/COPYING.php
00013 //
00014 // Please report all bugs and problems on the following page:
00015 //
00016 //     http://www.fltk.org/str.php
00017 //
00018 
00019 /* \file
00020    Fl_Tabs widget . */
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   // NEW (nothing)
00204 #else
00205   // OLD (maintained for ABI compat)
00206   Fl_Widget *value_;    // NOTE: this member no longer used -- STR #3169
00207 #endif
00208   Fl_Widget *push_;
00209   int *tab_pos;         // array of x-offsets of tabs per child + 1
00210   int *tab_width;       // array of widths of tabs per child + 1
00211   int tab_count;        // array size
00212   int tab_positions();  // allocate and calculate 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 // End of "$Id$".
00246 //
  • © 1998-2016 by Bill Spitzak and others.     FLTK

  • © 1998-2016 by Bill Spitzak and others.     FLTK

    Permission is granted to reproduce this manual or any portion for any purpose, provided this copyright and permission notice are preserved.