From 87dd7f0d23eba5c09e71ec6efeb34c6844f5e95f Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 29 Dec 1998 14:21:17 +0000 Subject: Revised documentation files. git-svn-id: file:///fltk/svn/fltk/trunk@177 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_Browser_.html | 171 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 171 insertions(+) create mode 100644 documentation/Fl_Browser_.html (limited to 'documentation/Fl_Browser_.html') diff --git a/documentation/Fl_Browser_.html b/documentation/Fl_Browser_.html new file mode 100644 index 000000000..fc8456f51 --- /dev/null +++ b/documentation/Fl_Browser_.html @@ -0,0 +1,171 @@ + + + +
+ +

class Fl_Browser_

+ +
+ +

Class Hierarchy

+ + + +

Include Files

+ + + +

Description

+ +This is the base class for browsers. To be useful it must be +subclassed and several virtual functions defined. The Forms-compatable +browser and the file chooser's browser are subclassed off of this. + +

This has been designed so that the subclass has complete control +over the storage of the data, although because next() and +prev() functions are used to index, it works best as a linked +list or as a large block of characters in which the line breaks must be +searched for. + +

A great deal of work has been done so that the "height" of a data +object does not need to be determined until it is drawn. This is +useful if actually figuring out the size of an object requires +accessing image data or doing stat() on a file or doing some +other slow operation. + +

Methods

+ +
+ + + + + + + + +
+ + + + + + + + + +
+
+ +

Fl_Browser::Fl_Browser(int, int, int, int, const char * = 0)

+ +The constructor makes an empty browser. + +

Fl_Browser::~Fl_Browser(void)

+ +The destructor deletes all list items and destroys the browser. + +

void Fl_Browser_::has_scrollbar(int h)

+ +By default you can scroll in both directions, and the scrollbars +disappear if the data will fit in the widget. has_scrollbar() +changes this based on the value of h: + + + +

Fl_Color Fl_Browser_::textcolor() const
+void Fl_Browser_::textcolor(Fl_Color color)

+ +The first form gets the default text color for the lines in the +browser. + +

The second form sets the default text color to color + +

Fl_Font Fl_Browser_::textfont() const
+void Fl_Browser_::textfont(Fl_Font font)

+ +The first form gets the default text font for the lines in the +browser. + +

The second form sets the default text font to font + +

uchar Fl_Browser_::textsize() const
+void Fl_Browser_::textsize(uchar size)

+ +The first form gets the default text size for the lines in the +browser. + +

The second form sets the default text size to size + + + -- cgit v1.2.3