summaryrefslogtreecommitdiffstats
path: root/generic/tkImgPhoto.c
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2000-11-21 16:18:03 (GMT)
committerdkf <dkf@noemail.net>2000-11-21 16:18:03 (GMT)
commita6b1cae64179aaca99b55d08fc2b164bb672c695 (patch)
treed29106fe0292c76556ff5614edd180c4bdfaa6cb /generic/tkImgPhoto.c
parent5ae903dc1a7b5bfd79555abedbfd052e400e9d60 (diff)
downloadtk-a6b1cae64179aaca99b55d08fc2b164bb672c695.zip
tk-a6b1cae64179aaca99b55d08fc2b164bb672c695.tar.gz
tk-a6b1cae64179aaca99b55d08fc2b164bb672c695.tar.bz2
Added TkPhotoGetValidRegion() to tkInt stubs. Bug #120930 closed.
FossilOrigin-Name: a9b9efd5d48b7f3fb8705445979c29c9253c8c17
Diffstat (limited to 'generic/tkImgPhoto.c')
-rw-r--r--generic/tkImgPhoto.c33
1 files changed, 32 insertions, 1 deletions
diff --git a/generic/tkImgPhoto.c b/generic/tkImgPhoto.c
index 4084fc5..42647eb 100644
--- a/generic/tkImgPhoto.c
+++ b/generic/tkImgPhoto.c
@@ -15,7 +15,7 @@
* Department of Computer Science,
* Australian National University.
*
- * RCS: @(#) $Id: tkImgPhoto.c,v 1.21 2000/08/21 22:45:15 ericm Exp $
+ * RCS: @(#) $Id: tkImgPhoto.c,v 1.22 2000/11/21 16:18:05 dkf Exp $
*/
#include "tkInt.h"
@@ -4694,6 +4694,37 @@ Tk_PhotoSetSize(handle, width, height)
/*
*----------------------------------------------------------------------
*
+ * TkGetPhotoValidRegion --
+ *
+ * This procedure is called to get the part of the photo where
+ * there is valid data. Or, conversely, the part of the photo
+ * which is transparent.
+ *
+ * Results:
+ * A TkRegion value that indicates the current area of the photo
+ * that is valid. This value should not be used after any
+ * modification to the photo image.
+ *
+ * Side Effects:
+ * None.
+ *
+ *----------------------------------------------------------------------
+ */
+
+TkRegion
+TkPhotoGetValidRegion(handle)
+ Tk_PhotoHandle handle; /* Handle for the image whose valid region
+ * is to obtained. */
+{
+ PhotoMaster *masterPtr;
+
+ masterPtr = (PhotoMaster *) handle;
+ return masterPtr->validRegion;
+}
+
+/*
+ *----------------------------------------------------------------------
+ *
* ImgGetPhoto --
*
* This procedure is called to obtain image data from a photo