FLTK: Fl_Repeat_Button.H Source File

FLTK

Fl_Repeat_Button.H
1 //
2 // "$Id$"
3 //
4 // Repeat 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_Repeat_Button widget . */
21
22 #ifndef Fl_Repeat_Button_H
23 #define Fl_Repeat_Button_H
24 #include "Fl.H"
25 #include "Fl_Button.H"
26
33 class FL_EXPORT Fl_Repeat_Button : public Fl_Button {
34 static void repeat_callback(void *);
35 public:
36 int handle(int);
42 Fl_Repeat_Button(int X,int Y,int W,int H,const char *l=0);
43
44 void deactivate() {
45 Fl::remove_timeout(repeat_callback,this);
46 Fl_Button::deactivate();
47 }
48 };
49
50 #endif
51
52 //
53 // End of "$Id$".
54 //
Fl.H
Fl static class.
Fl_Button
Buttons generate callbacks when they are clicked by the user.
Definition: Fl_Button.H:76
Fl_Button::handle
virtual int handle(int)
Handles the specified event.
Definition: Fl_Button.cxx:83
Fl::remove_timeout
static void remove_timeout(Fl_Timeout_Handler, void *=0)
Removes a timeout callback.
Definition: Fl.cxx:368
Fl_Widget::deactivate
void deactivate()
Deactivates the widget.
Definition: Fl_Widget.cxx:253
Fl_Repeat_Button
The Fl_Repeat_Button is a subclass of Fl_Button that generates a callback when it is pressed and then...
Definition: Fl_Repeat_Button.H:33
- © 1998-2016 by Bill Spitzak and others.