31#ifndef Fl_Check_Browser_H
32#define Fl_Check_Browser_H
35#include "Fl_Browser_.H"
49 void item_draw(
void *,
int,
int,
int,
int)
const;
77 int lineno(cb_item *)
const;
85 int add(
char *s,
int b);
91 int add(
const char *s) {
return add((
char *)s); }
93 int add(
const char *s,
int b) {
return add((
char *)s, b); }
103 int checked(
int item)
const;
104 void checked(
int item,
int b);
110 char *text(
int item)
const;
virtual int item_selected(void *item) const
This method must be implemented by the subclass if it supports multiple selections; returns the selec...
Definition Fl_Browser_.cxx:1103
virtual void * item_next(void *item) const =0
This method must be provided by the subclass to return the item in the list after item.
virtual int item_width(void *item) const =0
This method must be provided by the subclass to return the width of the item in pixels.
virtual int item_height(void *item) const =0
This method must be provided by the subclass to return the height of item in pixels.
int handle(int event)
Handles the event within the normal widget bounding box.
Definition Fl_Browser_.cxx:699
Fl_Browser_(int X, int Y, int W, int H, const char *L=0)
The constructor makes an empty browser.
Definition Fl_Browser_.cxx:960
virtual void * item_prev(void *item) const =0
This method must be provided by the subclass to return the item in the list before item.
virtual void * item_first() const =0
This method must be provided by the subclass to return the first item in the list.
virtual void item_select(void *item, int val=1)
This method must be implemented by the subclass if it supports multiple selections; sets the selectio...
Definition Fl_Browser_.cxx:1095
virtual void item_draw(void *item, int X, int Y, int W, int H) const =0
This method must be provided by the subclass to draw the item in the area indicated by X,...
void * find_item(int ypos)
This method returns the item under mouse y position ypos.
Definition Fl_Browser_.cxx:589
int nchecked() const
Returns how many items are currently checked.
Definition Fl_Check_Browser.H:102
int checked(int item) const
Gets the current status of item item.
Definition Fl_Check_Browser.cxx:264
char * text(int item) const
Return a pointer to an internal buffer holding item item's text.
Definition Fl_Check_Browser.cxx:292
int nitems() const
Returns how many lines are in the browser.
Definition Fl_Check_Browser.H:100
int add(const char *s)
See int Fl_Check_Browser::add(char *s)
Definition Fl_Check_Browser.H:91
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:87
~Fl_Check_Browser()
The destructor deletes all list items and destroys the browser.
Definition Fl_Check_Browser.H:83
void set_checked(int item)
Equivalent to Fl_Check_Browser::checked(item, 1).
Definition Fl_Check_Browser.H:106
int add(const char *s, int b)
See int Fl_Check_Browser::add(char *s)
Definition Fl_Check_Browser.H:93
void add(Fl_Widget &)
The widget is removed from its current group (if any) and then added to the end of this group.
Definition Fl_Group.cxx:494
void clear()
Deletes all child widgets from memory recursively.
Definition Fl_Group.cxx:386
void remove(int index)
Removes the widget at index from the group but does not delete it.
Definition Fl_Group.cxx:506