FLTK 1.4.0
Loading...
Searching...
No Matches
Fl_Scheme_Choice.H
1//
2// Scheme Choice header for the Fast Light Tool Kit (FLTK).
3//
4// Copyright 2022-2023 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#ifndef FL_Fl_Scheme_Choice_H_
18#define FL_Fl_Scheme_Choice_H_
19
20#include <FL/Fl.H>
21#include <FL/Fl_Scheme.H>
22#include <FL/Fl_Choice.H>
23
24class FL_EXPORT Fl_Scheme_Choice : public Fl_Choice {
25
26protected:
27 static void scheme_cb_(Fl_Widget *w, void *);
28
29public:
30 Fl_Scheme_Choice(int X, int Y, int W, int H, const char *L = 0);
31 int handle(int event) FL_OVERRIDE;
32
33 // set the current value according to the active scheme
34 virtual void init_value();
35
36}; // class Fl_Scheme_Choice
37
38#endif // FL_Fl_Scheme_Choice_H_
Fl static class.
A button that is used to pop up a menu.
Definition Fl_Choice.H:104
int handle(int) FL_OVERRIDE
Handles the specified event.
Definition Fl_Choice.cxx:181
Definition Fl_Scheme_Choice.H:24
Fl_Widget is the base class for all widgets in FLTK.
Definition Fl_Widget.H:104
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46