summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorCarl E. Thompson <devel-fltk@carlthompson.net>2000-06-10 19:30:01 +0000
committerCarl E. Thompson <devel-fltk@carlthompson.net>2000-06-10 19:30:01 +0000
commitb3d9c227bc6d167fe24fc21e318c04a05d810be8 (patch)
tree8732955c8905678c3aa0aaa7c879915bd03a9b00 /FL
parent8e5c8b50d3f480265cdea227186ece0b1c29fc15 (diff)
Made sure all draw()s were protected and all handle()s were public. (Most
were already.) Looks like I forgot to commit those changes to eliminate Mesa dependancy in the code. Here it is. Carl git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1189 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Box.H5
-rw-r--r--FL/Fl_Browser_.H6
-rw-r--r--FL/Fl_Clock.H6
-rw-r--r--FL/Fl_Color_Chooser.H14
-rw-r--r--FL/Fl_Free.H7
-rw-r--r--FL/Fl_Group.H6
-rw-r--r--FL/Fl_Menu_Bar.H6
-rw-r--r--FL/Fl_Roller.H5
-rw-r--r--FL/Fl_Scrollbar.H9
-rw-r--r--FL/Fl_Tabs.H8
10 files changed, 40 insertions, 32 deletions
diff --git a/FL/Fl_Box.H b/FL/Fl_Box.H
index 769f6f49b..3dec60de6 100644
--- a/FL/Fl_Box.H
+++ b/FL/Fl_Box.H
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Box.H,v 1.5.2.2 2000/06/05 21:20:19 mike Exp $"
+// "$Id: Fl_Box.H,v 1.5.2.3 2000/06/10 19:29:58 carl Exp $"
//
// Box header file for the Fast Light Tool Kit (FLTK).
//
@@ -31,6 +31,7 @@
#endif
class Fl_Box : public Fl_Widget {
+protected:
FL_EXPORT void draw();
public:
FL_EXPORT Fl_Box(int x, int y, int w, int h, const char *l=0)
@@ -42,5 +43,5 @@ public:
#endif
//
-// End of "$Id: Fl_Box.H,v 1.5.2.2 2000/06/05 21:20:19 mike Exp $".
+// End of "$Id: Fl_Box.H,v 1.5.2.3 2000/06/10 19:29:58 carl Exp $".
//
diff --git a/FL/Fl_Browser_.H b/FL/Fl_Browser_.H
index 85bb4b3a1..9bfe5cc27 100644
--- a/FL/Fl_Browser_.H
+++ b/FL/Fl_Browser_.H
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Browser_.H,v 1.6.2.2 2000/06/05 21:20:20 mike Exp $"
+// "$Id: Fl_Browser_.H,v 1.6.2.3 2000/06/10 19:29:59 carl Exp $"
//
// Common browser header file for the Fast Light Tool Kit (FLTK).
//
@@ -96,7 +96,6 @@ protected:
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:
@@ -104,6 +103,7 @@ public:
Fl_Scrollbar scrollbar; // Vertical scrollbar
Fl_Scrollbar hscrollbar; // Horizontal scrollbar
+ FL_EXPORT int handle(int);
FL_EXPORT void resize(int,int,int,int);
FL_EXPORT int select(void *,int=1,int docallbacks=0);
@@ -146,5 +146,5 @@ public:
#endif
//
-// End of "$Id: Fl_Browser_.H,v 1.6.2.2 2000/06/05 21:20:20 mike Exp $".
+// End of "$Id: Fl_Browser_.H,v 1.6.2.3 2000/06/10 19:29:59 carl Exp $".
//
diff --git a/FL/Fl_Clock.H b/FL/Fl_Clock.H
index 0a8892e8b..c665c733a 100644
--- a/FL/Fl_Clock.H
+++ b/FL/Fl_Clock.H
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Clock.H,v 1.6.2.2 2000/06/05 21:20:21 mike Exp $"
+// "$Id: Fl_Clock.H,v 1.6.2.3 2000/06/10 19:29:59 carl Exp $"
//
// Clock header file for the Fast Light Tool Kit (FLTK).
//
@@ -58,8 +58,8 @@ public:
// a Fl_Clock displays the current time always by using a timeout:
class Fl_Clock : public Fl_Clock_Output {
- FL_EXPORT int handle(int);
public:
+ FL_EXPORT int handle(int);
FL_EXPORT void update();
FL_EXPORT Fl_Clock(int x,int y,int w,int h, const char *l = 0);
FL_EXPORT Fl_Clock(uchar t,int x,int y,int w,int h, const char *l);
@@ -69,5 +69,5 @@ public:
#endif
//
-// End of "$Id: Fl_Clock.H,v 1.6.2.2 2000/06/05 21:20:21 mike Exp $".
+// End of "$Id: Fl_Clock.H,v 1.6.2.3 2000/06/10 19:29:59 carl Exp $".
//
diff --git a/FL/Fl_Color_Chooser.H b/FL/Fl_Color_Chooser.H
index 4dc02d072..d882a3891 100644
--- a/FL/Fl_Color_Chooser.H
+++ b/FL/Fl_Color_Chooser.H
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Color_Chooser.H,v 1.5.2.2 2000/06/05 21:20:21 mike Exp $"
+// "$Id: Fl_Color_Chooser.H,v 1.5.2.3 2000/06/10 19:29:59 carl Exp $"
//
// Color chooser header file for the Fast Light Tool Kit (FLTK).
//
@@ -37,19 +37,21 @@
#include <FL/Fl_Value_Input.H>
class Flcc_HueBox : public Fl_Widget {
- FL_EXPORT int handle(int);
- FL_EXPORT void draw();
int px, py;
+protected:
+ FL_EXPORT void draw();
public:
+ FL_EXPORT int handle(int);
Flcc_HueBox(int X, int Y, int W, int H) : Fl_Widget(X,Y,W,H) {
px = py = 0;}
};
class Flcc_ValueBox : public Fl_Widget {
- FL_EXPORT int handle(int);
- FL_EXPORT void draw();
int py;
+protected:
+ FL_EXPORT void draw();
public:
+ FL_EXPORT int handle(int);
Flcc_ValueBox(int X, int Y, int W, int H) : Fl_Widget(X,Y,W,H) {
py = 0;}
};
@@ -94,5 +96,5 @@ FL_EXPORT int fl_color_chooser(const char* name, uchar& r, uchar& g, uchar& b);
#endif
//
-// End of "$Id: Fl_Color_Chooser.H,v 1.5.2.2 2000/06/05 21:20:21 mike Exp $".
+// End of "$Id: Fl_Color_Chooser.H,v 1.5.2.3 2000/06/10 19:29:59 carl Exp $".
//
diff --git a/FL/Fl_Free.H b/FL/Fl_Free.H
index 9fba7bb1e..c357a7373 100644
--- a/FL/Fl_Free.H
+++ b/FL/Fl_Free.H
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Free.H,v 1.5.2.2 2000/06/05 21:20:23 mike Exp $"
+// "$Id: Fl_Free.H,v 1.5.2.3 2000/06/10 19:29:59 carl Exp $"
//
// Forms free header file for the Fast Light Tool Kit (FLTK).
//
@@ -41,9 +41,10 @@ typedef int (*FL_HANDLEPTR)(Fl_Widget *, int , float, float, char);
class Fl_Free : public Fl_Widget {
FL_HANDLEPTR hfunc;
static FL_EXPORT void step(void *);
+protected:
FL_EXPORT void draw();
- FL_EXPORT int handle(int);
public:
+ FL_EXPORT int handle(int);
FL_EXPORT Fl_Free(uchar t,int x,int y,int w,int h,const char *l,FL_HANDLEPTR hdl);
FL_EXPORT ~Fl_Free();
};
@@ -59,5 +60,5 @@ public:
#endif
//
-// End of "$Id: Fl_Free.H,v 1.5.2.2 2000/06/05 21:20:23 mike Exp $".
+// End of "$Id: Fl_Free.H,v 1.5.2.3 2000/06/10 19:29:59 carl Exp $".
//
diff --git a/FL/Fl_Group.H b/FL/Fl_Group.H
index 5ea5a2ccd..803dd89fe 100644
--- a/FL/Fl_Group.H
+++ b/FL/Fl_Group.H
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Group.H,v 1.6.2.2 2000/06/05 21:20:23 mike Exp $"
+// "$Id: Fl_Group.H,v 1.6.2.3 2000/06/10 19:29:59 carl Exp $"
//
// Group header file for the Fast Light Tool Kit (FLTK).
//
@@ -44,7 +44,6 @@ class Fl_Group : public Fl_Widget {
protected:
FL_EXPORT void draw();
- FL_EXPORT int handle(int);
FL_EXPORT void draw_child(Fl_Widget&) const;
FL_EXPORT void update_child(Fl_Widget&) const;
FL_EXPORT void draw_outside_label(const Fl_Widget&) const ;
@@ -52,6 +51,7 @@ protected:
public:
+ FL_EXPORT int handle(int);
void begin() {current_ = this;}
void end() {current_ = (Fl_Group*)parent();}
static Fl_Group *current() {return current_;}
@@ -96,5 +96,5 @@ public:
#endif
//
-// End of "$Id: Fl_Group.H,v 1.6.2.2 2000/06/05 21:20:23 mike Exp $".
+// End of "$Id: Fl_Group.H,v 1.6.2.3 2000/06/10 19:29:59 carl Exp $".
//
diff --git a/FL/Fl_Menu_Bar.H b/FL/Fl_Menu_Bar.H
index a9854ccbb..4ff4904a6 100644
--- a/FL/Fl_Menu_Bar.H
+++ b/FL/Fl_Menu_Bar.H
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Menu_Bar.H,v 1.5.2.2 2000/06/05 21:20:25 mike Exp $"
+// "$Id: Fl_Menu_Bar.H,v 1.5.2.3 2000/06/10 19:29:59 carl Exp $"
//
// Menu bar header file for the Fast Light Tool Kit (FLTK).
//
@@ -30,9 +30,9 @@
class Fl_Menu_Bar : public Fl_Menu_ {
protected:
- FL_EXPORT int handle(int);
FL_EXPORT void draw();
public:
+ FL_EXPORT int handle(int);
Fl_Menu_Bar(int x,int y,int w,int h,const char *l=0)
: Fl_Menu_(x,y,w,h,l) {}
};
@@ -40,5 +40,5 @@ public:
#endif
//
-// End of "$Id: Fl_Menu_Bar.H,v 1.5.2.2 2000/06/05 21:20:25 mike Exp $".
+// End of "$Id: Fl_Menu_Bar.H,v 1.5.2.3 2000/06/10 19:29:59 carl Exp $".
//
diff --git a/FL/Fl_Roller.H b/FL/Fl_Roller.H
index 6cbe43c2e..ed8eed239 100644
--- a/FL/Fl_Roller.H
+++ b/FL/Fl_Roller.H
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Roller.H,v 1.5.2.2 2000/06/05 21:20:29 mike Exp $"
+// "$Id: Fl_Roller.H,v 1.5.2.3 2000/06/10 19:29:59 carl Exp $"
//
// Roller header file for the Fast Light Tool Kit (FLTK).
//
@@ -31,6 +31,7 @@
#endif
class Fl_Roller : public Fl_Valuator {
+protected:
FL_EXPORT void draw();
public:
FL_EXPORT int handle(int);
@@ -40,5 +41,5 @@ public:
#endif
//
-// End of "$Id: Fl_Roller.H,v 1.5.2.2 2000/06/05 21:20:29 mike Exp $".
+// End of "$Id: Fl_Roller.H,v 1.5.2.3 2000/06/10 19:29:59 carl Exp $".
//
diff --git a/FL/Fl_Scrollbar.H b/FL/Fl_Scrollbar.H
index a0f7a9c7a..564385acd 100644
--- a/FL/Fl_Scrollbar.H
+++ b/FL/Fl_Scrollbar.H
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Scrollbar.H,v 1.5.2.2 2000/06/05 21:20:29 mike Exp $"
+// "$Id: Fl_Scrollbar.H,v 1.5.2.3 2000/06/10 19:30:00 carl Exp $"
//
// Scroll bar header file for the Fast Light Tool Kit (FLTK).
//
@@ -32,14 +32,15 @@ class Fl_Scrollbar : public Fl_Slider {
int linesize_;
int pushed_;
- FL_EXPORT void draw();
- FL_EXPORT int handle(int);
static FL_EXPORT void timeout_cb(void*);
FL_EXPORT void increment_cb();
+protected:
+ FL_EXPORT void draw();
public:
FL_EXPORT Fl_Scrollbar(int x,int y,int w,int h, const char *l = 0);
+ FL_EXPORT int handle(int);
int value() {return int(Fl_Slider::value());}
int value(int position, int size, int top, int total) {
@@ -53,5 +54,5 @@ public:
#endif
//
-// End of "$Id: Fl_Scrollbar.H,v 1.5.2.2 2000/06/05 21:20:29 mike Exp $".
+// End of "$Id: Fl_Scrollbar.H,v 1.5.2.3 2000/06/10 19:30:00 carl Exp $".
//
diff --git a/FL/Fl_Tabs.H b/FL/Fl_Tabs.H
index 176cd01ce..e2dfcf070 100644
--- a/FL/Fl_Tabs.H
+++ b/FL/Fl_Tabs.H
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Tabs.H,v 1.5.2.2 2000/06/05 21:20:30 mike Exp $"
+// "$Id: Fl_Tabs.H,v 1.5.2.3 2000/06/10 19:30:00 carl Exp $"
//
// Tab header file for the Fast Light Tool Kit (FLTK).
//
@@ -31,10 +31,12 @@
class Fl_Tabs : public Fl_Group {
Fl_Widget *value_;
Fl_Widget *push_;
- FL_EXPORT void draw();
FL_EXPORT int tab_positions(int*, int*);
FL_EXPORT int tab_height();
FL_EXPORT void draw_tab(int x1, int x2, int W, int H, Fl_Widget* o, int sel=0);
+protected:
+ FL_EXPORT void draw();
+
public:
FL_EXPORT int handle(int);
FL_EXPORT Fl_Widget *value();
@@ -48,5 +50,5 @@ public:
#endif
//
-// End of "$Id: Fl_Tabs.H,v 1.5.2.2 2000/06/05 21:20:30 mike Exp $".
+// End of "$Id: Fl_Tabs.H,v 1.5.2.3 2000/06/10 19:30:00 carl Exp $".
//