29#include "Fl_Browser_.H"
88 const int* column_widths_;
103 void item_draw(
void* item,
int X,
int Y,
int W,
int H)
const ;
120 FL_BLINE* find_line(
int line)
const ;
121 FL_BLINE* _remove(
int line) ;
122 void insert(
int line, FL_BLINE* item);
123 int lineno(
void *item)
const ;
124 void swap(FL_BLINE *a, FL_BLINE *b);
128 void remove(
int line);
129 void add(
const char* newtext,
void* d = 0);
130 void insert(
int line,
const char* newtext,
void* d = 0);
131 void move(
int to,
int from);
132 int load(
const char* filename);
133 void swap(
int a,
int b);
141 int size()
const {
return lines; }
155 int topline()
const ;
158 void lineposition(
int line, Fl_Line_Position pos);
181 int select(
int line,
int val=1);
182 int selected(
int line)
const ;
189 int visible(
int line)
const ;
198 const char* text(
int line)
const ;
199 void text(
int line,
const char* newtext);
200 void* data(
int line)
const ;
201 void data(
int line,
void* d);
203 Fl_Browser(
int X,
int Y,
int W,
int H,
const char *L = 0);
313 void icon(
int line,
Fl_Image* icon);
315 void remove_icon(
int line);
319 void display(
int line,
int val=1);
int Fl_Fontsize
Size of a font in pixels.
Definition Enumerations.H:913
Fl_Image, Fl_RGB_Image classes.
void display(void *item)
Displays the item, scrolling the list as necessary.
Definition Fl_Browser_.cxx:245
Fl_Fontsize textsize() const
Gets the default text size (in pixels) for the lines in the browser.
Definition Fl_Browser_.H:301
Fl_Browser_(int X, int Y, int W, int H, const char *L=0)
The constructor makes an empty browser.
Definition Fl_Browser_.cxx:955
int displayed(void *item) const
Returns non-zero if item has been scrolled to a position where it is being displayed.
Definition Fl_Browser_.cxx:228
void swap(FL_BLINE *a, FL_BLINE *b)
Swap the two items a and b.
Definition Fl_Browser.cxx:836
void * item_prev(void *item) const
Returns the previous item before item.
Definition Fl_Browser.cxx:86
char format_char() const
Gets the current format code prefix character, which by default is '@'.
Definition Fl_Browser.H:238
Fl_Line_Position
For internal use only?
Definition Fl_Browser.H:157
void * item_first() const
Returns the very first item in the list.
Definition Fl_Browser.cxx:70
void hide()
Hides the entire Fl_Browser widget – opposite of show().
Definition Fl_Browser.H:188
void * item_next(void *item) const
Returns the next item after item.
Definition Fl_Browser.cxx:78
void format_char(char c)
Sets the current format code prefix character to c.
Definition Fl_Browser.H:244
int item_height(void *item) const
Returns height of item in pixels.
Definition Fl_Browser.cxx:363
Fl_Browser(int X, int Y, int W, int H, const char *L=0)
The constructor makes an empty browser.
Definition Fl_Browser.cxx:603
void clear()
Removes all the lines in the browser.
Definition Fl_Browser.cxx:685
Fl_Fontsize textsize() const
Gets the default text size (in pixels) for the lines in the browser.
Definition Fl_Browser.H:147
void show()
Shows the entire Fl_Browser widget – opposite of hide().
Definition Fl_Browser.H:185
void * item_last() const
Returns the very last item in the list.
Definition Fl_Browser.cxx:100
void column_widths(const int *arr)
Sets the current array to arr.
Definition Fl_Browser.H:286
const char * item_text(void *item) const
Returns the label text for item.
Definition Fl_Browser.cxx:127
void column_char(char c)
Sets the column separator to c.
Definition Fl_Browser.H:257
void item_draw(void *item, int X, int Y, int W, int H) const
Draws item at the position specified by X Y W H.
Definition Fl_Browser.cxx:506
int size() const
Returns how many lines are in the browser.
Definition Fl_Browser.H:141
void value(int line)
Sets the browser's value(), which selects the specified line.
Definition Fl_Browser.H:197
int incr_height() const
The default 'average' item height (including inter-item spacing) in pixels.
Definition Fl_Browser.cxx:495
int displayed(int line) const
Returns non-zero if line has been scrolled to a position where it is being displayed.
Definition Fl_Browser.H:297
FL_BLINE * find_line(int line) const
Returns the item for specified line.
Definition Fl_Browser.cxx:147
void make_visible(int line)
Make the item at the specified line visible().
Definition Fl_Browser.H:306
void lineposition(int line, Fl_Line_Position pos)
Updates the browser so that line is shown at position pos.
Definition Fl_Browser.cxx:620
char column_char() const
Gets the current column separator character.
Definition Fl_Browser.H:250
~Fl_Browser()
The destructor deletes all list items and destroys the browser.
Definition Fl_Browser.H:207
const int * column_widths() const
Gets the current column width array.
Definition Fl_Browser.H:281
void topline(int line)
Scrolls the browser so the top item in the browser is showing the specified line.
Definition Fl_Browser.H:165
const char * text(int line) const
Returns the label text for the specified line.
Definition Fl_Browser.cxx:722
void item_swap(void *a, void *b)
Swap the items a and b.
Definition Fl_Browser.H:112
int item_width(void *item) const
Returns width of item in pixels.
Definition Fl_Browser.cxx:423
void bottomline(int line)
Scrolls the browser so the bottom item in the browser is showing the specified line.
Definition Fl_Browser.H:172
int full_height() const
The height of the entire list of all visible() items in pixels.
Definition Fl_Browser.cxx:484
void replace(int a, const char *b)
For back compatibility only.
Definition Fl_Browser.H:318
int select(int line, int val=1)
Sets the selection state of the item at line to the value val.
Definition Fl_Browser.cxx:748
void middleline(int line)
Scrolls the browser so the middle item in the browser is showing the specified line.
Definition Fl_Browser.H:179
int item_selected(void *item) const
See if item is selected.
Definition Fl_Browser.cxx:108
void * item_at(int line) const
Return the item at specified line.
Definition Fl_Browser.H:118
void item_select(void *item, int val)
Change the selection state of item to the value val.
Definition Fl_Browser.cxx:117
Base class for image caching and drawing.
Definition Fl_Image.H:55