From d211b12af7662a2ea4a9d98aa2136fd23f52dd96 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Wed, 28 Nov 2001 18:00:17 +0000 Subject: Add Fl::version() and Fl::event() methods. Doco updates (use instead of
, plus more Fl_Text_Buffer docos) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1773 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl.H | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'FL') diff --git a/FL/Fl.H b/FL/Fl.H index d74126f42..78bd10ec8 100644 --- a/FL/Fl.H +++ b/FL/Fl.H @@ -1,5 +1,5 @@ // -// "$Id: Fl.H,v 1.8.2.11.2.4 2001/11/27 17:44:06 easysw Exp $" +// "$Id: Fl.H,v 1.8.2.11.2.5 2001/11/28 18:00:16 easysw Exp $" // // Main header file for the Fast Light Tool Kit (FLTK). // @@ -45,6 +45,7 @@ class Fl { public: // should be private! + static FL_EXPORT int e_number; static FL_EXPORT int e_x,e_y,e_x_root,e_y_root; static FL_EXPORT int e_dx, e_dy; static FL_EXPORT int e_state; @@ -68,6 +69,9 @@ public: // should be private! public: + // API version number + static double version(); + // argument parsers: static FL_EXPORT int arg(int, char**, int&); static FL_EXPORT int args(int, char**, int&, int (*)(int,char**,int&) = 0); @@ -119,8 +123,9 @@ public: static FL_EXPORT void grab(Fl_Window*); // event information: - static FL_EXPORT int event_x() {return e_x;} - static FL_EXPORT int event_y() {return e_y;} + static FL_EXPORT int event() {return e_number;} + static FL_EXPORT int event_x() {return e_x;} + static FL_EXPORT int event_y() {return e_y;} static FL_EXPORT int event_x_root() {return e_x_root;} static FL_EXPORT int event_y_root() {return e_y_root;} static FL_EXPORT void get_mouse(int &,int &); @@ -220,5 +225,5 @@ public: #endif // -// End of "$Id: Fl.H,v 1.8.2.11.2.4 2001/11/27 17:44:06 easysw Exp $". +// End of "$Id: Fl.H,v 1.8.2.11.2.5 2001/11/28 18:00:16 easysw Exp $". // -- cgit v1.2.3