summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FL/Fl_Shared_Image.H17
1 files changed, 15 insertions, 2 deletions
diff --git a/FL/Fl_Shared_Image.H b/FL/Fl_Shared_Image.H
index 64d5f51fd..4ef226eb7 100644
--- a/FL/Fl_Shared_Image.H
+++ b/FL/Fl_Shared_Image.H
@@ -3,7 +3,7 @@
//
// Shared image header file for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2016 by Bill Spitzak and others.
+// Copyright 1998-2017 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -83,8 +83,21 @@ protected:
public:
/** Returns the filename of the shared image */
const char *name() { return name_; }
- /** Returns the number of references of this shared image. When reference is below 1, the image is deleted. */
+
+ /** Returns the number of references of this shared image.
+ When reference is below 1, the image is deleted.
+ */
int refcount() { return refcount_; }
+
+ /** Returns whether this is an original image.
+ Images loaded from a file or from memory are marked \p original as
+ opposed to images created as a copy of another image with different
+ size (width or height).
+ \note This is useful for debugging (rarely used in user code).
+ \since FLTK 1.4.0
+ */
+ int original() { return original_; }
+
void release();
void reload();