1Tk_ImageChanged(3)           Tk Library Procedures          Tk_ImageChanged(3)
2
3
4
5______________________________________________________________________________
6

NAME

8       Tk_ImageChanged - notify widgets that image needs to be redrawn
9

SYNOPSIS

11       #include <tk.h>
12
13       Tk_ImageChanged(imageMaster, x, y, width, height, imageWidth, imageHeight)
14

ARGUMENTS

16       Tk_ImageMaster   imageMaster   (in)      Token  for  image,  which  was
17                                                passed to  image's  createProc
18                                                when the image was created.
19
20       int              x             (in)      X-coordinate   of   upper-left
21                                                corner of  region  that  needs
22                                                redisplay    (measured    from
23                                                upper-left corner of image).
24
25       int              y             (in)      Y-coordinate   of   upper-left
26                                                corner  of  region  that needs
27                                                redisplay    (measured    from
28                                                upper-left corner of image).
29
30       int              width         (in)      Width  of region that needs to
31                                                be redrawn, in pixels.
32
33       int              height        (in)      Height of region that needs to
34                                                be redrawn, in pixels.
35
36       int              imageWidth    (in)      Current  width  of  image,  in
37                                                pixels.
38
39       int              imageHeight   (in)      Current height  of  image,  in
40                                                pixels.
41_________________________________________________________________
42
43

DESCRIPTION

45       An  image  manager calls Tk_ImageChanged for an image whenever anything
46       happens that requires the image to be redrawn.  As a result of  calling
47       Tk_ImageChanged,  any widgets using the image are notified so that they
48       can redisplay themselves appropriately.  The imageMaster argument iden‐
49       tifies  the  image,  and  x, y, width, and height specify a rectangular
50       region within the image that  needs  to  be  redrawn.   imageWidth  and
51       imageHeight specify the image's (new) size.
52
53       An  image  manager should call Tk_ImageChanged during its createProc to
54       specify the image's initial size and to force redisplay  if  there  are
55       existing  instances  for  the image.  If any of the pixel values in the
56       image should change later on, Tk_ImageChanged should  be  called  again
57       with  x,  y,  width,  and  height values that cover all the pixels that
58       changed.  If the size of the image should change, then  Tk_ImageChanged
59       must  be  called to indicate the new size, even if no pixels need to be
60       redisplayed.
61
62

SEE ALSO

64       Tk_CreateImageType
65
66

KEYWORDS

68       images, redisplay, image size changes
69
70
71
72Tk                                    4.0                   Tk_ImageChanged(3)
Impressum