FLTK 1.4.0
Loading...
Searching...
No Matches
Fl_Return_Button.H
1//
2// Return button header file for the Fast Light Tool Kit (FLTK).
3//
4// Copyright 1998-2022 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_Return_Button widget . */
19
20#ifndef Fl_Return_Button_H
21#define Fl_Return_Button_H
22#include "Fl_Button.H"
23
31class FL_EXPORT Fl_Return_Button : public Fl_Button {
32protected:
33 void draw() FL_OVERRIDE;
34public:
35 int handle(int) FL_OVERRIDE;
41 Fl_Return_Button(int X, int Y, int W, int H,const char *l=0);
42};
43
44#endif
Buttons generate callbacks when they are clicked by the user.
Definition Fl_Button.H:76
int handle(int) FL_OVERRIDE
Handles the specified event.
Definition Fl_Button.cxx:104
void draw() FL_OVERRIDE
Draws the widget.
Definition Fl_Button.cxx:68
The Fl_Return_Button is a subclass of Fl_Button that generates a callback when it is pressed or when ...
Definition Fl_Return_Button.H:31
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46