FLTK
Fl_Repeat_Button.H
1
//
2
// Repeat button header file for the Fast Light Tool Kit (FLTK).
3
//
4
// Copyright 1998-2010 by Bill Spitzak and others.
5
//
6
// This library is free software. Distribution and use rights are outlined in
7
// the file "COPYING" which should have been included with this file. If this
8
// file is missing or damaged, see the license at:
9
//
10
// https://www.fltk.org/COPYING.php
11
//
12
// Please see the following page on how to report bugs and issues:
13
//
14
// https://www.fltk.org/bugs.php
15
//
16
17
/* \file
18
Fl_Repeat_Button widget . */
19
20
#ifndef Fl_Repeat_Button_H
21
#define Fl_Repeat_Button_H
22
#include "
Fl.H
"
23
#include "Fl_Button.H"
24
31
class
FL_EXPORT
Fl_Repeat_Button
:
public
Fl_Button
{
32
static
void
repeat_callback(
void
*);
33
public
:
34
int
handle
(
int
);
40
Fl_Repeat_Button
(
int
X,
int
Y,
int
W,
int
H,
const
char
*l=0);
41
42
void
deactivate
() {
43
Fl::remove_timeout
(repeat_callback,
this
);
44
Fl_Button::deactivate
();
45
}
46
};
47
48
#endif
Fl_Widget::deactivate
void deactivate()
Deactivates the widget.
Definition:
Fl_Widget.cxx:221
Fl::remove_timeout
static void remove_timeout(Fl_Timeout_Handler, void *=0)
Removes a timeout callback.
Definition:
Fl.cxx:337
Fl.H
Fl static class.
Fl_Button::handle
virtual int handle(int)
Handles the specified event.
Definition:
Fl_Button.cxx:81
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:31
Fl_Button
Buttons generate callbacks when they are clicked by the user.
Definition:
Fl_Button.H:77
© 1998-2020 by Bill Spitzak and others.