Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Fl_Item.h

00001 /*
00002  * $Id: Fl_Item.h,v 1.6 2003/03/15 16:09:55 laza2000 Exp $
00003  *
00004  * Extended Fast Light Toolkit (EFLTK)
00005  * Copyright (C) 2002-2003 by EDE-Team
00006  * WWW: http://www.sourceforge.net/projects/ede
00007  *
00008  * Fast Light Toolkit (FLTK)
00009  * Copyright (C) 1998-2003 by Bill Spitzak and others.
00010  * WWW: http://www.fltk.org
00011  *
00012  * This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE
00013  * version 2. See COPYING for details.
00014  *
00015  * Author : Mikko Lahteenmaki
00016  * Email  : mikko@fltk.net
00017  *
00018  * Please report all bugs and problems to "efltk-bugs@fltk.net"
00019  *
00020  */
00021 
00022 #ifndef _FL_ITEM_H_
00023 #define _FL_ITEM_H_
00024 
00025 #include "Fl_Widget.h"
00026 
00028 class FL_API Fl_Item : public Fl_Widget {
00029 public:
00030     static Fl_Named_Style* default_style;
00031 
00032     enum { // values for type(), should match Fl_Button
00033         NORMAL = 0,
00034         TOGGLE = 1,
00035         RADIO  = 2,
00036 
00037         //Menubar doesnt try to execute this, it will send events there.
00038         //This allows widgets like, MDI buttons in menubar
00039         NO_EXECUTE = 3
00040     };
00041 
00042     Fl_Item(const char* label = 0);
00043     virtual void draw();
00044     virtual void layout();
00045 
00046     int x_offset() { return x_offset_; }
00047     void x_offset(int o) { x_offset_ = o; w(0); }
00048 
00049 private:
00050     int x_offset_;
00051 };
00052 
00053 #endif

Generated on Thu Jul 31 15:33:44 2003 for eFLTK by doxygen1.2.15