📄 imgchanged.3
字号:
'\"'\" Copyright (c) 1994 The Regents of the University of California.'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" SCCS: @(#) ImgChanged.3 1.6 96/03/26 18:14:18'\" .so man.macros.TH Tk_ImageChanged 3 4.0 Tk "Tk Library Procedures".BS.SH NAMETk_ImageChanged \- notify widgets that image needs to be redrawn.SH SYNOPSIS.nf\fB#include <tk.h>\fR.sp\fBTk_ImageChanged\fR(\fIimageMaster, x, y, width, height, imageWidth, imageHeight\fR).SH ARGUMENTS.AS Tk_ImageMaster imageHeight.AP Tk_ImageMaster imageMaster inToken for image, which was passed to image's \fIcreateProc\fR whenthe image was created..AP int x inX-coordinate of upper-left corner of region that needs redisplay (measuredfrom upper-left corner of image)..AP int y inY-coordinate of upper-left corner of region that needs redisplay (measuredfrom upper-left corner of image)..AP "int" width inWidth of region that needs to be redrawn, in pixels..AP "int" height inHeight of region that needs to be redrawn, in pixels..AP "int" imageWidth inCurrent width of image, in pixels..AP "int" imageHeight inCurrent height of image, in pixels..BE.SH DESCRIPTION.PPAn image manager calls \fBTk_ImageChanged\fR for an imagewhenever anything happens that requires the image to be redrawn.As a result of calling \fBTk_ImageChanged\fR, any widgets usingthe image are notified so that they can redisplay themselvesappropriately.The \fIimageMaster\fR argument identifies the image, and\fIx\fR, \fIy\fR, \fIwidth\fR, and \fIheight\fRspecify a rectangular region within the image that needs tobe redrawn.\fIimageWidth\fR and \fIimageHeight\fR specify the image's (new) size..PPAn image manager should call \fBTk_ImageChanged\fR duringits \fIcreateProc\fR to specify the image's initial size and toforce redisplay if there are existing instances for the image.If any of the pixel values in the image should change later on,\fBTk_ImageChanged\fR should be called again with \fIx\fR, \fIy\fR,\fIwidth\fR, and \fIheight\fR values that cover all the pixelsthat changed.If the size of the image should change, then \fBTk_ImageChanged\fRmust be called to indicate the new size, even if no pixelsneed to be redisplayed..SH "SEE ALSO"Tk_CreateImageType.SH KEYWORDSimages, redisplay, image size changes
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -