1 // 2 // "$Id$" 3 // 4 // Toggle button header file for the Fast Light Tool Kit (FLTK). 5 // 6 // Copyright 1998-2010 by Bill Spitzak and others. 7 // 8 // This library is free software. Distribution and use rights are outlined in 9 // the file "COPYING" which should have been included with this file. If this 10 // file is missing or damaged, see the license at: 11 // 12 // http://www.fltk.org/COPYING.php 13 // 14 // Please report all bugs and problems on the following page: 15 // 16 // http://www.fltk.org/str.php 17 // 18 19 /* \file 20 Fl_Toggle_Button widget . */ 21 22 #ifndef Fl_Toggle_Button_H 23 #define Fl_Toggle_Button_H 24 25 #include "Fl_Button.H" 26 27 /** 28 The toggle button is a push button that needs to be clicked once 29 to toggle on, and one more time to toggle off. 30 The Fl_Toggle_Button subclass displays the "on" state by 31 drawing a pushed-in button.</P> 32 <P>Buttons generate callbacks when they are clicked by the user. You 33 control exactly when and how by changing the values for type() 34 and when(). 35 */ 36 class FL_EXPORT Fl_Toggle_Button : public Fl_Button { 37 public: 38 /** 39 Creates a new Fl_Toggle_Button widget using the given 40 position, size, and label string. 41 <P>The inherited destructor deletes the toggle button. 42 */ 43 Fl_Toggle_Button(int X,int Y,int W,int H,const char *l=0); 44 }; 45 46 #endif 47 48 // 49 // End of "$Id$". 50 // 51