summaryrefslogtreecommitdiff
path: root/FL/Fl_Browser_.H
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1999-02-16 22:00:04 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1999-02-16 22:00:04 +0000
commitca41e69c27af0dee60b8186d06f5be0713d1a051 (patch)
tree85fd248b68d4d00414fef6488016da975f739bd2 /FL/Fl_Browser_.H
parent18312d3c1fb325c0d9ac92e98137cebbcadb563c (diff)
Updated headers to support WIN32 and OS/2 DLLs.
Updated VC++ project files. Removed dummymain.c (no longer needed). git-svn-id: file:///fltk/svn/fltk/trunk@278 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Browser_.H')
-rw-r--r--FL/Fl_Browser_.H80
1 files changed, 40 insertions, 40 deletions
diff --git a/FL/Fl_Browser_.H b/FL/Fl_Browser_.H
index f9735cbf1..6eef867a0 100644
--- a/FL/Fl_Browser_.H
+++ b/FL/Fl_Browser_.H
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Browser_.H,v 1.5 1999/01/07 19:16:51 mike Exp $"
+// "$Id: Fl_Browser_.H,v 1.6 1999/02/16 21:59:35 mike Exp $"
//
// Common browser header file for the Fast Light Tool Kit (FLTK).
//
@@ -59,61 +59,61 @@ class Fl_Browser_ : public Fl_Group {
static int scrollbar_width_;
- void update_top();
+ FL_EXPORT void update_top();
protected:
// All of the following must be supplied by the subclass:
- virtual void *item_first() const = 0;
- virtual void *item_next(void *) const = 0;
- virtual void *item_prev(void *) const = 0;
- virtual int item_height(void *) const = 0;
- virtual int item_width(void *) const = 0;
- virtual int item_quick_height(void *) const ;
- virtual void item_draw(void *,int,int,int,int) const = 0;
+ virtual FL_EXPORT void *item_first() const = 0;
+ virtual FL_EXPORT void *item_next(void *) const = 0;
+ virtual FL_EXPORT void *item_prev(void *) const = 0;
+ virtual FL_EXPORT int item_height(void *) const = 0;
+ virtual FL_EXPORT int item_width(void *) const = 0;
+ virtual FL_EXPORT int item_quick_height(void *) const ;
+ virtual FL_EXPORT void item_draw(void *,int,int,int,int) const = 0;
// you don't have to provide these but it may help speed it up:
- virtual int full_width() const ; // current width of all items
- virtual int full_height() const ; // current height of all items
- virtual int incr_height() const ; // average height of an item
+ virtual FL_EXPORT int full_width() const ; // current width of all items
+ virtual FL_EXPORT int full_height() const ; // current height of all items
+ virtual FL_EXPORT int incr_height() const ; // average height of an item
// These only need to be done by subclass if you want a multi-browser:
- virtual void item_select(void *,int=1);
- virtual int item_selected(void *) const ;
+ virtual FL_EXPORT void item_select(void *,int=1);
+ virtual FL_EXPORT int item_selected(void *) const ;
// things the subclass may want to call:
- void *top() const {return top_;}
- void *selection() const {return selection_;}
- void new_list(); // completely clobber all data, as though list replaced
- void deleting(void *a); // get rid of any pointers to a
- void replacing(void *a,void *b); // change a pointers to b
- void inserting(void *a,void *b); // insert a before b
- int displayed(void *) const ; // true if this line is visible
- void redraw_line(void *); // minimal update, no change in size
- void redraw_lines() {damage(FL_DAMAGE_SCROLL);} // redraw all of them
- void bbox(int&,int&,int&,int&) const;
- int leftedge() const; // x position after scrollbar & border
- void *find_item(int my); // item under mouse
- void draw(int,int,int,int);
- int handle(int,int,int,int,int);
-
- void draw();
- int handle(int);
- Fl_Browser_(int,int,int,int,const char * = 0);
+ FL_EXPORT void *top() const {return top_;}
+ FL_EXPORT void *selection() const {return selection_;}
+ FL_EXPORT void new_list(); // completely clobber all data, as though list replaced
+ FL_EXPORT void deleting(void *a); // get rid of any pointers to a
+ FL_EXPORT void replacing(void *a,void *b); // change a pointers to b
+ FL_EXPORT void inserting(void *a,void *b); // insert a before b
+ FL_EXPORT int displayed(void *) const ; // true if this line is visible
+ FL_EXPORT void redraw_line(void *); // minimal update, no change in size
+ FL_EXPORT void redraw_lines() {damage(FL_DAMAGE_SCROLL);} // redraw all of them
+ FL_EXPORT void bbox(int&,int&,int&,int&) const;
+ FL_EXPORT int leftedge() const; // x position after scrollbar & border
+ FL_EXPORT void *find_item(int my); // item under mouse
+ FL_EXPORT void draw(int,int,int,int);
+ FL_EXPORT int handle(int,int,int,int,int);
+
+ FL_EXPORT void draw();
+ FL_EXPORT int handle(int);
+ FL_EXPORT Fl_Browser_(int,int,int,int,const char * = 0);
public:
Fl_Scrollbar scrollbar; // Vertical scrollbar
Fl_Scrollbar hscrollbar; // Horizontal scrollbar
- void resize(int,int,int,int);
+ FL_EXPORT void resize(int,int,int,int);
- int select(void *,int=1,int docallbacks=0);
- int select_only(void *,int docallbacks=0);
- int deselect(int docallbacks=0);
+ FL_EXPORT int select(void *,int=1,int docallbacks=0);
+ FL_EXPORT int select_only(void *,int docallbacks=0);
+ FL_EXPORT int deselect(int docallbacks=0);
int position() const {return position_;}
int hposition() const {return hposition_;}
- void position(int); // scroll to here
- void hposition(int); // pan to here
- void display(void*); // scroll so this item is shown
+ FL_EXPORT void position(int); // scroll to here
+ FL_EXPORT void hposition(int); // pan to here
+ FL_EXPORT void display(void*); // scroll so this item is shown
uchar has_scrollbar() const {return has_scrollbar_;}
void has_scrollbar(uchar i) {has_scrollbar_ = i;}
@@ -146,5 +146,5 @@ public:
#endif
//
-// End of "$Id: Fl_Browser_.H,v 1.5 1999/01/07 19:16:51 mike Exp $".
+// End of "$Id: Fl_Browser_.H,v 1.6 1999/02/16 21:59:35 mike Exp $".
//