FLTK 1.3.2
Fl_Repeat_Button.H
00001 //
00002 // "$Id$"
00003 //
00004 // Repeat button 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_Repeat_Button widget . */
00021 
00022 #ifndef Fl_Repeat_Button_H
00023 #define Fl_Repeat_Button_H
00024 #include "Fl.H"
00025 #include "Fl_Button.H"
00026 
00033 class FL_EXPORT Fl_Repeat_Button : public Fl_Button {
00034   static void repeat_callback(void *);
00035 public:
00036   int handle(int);
00042   Fl_Repeat_Button(int X,int Y,int W,int H,const char *l=0);
00043 
00044   void deactivate() {
00045     Fl::remove_timeout(repeat_callback,this);
00046     Fl_Button::deactivate();
00047   }
00048 };
00049 
00050 #endif
00051 
00052 //
00053 // End of "$Id$".
00054 //