FLTK 1.4.4: Fl_Scheme_Choice.H Source File

FLTK 1.4.4

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
24 class 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.H
Fl static class.
Fl_Choice::Fl_Choice
Fl_Choice(int X, int Y, int W, int H, const char *L=0)
Create a new Fl_Choice widget using the given position, size and label string.
Definition Fl_Choice.cxx:146
Fl_Choice::handle
int handle(int) FL_OVERRIDE
Handles the specified event.
Definition Fl_Choice.cxx:181
Fl_Scheme_Choice::init_value
virtual void init_value()
Public method to initialize the value of the Fl_Scheme_Choice widget.
Definition Fl_Scheme_Choice.cxx:57
Fl_Scheme_Choice::Fl_Scheme_Choice
Fl_Scheme_Choice(int X, int Y, int W, int H, const char *L=0)
The constructor initializes the Fl_Scheme_Choice object with all known schemes.
Definition Fl_Scheme_Choice.cxx:29
Fl_Scheme_Choice::scheme_cb_
static void scheme_cb_(Fl_Widget *w, void *)
Internal Fl_Scheme_Choice callback function (protected).
Definition Fl_Scheme_Choice.cxx:87
Fl_Widget::w
void w(int v)
Internal use only.
Definition Fl_Widget.H:154
FL_OVERRIDE
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46