20#ifndef Fl_Check_Browser_H
21#define Fl_Check_Browser_H
24#include "Fl_Browser_.H"
46 void item_swap(
int ia,
int ib);
71 cb_item *find_item(
int)
const;
72 int lineno(cb_item *)
const;
79 int add(
char *s,
int b);
85 int add(
const char *s) {
return add((
char *)s); }
87 int add(
const char *s,
int b) {
return add((
char *)s, b); }
94 int nitems()
const {
return nitems_; }
97 int checked(
int item)
const;
98 void checked(
int item,
int b);
104 char *text(
int item)
const;
Fl_Browser_(int X, int Y, int W, int H, const char *L=0)
The constructor makes an empty browser.
Definition Fl_Browser_.cxx:954
void * item_at(int index) const FL_OVERRIDE
This method must be provided by the subclass to return the item for the specified index.
Definition Fl_Check_Browser.cxx:107
int nchecked() const
Returns how many items are currently checked.
Definition Fl_Check_Browser.H:96
int checked(int item) const
Gets the current status of item item.
Definition Fl_Check_Browser.cxx:319
char * text(int item) const
Return a pointer to an internal buffer holding item item's text.
Definition Fl_Check_Browser.cxx:347
void clear()
Remove every item from the browser.
Definition Fl_Check_Browser.cxx:299
void * item_first() const FL_OVERRIDE
This method must be provided by the subclass to return the first item in the list.
Definition Fl_Check_Browser.cxx:86
const char * item_text(void *item) const FL_OVERRIDE
This optional method returns a string (label) that may be used for sorting.
Definition Fl_Check_Browser.cxx:102
void * item_next(void *) const FL_OVERRIDE
This method must be provided by the subclass to return the item in the list after item.
Definition Fl_Check_Browser.cxx:90
int item_selected(void *) const FL_OVERRIDE
This method must be implemented by the subclass if it supports multiple selections; returns the selec...
Definition Fl_Check_Browser.cxx:221
int nitems() const
Returns how many lines are in the browser.
Definition Fl_Check_Browser.H:94
int add(const char *s)
See int Fl_Check_Browser::add(char *s).
Definition Fl_Check_Browser.H:85
void * item_prev(void *) const FL_OVERRIDE
This method must be provided by the subclass to return the item in the list before item.
Definition Fl_Check_Browser.cxx:94
void item_select(void *, int) FL_OVERRIDE
This method must be implemented by the subclass if it supports multiple selections; sets the selectio...
Definition Fl_Check_Browser.cxx:207
Fl_Check_Browser(int x, int y, int w, int h, const char *l=0)
The constructor makes an empty browser.
Definition Fl_Check_Browser.cxx:77
int item_width(void *) const FL_OVERRIDE
This method must be provided by the subclass to return the width of the item in pixels.
Definition Fl_Check_Browser.cxx:174
int item_height(void *) const FL_OVERRIDE
This method must be provided by the subclass to return the height of item in pixels.
Definition Fl_Check_Browser.cxx:98
void item_draw(void *, int, int, int, int) const FL_OVERRIDE
This method must be provided by the subclass to draw the item in the area indicated by X,...
Definition Fl_Check_Browser.cxx:179
~Fl_Check_Browser()
The destructor deletes all list items and destroys the browser.
Definition Fl_Check_Browser.H:77
void set_checked(int item)
Equivalent to Fl_Check_Browser::checked(item, 1).
Definition Fl_Check_Browser.H:100
int add(const char *s, int b)
See int Fl_Check_Browser::add(char *s).
Definition Fl_Check_Browser.H:87
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46