FLTK 1.3.2
Fl_Choice.H
1 //
2 // "$Id: Fl_Choice.H 8864 2011-07-19 04:49:30Z greg.ercolano $"
3 //
4 // Choice header file for the Fast Light Tool Kit (FLTK).
5 //
6 // Copyright 1998-2010 by Bill Spitzak and others.
7 //
8 // This library is free software. Distribution and use rights are outlined in
9 // the file "COPYING" which should have been included with this file. If this
10 // file is missing or damaged, see the license at:
11 //
12 // http://www.fltk.org/COPYING.php
13 //
14 // Please report all bugs and problems on the following page:
15 //
16 // http://www.fltk.org/str.php
17 //
18 
19 /* \file
20  Fl_Choice widget . */
21 
22 #ifndef Fl_Choice_H
23 #define Fl_Choice_H
24 
25 #include "Fl_Menu_.H"
26 
76 class FL_EXPORT Fl_Choice : public Fl_Menu_ {
77 protected:
78  void draw();
79 public:
80  int handle(int);
81 
82  Fl_Choice(int X, int Y, int W, int H, const char *L = 0);
83 
88  int value() const {return Fl_Menu_::value();}
89 
90  int value(int v);
91 
92  int value(const Fl_Menu_Item* v);
93 };
94 
95 #endif
96 
97 //
98 // End of "$Id: Fl_Choice.H 8864 2011-07-19 04:49:30Z greg.ercolano $".
99 //
virtual int handle(int event)
Handles the specified event.
Definition: Fl_Widget.cxx:97
virtual void draw()=0
Draws the widget.
int value() const
Returns the index into menu() of the last item chosen by the user.
Definition: Fl_Menu_.H:126
int value() const
Gets the index of the last item chosen by the user.
Definition: Fl_Choice.H:88
A button that is used to pop up a menu.
Definition: Fl_Choice.H:76
The Fl_Menu_Item structure defines a single menu item that is used by the Fl_Menu_ class...
Definition: Fl_Menu_Item.H:109
Base class of all widgets that have a menu in FLTK.
Definition: Fl_Menu_.H:39