27#include "Fl_Browser_.H"
94 const int* column_widths_;
126 FL_BLINE* find_line(
int line)
const ;
127 FL_BLINE* _remove(
int line) ;
128 void insert(
int line, FL_BLINE* item);
129 int lineno(
void *item)
const ;
130 void swap(FL_BLINE *a, FL_BLINE *b);
134 void remove(
int line);
135 void add(
const char* newtext,
void* d = 0);
136 void insert(
int line,
const char* newtext,
void* d = 0);
137 void move(
int to,
int from);
138 int load(
const char* filename);
139 void swap(
int a,
int b);
147 int size()
const {
return lines; }
161 int topline()
const ;
164 void lineposition(
int line, Fl_Line_Position pos);
187 int select(
int line,
int val=1);
188 int selected(
int line)
const ;
195 int visible(
int line)
const ;
204 const char* text(
int line)
const ;
205 void text(
int line,
const char* newtext);
206 void* data(
int line)
const ;
207 void data(
int line,
void* d);
209 Fl_Browser(
int X,
int Y,
int W,
int H,
const char *L = 0);
321 void icon(
int line,
Fl_Image* icon);
323 void remove_icon(
int line);
327 void display(
int line,
int val=1);
int Fl_Fontsize
Size of a font in pixels.
Definition Enumerations.H:1092
Fl_Image, Fl_RGB_Image classes.
void display(void *item)
Displays the item, scrolling the list as necessary.
Definition Fl_Browser_.cxx:244
Fl_Fontsize textsize() const
Gets the default text size (in pixels) for the lines in the browser.
Definition Fl_Browser_.H:327
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
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:227
void hide() FL_OVERRIDE
Hides the entire Fl_Browser widget – opposite of show().
Definition Fl_Browser.H:194
const char * item_text(void *item) const FL_OVERRIDE
Returns the label text for item.
Definition Fl_Browser.cxx:125
void swap(FL_BLINE *a, FL_BLINE *b)
Swap the two items a and b.
Definition Fl_Browser.cxx:832
void item_select(void *item, int val) FL_OVERRIDE
Change the selection state of item to the value val.
Definition Fl_Browser.cxx:115
char format_char() const
Gets the current format code prefix character, which by default is '@'.
Definition Fl_Browser.H:246
int item_width(void *item) const FL_OVERRIDE
Returns width of item in pixels.
Definition Fl_Browser.cxx:421
Fl_Line_Position
For internal use only?
Definition Fl_Browser.H:163
void item_swap(void *a, void *b) FL_OVERRIDE
Swap the items a and b.
Definition Fl_Browser.H:118
void * item_prev(void *item) const FL_OVERRIDE
Returns the previous item before item.
Definition Fl_Browser.cxx:84
void format_char(char c)
Sets the current format code prefix character to c.
Definition Fl_Browser.H:252
int incr_height() const FL_OVERRIDE
The default 'average' item height (including inter-item spacing) in pixels.
Definition Fl_Browser.cxx:491
Fl_Browser(int X, int Y, int W, int H, const char *L=0)
The constructor makes an empty browser.
Definition Fl_Browser.cxx:599
void clear()
Removes all the lines in the browser.
Definition Fl_Browser.cxx:681
Fl_Fontsize textsize() const
Gets the default text size (in pixels) for the lines in the browser.
Definition Fl_Browser.H:153
void * item_first() const FL_OVERRIDE
Returns the very first item in the list.
Definition Fl_Browser.cxx:68
void item_draw(void *item, int X, int Y, int W, int H) const FL_OVERRIDE
Draws item at the position specified by X Y W H.
Definition Fl_Browser.cxx:502
int item_height(void *item) const FL_OVERRIDE
Returns height of item in pixels.
Definition Fl_Browser.cxx:361
void show() FL_OVERRIDE
Shows the entire Fl_Browser widget – opposite of hide().
Definition Fl_Browser.H:191
void column_widths(const int *arr)
Sets the current array to arr.
Definition Fl_Browser.H:294
void column_char(char c)
Sets the column separator to c.
Definition Fl_Browser.H:265
void * item_at(int line) const FL_OVERRIDE
Return the item at specified line.
Definition Fl_Browser.H:124
int full_height() const FL_OVERRIDE
The height of the entire list of all visible() items in pixels.
Definition Fl_Browser.cxx:480
int size() const
Returns how many lines are in the browser.
Definition Fl_Browser.H:147
void value(int line)
Sets the browser's value(), which selects the specified line.
Definition Fl_Browser.H:203
int item_selected(void *item) const FL_OVERRIDE
See if item is selected.
Definition Fl_Browser.cxx:106
void * item_next(void *item) const FL_OVERRIDE
Returns the next item after item.
Definition Fl_Browser.cxx:76
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:305
FL_BLINE * find_line(int line) const
Returns the item for specified line.
Definition Fl_Browser.cxx:145
void make_visible(int line)
Make the item at the specified line visible().
Definition Fl_Browser.H:314
void lineposition(int line, Fl_Line_Position pos)
Updates the browser so that line is shown at position pos.
Definition Fl_Browser.cxx:616
char column_char() const
Gets the current column separator character.
Definition Fl_Browser.H:258
~Fl_Browser()
The destructor deletes all list items and destroys the browser.
Definition Fl_Browser.H:213
const int * column_widths() const
Gets the current column width array.
Definition Fl_Browser.H:289
void topline(int line)
Scrolls the browser so the top item in the browser is showing the specified line.
Definition Fl_Browser.H:171
const char * text(int line) const
Returns the label text for the specified line.
Definition Fl_Browser.cxx:718
void bottomline(int line)
Scrolls the browser so the bottom item in the browser is showing the specified line.
Definition Fl_Browser.H:178
void replace(int a, const char *b)
For back compatibility only.
Definition Fl_Browser.H:326
void * item_last() const FL_OVERRIDE
Returns the very last item in the list.
Definition Fl_Browser.cxx:98
int select(int line, int val=1)
Sets the selection state of the item at line to the value val.
Definition Fl_Browser.cxx:744
void middleline(int line)
Scrolls the browser so the middle item in the browser is showing the specified line.
Definition Fl_Browser.H:185
Base class for image caching, scaling and drawing.
Definition Fl_Image.H:60
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46