1 // 2 // "$Id$" 3 // 4 // Lighted 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_Light_Button widget . */ 21 22 #ifndef Fl_Light_Button_H 23 #define Fl_Light_Button_H 24 25 #include "Fl_Button.H" 26 27 /** 28 This subclass displays the "on" state by turning on a light, 29 rather than drawing pushed in. The shape of the "light" 30 is initially set to FL_DOWN_BOX. The color of the light when 31 on is controlled with selection_color(), which defaults to FL_YELLOW. 32 33 Buttons generate callbacks when they are clicked by the user. You 34 control exactly when and how by changing the values for type() and when(). 35 <P ALIGN=CENTER>\image html Fl_Light_Button.png</P> 36 \image latex Fl_Light_Button.png "Fl_Light_Button" width=4cm 37 */ 38 class FL_EXPORT Fl_Light_Button : public Fl_Button { 39 protected: 40 virtual void draw(); 41 public: 42 virtual int handle(int); 43 Fl_Light_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