summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2015-04-04 15:36:04 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2015-04-04 15:36:04 +0000
commit94ddbc199577885bd998d1f9e95692da391fc907 (patch)
treeb4130ee0ad3aad16b5c3b7573bbc997d00ba4266 /src
parentc4b0a2f3bfb5f844ef5ed02fa6f8e72096f23776 (diff)
Add FL_ABI_VERSION, FL_API_VERSION, Fl::abi_version(), and Fl::api_version().
The new constants are the API and ABI versions in int format, resp. The new static methods return the compiled-in API and ABI versions, resp. FLTK_ABI_VERSION is deprecated, but still defined (same as FL_ABI_VERSION). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10673 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl.cxx21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx
index 6b1d8515b..f00952d85 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -127,16 +127,33 @@ char const * const Fl::clipboard_image = "image";
// 'Fl::version()' - Return the API version number...
//
-double
/**
Returns the compiled-in value of the FL_VERSION constant. This
is useful for checking the version of a shared library.
+
+ \deprecated Use int Fl::api_version() instead.
*/
-Fl::version() {
+double Fl::version() {
return FL_VERSION;
}
/**
+ Returns the compiled-in value of the FL_API_VERSION constant. This
+ is useful for checking the version of a shared library.
+*/
+int Fl::api_version() {
+ return FL_API_VERSION;
+}
+
+/**
+ Returns the compiled-in value of the FL_ABI_VERSION constant. This
+ is useful for checking the version of a shared library.
+*/
+int Fl::abi_version() {
+ return FL_ABI_VERSION;
+}
+
+/**
Gets the default scrollbar size used by
Fl_Browser_,
Fl_Help_View,