25#ifndef Fl_Input_Choice_H
26#define Fl_Input_Choice_H
30#include <FL/Fl_Input.H>
31#include <FL/Fl_Menu_Button.H>
50 InputMenuButton(
int X,
int Y,
int W,
int H,
const char *L=0);
55 InputMenuButton *menu_;
58 static void menu_cb(Fl_Widget*,
void *data);
61 static void inp_cb(Fl_Widget*,
void *data);
88 virtual int menu_w()
const {
return 20; }
98 void resize(
int X,
int Y,
int W,
int H)
FL_OVERRIDE;
114 void add(const
char *s) { menu_->add(s); }
159 const char*
value()
const {
return (inp_->value()); }
171 void value(
const char *val) { inp_->value(val); }
177 int update_menubutton();
int Fl_Font
A font number is an index into the internal font table.
Definition Enumerations.H:1063
unsigned int Fl_Color
An FLTK color value; see also Colors.
Definition Enumerations.H:1120
int Fl_Fontsize
Size of a font in pixels.
Definition Enumerations.H:1092
Fl_Boxtype
FLTK standard box types.
Definition Enumerations.H:644
Fl_Group and Fl_End classes.
int handle(int) FL_OVERRIDE
Handles the specified event.
Definition Fl_Group.cxx:145
void draw() FL_OVERRIDE
Draws the widget.
Definition Fl_Group.cxx:943
static int box_dx(Fl_Boxtype)
Returns the X offset for the given boxtype.
Definition fl_boxtype.cxx:379
static int box_dw(Fl_Boxtype)
Returns the width offset for the given boxtype.
Definition fl_boxtype.cxx:410
static int box_dy(Fl_Boxtype)
Returns the Y offset for the given boxtype.
Definition fl_boxtype.cxx:404
static int box_dh(Fl_Boxtype)
Returns the height offset for the given boxtype.
Definition fl_boxtype.cxx:416
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46