Debian Codegraph @

pod/pTk/ImgChanged.pod

raw
1 # Copyright (c) 1994 The Regents of the University of California.
2 # Copyright (c) 1994-1996 Sun Microsystems, Inc.
3 # See the file "license.terms" for information on usage and redistribution
4 # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
5 #
6 #
7
8 =head1 NAME
9
10 Tk_ImageChanged - notify widgets that image needs to be redrawn
11
12 =for category C Programming
13
14 =head1 SYNOPSIS
15
16 B<#include E<lt>tk.hE<gt>>
17
18 B<Tk_ImageChanged>(I<imageMaster, x, y, width, height, imageWidth, imageHeight>)
19
20 =head1 ARGUMENTS
21
22 =over 4
23
24 =item Tk_ImageMaster imageMaster (in)
25
26 Token for image, which was passed to image's I<createProc> when
27 the image was created.
28
29 =item int x (in)
30
31 X-coordinate of upper-left corner of region that needs redisplay (measured
32 from upper-left corner of image).
33
34 =item int y (in)
35
36 Y-coordinate of upper-left corner of region that needs redisplay (measured
37 from upper-left corner of image).
38
39 =item "int" width (in)
40
41 Width of region that needs to be redrawn, in pixels.
42
43 =item "int" height (in)
44
45 Height of region that needs to be redrawn, in pixels.
46
47 =item "int" imageWidth (in)
48
49 Current width of image, in pixels.
50
51 =item "int" imageHeight (in)
52
53 Current height of image, in pixels.
54
55 =back
56
57 =head1 DESCRIPTION
58
59 An image manager calls B<Tk_ImageChanged> for an image
60 whenever anything happens that requires the image to be redrawn.
61 As a result of calling B<Tk_ImageChanged>, any widgets using
62 the image are notified so that they can redisplay themselves
63 appropriately.
64 The I<imageMaster> argument identifies the image, and
65 I<x>, I<y>, I<width>, and I<height>
66 specify a rectangular region within the image that needs to
67 be redrawn.
68 I<imageWidth> and I<imageHeight> specify the image's (new) size.
69
70 An image manager should call B<Tk_ImageChanged> during
71 its I<createProc> to specify the image's initial size and to
72 force redisplay if there are existing instances for the image.
73 If any of the pixel values in the image should change later on,
74 B<Tk_ImageChanged> should be called again with I<x>, I<y>,
75 I<width>, and I<height> values that cover all the pixels
76 that changed.
77 If the size of the image should change, then B<Tk_ImageChanged>
78 must be called to indicate the new size, even if no pixels
79 need to be redisplayed.
80
81 =head1 SEE ALSO
82
83 L<Tk::CrtImgType>
84
85 =head1 KEYWORDS
86
87 images, redisplay, image size changes