Add public accessor Fl_Shared_Image::original().
This public, inline, and read-only accessor is intended for debugging purposes but can be useful for user code as well. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12473 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
d9e36a352f
commit
1af036f6ed
@ -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
|
||||
@ -84,8 +84,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();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user