25 #ifndef Fl_Input_Choice_H 26 #define Fl_Input_Choice_H 29 #include <FL/Fl_Group.H> 30 #include <FL/Fl_Input.H> 31 #include <FL/Fl_Menu_Button.H> 56 InputMenuButton(
int X,
int Y,
int W,
int H,
const char *L=0);
60 InputMenuButton *menu_;
63 static void menu_cb(
Fl_Widget*,
void *data);
66 static void inp_cb(
Fl_Widget*,
void *data);
69 inline int inp_x() {
return(x() +
Fl::box_dx(box())); }
70 inline int inp_y() {
return(y() +
Fl::box_dy(box())); }
71 inline int inp_w() {
return(w() -
Fl::box_dw(box()) - 20); }
72 inline int inp_h() {
return(h() -
Fl::box_dh(box())); }
74 inline int menu_x() {
return(x() + w() - 20 -
Fl::box_dx(box())); }
75 inline int menu_y() {
return(y() +
Fl::box_dy(box())); }
76 inline int menu_w() {
return(20); }
77 inline int menu_h() {
return(h() -
Fl::box_dh(box())); }
83 void resize(
int X,
int Y,
int W,
int H);
99 void add(
const char *s) { menu_->add(s); }
105 void clear_changed();
162 int update_menubutton();
184 #endif // !Fl_Input_Choice_H
static int box_dw(Fl_Boxtype)
Returns the width offset for the given boxtype.
Definition: fl_boxtype.cxx:392
static int box_dy(Fl_Boxtype)
Returns the Y offset for the given boxtype.
Definition: fl_boxtype.cxx:386
Fl_Boxtype
FLTK standard box types.
Definition: Enumerations.H:598
The Fl_Group class is the FLTK container widget.
Definition: Fl_Group.H:42
static int box_dx(Fl_Boxtype)
Returns the X offset for the given boxtype.
Definition: fl_boxtype.cxx:361
int Fl_Fontsize
Size of a font in pixels.
Definition: Enumerations.H:1014
static int box_dh(Fl_Boxtype)
Returns the height offset for the given boxtype.
Definition: fl_boxtype.cxx:398
unsigned int Fl_Color
An FLTK color value; see also Colors.
Definition: Enumerations.H:1042
int Fl_Font
A font number is an index into the internal font table.
Definition: Enumerations.H:985