#include <Fl_Check_Browser.H>

Public Member Functions | |
| int | add (const char *s, int b) |
| See int Fl_Check_Browser::add(char *s). | |
| int | add (const char *s) |
| See int Fl_Check_Browser::add(char *s). | |
| int | add (char *s, int b) |
| See int Fl_Check_Browser::add(char *s). | |
| int | add (char *s) |
| Add a new unchecked line to the end of the browser. | |
| void | check_all () |
| Sets all the items checked. | |
| void | check_none () |
| Sets all the items unchecked. | |
| void | checked (int item, int b) |
| Sets the check status of item item to b. | |
| int | checked (int item) const |
| Gets the current status of item item. | |
| void | clear () |
| Remove every item from the browser. | |
| Fl_Check_Browser (int x, int y, int w, int h, const char *l=0) | |
| The constructor makes an empty browser. | |
| int | nchecked () const |
| Returns how many items are currently checked. | |
| int | nitems () const |
| Returns how many lines are in the browser. | |
| int | remove (int item) |
| Remove line n and make the browser one line shorter. | |
| void | set_checked (int item) |
| Equivalent to Fl_Check_Browser::checked(item, 1). | |
| char * | text (int item) const |
| Return a pointer to an internal buffer holding item item's text. | |
| int | value () const |
| Returns the index of the currently selected item. | |
| ~Fl_Check_Browser () | |
| The destructor deletes all list items and destroys the browser. | |
Protected Member Functions | |
| int | handle (int) |
Handles the event within the normal widget bounding box. | |
| Fl_Check_Browser::Fl_Check_Browser | ( | int | X, | |
| int | Y, | |||
| int | W, | |||
| int | H, | |||
| const char * | l = 0 | |||
| ) |
The constructor makes an empty browser.
| Fl_Check_Browser::~Fl_Check_Browser | ( | ) | [inline] |
The destructor deletes all list items and destroys the browser.
| int Fl_Check_Browser::add | ( | char * | s | ) |
Add a new unchecked line to the end of the browser.
The text is copied using the strdup() function. It may also be NULL to make a blank line. The second form can set the item checked.
| void Fl_Check_Browser::check_all | ( | ) |
Sets all the items checked.
| void Fl_Check_Browser::check_none | ( | ) |
Sets all the items unchecked.
| void Fl_Check_Browser::checked | ( | int | i, | |
| int | b | |||
| ) |
Sets the check status of item item to b.
| int Fl_Check_Browser::checked | ( | int | i | ) | const |
Gets the current status of item item.
| void Fl_Check_Browser::clear | ( | ) |
| int Fl_Check_Browser::handle | ( | int | event | ) | [protected, virtual] |
Handles the event within the normal widget bounding box.
| [in] | event | The event to process. |
Reimplemented from Fl_Browser_.
| int Fl_Check_Browser::nchecked | ( | ) | const [inline] |
Returns how many items are currently checked.
| int Fl_Check_Browser::nitems | ( | ) | const [inline] |
Returns how many lines are in the browser.
The last line number is equal to this.
| int Fl_Check_Browser::remove | ( | int | item | ) |
Remove line n and make the browser one line shorter.
Returns the number of lines left in the browser.
Reimplemented from Fl_Group.
| void Fl_Check_Browser::set_checked | ( | int | item | ) | [inline] |
Equivalent to Fl_Check_Browser::checked(item, 1).
| char * Fl_Check_Browser::text | ( | int | i | ) | const |
Return a pointer to an internal buffer holding item item's text.
| int Fl_Check_Browser::value | ( | ) | const |
Returns the index of the currently selected item.
© 1998-2010 by Bill Spitzak and others.
Permission is granted to reproduce this manual or any portion for
any purpose, provided this copyright and permission notice are preserved.