OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [mw/] [doc/] [nano-X/] [nano-X-docs.ps] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 673 markom
%!PS-Adobe-2.0
2
%%Creator: dvips(k) 5.78 Copyright 1998 Radical Eye Software (www.radicaleye.com)
3
%%Title: nano-X-docs.dvi
4
%%Pages: 70
5
%%PageOrder: Ascend
6
%%BoundingBox: 0 0 596 842
7
%%DocumentFonts: Helvetica-Bold Times-Bold Times-Roman Times-Italic
8
%%+ Courier Courier-Oblique
9
%%EndComments
10
%DVIPSCommandLine: dvips nano-X-docs.dvi -o nano-X-docs.ps
11
%DVIPSParameters: dpi=600, compressed
12
%DVIPSSource:  TeX output 2000.12.13:0008
13
%%BeginProcSet: texc.pro
14
%!
15
/TeXDict 300 dict def TeXDict begin /N{def}def /B{bind def}N /S{exch}N
16
/X{S N}B /TR{translate}N /isls false N /vsize 11 72 mul N /hsize 8.5 72
17
mul N /landplus90{false}def /@rigin{isls{[0 landplus90{1 -1}{-1 1}
18
ifelse 0 0 0]concat}if 72 Resolution div 72 VResolution div neg scale
19
isls{landplus90{VResolution 72 div vsize mul 0 exch}{Resolution -72 div
20
hsize mul 0}ifelse TR}if Resolution VResolution vsize -72 div 1 add mul
21
TR[matrix currentmatrix{dup dup round sub abs 0.00001 lt{round}if}
22
forall round exch round exch]setmatrix}N /@landscape{/isls true N}B
23
/@manualfeed{statusdict /manualfeed true put}B /@copies{/#copies X}B
24
/FMat[1 0 0 -1 0 0]N /FBB[0 0 0 0]N /nn 0 N /IE 0 N /ctr 0 N /df-tail{
25
/nn 8 dict N nn begin /FontType 3 N /FontMatrix fntrx N /FontBBox FBB N
26
string /base X array /BitMaps X /BuildChar{CharBuilder}N /Encoding IE N
27
end dup{/foo setfont}2 array copy cvx N load 0 nn put /ctr 0 N[}B /df{
28
/sf 1 N /fntrx FMat N df-tail}B /dfs{div /sf X /fntrx[sf 0 0 sf neg 0 0]
29
N df-tail}B /E{pop nn dup definefont setfont}B /ch-width{ch-data dup
30
length 5 sub get}B /ch-height{ch-data dup length 4 sub get}B /ch-xoff{
31
128 ch-data dup length 3 sub get sub}B /ch-yoff{ch-data dup length 2 sub
32
get 127 sub}B /ch-dx{ch-data dup length 1 sub get}B /ch-image{ch-data
33
dup type /stringtype ne{ctr get /ctr ctr 1 add N}if}B /id 0 N /rw 0 N
34
/rc 0 N /gp 0 N /cp 0 N /G 0 N /sf 0 N /CharBuilder{save 3 1 roll S dup
35
/base get 2 index get S /BitMaps get S get /ch-data X pop /ctr 0 N ch-dx
36
 
37
setcachedevice ch-width ch-height true[1 0 0 -1 -.1 ch-xoff sub ch-yoff
38
.1 sub]/id ch-image N /rw ch-width 7 add 8 idiv string N /rc 0 N /gp 0 N
39
/cp 0 N{rc 0 ne{rc 1 sub /rc X rw}{G}ifelse}imagemask restore}B /G{{id
40
gp get /gp gp 1 add N dup 18 mod S 18 idiv pl S get exec}loop}B /adv{cp
41
add /cp X}B /chg{rw cp id gp 4 index getinterval putinterval dup gp add
42
/gp X adv}B /nd{/cp 0 N rw exit}B /lsh{rw cp 2 copy get dup 0 eq{pop 1}{
43
dup 255 eq{pop 254}{dup dup add 255 and S 1 and or}ifelse}ifelse put 1
44
adv}B /rsh{rw cp 2 copy get dup 0 eq{pop 128}{dup 255 eq{pop 127}{dup 2
45
idiv S 128 and or}ifelse}ifelse put 1 adv}B /clr{rw cp 2 index string
46
putinterval adv}B /set{rw cp fillstr 0 4 index getinterval putinterval
47
adv}B /fillstr 18 string 0 1 17{2 copy 255 put pop}for N /pl[{adv 1 chg}
48
{adv 1 chg nd}{1 add chg}{1 add chg nd}{adv lsh}{adv lsh nd}{adv rsh}{
49
adv rsh nd}{1 add adv}{/rc X nd}{1 add set}{1 add clr}{adv 2 chg}{adv 2
50
chg nd}{pop nd}]dup{bind pop}forall N /D{/cc X dup type /stringtype ne{]
51
}if nn /base get cc ctr put nn /BitMaps get S ctr S sf 1 ne{dup dup
52
length 1 sub dup 2 index S get sf div put}if put /ctr ctr 1 add N}B /I{
53
cc 1 add D}B /bop{userdict /bop-hook known{bop-hook}if /SI save N @rigin
54
 
55
add .99 lt{/QV}{/RV}ifelse load def pop pop}N /eop{SI restore userdict
56
/eop-hook known{eop-hook}if showpage}N /@start{userdict /start-hook
57
known{start-hook}if pop /VResolution X /Resolution X 1000 div /DVImag X
58
/IE 256 array N 2 string 0 1 255{IE S dup 360 add 36 4 index cvrs cvn
59
put}for pop 65781.76 div /vsize X 65781.76 div /hsize X}N /p{show}N
60
/RMat[1 0 0 -1 0 0]N /BDot 260 string N /rulex 0 N /ruley 0 N /v{/ruley
61
X /rulex X V}B /V{}B /RV statusdict begin /product where{pop false[
62
(Display)(NeXT)(LaserWriter 16/600)]{dup length product length le{dup
63
length product exch 0 exch getinterval eq{pop true exit}if}{pop}ifelse}
64
forall}{false}ifelse end{{gsave TR -.1 .1 TR 1 1 scale rulex ruley false
65
RMat{BDot}imagemask grestore}}{{gsave TR -.1 .1 TR rulex ruley scale 1 1
66
false RMat{BDot}imagemask grestore}}ifelse B /QV{gsave newpath transform
67
round exch round exch itransform moveto rulex 0 rlineto 0 ruley neg
68
rlineto rulex neg 0 rlineto fill grestore}B /a{moveto}B /delta 0 N /tail
69
{dup /delta X 0 rmoveto}B /M{S p delta add tail}B /b{S p tail}B /c{-4 M}
70
B /d{-3 M}B /e{-2 M}B /f{-1 M}B /g{0 M}B /h{1 M}B /i{2 M}B /j{3 M}B /k{
71
4 M}B /w{0 rmoveto}B /l{p -4 w}B /m{p -3 w}B /n{p -2 w}B /o{p -1 w}B /q{
72
p 1 w}B /r{p 2 w}B /s{p 3 w}B /t{p 4 w}B /x{0 S rmoveto}B /y{3 2 roll p
73
a}B /bos{/SS save N}B /eos{SS restore}B end
74
 
75
%%EndProcSet
76
%%BeginProcSet: 8r.enc
77
% @@psencodingfile@{
78
%   author = "S. Rahtz, P. MacKay, Alan Jeffrey, B. Horn, K. Berry",
79
%   version = "0.6",
80
%   date = "22 June 1996",
81
%   filename = "8r.enc",
82
%   email = "kb@@mail.tug.org",
83
%   address = "135 Center Hill Rd. // Plymouth, MA 02360",
84
%   codetable = "ISO/ASCII",
85
%   checksum = "119     662    4424",
86
%   docstring = "Encoding for TrueType or Type 1 fonts to be used with TeX."
87
% @}
88
%
89
% Idea is to have all the characters normally included in Type 1 fonts
90
% available for typesetting. This is effectively the characters in Adobe
91
% Standard Encoding + ISO Latin 1 + extra characters from Lucida.
92
%
93
% Character code assignments were made as follows:
94
%
95
% (1) the Windows ANSI characters are almost all in their Windows ANSI
96
% positions, because some Windows users cannot easily reencode the
97
% fonts, and it makes no difference on other systems. The only Windows
98
% ANSI characters not available are those that make no sense for
99
% typesetting -- rubout (127 decimal), nobreakspace (160), softhyphen
100
% (173). quotesingle and grave are moved just because it's such an
101
% irritation not having them in TeX positions.
102
%
103
% (2) Remaining characters are assigned arbitrarily to the lower part
104
% of the range, avoiding 0, 10 and 13 in case we meet dumb software.
105
%
106
% (3) Y&Y Lucida Bright includes some extra text characters; in the
107
% hopes that other PostScript fonts, perhaps created for public
108
% consumption, will include them, they are included starting at 0x12.
109
%
110
% (4) Remaining positions left undefined are for use in (hopefully)
111
% upward-compatible revisions, if someday more characters are generally
112
% available.
113
%
114
% (5) hyphen appears twice for compatibility with both ASCII and Windows.
115
%
116
/TeXBase1Encoding [
117
% 0x00 (encoded characters from Adobe Standard not in Windows 3.1)
118
  /.notdef /dotaccent /fi /fl
119
  /fraction /hungarumlaut /Lslash /lslash
120
  /ogonek /ring /.notdef
121
  /breve /minus /.notdef
122
% These are the only two remaining unencoded characters, so may as
123
% well include them.
124
  /Zcaron /zcaron
125
% 0x10
126
 /caron /dotlessi
127
% (unusual TeX characters available in, e.g., Lucida Bright)
128
 /dotlessj /ff /ffi /ffl
129
 /.notdef /.notdef /.notdef /.notdef
130
 /.notdef /.notdef /.notdef /.notdef
131
 % very contentious; it's so painful not having quoteleft and quoteright
132
 % at 96 and 145 that we move the things normally found there down to here.
133
 /grave /quotesingle
134
% 0x20 (ASCII begins)
135
 /space /exclam /quotedbl /numbersign
136
 /dollar /percent /ampersand /quoteright
137
 /parenleft /parenright /asterisk /plus /comma /hyphen /period /slash
138
% 0x30
139
 /zero /one /two /three /four /five /six /seven
140
 /eight /nine /colon /semicolon /less /equal /greater /question
141
% 0x40
142
 /at /A /B /C /D /E /F /G /H /I /J /K /L /M /N /O
143
% 0x50
144
 /P /Q /R /S /T /U /V /W
145
 /X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore
146
% 0x60
147
 /quoteleft /a /b /c /d /e /f /g /h /i /j /k /l /m /n /o
148
% 0x70
149
 /p /q /r /s /t /u /v /w
150
 /x /y /z /braceleft /bar /braceright /asciitilde
151
 /.notdef % rubout; ASCII ends
152
% 0x80
153
 /.notdef /.notdef /quotesinglbase /florin
154
 /quotedblbase /ellipsis /dagger /daggerdbl
155
 /circumflex /perthousand /Scaron /guilsinglleft
156
 /OE /.notdef /.notdef /.notdef
157
% 0x90
158
 /.notdef /.notdef /.notdef /quotedblleft
159
 /quotedblright /bullet /endash /emdash
160
 /tilde /trademark /scaron /guilsinglright
161
 /oe /.notdef /.notdef /Ydieresis
162
% 0xA0
163
 /.notdef % nobreakspace
164
 /exclamdown /cent /sterling
165
 /currency /yen /brokenbar /section
166
 /dieresis /copyright /ordfeminine /guillemotleft
167
 /logicalnot
168
 /hyphen % Y&Y (also at 45); Windows' softhyphen
169
 /registered
170
 /macron
171
% 0xD0
172
 /degree /plusminus /twosuperior /threesuperior
173
 /acute /mu /paragraph /periodcentered
174
 /cedilla /onesuperior /ordmasculine /guillemotright
175
 /onequarter /onehalf /threequarters /questiondown
176
% 0xC0
177
 /Agrave /Aacute /Acircumflex /Atilde /Adieresis /Aring /AE /Ccedilla
178
 /Egrave /Eacute /Ecircumflex /Edieresis
179
 /Igrave /Iacute /Icircumflex /Idieresis
180
% 0xD0
181
 /Eth /Ntilde /Ograve /Oacute
182
 /Ocircumflex /Otilde /Odieresis /multiply
183
 /Oslash /Ugrave /Uacute /Ucircumflex
184
 /Udieresis /Yacute /Thorn /germandbls
185
% 0xE0
186
 /agrave /aacute /acircumflex /atilde
187
 /adieresis /aring /ae /ccedilla
188
 /egrave /eacute /ecircumflex /edieresis
189
 /igrave /iacute /icircumflex /idieresis
190
% 0xF0
191
 /eth /ntilde /ograve /oacute
192
 /ocircumflex /otilde /odieresis /divide
193
 /oslash /ugrave /uacute /ucircumflex
194
 /udieresis /yacute /thorn /ydieresis
195
] def
196
 
197
%%EndProcSet
198
%%BeginProcSet: texps.pro
199
%!
200
TeXDict begin /rf{findfont dup length 1 add dict begin{1 index /FID ne 2
201
index /UniqueID ne and{def}{pop pop}ifelse}forall[1 index 0 6 -1 roll
202
exec 0 exch 5 -1 roll VResolution Resolution div mul neg 0 0]/Metrics
203
exch def dict begin Encoding{exch dup type /integertype ne{pop pop 1 sub
204
dup 0 le{pop}{[}ifelse}{FontMatrix 0 get div Metrics 0 get div def}
205
ifelse}forall Metrics /Metrics currentdict end def[2 index currentdict
206
end definefont 3 -1 roll makefont /setfont cvx]cvx def}def /ObliqueSlant
207
{dup sin S cos div neg}B /SlantFont{4 index mul add}def /ExtendFont{3 -1
208
roll mul exch}def /ReEncodeFont{/Encoding exch def}def end
209
 
210
%%EndProcSet
211
%%BeginProcSet: special.pro
212
%!
213
TeXDict begin /SDict 200 dict N SDict begin /@SpecialDefaults{/hs 612 N
214
/vs 792 N /ho 0 N /vo 0 N /hsc 1 N /vsc 1 N /ang 0 N /CLIP 0 N /rwiSeen
215
false N /rhiSeen false N /letter{}N /note{}N /a4{}N /legal{}N}B
216
/@scaleunit 100 N /@hscale{@scaleunit div /hsc X}B /@vscale{@scaleunit
217
div /vsc X}B /@hsize{/hs X /CLIP 1 N}B /@vsize{/vs X /CLIP 1 N}B /@clip{
218
/CLIP 2 N}B /@hoffset{/ho X}B /@voffset{/vo X}B /@angle{/ang X}B /@rwi{
219
10 div /rwi X /rwiSeen true N}B /@rhi{10 div /rhi X /rhiSeen true N}B
220
/@llx{/llx X}B /@lly{/lly X}B /@urx{/urx X}B /@ury{/ury X}B /magscale
221
true def end /@MacSetUp{userdict /md known{userdict /md get type
222
/dicttype eq{userdict begin md length 10 add md maxlength ge{/md md dup
223
length 20 add dict copy def}if end md begin /letter{}N /note{}N /legal{}
224
N /od{txpose 1 0 mtx defaultmatrix dtransform S atan/pa X newpath
225
clippath mark{transform{itransform moveto}}{transform{itransform lineto}
226
}{6 -2 roll transform 6 -2 roll transform 6 -2 roll transform{
227
itransform 6 2 roll itransform 6 2 roll itransform 6 2 roll curveto}}{{
228
closepath}}pathforall newpath counttomark array astore /gc xdf pop ct 39
229
 
230
/txpose{pxs pys scale ppr aload pop por{noflips{pop S neg S TR pop 1 -1
231
scale}if xflip yflip and{pop S neg S TR 180 rotate 1 -1 scale ppr 3 get
232
ppr 1 get neg sub neg ppr 2 get ppr 0 get neg sub neg TR}if xflip yflip
233
not and{pop S neg S TR pop 180 rotate ppr 3 get ppr 1 get neg sub neg 0
234
TR}if yflip xflip not and{ppr 1 get neg ppr 0 get neg TR}if}{noflips{TR
235
pop pop 270 rotate 1 -1 scale}if xflip yflip and{TR pop pop 90 rotate 1
236
-1 scale ppr 3 get ppr 1 get neg sub neg ppr 2 get ppr 0 get neg sub neg
237
TR}if xflip yflip not and{TR pop pop 90 rotate ppr 3 get ppr 1 get neg
238
sub neg 0 TR}if yflip xflip not and{TR pop pop 270 rotate ppr 2 get ppr
239
 
240
2 div 3 1 roll add 2 div 2 copy TR .96 dup scale neg S neg S TR}if}N /cp
241
{pop pop showpage pm restore}N end}if}if}N /normalscale{Resolution 72
242
div VResolution 72 div neg scale magscale{DVImag dup scale}if 0 setgray}
243
N /psfts{S 65781.76 div N}N /startTexFig{/psf$SavedState save N userdict
244
maxlength dict begin /magscale true def normalscale currentpoint TR
245
/psf$ury psfts /psf$urx psfts /psf$lly psfts /psf$llx psfts /psf$y psfts
246
/psf$x psfts currentpoint /psf$cy X /psf$cx X /psf$sx psf$x psf$urx
247
psf$llx sub div N /psf$sy psf$y psf$ury psf$lly sub div N psf$sx psf$sy
248
scale psf$cx psf$sx div psf$llx sub psf$cy psf$sy div psf$ury sub TR
249
/showpage{}N /erasepage{}N /copypage{}N /p 3 def @MacSetUp}N /doclip{
250
psf$llx psf$lly psf$urx psf$ury currentpoint 6 2 roll newpath 4 copy 4 2
251
roll moveto 6 -1 roll S lineto S lineto S lineto closepath clip newpath
252
moveto}N /endTexFig{end psf$SavedState restore}N /@beginspecial{SDict
253
begin /SpecialSave save N gsave normalscale currentpoint TR
254
@SpecialDefaults count /ocount X /dcount countdictstack N}N /@setspecial
255
{CLIP 1 eq{newpath 0 0 moveto hs 0 rlineto 0 vs rlineto hs neg 0 rlineto
256
closepath clip}if ho vo TR hsc vsc scale ang rotate rwiSeen{rwi urx llx
257
sub div rhiSeen{rhi ury lly sub div}{dup}ifelse scale llx neg lly neg TR
258
}{rhiSeen{rhi ury lly sub div dup scale llx neg lly neg TR}if}ifelse
259
CLIP 2 eq{newpath llx lly moveto urx lly lineto urx ury lineto llx ury
260
lineto closepath clip}if /showpage{}N /erasepage{}N /copypage{}N newpath
261
}N /@endspecial{count ocount sub{pop}repeat countdictstack dcount sub{
262
end}repeat grestore SpecialSave restore end}N /@defspecial{SDict begin}
263
N /@fedspecial{end}B /li{lineto}B /rl{rlineto}B /rc{rcurveto}B /np{
264
/SaveX currentpoint /SaveY X N 1 setlinecap newpath}N /st{stroke SaveX
265
SaveY moveto}N /fil{fill SaveX SaveY moveto}N /ellipse{/endangle X
266
/startangle X /yrad X /xrad X /savematrix matrix currentmatrix N TR xrad
267
yrad scale 0 0 1 startangle endangle arc savematrix setmatrix}N end
268
 
269
%%EndProcSet
270
%%BeginProcSet: color.pro
271
%!
272
TeXDict begin /setcmykcolor where{pop}{/setcmykcolor{dup 10 eq{pop
273
setrgbcolor}{1 sub 4 1 roll 3{3 index add neg dup 0 lt{pop 0}if 3 1 roll
274
}repeat setrgbcolor pop}ifelse}B}ifelse /TeXcolorcmyk{setcmykcolor}def
275
/TeXcolorrgb{setrgbcolor}def /TeXcolorgrey{setgray}def /TeXcolorgray{
276
setgray}def /TeXcolorhsb{sethsbcolor}def /currentcmykcolor where{pop}{
277
/currentcmykcolor{currentrgbcolor 10}B}ifelse /DC{exch dup userdict exch
278
known{pop pop}{X}ifelse}B /GreenYellow{0.15 0 0.69 0 setcmykcolor}DC
279
/Yellow{0 0 1 0 setcmykcolor}DC /Goldenrod{0 0.10 0.84 0 setcmykcolor}
280
DC /Dandelion{0 0.29 0.84 0 setcmykcolor}DC /Apricot{0 0.32 0.52 0
281
setcmykcolor}DC /Peach{0 0.50 0.70 0 setcmykcolor}DC /Melon{0 0.46 0.50
282
 
283
0.61 0.87 0 setcmykcolor}DC /BurntOrange{0 0.51 1 0 setcmykcolor}DC
284
/Bittersweet{0 0.75 1 0.24 setcmykcolor}DC /RedOrange{0 0.77 0.87 0
285
setcmykcolor}DC /Mahogany{0 0.85 0.87 0.35 setcmykcolor}DC /Maroon{0
286
0.87 0.68 0.32 setcmykcolor}DC /BrickRed{0 0.89 0.94 0.28 setcmykcolor}
287
DC /Red{0 1 1 0 setcmykcolor}DC /OrangeRed{0 1 0.50 0 setcmykcolor}DC
288
/RubineRed{0 1 0.13 0 setcmykcolor}DC /WildStrawberry{0 0.96 0.39 0
289
setcmykcolor}DC /Salmon{0 0.53 0.38 0 setcmykcolor}DC /CarnationPink{0
290
0.63 0 0 setcmykcolor}DC /Magenta{0 1 0 0 setcmykcolor}DC /VioletRed{0
291
0.81 0 0 setcmykcolor}DC /Rhodamine{0 0.82 0 0 setcmykcolor}DC /Mulberry
292
{0.34 0.90 0 0.02 setcmykcolor}DC /RedViolet{0.07 0.90 0 0.34
293
setcmykcolor}DC /Fuchsia{0.47 0.91 0 0.08 setcmykcolor}DC /Lavender{0
294
0.48 0 0 setcmykcolor}DC /Thistle{0.12 0.59 0 0 setcmykcolor}DC /Orchid{
295
0.32 0.64 0 0 setcmykcolor}DC /DarkOrchid{0.40 0.80 0.20 0 setcmykcolor}
296
DC /Purple{0.45 0.86 0 0 setcmykcolor}DC /Plum{0.50 1 0 0 setcmykcolor}
297
DC /Violet{0.79 0.88 0 0 setcmykcolor}DC /RoyalPurple{0.75 0.90 0 0
298
setcmykcolor}DC /BlueViolet{0.86 0.91 0 0.04 setcmykcolor}DC /Periwinkle
299
{0.57 0.55 0 0 setcmykcolor}DC /CadetBlue{0.62 0.57 0.23 0 setcmykcolor}
300
DC /CornflowerBlue{0.65 0.13 0 0 setcmykcolor}DC /MidnightBlue{0.98 0.13
301
 
302
/RoyalBlue{1 0.50 0 0 setcmykcolor}DC /Blue{1 1 0 0 setcmykcolor}DC
303
/Cerulean{0.94 0.11 0 0 setcmykcolor}DC /Cyan{1 0 0 0 setcmykcolor}DC
304
/ProcessBlue{0.96 0 0 0 setcmykcolor}DC /SkyBlue{0.62 0 0.12 0
305
setcmykcolor}DC /Turquoise{0.85 0 0.20 0 setcmykcolor}DC /TealBlue{0.86
306
 
307
/BlueGreen{0.85 0 0.33 0 setcmykcolor}DC /Emerald{1 0 0.50 0
308
setcmykcolor}DC /JungleGreen{0.99 0 0.52 0 setcmykcolor}DC /SeaGreen{
309
0.69 0 0.50 0 setcmykcolor}DC /Green{1 0 1 0 setcmykcolor}DC
310
/ForestGreen{0.91 0 0.88 0.12 setcmykcolor}DC /PineGreen{0.92 0 0.59
311
0.25 setcmykcolor}DC /LimeGreen{0.50 0 1 0 setcmykcolor}DC /YellowGreen{
312
0.44 0 0.74 0 setcmykcolor}DC /SpringGreen{0.26 0 0.76 0 setcmykcolor}
313
DC /OliveGreen{0.64 0 0.95 0.40 setcmykcolor}DC /RawSienna{0 0.72 1 0.45
314
setcmykcolor}DC /Sepia{0 0.83 1 0.70 setcmykcolor}DC /Brown{0 0.81 1
315
0.60 setcmykcolor}DC /Tan{0.14 0.42 0.56 0 setcmykcolor}DC /Gray{0 0 0
316
0.50 setcmykcolor}DC /Black{0 0 0 1 setcmykcolor}DC /White{0 0 0 0
317
setcmykcolor}DC end
318
 
319
%%EndProcSet
320
TeXDict begin 39158280 55380996 1000 600 600 (nano-X-docs.dvi)
321
@start /Fa 133[60 60 60 60 60 60 60 60 60 1[60 60 60
322
60 60 60 1[60 60 60 60 60 60 60 60 60 1[60 44[60 60 3[60
323
45[{TeXBase1Encoding ReEncodeFont}28 99.6264 /Courier-Oblique
324
rf /Fb 133[60 66 66 93 66 73 40 66 47 73 73 73 73 106
325
33 66 33 33 73 73 40 66 73 66 73 66 8[80 113 1[86 73
326
80 86 1[80 93 86 100 73 86 1[33 86 93 73 80 86 86 86
327
86 23[40 40 40[{TeXBase1Encoding ReEncodeFont}49 119.552
328
/Helvetica-Bold rf /Fc 133[54 54 54 54 54 54 54 54 54
329
54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 1[54
330
4[54 54 54 54 54 54 54 54 54 1[54 54 54 54 54 54 1[54
331
54 54 54 54 54 54 54 54 5[54 8[54 54 3[54 54 1[54 54
332
54 40[{TeXBase1Encoding ReEncodeFont}59 89.6638 /Courier
333
rf /Fd 136[60 60 60 60 60 60 1[60 60 60 60 60 2[60 60
334
60 60 60 60 60 1[60 97[{TeXBase1Encoding ReEncodeFont}19
335
99.6264 /Courier rf /Fe 134[80 4[48 80 56 1[88 88 88
336
128 40 2[40 3[80 1[80 1[80 13[96 4[104 9[104 68[{
337
TeXBase1Encoding ReEncodeFont}16 143.462 /Helvetica-Bold
338
rf /Ff 136[134 96 105 57 96 67 1[105 105 105 153 48 2[48
339
105 105 57 96 105 96 1[96 45[96 9[57 57 40[{
340
TeXBase1Encoding ReEncodeFont}22 172.154 /Helvetica-Bold
341
rf /Fg 138[50 28 39 39 1[50 50 50 1[28 2[28 50 2[44 2[50
342
50 8[61 5[61 14[66 9[50 50 50 50 50 50 50 50 50 50 1[25
343
33 45[{TeXBase1Encoding ReEncodeFont}28 99.6264 /Times-Italic
344
rf /Fh 104[100 28[44 50 50 72 50 50 28 39 33 50 50 50
345
50 78 28 50 28 28 50 50 33 44 50 44 50 44 1[50 5[72 72
346
94 72 72 61 55 66 72 55 72 72 89 61 72 39 33 72 72 55
347
61 72 66 66 72 1[44 3[28 28 1[50 50 50 50 50 50 50 50
348
50 28 25 33 25 1[50 33 33 33 4[41 30[55 55 2[{
349
TeXBase1Encoding ReEncodeFont}76 99.6264 /Times-Roman
350
rf /Fi 144[50 55 1[28 2[28 6[55 50 8[72 35[50 2[50 2[25
351
33 45[{TeXBase1Encoding ReEncodeFont}11 99.6264 /Times-Bold
352
rf /Fj 139[69 115 80 1[126 126 126 1[57 2[57 126 1[69
353
115 2[126 115 8[138 3[126 16[149 17[115 2[57 69 45[{
354
TeXBase1Encoding ReEncodeFont}19 206.584 /Helvetica-Bold
355
rf /Fk 138[61 2[39 2[61 61 1[28 5[33 55 1[55 1[55 8[66
356
5[72 1[66 1[72 83 3[28 7[72 19[33 45[{TeXBase1Encoding ReEncodeFont}17
357
99.6264 /Helvetica-Bold rf /Fl 138[151 2[96 2[151 151
358
1[69 5[83 138 1[138 1[138 8[165 5[179 1[165 1[179 206
359
3[69 7[179 19[83 45[{TeXBase1Encoding ReEncodeFont}17
360
247.895 /Helvetica-Bold rf end
361
%%EndProlog
362
%%BeginSetup
363
%%Feature: *Resolution 600dpi
364
TeXDict begin
365
%%PaperSize: A4
366
 
367
%%EndSetup
368
%%Page: 1 1
369
1 0 bop Black Black 173 677 a Fl(Nano-X)69 b(API)h(Ref)n(erence)e(Man)n
370
(ual)p Black Black eop
371
%%Page: 2 2
372
2 1 bop Black Black -2 579 a Fk(Nano-X)28 b(API)g(Ref)o(erence)h(Man)o
373
(ual)p Black Black eop
374
%%Page: 3 3
375
3 2 bop Black Black -2 647 a Fj(T)-17 b(ab)n(le)58 b(of)g(Contents)396
376
879 y Fi(1.)31 b(libnano-X)p Black 16 w(.)p Black Black(.)p
377
Black Black(.)p Black Black(.)p Black Black(.)p Black
378
Black(.)p Black Black(.)p Black Black(.)p Black Black
379
-1 w(.)p Black Black(.)p Black Black(.)p Black Black(.)p
380
Black Black(.)p Black Black(.)p Black Black(.)p Black
381
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
382
Black Black -1 w(.)p Black Black(.)p Black Black(.)p
383
Black Black(.)p Black Black(.)p Black Black(.)p Black
384
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
385
Black Black(.)p Black Black -1 w(.)p Black Black(.)p
386
Black Black(.)p Black Black(.)p Black Black(.)p Black
387
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
388
Black Black(.)p Black Black -1 w(.)p Black Black(.)p
389
Black Black(.)p Black Black(.)p Black Black(.)p Black
390
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
391
Black Black(.)p Black Black(.)p Black Black -1 w(.)p
392
Black Black(.)p Black Black(.)p Black Black(.)p Black
393
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
394
Black Black(.)p Black Black(.)p Black Black(.)p Black
395
Black -1 w(.)p Black Black(.)p Black Black(.)p Black
396
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
397
Black Black(.)p Black Black(.)p Black Black(.)p Black
398
Black -1 w(.)p Black Black(.)p Black Black(.)p Black
399
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
400
Black Black(.)p Black Black(.)p Black Black(.)p Black
401
Black(.)p Black Black -1 w(.)p Black Black(.)p Black
402
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
403
Black Black(.)p Black Black(.)p Black Black(.)p Black
404
Black(.)p Black Black(.)p Black Black -1 w(.)p Black
405
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
406
Black Black(.)p Black Black(.)p Black Black(.)p Black
407
Black(.)p Black Black(.)p Black Black -1 w(.)p Black
408
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
409
Black Black(.)p Black Black(.)p Black Black(.)p Black
410
Black(.)p Black Black(.)p Black Black(.)p Black Black
411
-1 w(.)p Black(4)596 1029 y Fh(general)p Black 6 w(.)p
412
Black Black -1 w(.)p Black Black(.)p Black Black(.)p
413
Black Black(.)p Black Black(.)p Black Black(.)p Black
414
Black(.)p Black Black(.)p Black Black(.)p Black Black
415
-1 w(.)p Black Black(.)p Black Black(.)p Black Black(.)p
416
Black Black(.)p Black Black(.)p Black Black(.)p Black
417
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
418
Black Black -1 w(.)p Black Black(.)p Black Black(.)p
419
Black Black(.)p Black Black(.)p Black Black(.)p Black
420
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
421
Black Black(.)p Black Black -1 w(.)p Black Black(.)p
422
Black Black(.)p Black Black(.)p Black Black(.)p Black
423
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
424
Black Black(.)p Black Black -1 w(.)p Black Black(.)p
425
Black Black(.)p Black Black(.)p Black Black(.)p Black
426
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
427
Black Black(.)p Black Black(.)p Black Black -1 w(.)p
428
Black Black(.)p Black Black(.)p Black Black(.)p Black
429
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
430
Black Black(.)p Black Black(.)p Black Black(.)p Black
431
Black -1 w(.)p Black Black(.)p Black Black(.)p Black
432
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
433
Black Black(.)p Black Black(.)p Black Black(.)p Black
434
Black -1 w(.)p Black Black(.)p Black Black(.)p Black
435
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
436
Black Black(.)p Black Black(.)p Black Black(.)p Black
437
Black(.)p Black Black -1 w(.)p Black Black(.)p Black
438
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
439
Black Black(.)p Black Black(.)p Black Black(.)p Black
440
Black(.)p Black Black(.)p Black Black -1 w(.)p Black
441
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
442
Black Black(.)p Black Black(.)p Black Black(.)p Black
443
Black(.)p Black Black(.)p Black Black -1 w(.)p Black
444
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
445
Black Black(.)p Black Black(.)p Black Black(.)p Black
446
Black(.)p Black Black(.)p Black Black(.)p Black Black
447
-1 w(.)p Black(4)596 1158 y(windo)n(w)p Black 5 w(.)p
448
Black Black -2 w(.)p Black Black(.)p Black Black(.)p
449
Black Black(.)p Black Black(.)p Black Black(.)p Black
450
Black(.)p Black Black(.)p Black Black -1 w(.)p Black
451
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
452
Black Black(.)p Black Black(.)p Black Black(.)p Black
453
Black(.)p Black Black(.)p Black Black(.)p Black Black
454
-1 w(.)p Black Black(.)p Black Black(.)p Black Black(.)p
455
Black Black(.)p Black Black(.)p Black Black(.)p Black
456
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
457
Black Black -1 w(.)p Black Black(.)p Black Black(.)p
458
Black Black(.)p Black Black(.)p Black Black(.)p Black
459
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
460
Black Black -1 w(.)p Black Black(.)p Black Black(.)p
461
Black Black(.)p Black Black(.)p Black Black(.)p Black
462
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
463
Black Black(.)p Black Black -1 w(.)p Black Black(.)p
464
Black Black(.)p Black Black(.)p Black Black(.)p Black
465
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
466
Black Black(.)p Black Black(.)p Black Black -1 w(.)p
467
Black Black(.)p Black Black(.)p Black Black(.)p Black
468
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
469
Black Black(.)p Black Black(.)p Black Black -1 w(.)p
470
Black Black(.)p Black Black(.)p Black Black(.)p Black
471
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
472
Black Black(.)p Black Black(.)p Black Black(.)p Black
473
Black -1 w(.)p Black Black(.)p Black Black(.)p Black
474
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
475
Black Black(.)p Black Black(.)p Black Black(.)p Black
476
Black(.)p Black Black -1 w(.)p Black Black(.)p Black
477
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
478
Black Black(.)p Black Black(.)p Black Black(.)p Black
479
Black(.)p Black Black -1 w(.)p Black Black(.)p Black
480
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
481
Black Black(.)p Black Black(.)p Black Black(.)p Black
482
Black(.)p Black Black(.)p Black Black -1 w(.)p Black(7)596
483
1288 y(graphics)p Black 11 w(.)p Black Black -1 w(.)p
484
Black Black(.)p Black Black(.)p Black Black(.)p Black
485
Black(.)p Black Black(.)p Black Black(.)p Black Black
486
-1 w(.)p Black Black(.)p Black Black(.)p Black Black(.)p
487
Black Black(.)p Black Black(.)p Black Black(.)p Black
488
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
489
Black Black -1 w(.)p Black Black(.)p Black Black(.)p
490
Black Black(.)p Black Black(.)p Black Black(.)p Black
491
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
492
Black Black(.)p Black Black -1 w(.)p Black Black(.)p
493
Black Black(.)p Black Black(.)p Black Black(.)p Black
494
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
495
Black Black(.)p Black Black -1 w(.)p Black Black(.)p
496
Black Black(.)p Black Black(.)p Black Black(.)p Black
497
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
498
Black Black(.)p Black Black(.)p Black Black -1 w(.)p
499
Black Black(.)p Black Black(.)p Black Black(.)p Black
500
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
501
Black Black(.)p Black Black(.)p Black Black(.)p Black
502
Black -1 w(.)p Black Black(.)p Black Black(.)p Black
503
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
504
Black Black(.)p Black Black(.)p Black Black(.)p Black
505
Black -1 w(.)p Black Black(.)p Black Black(.)p Black
506
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
507
Black Black(.)p Black Black(.)p Black Black(.)p Black
508
Black(.)p Black Black -1 w(.)p Black Black(.)p Black
509
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
510
Black Black(.)p Black Black(.)p Black Black(.)p Black
511
Black(.)p Black Black(.)p Black Black -1 w(.)p Black
512
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
513
Black Black(.)p Black Black(.)p Black Black(.)p Black
514
Black(.)p Black Black(.)p Black Black -1 w(.)p Black
515
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
516
Black Black(.)p Black Black(.)p Black Black(.)p Black
517
Black(.)p Black Black(.)p Black(17)596 1417 y(e)n(v)o(ents)p
518
Black 21 w(.)p Black Black(.)p Black Black(.)p Black
519
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
520
Black Black(.)p Black Black(.)p Black Black(.)p Black
521
Black(.)p Black Black -1 w(.)p Black Black(.)p Black
522
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
523
Black Black(.)p Black Black(.)p Black Black(.)p Black
524
Black(.)p Black Black(.)p Black Black -1 w(.)p Black
525
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
526
Black Black(.)p Black Black(.)p Black Black(.)p Black
527
Black(.)p Black Black(.)p Black Black(.)p Black Black
528
-1 w(.)p Black Black(.)p Black Black(.)p Black Black(.)p
529
Black Black(.)p Black Black(.)p Black Black(.)p Black
530
Black(.)p Black Black(.)p Black Black(.)p Black Black
531
-1 w(.)p Black Black(.)p Black Black(.)p Black Black(.)p
532
Black Black(.)p Black Black(.)p Black Black(.)p Black
533
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
534
Black Black -1 w(.)p Black Black(.)p Black Black(.)p
535
Black Black(.)p Black Black(.)p Black Black(.)p Black
536
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
537
Black Black(.)p Black Black -1 w(.)p Black Black(.)p
538
Black Black(.)p Black Black(.)p Black Black(.)p Black
539
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
540
Black Black(.)p Black Black -1 w(.)p Black Black(.)p
541
Black Black(.)p Black Black(.)p Black Black(.)p Black
542
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
543
Black Black(.)p Black Black(.)p Black Black -1 w(.)p
544
Black Black(.)p Black Black(.)p Black Black(.)p Black
545
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
546
Black Black(.)p Black Black(.)p Black Black(.)p Black
547
Black -1 w(.)p Black Black(.)p Black Black(.)p Black
548
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
549
Black Black(.)p Black Black(.)p Black Black(.)p Black
550
Black -1 w(.)p Black Black(.)p Black Black(.)p Black
551
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
552
Black Black(.)p Black Black(.)p Black Black(.)p Black(41)596
553
1547 y(fonts)p Black(.)p Black Black -1 w(.)p Black Black(.)p
554
Black Black -1 w(.)p Black Black(.)p Black Black(.)p
555
Black Black(.)p Black Black(.)p Black Black(.)p Black
556
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
557
Black Black(.)p Black Black -1 w(.)p Black Black(.)p
558
Black Black(.)p Black Black(.)p Black Black(.)p Black
559
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
560
Black Black(.)p Black Black(.)p Black Black -1 w(.)p
561
Black Black(.)p Black Black(.)p Black Black(.)p Black
562
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
563
Black Black(.)p Black Black(.)p Black Black(.)p Black
564
Black -1 w(.)p Black Black(.)p Black Black(.)p Black
565
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
566
Black Black(.)p Black Black(.)p Black Black(.)p Black
567
Black -1 w(.)p Black Black(.)p Black Black(.)p Black
568
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
569
Black Black(.)p Black Black(.)p Black Black(.)p Black
570
Black(.)p Black Black -1 w(.)p Black Black(.)p Black
571
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
572
Black Black(.)p Black Black(.)p Black Black(.)p Black
573
Black(.)p Black Black(.)p Black Black -1 w(.)p Black
574
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
575
Black Black(.)p Black Black(.)p Black Black(.)p Black
576
Black(.)p Black Black(.)p Black Black -1 w(.)p Black
577
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
578
Black Black(.)p Black Black(.)p Black Black(.)p Black
579
Black(.)p Black Black(.)p Black Black(.)p Black Black
580
-1 w(.)p Black Black(.)p Black Black(.)p Black Black(.)p
581
Black Black(.)p Black Black(.)p Black Black(.)p Black
582
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
583
Black Black -1 w(.)p Black Black(.)p Black Black(.)p
584
Black Black(.)p Black Black(.)p Black Black(.)p Black
585
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
586
Black Black -1 w(.)p Black Black(.)p Black Black(.)p
587
Black Black(.)p Black Black(.)p Black Black(.)p Black
588
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
589
Black(44)596 1676 y(pointer)p Black 15 w(.)p Black Black(.)p
590
Black Black(.)p Black Black(.)p Black Black(.)p Black
591
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
592
Black Black(.)p Black Black -1 w(.)p Black Black(.)p
593
Black Black(.)p Black Black(.)p Black Black(.)p Black
594
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
595
Black Black(.)p Black Black(.)p Black Black -1 w(.)p
596
Black Black(.)p Black Black(.)p Black Black(.)p Black
597
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
598
Black Black(.)p Black Black(.)p Black Black(.)p Black
599
Black -1 w(.)p Black Black(.)p Black Black(.)p Black
600
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
601
Black Black(.)p Black Black(.)p Black Black(.)p Black
602
Black -1 w(.)p Black Black(.)p Black Black(.)p Black
603
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
604
Black Black(.)p Black Black(.)p Black Black(.)p Black
605
Black(.)p Black Black -1 w(.)p Black Black(.)p Black
606
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
607
Black Black(.)p Black Black(.)p Black Black(.)p Black
608
Black(.)p Black Black(.)p Black Black -1 w(.)p Black
609
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
610
Black Black(.)p Black Black(.)p Black Black(.)p Black
611
Black(.)p Black Black(.)p Black Black -1 w(.)p Black
612
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
613
Black Black(.)p Black Black(.)p Black Black(.)p Black
614
Black(.)p Black Black(.)p Black Black(.)p Black Black
615
-1 w(.)p Black Black(.)p Black Black(.)p Black Black(.)p
616
Black Black(.)p Black Black(.)p Black Black(.)p Black
617
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
618
Black Black -1 w(.)p Black Black(.)p Black Black(.)p
619
Black Black(.)p Black Black(.)p Black Black(.)p Black
620
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
621
Black Black -1 w(.)p Black Black(.)p Black Black(.)p
622
Black Black(.)p Black Black(.)p Black Black(.)p Black
623
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
624
Black(47)596 1806 y(colours)p Black 6 w(.)p Black Black
625
-2 w(.)p Black Black(.)p Black Black(.)p Black Black(.)p
626
Black Black(.)p Black Black(.)p Black Black(.)p Black
627
Black(.)p Black Black(.)p Black Black -1 w(.)p Black
628
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
629
Black Black(.)p Black Black(.)p Black Black(.)p Black
630
Black(.)p Black Black(.)p Black Black(.)p Black Black
631
-1 w(.)p Black Black(.)p Black Black(.)p Black Black(.)p
632
Black Black(.)p Black Black(.)p Black Black(.)p Black
633
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
634
Black Black -1 w(.)p Black Black(.)p Black Black(.)p
635
Black Black(.)p Black Black(.)p Black Black(.)p Black
636
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
637
Black Black -1 w(.)p Black Black(.)p Black Black(.)p
638
Black Black(.)p Black Black(.)p Black Black(.)p Black
639
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
640
Black Black(.)p Black Black -1 w(.)p Black Black(.)p
641
Black Black(.)p Black Black(.)p Black Black(.)p Black
642
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
643
Black Black(.)p Black Black(.)p Black Black -1 w(.)p
644
Black Black(.)p Black Black(.)p Black Black(.)p Black
645
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
646
Black Black(.)p Black Black(.)p Black Black -1 w(.)p
647
Black Black(.)p Black Black(.)p Black Black(.)p Black
648
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
649
Black Black(.)p Black Black(.)p Black Black(.)p Black
650
Black -1 w(.)p Black Black(.)p Black Black(.)p Black
651
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
652
Black Black(.)p Black Black(.)p Black Black(.)p Black
653
Black(.)p Black Black -1 w(.)p Black Black(.)p Black
654
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
655
Black Black(.)p Black Black(.)p Black Black(.)p Black
656
Black(.)p Black Black -1 w(.)p Black Black(.)p Black
657
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
658
Black Black(.)p Black Black(.)p Black Black(.)p Black
659
Black(.)p Black(50)596 1935 y(re)o(gions)p Black 7 w(.)p
660
Black Black -2 w(.)p Black Black(.)p Black Black(.)p
661
Black Black(.)p Black Black(.)p Black Black(.)p Black
662
Black(.)p Black Black(.)p Black Black(.)p Black Black
663
-1 w(.)p Black Black(.)p Black Black(.)p Black Black(.)p
664
Black Black(.)p Black Black(.)p Black Black(.)p Black
665
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
666
Black Black -1 w(.)p Black Black(.)p Black Black(.)p
667
Black Black(.)p Black Black(.)p Black Black(.)p Black
668
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
669
Black Black(.)p Black Black -1 w(.)p Black Black(.)p
670
Black Black(.)p Black Black(.)p Black Black(.)p Black
671
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
672
Black Black(.)p Black Black -1 w(.)p Black Black(.)p
673
Black Black(.)p Black Black(.)p Black Black(.)p Black
674
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
675
Black Black(.)p Black Black(.)p Black Black -1 w(.)p
676
Black Black(.)p Black Black(.)p Black Black(.)p Black
677
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
678
Black Black(.)p Black Black(.)p Black Black(.)p Black
679
Black -1 w(.)p Black Black(.)p Black Black(.)p Black
680
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
681
Black Black(.)p Black Black(.)p Black Black(.)p Black
682
Black -1 w(.)p Black Black(.)p Black Black(.)p Black
683
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
684
Black Black(.)p Black Black(.)p Black Black(.)p Black
685
Black(.)p Black Black -1 w(.)p Black Black(.)p Black
686
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
687
Black Black(.)p Black Black(.)p Black Black(.)p Black
688
Black(.)p Black Black(.)p Black Black -1 w(.)p Black
689
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
690
Black Black(.)p Black Black(.)p Black Black(.)p Black
691
Black(.)p Black Black(.)p Black Black -1 w(.)p Black
692
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
693
Black Black(.)p Black Black(.)p Black Black(.)p Black
694
Black(.)p Black Black(.)p Black(52)596 2065 y(selections)p
695
Black 6 w(.)p Black Black -2 w(.)p Black Black(.)p Black
696
Black(.)p Black Black(.)p Black Black(.)p Black Black
697
-1 w(.)p Black Black(.)p Black Black(.)p Black Black(.)p
698
Black Black(.)p Black Black(.)p Black Black(.)p Black
699
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
700
Black Black -1 w(.)p Black Black(.)p Black Black(.)p
701
Black Black(.)p Black Black(.)p Black Black(.)p Black
702
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
703
Black Black(.)p Black Black -1 w(.)p Black Black(.)p
704
Black Black(.)p Black Black(.)p Black Black(.)p Black
705
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
706
Black Black(.)p Black Black -1 w(.)p Black Black(.)p
707
Black Black(.)p Black Black(.)p Black Black(.)p Black
708
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
709
Black Black(.)p Black Black(.)p Black Black -1 w(.)p
710
Black Black(.)p Black Black(.)p Black Black(.)p Black
711
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
712
Black Black(.)p Black Black(.)p Black Black(.)p Black
713
Black -1 w(.)p Black Black(.)p Black Black(.)p Black
714
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
715
Black Black(.)p Black Black(.)p Black Black(.)p Black
716
Black -1 w(.)p Black Black(.)p Black Black(.)p Black
717
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
718
Black Black(.)p Black Black(.)p Black Black(.)p Black
719
Black(.)p Black Black -1 w(.)p Black Black(.)p Black
720
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
721
Black Black(.)p Black Black(.)p Black Black(.)p Black
722
Black(.)p Black Black(.)p Black Black -1 w(.)p Black
723
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
724
Black Black(.)p Black Black(.)p Black Black(.)p Black
725
Black(.)p Black Black(.)p Black Black -1 w(.)p Black
726
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
727
Black Black(.)p Black Black(.)p Black Black(.)p Black
728
Black(.)p Black Black(.)p Black(61)596 2194 y(misc)p
729
Black 11 w(.)p Black Black -1 w(.)p Black Black(.)p Black
730
Black -1 w(.)p Black Black(.)p Black Black(.)p Black
731
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
732
Black Black(.)p Black Black(.)p Black Black(.)p Black
733
Black(.)p Black Black -1 w(.)p Black Black(.)p Black
734
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
735
Black Black(.)p Black Black(.)p Black Black(.)p Black
736
Black(.)p Black Black(.)p Black Black -1 w(.)p Black
737
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
738
Black Black(.)p Black Black(.)p Black Black(.)p Black
739
Black(.)p Black Black(.)p Black Black(.)p Black Black
740
-1 w(.)p Black Black(.)p Black Black(.)p Black Black(.)p
741
Black Black(.)p Black Black(.)p Black Black(.)p Black
742
Black(.)p Black Black(.)p Black Black(.)p Black Black
743
-1 w(.)p Black Black(.)p Black Black(.)p Black Black(.)p
744
Black Black(.)p Black Black(.)p Black Black(.)p Black
745
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
746
Black Black -1 w(.)p Black Black(.)p Black Black(.)p
747
Black Black(.)p Black Black(.)p Black Black(.)p Black
748
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
749
Black Black(.)p Black Black -1 w(.)p Black Black(.)p
750
Black Black(.)p Black Black(.)p Black Black(.)p Black
751
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
752
Black Black(.)p Black Black -1 w(.)p Black Black(.)p
753
Black Black(.)p Black Black(.)p Black Black(.)p Black
754
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
755
Black Black(.)p Black Black(.)p Black Black -1 w(.)p
756
Black Black(.)p Black Black(.)p Black Black(.)p Black
757
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
758
Black Black(.)p Black Black(.)p Black Black(.)p Black
759
Black -1 w(.)p Black Black(.)p Black Black(.)p Black
760
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
761
Black Black(.)p Black Black(.)p Black Black(.)p Black
762
Black -1 w(.)p Black Black(.)p Black Black(.)p Black
763
Black(.)p Black Black(.)p Black Black(.)p Black Black(.)p
764
Black Black(.)p Black Black(.)p Black Black(.)p Black(65)p
765
Black 3833 5278 a Fg(3)p Black eop
766
%%Page: 4 4
767
4 3 bop Black Black -2 647 a Fj(Chapter)58 b(1.)71 b(libnano-X)-2
768
1167 y Ff(g)r(eneral)47 b(\(3\))396 1647 y Fe(Name)396
769
1848 y Fd(general)24 b Fh(\227)396 2242 y Fe(Synopsis)396
770
2691 y Fc(void)430 b(GrFlush)1343 b(\(void\);)396 2808
771
y(int)484 b(GrOpen)1397 b(\(void\);)396 2925 y(void)430
772
b(GrClose)1343 b(\(void\);)396 3041 y(void)430 b(GrMain-)396
773
3158 y(Loop)1183 b(\(GR_FNCALLBACKEVENT)50 b(fncb\);)396
774
3274 y(void)430 b(GrGetScreen-)396 3391 y(Info)914 b(\(GR_SCREEN_INFO)
775
51 b(*sip\);)396 3507 y(GR_FNCALLBACKEVENT)f(GrSetErrorHan-)396
776
3624 y(dler)430 b(\(GR_FNCALLBACKEVENT)50 b(fncb\);)396
777
3741 y(void)430 b(GrDefaultErrorHandler)587 b(\(GR_EVENT)52
778
b(*ep\);)396 4234 y Fe(Description)p Black 3833 5278
779
a Fg(4)p Black eop
780
%%Page: 5 5
781
5 4 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
782
Black 396 601 a Fe(Details)396 945 y Fb(GrFlush)k(\(\))396
783
1161 y Fc(void)430 b(GrFlush)1343 b(\(void\);)396 1391
784
y Fh(Flush)25 b(the)f(message)h(b)n(uf)n(fer)g(of)f(an)o(y)h(messages)f
785
(it)g(may)h(contain.)396 1845 y Fb(GrOpen)34 b(\(\))396
786
2061 y Fc(int)484 b(GrOpen)1397 b(\(void\);)396 2290
787
y Fh(Open)25 b(a)g(connection)f(to)h(the)f(graphics)h(serv)o(er)-5
788
b(.)706 2602 y Fg(Returns)24 b Fh(:)50 b(the)24 b(fd)h(of)g(the)g
789
(connection)f(to)g(the)h(serv)o(er)g(or)f(-1)h(on)g(f)o(ailure)396
790
3098 y Fb(GrClose)35 b(\(\))396 3314 y Fc(void)430 b(GrClose)1343
791
b(\(void\);)396 3544 y Fh(Close)25 b(the)g(graphics)f(de)n(vice,)h
792
(\003ushing)f(an)o(y)g(w)o(aiting)g(messages.)396 3998
793
y Fb(GrMainLoop)34 b(\(\))396 4214 y Fc(void)430 b(GrMain-)396
794
4331 y(Loop)1183 b(\(GR_FNCALLBACKEVENT)50 b(fncb\);)396
795
4560 y Fh(A)25 b(con)l(v)o(enience)f(function)g(which)h(calls)f(the)h
796
(speci\002ed)g(callback)g(function)f(whene)n(v)o(er)g(an)h(e)n(v)o(ent)
797
396 4689 y(arri)n(v)o(es)f(or)h(there)g(is)g(data)f(to)h(be)g(read)g
798
(on)g(a)g(\002le)g(descriptor)f(pre)n(viously)f(speci\002ed)j(by)396
799
4819 y(GrRe)o(gisterInput\(\).)k(Currently)25 b(ne)n(v)o(er)f(returns.)
800
p Black 3833 5278 a Fg(5)p Black eop
801
%%Page: 6 6
802
6 5 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
803
Black 775 587 a Fa(fncb)26 b Fh(:)396 1083 y Fb(GrGetScreenInf)n(o)34
804
b(\(\))396 1299 y Fc(void)430 b(GrGetScreen-)396 1416
805
y(Info)914 b(\(GR_SCREEN_INFO)51 b(*sip\);)396 1645 y
806
Fh(Fills)24 b(in)h(the)f(speci\002ed)i(GR_SCREEN_INFO)g(structure.)836
807
1956 y Fa(sip)f Fh(:)50 b(pointer)24 b(to)g(a)h(GR_SCREEN_INFO)i
808
(structure)396 2453 y Fb(GrSetErr)n(orHandler)32 b(\(\))396
809
2669 y Fc(GR_FNCALLBACKEVENT)50 b(GrSetErrorHan-)396
810
2786 y(dler)430 b(\(GR_FNCALLBACKEVENT)50 b(fncb\);)396
811
3015 y Fh(Sets)25 b(an)g(error)h(handling)d(routine)h(that)h(will)f(be)
812
h(called)f(on)h(an)o(y)f(errors)h(from)g(the)g(serv)o(er)396
813
3144 y(\(assuming)f(the)g(client)h(has)f(ask)o(ed)h(to)g(recei)n(v)o(e)
814
f(them\).)30 b(If)c(zero)f(is)f(used)h(as)g(the)f(ar)n(gument,)h
815
(errors)396 3274 y(will)f(be)h(returned)g(as)g(re)o(gular)f(e)n(v)o
816
(ents)g(instead.)775 3585 y Fa(fncb)i Fh(:)50 b(the)24
817
b(function)g(to)h(call)f(to)h(handle)f(error)i(e)n(v)o(ents)706
818
3740 y Fg(Returns)e Fh(:)50 b(the)24 b(address)h(of)g(the)f(pre)n
819
(vious)g(error)h(handler)396 4236 y Fb(GrDefaultErr)n(orHandler)33
820
b(\(\))396 4452 y Fc(void)430 b(GrDefaultErrorHandler)587
821
b(\(GR_EVENT)52 b(*ep\);)396 4681 y Fh(The)25 b(def)o(ault)g(error)g
822
(handler)g(which)f(is)h(called)f(when)h(the)g(serv)o(er)g(reports)f(an)
823
h(error)h(e)n(v)o(ent)d(and)i(the)396 4811 y(client)g(hasn')n(t)f(set)h
824
(up)f(a)h(handler)g(of)g(it')-5 b(s)24 b(o)n(wn.)p Black
825
-2 5278 a Fg(6)p Black eop
826
%%Page: 7 7
827
7 6 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
828
Black 396 579 a Fh(Generates)25 b(a)h(human)e(readable)h(error)h
829
(message)e(on)g(stderr)h(describing)f(what)h(error)g(occurred)396
830
708 y(and)g(what)g(function)f(it)g(occured)h(in,)f(then)h(e)o(xits.)896
831
1013 y Fa(ep)g Fh(:)50 b(the)24 b(error)i(e)n(v)o(ent)d(structure)-2
832
1814 y Ff(windo)m(w)48 b(\(3\))396 2293 y Fe(Name)396
833
2495 y Fd(window)24 b Fh(\227)396 2888 y Fe(Synopsis)396
834
3338 y Fc(GR_WINDOW_ID)52 b(GrNewWin-)396 3454 y(dow)1076
835
b(\(GR_WINDOW_ID)51 b(parent,)2817 3571 y(GR_COORD)h(x,)2817
836
3687 y(GR_COORD)g(y,)2817 3804 y(GR_SIZE)h(width,)2817
837
3920 y(GR_SIZE)g(height,)2817 4037 y(GR_SIZE)g(bordersize,)2817
838
4154 y(GR_COLOR)f(background,)2817 4270 y(GR_COLOR)g(bordercolor\);)396
839
4387 y(GR_WINDOW_ID)g(GrNewPixmap)1073 b(\(GR_SIZE)53
840
b(width,)2817 4503 y(GR_SIZE)g(height,)2817 4620 y(void)g(*addr\);)396
841
4736 y(GR_WINDOW_ID)f(GrNewInputWin-)396 4853 y(dow)807
842
b(\(GR_WINDOW_ID)51 b(parent,)p Black 3830 5278 a Fg(7)p
843
Black eop
844
%%Page: 8 8
845
8 7 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
846
Black 2817 579 a Fc(GR_COORD)52 b(x,)2817 695 y(GR_COORD)g(y,)2817
847
812 y(GR_SIZE)h(width,)2817 929 y(GR_SIZE)g(height\);)396
848
1045 y(void)430 b(GrDestroyWindow)911 b(\(GR_WINDOW_ID)52
849
b(wid\);)396 1162 y(void)430 b(GrMapWindow)1127 b(\(GR_WINDOW_ID)52
850
b(wid\);)396 1278 y(void)430 b(GrUnmapWindow)1019 b(\(GR_WINDOW_ID)52
851
b(wid\);)396 1395 y(void)430 b(GrRaiseWindow)1019 b(\(GR_WINDOW_ID)52
852
b(wid\);)396 1511 y(void)430 b(GrLowerWindow)1019 b(\(GR_WINDOW_ID)52
853
b(wid\);)396 1628 y(void)430 b(GrMoveWindow)1073 b(\(GR_WINDOW_ID)52
854
b(wid,)2817 1745 y(GR_COORD)g(x,)2817 1861 y(GR_COORD)g(y\);)396
855
1978 y(void)430 b(GrResizeWindow)965 b(\(GR_WINDOW_ID)52
856
b(wid,)2817 2094 y(GR_SIZE)h(width,)2817 2211 y(GR_SIZE)g(height\);)396
857
2327 y(void)430 b(GrReparentWindow)857 b(\(GR_WINDOW_ID)52
858
b(wid,)2817 2444 y(GR_WINDOW_ID)g(pwid,)2817 2560 y(GR_COORD)g(x,)2817
859
2677 y(GR_COORD)g(y\);)396 2794 y(void)430 b(GrGetWindowInfo)911
860
b(\(GR_WINDOW_ID)52 b(wid,)2817 2910 y(GR_WINDOW_INFO)f(*infoptr\);)396
861
3027 y(void)430 b(GrSetWMProperties)803 b(\(GR_WINDOW_ID)52
862
b(wid,)2817 3143 y(GR_WM_PROPERTIES)f(*props\);)396 3260
863
y(void)430 b(GrGetWMProperties)803 b(\(GR_WINDOW_ID)52
864
b(wid,)2817 3376 y(GR_WM_PROPERTIES)f(*props\);)396 3493
865
y(void)430 b(GrSetFocus)1181 b(\(GR_WINDOW_ID)52 b(wid\);)396
866
3610 y(GR_WINDOW_ID)g(GrGetFocus)1127 b(\(void\);)396
867
3726 y(void)430 b(GrSetBorderColor)857 b(\(GR_WINDOW_ID)52
868
b(wid,)2817 3843 y(GR_COLOR)g(color\);)396 3959 y(void)430
869
b(GrSetBackgroundPixmap)587 b(\(GR_WINDOW_ID)52 b(wid,)2817
870
4076 y(GR_WINDOW_ID)g(pixmap,)2817 4192 y(int)h(flags\);)396
871
4309 y(void)430 b(GrClearWindow)1019 b(\(GR_WINDOW_ID)52
872
b(wid,)2817 4425 y(GR_BOOL)h(exposeflag\);)396 4542 y(void)430
873
b(GrCloseWindow)1019 b(\(GR_WINDOW_ID)52 b(wid\);)396
874
4659 y(void)430 b(GrKillWindow)1073 b(\(GR_WINDOW_ID)52
875
b(wid\);)p Black -2 5278 a Fg(8)p Black eop
876
%%Page: 9 9
877
9 8 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
878
Black 396 601 a Fe(Description)396 1116 y(Details)396
879
1461 y Fb(GrNe)n(wWindo)n(w)k(\(\))396 1677 y Fc(GR_WINDOW_ID)52
880
b(GrNewWindow)1073 b(\(GR_WINDOW_ID)52 b(par-)396 1793
881
y(ent,)2817 1910 y(GR_COORD)g(x,)2817 2026 y(GR_COORD)g(y,)2817
882
2143 y(GR_SIZE)h(width,)2817 2260 y(GR_SIZE)g(height,)2817
883
2376 y(GR_SIZE)g(bordersize,)2817 2493 y(GR_COLOR)f(background,)2817
884
2609 y(GR_COLOR)g(border-)396 2726 y(color\);)396 2955
885
y Fh(Create)26 b(a)f(ne)n(w)g(windo)n(w)e(with)h(the)h(speci\002ed)g
886
(parent)g(and)g(windo)n(w)e(attrib)n(utes.)657 3266 y
887
Fa(parent)h Fh(:)50 b(the)24 b(ID)h(of)g(the)g(parent)g(windo)n(w)951
888
3421 y Fa(x)30 b Fh(:)50 b(the)24 b(X)h(coordinate)f(of)h(the)g(ne)n(w)
889
f(windo)n(w)g(relati)n(v)o(e)g(to)g(the)h(parent)f(windo)n(w)948
890
3575 y Fa(y)33 b Fh(:)50 b(the)24 b(Y)h(coordinate)f(of)h(the)g(ne)n(w)
891
f(windo)n(w)g(relati)n(v)o(e)g(to)g(the)h(parent)f(windo)n(w)717
892
3730 y Fa(width)g Fh(:)50 b(the)24 b(width)g(of)h(the)g(ne)n(w)f(windo)
893
n(w)657 3884 y Fa(height)g Fh(:)50 b(the)24 b(height)g(of)h(the)g(ne)n
894
(w)f(windo)n(w)443 4039 y Fa(bordersize)f Fh(:)i(the)f(width)g(of)h
895
(the)g(windo)n(w)e(border)439 4298 y Fa(background)k
896
Fh(:)e(the)f(colour)h(of)g(the)f(windo)n(w)g(background)675
897
4557 y Fa(border-)396 4686 y(color)k Fh(:)1119 4557 y(the)c(colour)h
898
(of)g(the)f(windo)n(w)g(border)p Black 3833 5278 a Fg(9)p
899
Black eop
900
%%Page: 10 10
901
10 9 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
902
Black 706 587 a(Returns)24 b Fh(:)50 b(the)24 b(ID)h(of)g(the)g(ne)n
903
(wly)f(created)h(windo)n(w)396 1083 y Fb(GrNe)n(wPixmap)35
904
b(\(\))396 1299 y Fc(GR_WINDOW_ID)52 b(GrNewPixmap)1073
905
b(\(GR_SIZE)53 b(width,)2817 1416 y(GR_SIZE)g(height,)2817
906
1532 y(void)g(*addr\);)396 1761 y Fh(Create)26 b(a)f(ne)n(w)g(serv)o
907
(er)g(side)f(pixmap)g(\(an)h(of)n(fscreen)g(dra)o(wing)f(area)i(which)e
908
(can)h(be)g(copied)g(into)e(a)396 1891 y(windo)n(w)h(using)f(a)j(GrCop)
909
o(yArea)f(call\))g(of)g(the)g(speci\002ed)g(width)e(and)i(height.)717
910
2202 y Fa(width)f Fh(:)50 b(the)24 b(width)g(of)h(the)g(pixmap)657
911
2357 y Fa(height)f Fh(:)50 b(the)24 b(height)g(of)h(the)g(pixmap)773
912
2511 y Fa(addr)j Fh(:)50 b(currently)24 b(unused)g(in)h(client/serv)o
913
(er)f(mode)706 2666 y Fg(Returns)g Fh(:)50 b(the)24 b(ID)h(of)g(the)g
914
(ne)n(wly)f(created)h(pixmap)396 3162 y Fb(GrNe)n(wInputWindo)n(w)35
915
b(\(\))396 3378 y Fc(GR_WINDOW_ID)52 b(GrNewInputWindow)803
916
b(\(GR_WINDOW_ID)52 b(par-)396 3495 y(ent,)2817 3611
917
y(GR_COORD)g(x,)2817 3728 y(GR_COORD)g(y,)2817 3845 y(GR_SIZE)h(width,)
918
2817 3961 y(GR_SIZE)g(height\);)396 4190 y Fh(Create)26
919
b(a)f(ne)n(w)g(input-only)e(windo)n(w)g(with)h(the)h(speci\002ed)g
920
(dimensions)e(which)h(is)g(a)i(child)e(of)h(the)396 4320
921
y(speci\002ed)g(parent)g(windo)n(w)-6 b(.)657 4631 y
922
Fa(parent)24 b Fh(:)50 b(the)24 b(ID)h(of)g(the)g(windo)n(w)e(to)i(use)
923
f(as)h(the)g(parent)g(of)g(the)f(ne)n(w)h(windo)n(w)951
924
4786 y Fa(x)30 b Fh(:)50 b(the)24 b(X)h(coordinate)f(of)h(the)g(ne)n(w)
925
f(windo)n(w)g(relati)n(v)o(e)g(to)g(the)h(parent)f(windo)n(w)p
926
Black -2 5278 a Fg(10)p Black eop
927
%%Page: 11 11
928
11 10 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
929
Black 948 587 a Fa(y)j Fh(:)50 b(the)24 b(Y)h(coordinate)f(of)h(the)g
930
(ne)n(w)f(windo)n(w)g(relati)n(v)o(e)g(to)g(the)h(parent)f(windo)n(w)
931
717 741 y Fa(width)g Fh(:)50 b(the)24 b(width)g(of)h(the)g(ne)n(w)f
932
(windo)n(w)657 895 y Fa(height)g Fh(:)50 b(the)24 b(height)g(of)h(the)g
933
(ne)n(w)f(windo)n(w)706 1050 y Fg(Returns)g Fh(:)50 b(the)24
934
b(ID)h(of)g(the)g(ne)n(wly)f(created)h(windo)n(w)396
935
1546 y Fb(GrDestr)n(o)n(yWindo)n(w)34 b(\(\))396 1762
936
y Fc(void)430 b(GrDestroyWindow)911 b(\(GR_WINDOW_ID)52
937
b(wid\);)396 1992 y Fh(Recursi)n(v)o(ely)24 b(unmaps)g(and)h(frees)g
938
(the)g(data)g(structures)f(associated)g(with)g(the)h(speci\002ed)g
939
(windo)n(w)396 2121 y(and)g(all)g(of)f(its)h(children.)833
940
2412 y Fa(wid)j Fh(:)50 b(the)24 b(ID)h(of)g(the)g(windo)n(w)e(to)i
941
(destro)o(y)396 2929 y Fb(GrMapWindo)n(w)34 b(\(\))396
942
3145 y Fc(void)430 b(GrMapWindow)1127 b(\(GR_WINDOW_ID)52
943
b(wid\);)396 3374 y Fh(Recursi)n(v)o(ely)24 b(maps)g(\(mak)o(es)h
944
(visible\))f(the)g(speci\002ed)h(windo)n(w)f(and)h(all)f(of)h(the)g
945
(child)f(windo)n(ws)396 3504 y(which)h(ha)n(v)o(e)f(a)h(suf)n
946
(\002cient)g(map)f(count.)30 b(The)25 b(border)g(and)g(background)f(of)
947
h(the)f(windo)n(w)g(are)396 3633 y(painted,)g(and)h(an)g(e)o(xposure)f
948
(e)n(v)o(ent)g(is)g(generated)h(for)g(the)g(windo)n(w)f(and)g(e)n(v)o
949
(ery)g(child)h(which)396 3763 y(becomes)g(visible.)833
950
4054 y Fa(wid)j Fh(:)50 b(the)24 b(ID)h(of)g(the)g(windo)n(w)e(to)i
951
(map)396 4571 y Fb(GrUnmapWindo)n(w)35 b(\(\))396 4787
952
y Fc(void)430 b(GrUnmapWindow)1019 b(\(GR_WINDOW_ID)52
953
b(wid\);)p Black 3784 5278 a Fg(11)p Black eop
954
%%Page: 12 12
955
12 11 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
956
Black 396 579 a Fh(Recursi)n(v)o(ely)24 b(unmaps)g(\(mak)o(es)h(in)l
957
(visible\))e(the)i(speci\002ed)g(windo)n(w)e(and)i(all)f(of)h(the)g
958
(child)396 708 y(windo)n(ws.)833 1000 y Fa(wid)j Fh(:)50
959
b(the)24 b(ID)h(of)g(the)g(windo)n(w)e(to)i(unmap)396
960
1516 y Fb(GrRaiseWindo)n(w)35 b(\(\))396 1733 y Fc(void)430
961
b(GrRaiseWindow)1019 b(\(GR_WINDOW_ID)52 b(wid\);)396
962
1962 y Fh(Places)26 b(the)e(speci\002ed)h(windo)n(w)f(at)h(the)f(top)h
963
(of)f(its)h(parents)f(dra)o(wing)g(stack,)h(abo)o(v)o(e)e(all)i(of)g
964
(its)396 2091 y(sibling)e(windo)n(ws.)833 2403 y Fa(wid)28
965
b Fh(:)50 b(the)24 b(ID)h(of)g(the)g(windo)n(w)e(to)i(raise)396
966
2899 y Fb(GrLo)n(werWindo)n(w)34 b(\(\))396 3115 y Fc(void)430
967
b(GrLowerWindow)1019 b(\(GR_WINDOW_ID)52 b(wid\);)396
968
3345 y Fh(Places)26 b(the)e(speci\002ed)h(windo)n(w)f(at)h(the)f
969
(bottom)g(of)g(its)h(parents)f(dra)o(wing)g(stack,)h(belo)n(w)e(all)i
970
(of)g(its)396 3474 y(sibling)e(windo)n(ws.)833 3786 y
971
Fa(wid)28 b Fh(:)50 b(the)24 b(ID)h(of)g(the)g(windo)n(w)e(to)i(lo)n
972
(wer)396 4282 y Fb(GrMo)n(veWindo)n(w)34 b(\(\))396 4498
973
y Fc(void)430 b(GrMoveWindow)1073 b(\(GR_WINDOW_ID)52
974
b(wid,)2817 4615 y(GR_COORD)g(x,)2817 4731 y(GR_COORD)g(y\);)p
975
Black -2 5278 a Fg(12)p Black eop
976
%%Page: 13 13
977
13 12 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
978
Black 396 579 a Fh(Mo)o(v)o(es)23 b(the)i(speci\002ed)g(windo)n(w)e(to)
979
i(the)g(speci\002ed)g(position)e(relati)n(v)o(e)g(to)i(its)f(parent)h
980
(windo)n(w)-6 b(.)833 890 y Fa(wid)28 b Fh(:)50 b(the)24
981
b(ID)h(of)g(the)g(windo)n(w)e(to)i(mo)o(v)o(e)951 1045
982
y Fa(x)30 b Fh(:)50 b(the)24 b(X)h(coordinate)f(to)h(mo)o(v)o(e)e(the)i
983
(windo)n(w)e(to)i(relati)n(v)o(e)e(to)i(its)f(parent.)948
984
1199 y Fa(y)33 b Fh(:)50 b(the)24 b(Y)h(coordinate)f(to)h(mo)o(v)o(e)e
985
(the)i(windo)n(w)e(to)i(relati)n(v)o(e)e(to)i(its)f(parent.)396
986
1696 y Fb(GrResiz)q(eWindo)n(w)35 b(\(\))396 1912 y Fc(void)430
987
b(GrResizeWindow)965 b(\(GR_WINDOW_ID)52 b(wid,)2817
988
2028 y(GR_SIZE)h(width,)2817 2145 y(GR_SIZE)g(height\);)396
989
2374 y Fh(Resizes)26 b(the)e(speci\002ed)h(windo)n(w)f(to)g(be)h(the)g
990
(speci\002ed)g(width)f(and)g(height.)833 2686 y Fa(wid)k
991
Fh(:)50 b(the)24 b(ID)h(of)g(the)g(windo)n(w)e(to)i(resize)717
992
2840 y Fa(width)f Fh(:)50 b(the)24 b(width)g(to)g(resize)i(the)e(windo)
993
n(w)g(to)657 2995 y Fa(height)g Fh(:)50 b(the)24 b(height)g(to)h
994
(resize)g(the)f(windo)n(w)g(to)396 3491 y Fb(GrReparentWindo)n(w)35
995
b(\(\))396 3707 y Fc(void)430 b(GrReparentWindow)857
996
b(\(GR_WINDOW_ID)52 b(wid,)2817 3824 y(GR_WINDOW_ID)g(pwid,)2817
997
3940 y(GR_COORD)g(x,)2817 4057 y(GR_COORD)g(y\);)396
998
4286 y Fh(Changes)24 b(the)g(parent)g(windo)n(w)f(of)h(the)g
999
(speci\002ed)g(windo)n(w)e(to)i(the)g(speci\002ed)g(parent)g(windo)n(w)
1000
e(and)396 4416 y(places)j(it)f(at)h(the)g(speci\002ed)g(coordinates)f
1001
(relati)n(v)o(e)g(to)g(the)h(ne)n(w)f(parent.)833 4727
1002
y Fa(wid)k Fh(:)50 b(the)24 b(ID)h(of)g(the)g(windo)n(w)e(to)i
1003
(reparent)p Black 3784 5278 a Fg(13)p Black eop
1004
%%Page: 14 14
1005
14 13 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
1006
Black 773 587 a Fa(pwid)d Fh(:)50 b(the)24 b(ID)h(of)g(the)g(ne)n(w)f
1007
(parent)h(windo)n(w)951 741 y Fa(x)30 b Fh(:)50 b(the)24
1008
b(X)h(coordinate)f(to)h(place)g(the)g(windo)n(w)e(at)i(relati)n(v)o(e)f
1009
(to)g(the)h(ne)n(w)f(parent)948 895 y Fa(y)33 b Fh(:)50
1010
b(the)24 b(Y)h(coordinate)f(to)h(place)g(the)g(windo)n(w)e(at)i(relati)
1011
n(v)o(e)f(to)g(the)h(ne)n(w)f(parent)396 1392 y Fb(GrGetWindo)n(wInf)n
1012
(o)33 b(\(\))396 1608 y Fc(void)430 b(GrGetWindowInfo)911
1013
b(\(GR_WINDOW_ID)52 b(wid,)2817 1725 y(GR_WINDOW_INFO)f(*in-)396
1014
1841 y(foptr\);)396 2070 y Fh(Fills)24 b(in)h(a)g(GR_WINDO)m(W_INFO)g
1015
(structure)f(with)g(information)g(re)o(garding)f(the)i(windo)n(w)e
1016
(with)396 2200 y(the)i(speci\002ed)g(windo)n(w)e(ID.)833
1017
2511 y Fa(wid)28 b Fh(:)50 b(the)24 b(ID)h(of)g(the)g(windo)n(w)e(to)i
1018
(retrie)n(v)o(e)f(information)f(about)594 2666 y Fa(infoptr)k
1019
Fh(:)50 b(pointer)24 b(to)g(a)h(GR_WINDO)m(W_INFO)g(structure)g(to)f
1020
(return)h(the)g(information)1094 2795 y(in)396 3292 y
1021
Fb(GrSetWMPr)n(oper)r(ties)33 b(\(\))396 3508 y Fc(void)430
1022
b(GrSetWMProperties)803 b(\(GR_WINDOW_ID)52 b(wid,)2817
1023
3624 y(GR_WM_PROPERTIES)f(*props\);)396 3854 y Fh(Copies)25
1024
b(the)g(pro)o(vided)e(GR_WM_PR)l(OPER)-6 b(TIES)27 b(structure)d(into)g
1025
(the)h(the)396 3983 y(GR_WM_PR)l(OPER)-6 b(TIES)27 b(structure)d(of)h
1026
(the)g(speci\002ed)g(windo)n(w)e(id.)833 4295 y Fa(wid)28
1027
b Fh(:)50 b(the)24 b(ID)h(of)g(the)g(windo)n(w)e(to)i(set)f(the)h(WM)f
1028
(properties)h(of)717 4449 y Fa(props)f Fh(:)50 b(pointer)24
1029
b(to)g(a)h(GR_WM_PR)l(OPER)-6 b(TIES)27 b(structure)p
1030
Black -2 5278 a Fg(14)p Black eop
1031
%%Page: 15 15
1032
15 14 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
1033
Black 396 583 a Fb(GrGetWMPr)n(oper)r(ties)j(\(\))396
1034
799 y Fc(void)430 b(GrGetWMProperties)803 b(\(GR_WINDOW_ID)52
1035
b(wid,)2817 916 y(GR_WM_PROPERTIES)f(*props\);)396 1145
1036
y Fh(Reads)26 b(the)e(GR_WM_PR)l(OPER)-6 b(TIES)27 b(structure)d(for)h
1037
(the)g(windo)n(w)e(with)h(the)h(speci\002ed)g(id)f(and)396
1038
1275 y(\002lls)h(in)f(the)h(pro)o(vided)e(structure)i(with)f(the)h
1039
(information.)k(It)c(is)f(the)h(callers)f(responsibility)f(to)h(free)
1040
396 1404 y(the)h(title)f(member)g(as)h(it)f(is)h(allocated)f
1041
(dynamically)-6 b(.)29 b(The)c(title)f(\002eld)h(will)f(be)h(set)f(to)h
1042
(NULL)f(if)h(the)396 1534 y(windo)n(w)f(has)g(no)h(title.)833
1043
1825 y Fa(wid)j Fh(:)50 b(the)24 b(ID)h(of)g(the)g(windo)n(w)e(to)i
1044
(retrei)n(v)o(e)f(the)g(WM)h(properties)f(of)717 1979
1045
y Fa(props)g Fh(:)50 b(pointer)24 b(to)g(a)h(GR_WM_PR)l(OPER)-6
1046
b(TIES)27 b(structure)d(to)h(\002ll)f(in)396 2496 y Fb(GrSetFocus)34
1047
b(\(\))396 2712 y Fc(void)430 b(GrSetFocus)1181 b(\(GR_WINDOW_ID)52
1048
b(wid\);)396 2941 y Fh(Sets)25 b(the)g(k)o(e)o(yboard)f(focus)h(to)f
1049
(the)h(speci\002ed)g(windo)n(w)-6 b(.)833 3253 y Fa(wid)28
1050
b Fh(:)50 b(the)24 b(ID)h(of)g(the)g(windo)n(w)e(to)i(set)f(the)h
1051
(focus)g(to)396 3749 y Fb(GrGetFocus)34 b(\(\))396 3965
1052
y Fc(GR_WINDOW_ID)52 b(GrGetFocus)1127 b(\(void\);)706
1053
4365 y Fg(Returns)24 b Fh(:)50 b(the)24 b(ID)h(of)g(the)g(windo)n(w)e
1054
(which)i(currently)f(has)h(the)f(k)o(e)o(yboard)h(focus)p
1055
Black 3784 5278 a Fg(15)p Black eop
1056
%%Page: 16 16
1057
16 15 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
1058
Black 396 583 a Fb(GrSetBor)n(derColor)i(\(\))396 799
1059
y Fc(void)430 b(GrSetBorderColor)857 b(\(GR_WINDOW_ID)52
1060
b(wid,)2817 916 y(GR_COLOR)g(color\);)396 1145 y Fh(Sets)25
1061
b(the)g(border)g(colour)f(of)h(the)g(speci\002ed)g(windo)n(w)e(to)i
1062
(the)f(speci\002ed)h(colour)-5 b(.)833 1457 y Fa(wid)28
1063
b Fh(:)50 b(the)24 b(ID)h(of)g(the)g(windo)n(w)e(to)i(set)f(the)h
1064
(border)g(colour)f(of)714 1611 y Fa(color)j Fh(:)396
1065
2107 y Fb(GrSetBac)n(kgr)n(oundPixmap)35 b(\(\))396 2324
1066
y Fc(void)430 b(GrSetBackgroundPixmap)587 b(\(GR_WINDOW_ID)52
1067
b(wid,)2817 2440 y(GR_WINDOW_ID)g(pixmap,)2817 2557 y(int)h(flags\);)
1068
396 2786 y Fh(Sets)25 b(the)g(background)f(of)h(the)g(speci\002ed)g
1069
(windo)n(w)e(to)i(the)f(speci\002ed)h(pixmap.)30 b(The)25
1070
b(\003ags)g(which)396 2915 y(specify)g(ho)n(w)f(to)g(dra)o(w)h(the)f
1071
(pixmap)g(\(in)h(the)g(top)f(left)g(of)h(the)g(windo)n(w)-6
1072
b(,)23 b(in)h(the)h(centre)g(of)g(the)396 3045 y(windo)n(w)-6
1073
b(,)23 b(tiled,)h(etc.\))h(are)h(those)e(which)g(start)h(with)f(GR_B)m
1074
(A)l(CKGR)l(OUND_)h(in)g(nano-X.h.)30 b(If)396 3174 y(the)25
1075
b(pixmap)f(v)n(alue)g(is)g(0,)h(the)g(serv)o(er)f(will)g(disable)g(the)
1076
h(background)f(pixmap)g(and)h(return)g(to)396 3304 y(using)f(a)h(solid)
1077
f(colour)g(\002ll.)833 3615 y Fa(wid)k Fh(:)50 b(ID)25
1078
b(of)f(the)h(windo)n(w)f(to)g(set)h(the)f(background)g(of)657
1079
3770 y Fa(pixmap)g Fh(:)50 b(ID)25 b(of)f(the)h(pixmap)f(to)g(use)h(as)
1080
g(the)g(background)717 3924 y Fa(flags)f Fh(:)50 b(\003ags)25
1081
b(specifying)f(ho)n(w)g(to)g(dra)o(w)h(the)f(pixmap)g(onto)g(the)h
1082
(windo)n(w)396 4421 y Fb(GrClearWindo)n(w)34 b(\(\))396
1083
4637 y Fc(void)430 b(GrClearWindow)1019 b(\(GR_WINDOW_ID)52
1084
b(wid,)2817 4753 y(GR_BOOL)h(expose-)396 4870 y(flag\);)p
1085
Black -2 5278 a Fg(16)p Black eop
1086
%%Page: 17 17
1087
17 16 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
1088
Black 396 579 a Fh(Clears)c(the)e(speci\002ed)h(windo)n(w)f(by)g
1089
(setting)g(it)g(to)h(its)f(background)g(color)-5 b(.)30
1090
b(If)25 b(the)g(e)o(xpose\003ag)396 708 y(parameter)g(is)g(non)f(zero,)
1091
h(an)g(e)o(xposure)f(e)n(v)o(ent)g(is)h(generated)g(for)g(the)f(windo)n
1092
(w)g(after)h(it)g(has)f(been)396 838 y(cleared.)833 1129
1093
y Fa(wid)k Fh(:)50 b(the)24 b(ID)h(of)g(the)g(windo)n(w)e(to)i(clear)
1094
438 1284 y Fa(exposeflag)j Fh(:)d(a)g(\003ag)g(indicating)e(whether)i
1095
(to)g(also)f(generate)h(an)g(e)o(xposure)f(e)n(v)o(ent)396
1096
1905 y Fb(GrCloseWindo)n(w)35 b(\(\))396 2121 y Fc(void)430
1097
b(GrCloseWindow)1019 b(\(GR_WINDOW_ID)52 b(wid\);)396
1098
2350 y Fh(Sends)24 b(a)h(CLOSE_REQ)f(e)n(v)o(ent)f(to)h(the)g
1099
(speci\002ed)g(windo)n(w)f(if)h(the)g(client)f(has)h(selected)g(to)g
1100
(recei)n(v)o(e)396 2480 y(CLOSE_REQ)i(e)n(v)o(ents)d(on)i(this)f(windo)
1101
n(w)-6 b(.)28 b(Used)d(to)f(request)h(an)g(application)f(to)g(shut)g
1102
(do)n(wn)g(b)n(ut)396 2609 y(not)g(force)i(it)e(to)h(do)f(so)h
1103
(immediately)-6 b(,)22 b(so)j(the)f(application)g(can)h(ask)g(whether)g
1104
(to)f(sa)n(v)o(e)h(changed)396 2739 y(\002les)g(before)h(shutting)d(do)
1105
n(wn)g(cleanly)-6 b(.)833 3050 y Fa(wid)28 b Fh(:)50
1106
b(the)24 b(ID)h(of)g(the)g(windo)n(w)e(to)i(send)f(the)h(CLOSE_REQ)g(e)
1107
n(v)o(ent)f(to)396 3547 y Fb(GrKillWindo)n(w)34 b(\(\))396
1108
3763 y Fc(void)430 b(GrKillWindow)1073 b(\(GR_WINDOW_ID)52
1109
b(wid\);)396 3992 y Fh(F)o(orcibly)24 b(disconnects)g(the)h(client)f
1110
(which)g(o)n(wns)g(this)g(windo)n(w)f(with)h(the)h(speci\002ed)g(ID)g
1111
(number)-5 b(.)396 4122 y(Used)25 b(to)f(kill)g(an)h(application)f
1112
(which)g(has)h(lock)o(ed)f(up)h(and)g(is)f(not)g(responding)g(to)g
1113
(CLOSE_REQ)396 4251 y(e)n(v)o(ents.)833 4542 y Fa(wid)k
1114
Fh(:)50 b(the)24 b(ID)h(of)g(the)g(windo)n(w)e(to)i(kill)p
1115
Black 3780 5278 a Fg(17)p Black eop
1116
%%Page: 18 18
1117
18 17 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
1118
Black -2 621 a Ff(graphics)47 b(\(3\))396 1101 y Fe(Name)396
1119
1303 y Fd(graphics)23 b Fh(\227)396 1696 y Fe(Synopsis)396
1120
2146 y Fc(GR_GC_ID)214 b(GrNewGC)1343 b(\(void\);)396
1121
2262 y(GR_GC_ID)214 b(GrCopyGC)1289 b(\(GR_GC_ID)52 b(gc\);)396
1122
2379 y(void)430 b(GrGetGCInfo)1127 b(\(GR_GC_ID)52 b(gc,)2817
1123
2495 y(GR_GC_INFO)g(*gcip\);)396 2612 y(void)430 b(GrDestroyGC)1127
1124
b(\(GR_GC_ID)52 b(gc\);)396 2728 y(void)430 b(GrLine)1397
1125
b(\(GR_DRAW_ID)52 b(id,)2817 2845 y(GR_GC_ID)g(gc,)2817
1126
2962 y(GR_COORD)g(x1,)2817 3078 y(GR_COORD)g(y1,)2817
1127
3195 y(GR_COORD)g(x2,)2817 3311 y(GR_COORD)g(y2\);)396
1128
3428 y(void)430 b(GrPoint)1343 b(\(GR_DRAW_ID)52 b(id,)2817
1129
3544 y(GR_GC_ID)g(gc,)2817 3661 y(GR_COORD)g(x,)2817
1130
3777 y(GR_COORD)g(y\);)396 3894 y(void)430 b(GrPoints)1289
1131
b(\(GR_DRAW_ID)52 b(id,)2817 4011 y(GR_GC_ID)g(gc,)2817
1132
4127 y(GR_COUNT)g(count,)2817 4244 y(GR_POINT)g(*pointtable\);)396
1133
4360 y(void)430 b(GrRect)1397 b(\(GR_DRAW_ID)52 b(id,)2817
1134
4477 y(GR_GC_ID)g(gc,)2817 4593 y(GR_COORD)g(x,)2817
1135
4710 y(GR_COORD)g(y,)2817 4827 y(GR_SIZE)h(width,)p Black
1136
-2 5278 a Fg(18)p Black eop
1137
%%Page: 19 19
1138
19 18 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
1139
Black 2817 579 a Fc(GR_SIZE)53 b(height\);)396 695 y(void)430
1140
b(GrFillRect)1181 b(\(GR_DRAW_ID)52 b(id,)2817 812 y(GR_GC_ID)g(gc,)
1141
2817 929 y(GR_COORD)g(x,)2817 1045 y(GR_COORD)g(y,)2817
1142
1162 y(GR_SIZE)h(width,)2817 1278 y(GR_SIZE)g(height\);)396
1143
1395 y(void)430 b(GrPoly)1397 b(\(GR_DRAW_ID)52 b(id,)2817
1144
1511 y(GR_GC_ID)g(gc,)2817 1628 y(GR_COUNT)g(count,)2817
1145
1745 y(GR_POINT)g(*pointtable\);)396 1861 y(void)430
1146
b(GrFillPoly)1181 b(\(GR_DRAW_ID)52 b(id,)2817 1978 y(GR_GC_ID)g(gc,)
1147
2817 2094 y(GR_COUNT)g(count,)2817 2211 y(GR_POINT)g(*pointtable\);)396
1148
2327 y(void)430 b(GrEllipse)1235 b(\(GR_DRAW_ID)52 b(id,)2817
1149
2444 y(GR_GC_ID)g(gc,)2817 2560 y(GR_COORD)g(x,)2817
1150
2677 y(GR_COORD)g(y,)2817 2794 y(GR_SIZE)h(rx,)2817 2910
1151
y(GR_SIZE)g(ry\);)396 3027 y(void)430 b(GrFillEllipse)1019
1152
b(\(GR_DRAW_ID)52 b(id,)2817 3143 y(GR_GC_ID)g(gc,)2817
1153
3260 y(GR_COORD)g(x,)2817 3376 y(GR_COORD)g(y,)2817 3493
1154
y(GR_SIZE)h(rx,)2817 3610 y(GR_SIZE)g(ry\);)396 3726
1155
y(void)430 b(GrArc)1451 b(\(GR_DRAW_ID)52 b(id,)2817
1156
3843 y(GR_GC_ID)g(gc,)2817 3959 y(GR_COORD)g(x,)2817
1157
4076 y(GR_COORD)g(y,)2817 4192 y(GR_SIZE)h(rx,)2817 4309
1158
y(GR_SIZE)g(ry,)2817 4425 y(GR_COORD)f(ax,)2817 4542
1159
y(GR_COORD)g(ay,)2817 4659 y(GR_COORD)g(bx,)2817 4775
1160
y(GR_COORD)g(by,)p Black 3784 5278 a Fg(19)p Black eop
1161
%%Page: 20 20
1162
20 19 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
1163
Black 2817 579 a Fc(int)53 b(type\);)396 695 y(void)430
1164
b(GrArcAngle)1181 b(\(GR_DRAW_ID)52 b(id,)2817 812 y(GR_GC_ID)g(gc,)
1165
2817 929 y(GR_COORD)g(x,)2817 1045 y(GR_COORD)g(y,)2817
1166
1162 y(GR_SIZE)h(rx,)2817 1278 y(GR_SIZE)g(ry,)2817 1395
1167
y(GR_COORD)f(angle1,)2817 1511 y(GR_COORD)g(angle2,)2817
1168
1628 y(int)h(type\);)396 1745 y(void)430 b(GrSetGCForeground)803
1169
b(\(GR_GC_ID)52 b(gc,)2817 1861 y(GR_COLOR)g(foreground\);)396
1170
1978 y(void)430 b(GrSetGCBackground)803 b(\(GR_GC_ID)52
1171
b(gc,)2817 2094 y(GR_COLOR)g(background\);)396 2211 y(void)430
1172
b(GrSetGCUseBackground)641 b(\(GR_GC_ID)52 b(gc,)2817
1173
2327 y(GR_BOOL)h(flag\);)396 2444 y(void)430 b(GrSetGCMode)1127
1174
b(\(GR_GC_ID)52 b(gc,)2817 2560 y(int)h(mode\);)396 2677
1175
y(void)430 b(GrSetGCFont)1127 b(\(GR_GC_ID)52 b(gc,)2817
1176
2794 y(GR_FONT_ID)g(font\);)396 2910 y(void)430 b(GrGetGCTextSize)911
1177
b(\(GR_GC_ID)52 b(gc,)2817 3027 y(void)h(*str,)2817 3143
1178
y(int)g(count,)2817 3260 y(int)g(flags,)2817 3376 y(GR_SIZE)g
1179
(*retwidth,)2817 3493 y(GR_SIZE)g(*retheight,)2817 3610
1180
y(GR_SIZE)g(*retbase\);)396 3726 y(void)430 b(GrReadArea)1181
1181
b(\(GR_DRAW_ID)52 b(id,)2817 3843 y(GR_COORD)g(x,)2817
1182
3959 y(GR_COORD)g(y,)2817 4076 y(GR_SIZE)h(width,)2817
1183
4192 y(GR_SIZE)g(height,)2817 4309 y(GR_PIXELVAL)f(*pixels\);)396
1184
4425 y(void)430 b(GrArea)1397 b(\(GR_DRAW_ID)52 b(id,)2817
1185
4542 y(GR_GC_ID)g(gc,)2817 4659 y(GR_COORD)g(x,)2817
1186
4775 y(GR_COORD)g(y,)p Black -2 5278 a Fg(20)p Black
1187
eop
1188
%%Page: 21 21
1189
21 20 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
1190
Black 2817 579 a Fc(GR_SIZE)53 b(width,)2817 695 y(GR_SIZE)g(height,)
1191
2817 812 y(void)g(*pixels,)2817 929 y(int)g(pixtype\);)396
1192
1045 y(void)430 b(GrCopyArea)1181 b(\(GR_DRAW_ID)52 b(id,)2817
1193
1162 y(GR_GC_ID)g(gc,)2817 1278 y(GR_COORD)g(x,)2817
1194
1395 y(GR_COORD)g(y,)2817 1511 y(GR_SIZE)h(width,)2817
1195
1628 y(GR_SIZE)g(height,)2817 1745 y(GR_DRAW_ID)f(srcid,)2817
1196
1861 y(GR_COORD)g(srcx,)2817 1978 y(GR_COORD)g(srcy,)2817
1197
2094 y(int)h(op\);)396 2211 y(void)430 b(GrBitmap)1289
1198
b(\(GR_DRAW_ID)52 b(id,)2817 2327 y(GR_GC_ID)g(gc,)2817
1199
2444 y(GR_COORD)g(x,)2817 2560 y(GR_COORD)g(y,)2817 2677
1200
y(GR_SIZE)h(width,)2817 2794 y(GR_SIZE)g(height,)2817
1201
2910 y(GR_BITMAP)f(*imagebits\);)396 3027 y(void)430
1202
b(GrFreeImage)1127 b(\(GR_IMAGE_ID)52 b(id\);)396 3143
1203
y(void)430 b(GrGetImageInfo)965 b(\(GR_IMAGE_ID)52 b(id,)2817
1204
3260 y(GR_IMAGE_INFO)f(*iip\);)396 3376 y(void)430 b
1205
(GrDrawImageFromFile)695 b(\(GR_DRAW_ID)52 b(id,)2817
1206
3493 y(GR_GC_ID)g(gc,)2817 3610 y(GR_COORD)g(x,)2817
1207
3726 y(GR_COORD)g(y,)2817 3843 y(GR_SIZE)h(width,)2817
1208
3959 y(GR_SIZE)g(height,)2817 4076 y(char)g(*path,)2817
1209
4192 y(int)g(flags\);)396 4309 y(GR_IMAGE_ID)f(GrLoadImageFromFile)695
1210
b(\(char)53 b(*path,)2817 4425 y(int)g(flags\);)396 4542
1211
y(void)430 b(GrDrawImageToFit)857 b(\(GR_DRAW_ID)52 b(id,)2817
1212
4659 y(GR_GC_ID)g(gc,)2817 4775 y(GR_COORD)g(x,)p Black
1213
3784 5278 a Fg(21)p Black eop
1214
%%Page: 22 22
1215
22 21 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
1216
Black 2817 579 a Fc(GR_COORD)52 b(y,)2817 695 y(GR_SIZE)h(width,)2817
1217
812 y(GR_SIZE)g(height,)2817 929 y(GR_IMAGE_ID)f(imageid\);)396
1218
1045 y(void)430 b(GrDrawImageBits)911 b(\(GR_DRAW_ID)52
1219
b(id,)2817 1162 y(GR_GC_ID)g(gc,)2817 1278 y(GR_COORD)g(x,)2817
1220
1395 y(GR_COORD)g(y,)2817 1511 y(GR_IMAGE_HDR)g(*pimage\);)396
1221
1628 y(void)430 b(GrText)1397 b(\(GR_DRAW_ID)52 b(id,)2817
1222
1745 y(GR_GC_ID)g(gc,)2817 1861 y(GR_COORD)g(x,)2817
1223
1978 y(GR_COORD)g(y,)2817 2094 y(void)h(*str,)2817 2211
1224
y(GR_COUNT)f(count,)2817 2327 y(int)h(flags\);)396 2821
1225
y Fe(Description)396 3336 y(Details)396 3681 y Fb(GrNe)n(wGC)34
1226
b(\(\))396 3897 y Fc(GR_GC_ID)214 b(GrNewGC)1343 b(\(void\);)396
1227
4126 y Fh(Creates)26 b(a)f(ne)n(w)f(graphics)h(conte)o(xt)f(structure)g
1228
(and)h(returns)f(the)h(ID)g(used)g(to)f(refer)i(to)e(it.)31
1229
b(The)396 4256 y(structure)25 b(is)f(initialised)f(with)h(a)h(set)g(of)
1230
g(def)o(ault)f(parameters.)706 4567 y Fg(Returns)g Fh(:)50
1231
b(the)24 b(ID)h(of)g(the)g(ne)n(wly)f(created)h(graphics)g(conte)o(xt)e
1232
(or)i(0)g(on)f(error)p Black -2 5278 a Fg(22)p Black
1233
eop
1234
%%Page: 23 23
1235
23 22 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
1236
Black 396 583 a Fb(GrCop)n(yGC)k(\(\))396 799 y Fc(GR_GC_ID)214
1237
b(GrCopyGC)1289 b(\(GR_GC_ID)52 b(gc\);)396 1028 y Fh(Creates)26
1238
b(a)f(ne)n(w)f(graphics)h(conte)o(xt)f(structure)g(and)h(\002lls)f(it)h
1239
(in)f(with)g(the)h(v)n(alues)f(from)g(the)396 1158 y(speci\002ed)h
1240
(already)g(e)o(xisting)e(graphics)i(conte)o(xt.)896 1470
1241
y Fa(gc)g Fh(:)50 b(the)24 b(already)h(e)o(xisting)e(graphics)i(conte)o
1242
(xt)e(to)i(cop)o(y)f(the)h(parameters)g(from)706 1624
1243
y Fg(Returns)f Fh(:)50 b(the)24 b(ID)h(of)g(the)g(ne)n(wly)f(created)h
1244
(graphics)g(conte)o(xt)e(or)i(0)g(on)f(error)396 2120
1245
y Fb(GrGetGCInf)n(o)33 b(\(\))396 2337 y Fc(void)430
1246
b(GrGetGCInfo)1127 b(\(GR_GC_ID)52 b(gc,)2817 2453 y(GR_GC_INFO)g
1247
(*gcip\);)396 2682 y Fh(Fills)24 b(in)h(the)f(speci\002ed)i(GR_GC_INFO)
1248
f(structure)g(with)f(information)f(re)o(garding)h(the)g(speci\002ed)396
1249
2812 y(graphics)h(conte)o(xt.)896 3123 y Fa(gc)g Fh(:)50
1250
b(a)25 b(graphics)f(conte)o(xt)777 3278 y Fa(gcip)g Fh(:)50
1251
b(pointer)24 b(to)g(a)h(GR_GC_INFO)h(structure)396 3774
1252
y Fb(GrDestr)n(o)n(yGC)34 b(\(\))396 3990 y Fc(void)430
1253
b(GrDestroyGC)1127 b(\(GR_GC_ID)52 b(gc\);)396 4219 y
1254
Fh(Destro)o(ys)24 b(the)h(graphics)f(conte)o(xt)g(structure)h(with)f
1255
(the)g(speci\002ed)h(ID.)896 4531 y Fa(gc)g Fh(:)50 b(the)24
1256
b(ID)h(of)g(the)g(graphics)f(conte)o(xt)g(structure)g(to)h(destro)o(y)p
1257
Black 3784 5278 a Fg(23)p Black eop
1258
%%Page: 24 24
1259
24 23 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
1260
Black 396 583 a Fb(GrLine)j(\(\))396 799 y Fc(void)430
1261
b(GrLine)1397 b(\(GR_DRAW_ID)52 b(id,)2817 916 y(GR_GC_ID)g(gc,)2817
1262
1032 y(GR_COORD)g(x1,)2817 1149 y(GR_COORD)g(y1,)2817
1263
1266 y(GR_COORD)g(x2,)2817 1382 y(GR_COORD)g(y2\);)396
1264
1611 y Fh(Dra)o(ws)25 b(a)g(line)f(using)g(the)h(speci\002ed)g
1265
(graphics)f(conte)o(xt)g(on)g(the)h(speci\002ed)g(dra)o(w)o(able)g
1266
(from)f(\(x1,)396 1741 y(y1\))h(to)f(\(x2,)h(y2\),)g(with)f
1267
(coordinates)g(gi)n(v)o(en)f(relati)n(v)o(e)h(to)g(the)h(dra)o(w)o
1268
(able.)893 2052 y Fa(id)j Fh(:)50 b(the)24 b(ID)h(of)g(the)g(dra)o(w)o
1269
(able)f(to)h(dra)o(w)f(the)h(line)f(on)896 2207 y Fa(gc)h
1270
Fh(:)50 b(the)24 b(ID)h(of)g(the)g(graphics)f(conte)o(xt)g(to)g(use)h
1271
(when)g(dra)o(wing)f(the)g(line)897 2361 y Fa(x1)g Fh(:)50
1272
b(the)24 b(X)h(coordinate)f(of)h(the)g(start)f(of)h(the)g(line)f
1273
(relati)n(v)o(e)g(to)g(the)h(dra)o(w)o(able)897 2516
1274
y Fa(y1)f Fh(:)50 b(the)24 b(Y)h(coordinate)f(of)h(the)g(start)f(of)h
1275
(the)g(line)f(relati)n(v)o(e)g(to)g(the)h(dra)o(w)o(able)897
1276
2670 y Fa(x2)f Fh(:)50 b(the)24 b(X)h(coordinate)f(of)h(the)g(end)g(of)
1277
g(the)f(line)h(relati)n(v)o(e)e(to)i(the)f(dra)o(w)o(able)897
1278
2824 y Fa(y2)g Fh(:)50 b(the)24 b(Y)h(coordinate)f(of)h(the)g(end)g(of)
1279
g(the)f(line)h(relati)n(v)o(e)e(to)i(the)f(dra)o(w)o(able)396
1280
3321 y Fb(GrP)-5 b(oint)33 b(\(\))396 3537 y Fc(void)430
1281
b(GrPoint)1343 b(\(GR_DRAW_ID)52 b(id,)2817 3654 y(GR_GC_ID)g(gc,)2817
1282
3770 y(GR_COORD)g(x,)2817 3887 y(GR_COORD)g(y\);)396
1283
4116 y Fh(Dra)o(ws)25 b(a)g(point)f(using)f(the)i(speci\002ed)g
1284
(graphics)g(conte)o(xt)e(at)i(the)g(speci\002ed)g(position)e(on)h(the)
1285
396 4245 y(speci\002ed)h(dra)o(w)o(able.)893 4557 y Fa(id)j
1286
Fh(:)50 b(the)24 b(ID)h(of)g(the)g(dra)o(w)o(able)f(to)h(dra)o(w)f(a)h
1287
(point)f(on)896 4711 y Fa(gc)h Fh(:)50 b(the)24 b(ID)h(of)g(the)g
1288
(graphics)f(conte)o(xt)g(to)g(use)h(when)g(dra)o(wing)f(the)g(point)p
1289
Black -2 5278 a Fg(24)p Black eop
1290
%%Page: 25 25
1291
25 24 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
1292
Black 951 587 a Fa(x)g Fh(:)50 b(the)24 b(X)h(coordinate)f(to)h(dra)o
1293
(w)f(the)h(point)f(at)h(relati)n(v)o(e)e(to)i(the)f(dra)o(w)o(able)948
1294
741 y Fa(y)33 b Fh(:)50 b(the)24 b(Y)h(coordinate)f(to)h(dra)o(w)f(the)
1295
h(point)f(at)h(relati)n(v)o(e)e(to)i(the)f(dra)o(w)o(able)396
1296
1237 y Fb(GrP)-5 b(oints)34 b(\(\))396 1454 y Fc(void)430
1297
b(GrPoints)1289 b(\(GR_DRAW_ID)52 b(id,)2817 1570 y(GR_GC_ID)g(gc,)2817
1298
1687 y(GR_COUNT)g(count,)2817 1803 y(GR_POINT)g(*point-)396
1299
1920 y(table\);)396 2149 y Fh(Dra)o(ws)25 b(a)g(set)f(of)h(points)f
1300
(using)g(the)g(speci\002ed)h(graphics)g(conte)o(xt)e(at)i(the)g
1301
(positions)e(speci\002ed)i(by)396 2278 y(the)g(point)f(table)g(on)h
1302
(the)f(speci\002ed)h(dra)o(w)o(able.)893 2590 y Fa(id)j
1303
Fh(:)50 b(the)24 b(ID)h(of)g(the)g(dra)o(w)o(able)f(to)h(dra)o(w)f(a)h
1304
(point)f(on)896 2744 y Fa(gc)h Fh(:)50 b(the)24 b(ID)h(of)g(the)g
1305
(graphics)f(conte)o(xt)g(to)g(use)h(when)g(dra)o(wing)f(the)g(point)717
1306
2899 y Fa(count)g Fh(:)50 b(the)24 b(number)g(of)h(points)f(in)g(the)h
1307
(point)f(table)443 3053 y Fa(pointtable)f Fh(:)i(pointer)f(to)g(a)h
1308
(GR_POINT)h(array)f(which)g(lists)e(the)i(points)e(to)i(dra)o(w)396
1309
3654 y Fb(GrRect)34 b(\(\))396 3870 y Fc(void)430 b(GrRect)1397
1310
b(\(GR_DRAW_ID)52 b(id,)2817 3987 y(GR_GC_ID)g(gc,)2817
1311
4104 y(GR_COORD)g(x,)2817 4220 y(GR_COORD)g(y,)2817 4337
1312
y(GR_SIZE)h(width,)2817 4453 y(GR_SIZE)g(height\);)396
1313
4682 y Fh(Dra)o(w)25 b(the)g(boundary)f(of)h(a)g(rectangle)g(of)g(the)f
1314
(speci\002ed)h(dimensions)e(and)i(position)e(on)i(the)396
1315
4812 y(speci\002ed)g(dra)o(w)o(able)g(using)f(the)g(speci\002ed)h
1316
(graphics)g(conte)o(xt.)p Black 3784 5278 a Fg(25)p Black
1317
eop
1318
%%Page: 26 26
1319
26 25 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
1320
Black 893 587 a Fa(id)d Fh(:)50 b(the)24 b(ID)h(of)g(the)g(dra)o(w)o
1321
(able)f(to)h(dra)o(w)f(the)h(rectangle)g(on)896 741 y
1322
Fa(gc)g Fh(:)50 b(the)24 b(ID)h(of)g(the)g(graphics)f(conte)o(xt)g(to)g
1323
(use)h(when)g(dra)o(wing)f(the)g(rectangle)951 895 y
1324
Fa(x)30 b Fh(:)50 b(the)24 b(X)h(coordinate)f(of)h(the)g(rectangle)g
1325
(relati)n(v)o(e)f(to)g(the)h(dra)o(w)o(able)948 1050
1326
y Fa(y)33 b Fh(:)50 b(the)24 b(Y)h(coordinate)f(of)h(the)g(rectangle)g
1327
(relati)n(v)o(e)f(to)g(the)h(dra)o(w)o(able)717 1204
1328
y Fa(width)f Fh(:)50 b(the)24 b(width)g(of)h(the)g(rectangle)657
1329
1359 y Fa(height)f Fh(:)50 b(the)24 b(height)g(of)h(the)g(rectangle)396
1330
1855 y Fb(GrFillRect)35 b(\(\))396 2071 y Fc(void)430
1331
b(GrFillRect)1181 b(\(GR_DRAW_ID)52 b(id,)2817 2188 y(GR_GC_ID)g(gc,)
1332
2817 2304 y(GR_COORD)g(x,)2817 2421 y(GR_COORD)g(y,)2817
1333
2537 y(GR_SIZE)h(width,)2817 2654 y(GR_SIZE)g(height\);)396
1334
2883 y Fh(Dra)o(w)25 b(a)g(\002lled)g(rectangle)g(of)g(the)f
1335
(speci\002ed)h(dimensions)e(and)i(position)e(on)i(the)f(speci\002ed)396
1336
3013 y(dra)o(w)o(able)h(using)f(the)g(speci\002ed)h(graphics)g(conte)o
1337
(xt.)893 3324 y Fa(id)j Fh(:)50 b(the)24 b(ID)h(of)g(the)g(dra)o(w)o
1338
(able)f(to)h(dra)o(w)f(the)h(rectangle)g(on)896 3479
1339
y Fa(gc)g Fh(:)50 b(the)24 b(ID)h(of)g(the)g(graphics)f(conte)o(xt)g
1340
(to)g(use)h(when)g(dra)o(wing)f(the)g(rectangle)951 3633
1341
y Fa(x)30 b Fh(:)50 b(the)24 b(X)h(coordinate)f(of)h(the)g(rectangle)g
1342
(relati)n(v)o(e)f(to)g(the)h(dra)o(w)o(able)948 3788
1343
y Fa(y)33 b Fh(:)50 b(the)24 b(Y)h(coordinate)f(of)h(the)g(rectangle)g
1344
(relati)n(v)o(e)f(to)g(the)h(dra)o(w)o(able)717 3942
1345
y Fa(width)f Fh(:)50 b(the)24 b(width)g(of)h(the)g(rectangle)657
1346
4096 y Fa(height)f Fh(:)50 b(the)24 b(height)g(of)h(the)g(rectangle)396
1347
4593 y Fb(GrP)-5 b(ol)n(y)34 b(\(\))396 4809 y Fc(void)430
1348
b(GrPoly)1397 b(\(GR_DRAW_ID)52 b(id,)p Black -2 5278
1349
a Fg(26)p Black eop
1350
%%Page: 27 27
1351
27 26 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
1352
Black 2817 579 a Fc(GR_GC_ID)52 b(gc,)2817 695 y(GR_COUNT)g(count,)2817
1353
812 y(GR_POINT)g(*point-)396 929 y(table\);)396 1158
1354
y Fh(Dra)o(ws)25 b(an)g(un\002lled)f(polygon)f(on)i(the)g(speci\002ed)g
1355
(dra)o(w)o(able)f(using)g(the)h(speci\002ed)g(graphics)396
1356
1287 y(conte)o(xt.)30 b(The)25 b(polygon)e(is)i(speci\002ed)g(by)f(an)h
1357
(array)h(of)f(point)e(structures.)30 b(The)25 b(polygon)f(is)g(not)396
1358
1417 y(automatically)g(closed-)g(if)h(a)g(closed)g(polygon)e(is)h
1359
(desired,)h(the)g(last)f(point)g(must)f(be)i(the)g(same)f(as)396
1360
1546 y(the)h(\002rst.)893 1838 y Fa(id)j Fh(:)50 b(the)24
1361
b(ID)h(of)g(the)g(dra)o(w)o(able)f(to)h(dra)o(w)f(the)h(polygon)e(onto)
1362
896 1992 y Fa(gc)i Fh(:)50 b(the)24 b(ID)h(of)g(the)g(graphics)f(conte)
1363
o(xt)g(to)g(use)h(when)g(dra)o(wing)f(the)g(polygon)717
1364
2146 y Fa(count)g Fh(:)50 b(the)24 b(number)g(of)h(points)f(in)g(the)h
1365
(point)f(array)443 2301 y Fa(pointtable)f Fh(:)i(pointer)f(to)g(an)h
1366
(array)h(of)f(points)e(describing)h(the)h(polygon)396
1367
2922 y Fb(GrFillP)-5 b(ol)n(y)35 b(\(\))396 3138 y Fc(void)430
1368
b(GrFillPoly)1181 b(\(GR_DRAW_ID)52 b(id,)2817 3255 y(GR_GC_ID)g(gc,)
1369
2817 3371 y(GR_COUNT)g(count,)2817 3488 y(GR_POINT)g(*point-)396
1370
3605 y(table\);)396 3834 y Fh(Dra)o(ws)25 b(a)g(\002lled)g(polygon)e
1371
(on)i(the)f(speci\002ed)h(dra)o(w)o(able)g(using)f(the)g(speci\002ed)h
1372
(graphics)g(conte)o(xt.)396 3963 y(The)g(polygon)f(is)g(speci\002ed)h
1373
(by)g(an)f(array)i(of)f(point)f(structures.)30 b(The)25
1374
b(polygon)e(is)h(automatically)396 4093 y(closed-)h(the)g(last)f(point)
1375
g(need)h(not)f(be)h(the)f(same)h(as)g(the)g(\002rst)f(in)h(order)g(for)
1376
g(the)g(polygon)e(to)i(be)396 4222 y(closed.)893 4514
1377
y Fa(id)j Fh(:)50 b(the)24 b(ID)h(of)g(the)g(dra)o(w)o(able)f(to)h(dra)
1378
o(w)f(the)h(polygon)e(onto)896 4668 y Fa(gc)i Fh(:)50
1379
b(the)24 b(ID)h(of)g(the)g(graphics)f(conte)o(xt)g(to)g(use)h(when)g
1380
(dra)o(wing)f(the)g(polygon)717 4822 y Fa(count)g Fh(:)50
1381
b(the)24 b(number)g(of)h(points)f(in)g(the)h(point)f(array)p
1382
Black 3780 5278 a Fg(27)p Black eop
1383
%%Page: 28 28
1384
28 27 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
1385
Black 443 587 a Fa(pointtable)23 b Fh(:)i(pointer)f(to)g(an)h(array)h
1386
(of)f(points)e(describing)h(the)h(polygon)396 1208 y
1387
Fb(GrEllipse)34 b(\(\))396 1424 y Fc(void)430 b(GrEllipse)1235
1388
b(\(GR_DRAW_ID)52 b(id,)2817 1541 y(GR_GC_ID)g(gc,)2817
1389
1657 y(GR_COORD)g(x,)2817 1774 y(GR_COORD)g(y,)2817 1890
1390
y(GR_SIZE)h(rx,)2817 2007 y(GR_SIZE)g(ry\);)396 2236
1391
y Fh(Dra)o(ws)25 b(the)f(boundary)h(of)f(ellipse)g(at)h(the)g
1392
(speci\002ed)g(position)e(using)h(the)g(speci\002ed)i(dimensions)396
1393
2365 y(and)f(graphics)f(conte)o(xt)g(on)h(the)f(speci\002ed)h(dra)o(w)o
1394
(able.)893 2677 y Fa(id)j Fh(:)50 b(the)24 b(ID)h(of)g(the)g(dra)o(w)o
1395
(able)f(to)h(dra)o(w)f(the)h(ellipse)f(on)896 2831 y
1396
Fa(gc)h Fh(:)50 b(the)24 b(ID)h(of)g(the)g(graphics)f(conte)o(xt)g(to)g
1397
(use)h(when)g(dra)o(wing)f(the)g(ellipse)951 2986 y Fa(x)30
1398
b Fh(:)50 b(the)24 b(X)h(coordinate)f(to)h(dra)o(w)f(the)h(ellipse)f
1399
(at)h(relati)n(v)o(e)f(to)g(the)h(dra)o(w)o(able)948
1400
3140 y Fa(y)33 b Fh(:)50 b(the)24 b(Y)h(coordinate)f(to)h(dra)o(w)f
1401
(the)h(ellipse)f(at)h(relati)n(v)o(e)f(to)g(the)h(dra)o(w)o(able)891
1402
3295 y Fa(rx)30 b Fh(:)50 b(the)24 b(radius)h(of)f(the)h(ellipse)f(on)h
1403
(the)f(X)h(axis)888 3449 y Fa(ry)33 b Fh(:)50 b(the)24
1404
b(radius)h(of)f(the)h(ellipse)f(on)h(the)f(Y)h(axis)396
1405
3946 y Fb(GrFillEllipse)35 b(\(\))396 4162 y Fc(void)430
1406
b(GrFillEllipse)1019 b(\(GR_DRAW_ID)52 b(id,)2817 4278
1407
y(GR_GC_ID)g(gc,)2817 4395 y(GR_COORD)g(x,)2817 4511
1408
y(GR_COORD)g(y,)2817 4628 y(GR_SIZE)h(rx,)2817 4745 y(GR_SIZE)g(ry\);)p
1409
Black -2 5278 a Fg(28)p Black eop
1410
%%Page: 29 29
1411
29 28 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
1412
Black 396 579 a Fh(Dra)o(ws)25 b(a)g(\002lled)g(ellipse)f(at)g(the)h
1413
(speci\002ed)g(position)e(using)h(the)h(speci\002ed)g(dimensions)d(and)
1414
396 708 y(graphics)j(conte)o(xt)e(on)i(the)g(speci\002ed)g(dra)o(w)o
1415
(able.)893 1020 y Fa(id)j Fh(:)50 b(the)24 b(ID)h(of)g(the)g(dra)o(w)o
1416
(able)f(to)h(dra)o(w)f(the)h(\002lled)g(ellipse)f(on)896
1417
1174 y Fa(gc)h Fh(:)50 b(the)24 b(ID)h(of)g(the)g(graphics)f(conte)o
1418
(xt)g(to)g(use)h(when)g(dra)o(wing)f(the)g(ellipse)951
1419
1329 y Fa(x)30 b Fh(:)50 b(the)24 b(X)h(coordinate)f(to)h(dra)o(w)f
1420
(the)h(ellipse)f(at)h(relati)n(v)o(e)f(to)g(the)h(dra)o(w)o(able)948
1421
1483 y Fa(y)33 b Fh(:)50 b(the)24 b(Y)h(coordinate)f(to)h(dra)o(w)f
1422
(the)h(ellipse)f(at)h(relati)n(v)o(e)f(to)g(the)h(dra)o(w)o(able)891
1423
1638 y Fa(rx)30 b Fh(:)50 b(the)24 b(radius)h(of)f(the)h(ellipse)f(on)h
1424
(the)f(X)h(axis)888 1792 y Fa(ry)33 b Fh(:)50 b(the)24
1425
b(radius)h(of)f(the)h(ellipse)f(on)h(the)f(Y)h(axis)396
1426
2289 y Fb(GrAr)n(c)33 b(\(\))396 2505 y Fc(void)430 b(GrArc)1451
1427
b(\(GR_DRAW_ID)52 b(id,)2817 2621 y(GR_GC_ID)g(gc,)2817
1428
2738 y(GR_COORD)g(x,)2817 2854 y(GR_COORD)g(y,)2817 2971
1429
y(GR_SIZE)h(rx,)2817 3088 y(GR_SIZE)g(ry,)2817 3204 y(GR_COORD)f(ax,)
1430
2817 3321 y(GR_COORD)g(ay,)2817 3437 y(GR_COORD)g(bx,)2817
1431
3554 y(GR_COORD)g(by,)2817 3670 y(int)h(type\);)396 3899
1432
y Fh(Dra)o(ws)25 b(an)g(arc)g(with)f(the)h(speci\002ed)g(dimensions)e
1433
(at)i(the)f(speci\002ed)h(position)e(on)i(the)g(speci\002ed)396
1434
4029 y(dra)o(w)o(able)g(using)f(the)g(speci\002ed)h(graphics)g(conte)o
1435
(xt.)k(The)c(type)g(speci\002es)g(the)f(\002ll)h(type.)30
1436
b(Possible)396 4158 y(v)n(alues)24 b(include)g(GR_ARC)i(and)f(GR_PIE.)
1437
893 4460 y Fa(id)j Fh(:)50 b(the)24 b(ID)h(of)g(the)g(dra)o(w)o(able)f
1438
(to)h(dra)o(w)f(the)h(arc)g(on)896 4615 y Fa(gc)g Fh(:)50
1439
b(the)24 b(graphics)h(conte)o(xt)e(to)i(use)f(when)h(dra)o(wing)f(the)h
1440
(arc)951 4769 y Fa(x)30 b Fh(:)50 b(the)24 b(X)h(coordinate)f(to)h(dra)
1441
o(w)f(the)h(arc)h(at)e(relati)n(v)o(e)g(to)h(the)f(dra)o(w)o(able)p
1442
Black 3784 5278 a Fg(29)p Black eop
1443
%%Page: 30 30
1444
30 29 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
1445
Black 948 587 a Fa(y)i Fh(:)50 b(the)24 b(Y)h(coordinate)f(to)h(dra)o
1446
(w)f(the)h(arc)h(at)e(relati)n(v)o(e)g(to)h(the)f(dra)o(w)o(able)891
1447
741 y Fa(rx)30 b Fh(:)50 b(the)24 b(radius)h(of)f(the)h(arc)h(on)e(the)
1448
h(X)g(axis)888 895 y Fa(ry)33 b Fh(:)50 b(the)24 b(radius)h(of)f(the)h
1449
(arc)h(on)e(the)h(Y)g(axis)891 1050 y Fa(ax)30 b Fh(:)50
1450
b(the)24 b(X)h(coordinate)f(of)h(the)g(start)f(of)h(the)g(arc)h(relati)
1451
n(v)o(e)d(to)i(the)f(dra)o(w)o(able)888 1204 y Fa(ay)33
1452
b Fh(:)50 b(the)24 b(Y)h(coordinate)f(of)h(the)g(start)f(of)h(the)g
1453
(arc)h(relati)n(v)o(e)d(to)i(the)f(dra)o(w)o(able)891
1454
1359 y Fa(bx)30 b Fh(:)50 b(the)24 b(X)h(coordinate)f(of)h(the)g(end)g
1455
(of)g(the)f(arc)i(relati)n(v)o(e)e(to)g(the)h(dra)o(w)o(able)888
1456
1513 y Fa(by)33 b Fh(:)50 b(the)24 b(Y)h(coordinate)f(of)h(the)g(end)g
1457
(of)g(the)f(arc)i(relati)n(v)o(e)e(to)g(the)h(dra)o(w)o(able)777
1458
1667 y Fa(type)f Fh(:)50 b(the)24 b(\002ll)h(style)f(to)g(use)h(when)g
1459
(dra)o(wing)f(the)g(arc)396 2174 y Fb(GrAr)n(cAngle)34
1460
b(\(\))396 2390 y Fc(void)430 b(GrArcAngle)1181 b(\(GR_DRAW_ID)52
1461
b(id,)2817 2507 y(GR_GC_ID)g(gc,)2817 2623 y(GR_COORD)g(x,)2817
1462
2740 y(GR_COORD)g(y,)2817 2856 y(GR_SIZE)h(rx,)2817 2973
1463
y(GR_SIZE)g(ry,)2817 3089 y(GR_COORD)f(angle1,)2817 3206
1464
y(GR_COORD)g(angle2,)2817 3322 y(int)h(type\);)396 3552
1465
y Fh(Dra)o(ws)25 b(an)g(arc)g(with)f(the)h(speci\002ed)g(dimensions)e
1466
(at)i(the)f(speci\002ed)h(position)e(on)i(the)g(speci\002ed)396
1467
3681 y(dra)o(w)o(able)g(using)f(the)g(speci\002ed)h(graphics)g(conte)o
1468
(xt.)k(The)c(type)g(speci\002es)g(the)f(\002ll)h(type.)30
1469
b(Possible)396 3811 y(v)n(alues)24 b(include)g(GR_ARC)i(and)f(GR_PIE.)h
1470
(This)e(function)g(requires)g(\003oating)h(point)e(support,)396
1471
3940 y(and)i(is)f(slightly)f(slo)n(wer)h(than)h(the)f(GrArc\(\))i
1472
(function)e(which)g(does)h(not)f(require)h(\003oating)g(point.)893
1473
4252 y Fa(id)j Fh(:)50 b(the)24 b(ID)h(of)g(the)g(dra)o(w)o(able)f(to)h
1474
(dra)o(w)f(the)h(arc)g(on)896 4406 y Fa(gc)g Fh(:)50
1475
b(the)24 b(graphics)h(conte)o(xt)e(to)i(use)f(when)h(dra)o(wing)f(the)h
1476
(arc)951 4561 y Fa(x)30 b Fh(:)50 b(the)24 b(X)h(coordinate)f(to)h(dra)
1477
o(w)f(the)h(arc)h(at)e(relati)n(v)o(e)g(to)h(the)f(dra)o(w)o(able)948
1478
4715 y Fa(y)33 b Fh(:)50 b(the)24 b(Y)h(coordinate)f(to)h(dra)o(w)f
1479
(the)h(arc)h(at)e(relati)n(v)o(e)g(to)h(the)f(dra)o(w)o(able)p
1480
Black -2 5278 a Fg(30)p Black eop
1481
%%Page: 31 31
1482
31 30 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
1483
Black 891 587 a Fa(rx)g Fh(:)50 b(the)24 b(radius)h(of)f(the)h(arc)h
1484
(on)e(the)h(X)g(axis)888 741 y Fa(ry)33 b Fh(:)50 b(the)24
1485
b(radius)h(of)f(the)h(arc)h(on)e(the)h(Y)g(axis)657 895
1486
y Fa(angle1)f Fh(:)50 b(the)24 b(angle)h(of)g(the)f(start)h(of)g(the)f
1487
(arc)657 1050 y Fa(angle2)g Fh(:)50 b(the)24 b(angle)h(of)g(the)f(end)h
1488
(of)g(the)g(arc)777 1204 y Fa(type)f Fh(:)50 b(the)24
1489
b(\002ll)h(style)f(to)g(use)h(when)g(dra)o(wing)f(the)g(arc)396
1490
1701 y Fb(GrSetGCForegr)n(ound)33 b(\(\))396 1917 y Fc(void)430
1491
b(GrSetGCForeground)803 b(\(GR_GC_ID)52 b(gc,)2817 2033
1492
y(GR_COLOR)g(fore-)396 2150 y(ground\);)396 2379 y Fh(Changes)25
1493
b(the)g(fore)o(ground)f(colour)g(of)h(the)g(speci\002ed)g(graphics)f
1494
(conte)o(xt)g(to)h(the)f(speci\002ed)h(colour)-5 b(.)896
1495
2691 y Fa(gc)25 b Fh(:)50 b(the)24 b(ID)h(of)g(the)g(graphics)f(conte)o
1496
(xt)g(to)g(set)h(the)g(fore)o(ground)f(colour)g(of)439
1497
2845 y Fa(foreground)j Fh(:)e(the)f(colour)h(to)f(use)h(as)g(the)f(ne)n
1498
(w)h(fore)o(ground)f(colour)396 3446 y Fb(GrSetGCBac)n(kgr)n(ound)34
1499
b(\(\))396 3662 y Fc(void)430 b(GrSetGCBackground)803
1500
b(\(GR_GC_ID)52 b(gc,)2817 3779 y(GR_COLOR)g(back-)396
1501
3895 y(ground\);)396 4125 y Fh(Changes)24 b(the)f(background)g(colour)g
1502
(of)g(the)h(speci\002ed)f(graphics)g(conte)o(xt)f(to)h(the)h
1503
(speci\002ed)f(colour)-5 b(.)896 4436 y Fa(gc)25 b Fh(:)50
1504
b(the)24 b(ID)h(of)g(the)g(graphics)f(conte)o(xt)g(to)g(set)h(the)g
1505
(background)f(colour)g(of)439 4591 y Fa(background)j
1506
Fh(:)e(the)f(colour)h(to)f(use)h(as)g(the)f(ne)n(w)h(background)f
1507
(colour)p Black 3784 5278 a Fg(31)p Black eop
1508
%%Page: 32 32
1509
32 31 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
1510
Black 396 583 a Fb(GrSetGCUseBac)n(kgr)n(ound)k(\(\))396
1511
799 y Fc(void)430 b(GrSetGCUseBackground)641 b(\(GR_GC_ID)52
1512
b(gc,)2817 916 y(GR_BOOL)h(flag\);)396 1145 y Fh(Sets)25
1513
b(the)g(\003ag)g(which)g(chooses)f(whether)h(or)g(not)f(the)h
1514
(background)f(colour)g(is)h(used)f(when)396 1275 y(dra)o(wing)g
1515
(bitmaps)g(and)g(te)o(xt)g(using)g(the)h(speci\002ed)g(graphics)f
1516
(conte)o(xt)g(to)g(the)h(speci\002ed)g(v)n(alue.)896
1517
1586 y Fa(gc)g Fh(:)50 b(the)23 b(ID)g(of)h(the)f(graphics)g(conte)o
1518
(xt)f(to)h(change)g(the)g("use)g(background")f(\003ag)i(of)771
1519
1741 y Fa(flag)30 b Fh(:)50 b(\003ag)25 b(specifying)f(whether)h(to)f
1520
(use)h(the)f(background)h(colour)f(or)h(not)396 2237
1521
y Fb(GrSetGCMode)34 b(\(\))396 2453 y Fc(void)430 b(GrSetGCMode)1127
1522
b(\(GR_GC_ID)52 b(gc,)2817 2570 y(int)h(mode\);)396 2799
1523
y Fh(Changes)25 b(the)g(dra)o(wing)f(mode)g(\(SET)-7
1524
b(,)25 b(XOR,)g(OR,)g(AND,)g(etc.\))g(of)g(the)f(speci\002ed)i
1525
(graphics)396 2928 y(conte)o(xt)e(to)g(the)h(speci\002ed)g(mode.)896
1526
3240 y Fa(gc)g Fh(:)50 b(the)24 b(ID)h(of)g(the)g(graphics)f(conte)o
1527
(xt)g(to)g(set)h(the)g(dra)o(wing)e(mode)i(of)777 3394
1528
y Fa(mode)f Fh(:)50 b(the)24 b(ne)n(w)h(dra)o(wing)e(mode)396
1529
3891 y Fb(GrSetGCFont)33 b(\(\))396 4107 y Fc(void)430
1530
b(GrSetGCFont)1127 b(\(GR_GC_ID)52 b(gc,)2817 4223 y(GR_FONT_ID)g
1531
(font\);)396 4453 y Fh(Sets)25 b(the)g(font)f(to)h(be)g(used)f(for)h
1532
(te)o(xt)f(dra)o(wing)g(in)g(the)h(speci\002ed)g(graphics)g(conte)o(xt)
1533
e(to)i(the)396 4582 y(speci\002ed)g(font)g(ID.)p Black
1534
-2 5278 a Fg(32)p Black eop
1535
%%Page: 33 33
1536
33 32 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
1537
Black 896 587 a Fa(gc)25 b Fh(:)50 b(the)24 b(ID)h(of)g(the)g(graphics)
1538
f(conte)o(xt)g(to)g(set)h(the)g(font)f(of)777 741 y Fa(font)g
1539
Fh(:)50 b(the)24 b(ID)h(of)g(the)g(font)396 1237 y Fb(GrGetGCT)-7
1540
b(e)n(xtSiz)q(e)35 b(\(\))396 1454 y Fc(void)430 b(GrGetGCTextSize)911
1541
b(\(GR_GC_ID)52 b(gc,)2817 1570 y(void)h(*str,)2817 1687
1542
y(int)g(count,)2817 1803 y(int)g(flags,)2817 1920 y(GR_SIZE)g
1543
(*retwidth,)2817 2036 y(GR_SIZE)g(*retheight,)2817 2153
1544
y(GR_SIZE)g(*retbase\);)396 2382 y Fh(Calculates)25 b(the)g(dimensions)
1545
e(of)i(the)f(speci\002ed)h(te)o(xt)f(string)g(using)g(the)g(current)h
1546
(font)g(and)g(\003ags)g(in)396 2512 y(the)g(speci\002ed)g(graphics)f
1547
(conte)o(xt.)30 b(The)25 b(count)f(ar)n(gument)h(can)g(be)g(-1)g(if)f
1548
(the)h(string)f(is)g(null)396 2641 y(terminated.)896
1549
2932 y Fa(gc)h Fh(:)50 b(the)24 b(graphics)h(conte)o(xt)833
1550
3087 y Fa(str)j Fh(:)50 b(pointer)24 b(to)g(a)h(te)o(xt)f(string)717
1551
3241 y Fa(count)g Fh(:)50 b(the)24 b(length)g(of)h(the)g(string)717
1552
3396 y Fa(flags)f Fh(:)50 b(te)o(xt)23 b(rendering)i(\003ags)g
1553
(\(GR_TF*\))538 3550 y Fa(retwidth)e Fh(:)50 b(pointer)24
1554
b(to)g(the)h(v)n(ariable)f(the)h(width)f(will)f(be)i(returned)g(in)478
1555
3705 y Fa(retheight)e Fh(:)50 b(pointer)24 b(to)g(the)h(v)n(ariable)f
1556
(the)h(height)f(will)g(be)h(returned)f(in)598 3859 y
1557
Fa(retbase)f Fh(:)50 b(pointer)24 b(to)g(the)h(v)n(ariable)f(the)h
1558
(baseline)f(height)g(will)g(be)h(returned)g(in)396 4376
1559
y Fb(GrReadArea)35 b(\(\))396 4592 y Fc(void)430 b(GrReadArea)1181
1560
b(\(GR_DRAW_ID)52 b(id,)2817 4708 y(GR_COORD)g(x,)2817
1561
4825 y(GR_COORD)g(y,)p Black 3784 5278 a Fg(33)p Black
1562
eop
1563
%%Page: 34 34
1564
34 33 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
1565
Black 2817 579 a Fc(GR_SIZE)53 b(width,)2817 695 y(GR_SIZE)g(height,)
1566
2817 812 y(GR_PIXELVAL)f(*pix-)396 929 y(els\);)396 1158
1567
y Fh(Reads)26 b(the)e(pix)o(el)g(data)h(of)g(the)f(speci\002ed)h(size)g
1568
(from)g(the)g(speci\002ed)g(position)e(on)h(the)h(speci\002ed)396
1569
1287 y(dra)o(w)o(able)g(into)f(the)g(speci\002ed)h(pix)o(el)f(array)-6
1570
b(.)31 b(If)25 b(the)g(dra)o(w)o(able)g(is)f(a)h(windo)n(w)-6
1571
b(,)23 b(the)h(data)h(returned)396 1417 y(will)f(be)h(the)g(pix)o(el)e
1572
(v)n(alues)h(from)h(the)g(rele)n(v)n(ant)e(position)g(on)i(the)g
1573
(screen)g(re)o(gardless)f(of)h(whether)396 1546 y(the)g(windo)n(w)e(is)
1574
i(obscured)f(by)h(other)f(windo)n(ws.)29 b(If)d(the)e(windo)n(w)g(is)g
1575
(unmapped,)g(or)h(partially)f(or)396 1676 y(fully)g(outside)g(a)h
1576
(windo)n(w)f(boundary)-6 b(,)23 b(black)i(pix)o(el)f(v)n(alues)g(will)g
1577
(be)g(returned.)893 1987 y Fa(id)k Fh(:)50 b(the)24 b(ID)h(of)g(the)g
1578
(dra)o(w)o(able)f(to)h(read)g(an)g(area)h(from)951 2142
1579
y Fa(x)k Fh(:)50 b(the)24 b(X)h(coordinate)f(to)h(read)g(the)g(area)h
1580
(from)e(relati)n(v)o(e)g(to)g(the)h(dra)o(w)o(able)948
1581
2296 y Fa(y)33 b Fh(:)50 b(the)24 b(Y)h(coordinate)f(to)h(read)g(the)g
1582
(area)h(from)e(relati)n(v)o(e)g(to)g(the)h(dra)o(w)o(able)717
1583
2451 y Fa(width)f Fh(:)50 b(the)24 b(width)g(of)h(the)g(area)g(to)g
1584
(read)657 2605 y Fa(height)f Fh(:)50 b(the)24 b(height)g(of)h(the)g
1585
(area)g(to)g(read)657 2759 y Fa(pixels)f Fh(:)50 b(pointer)24
1586
b(to)g(an)h(area)h(of)f(memory)f(to)g(place)h(the)g(pix)o(el)f(data)g
1587
(in)396 3256 y Fb(GrArea)34 b(\(\))396 3472 y Fc(void)430
1588
b(GrArea)1397 b(\(GR_DRAW_ID)52 b(id,)2817 3589 y(GR_GC_ID)g(gc,)2817
1589
3705 y(GR_COORD)g(x,)2817 3822 y(GR_COORD)g(y,)2817 3938
1590
y(GR_SIZE)h(width,)2817 4055 y(GR_SIZE)g(height,)2817
1591
4171 y(void)g(*pixels,)2817 4288 y(int)g(pixtype\);)396
1592
4517 y Fh(Dra)o(ws)25 b(the)f(speci\002ed)h(pix)o(el)f(array)i(of)f
1593
(the)f(speci\002ed)h(size)g(and)g(format)f(onto)g(the)h(speci\002ed)396
1594
4647 y(dra)o(w)o(able)g(using)f(the)g(speci\002ed)h(graphics)g(conte)o
1595
(xt)e(at)i(the)g(speci\002ed)g(position.)k(Note)24 b(that)h(colour)396
1596
4776 y(con)l(v)o(ersion)f(is)g(currently)h(only)f(performed)h(when)f
1597
(using)g(the)h(GR_PF_RGB)h(format,)f(which)f(is)p Black
1598
-2 5278 a Fg(34)p Black eop
1599
%%Page: 35 35
1600
35 34 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
1601
Black 396 579 a Fh(an)25 b(unsigned)f(long)g(containing)f(RGBX)j(data.)
1602
893 890 y Fa(id)i Fh(:)50 b(the)24 b(ID)h(of)g(the)g(dra)o(w)o(able)f
1603
(to)h(dra)o(w)f(the)h(area)h(onto)896 1045 y Fa(gc)f
1604
Fh(:)50 b(the)24 b(ID)h(of)g(the)g(graphics)f(conte)o(xt)g(to)g(use)h
1605
(when)g(dra)o(wing)f(the)g(area)951 1199 y Fa(x)30 b
1606
Fh(:)50 b(the)24 b(X)h(coordinate)f(to)h(dra)o(w)f(the)h(area)h(at)f
1607
(relati)n(v)o(e)e(to)i(the)f(dra)o(w)o(able)948 1354
1608
y Fa(y)33 b Fh(:)50 b(the)24 b(Y)h(coordinate)f(to)h(dra)o(w)f(the)h
1609
(area)h(at)f(relati)n(v)o(e)e(to)i(the)f(dra)o(w)o(able)717
1610
1508 y Fa(width)g Fh(:)50 b(the)24 b(width)g(of)h(the)g(area)657
1611
1663 y Fa(height)f Fh(:)50 b(the)24 b(height)g(of)h(the)g(area)657
1612
1817 y Fa(pixels)f Fh(:)50 b(pointer)24 b(to)g(an)h(array)h(containing)
1613
d(the)i(pix)o(el)e(data)598 1971 y Fa(pixtype)g Fh(:)50
1614
b(the)24 b(format)h(of)g(the)f(pix)o(el)g(data)396 2468
1615
y Fb(GrCop)n(yArea)35 b(\(\))396 2684 y Fc(void)430 b(GrCopyArea)1181
1616
b(\(GR_DRAW_ID)52 b(id,)2817 2801 y(GR_GC_ID)g(gc,)2817
1617
2917 y(GR_COORD)g(x,)2817 3034 y(GR_COORD)g(y,)2817 3150
1618
y(GR_SIZE)h(width,)2817 3267 y(GR_SIZE)g(height,)2817
1619
3383 y(GR_DRAW_ID)f(srcid,)2817 3500 y(GR_COORD)g(srcx,)2817
1620
3617 y(GR_COORD)g(srcy,)2817 3733 y(int)h(op\);)396 3962
1621
y Fh(Copies)25 b(the)g(speci\002ed)g(area)g(of)g(the)g(speci\002ed)g
1622
(size)g(between)g(the)f(speci\002ed)h(dra)o(w)o(ables)g(at)g(the)396
1623
4092 y(speci\002ed)g(positions)e(using)h(the)h(speci\002ed)g(graphics)f
1624
(conte)o(xt)g(and)h(R)l(OP)g(codes.)31 b(0)25 b(is)f(a)h(sensible)396
1625
4221 y(def)o(ault)g(R)l(OP)h(code)f(in)f(most)g(cases.)893
1626
4513 y Fa(id)k Fh(:)50 b(the)24 b(ID)h(of)g(the)g(dra)o(w)o(able)f(to)h
1627
(cop)o(y)f(the)h(area)h(to)896 4667 y Fa(gc)f Fh(:)50
1628
b(the)24 b(ID)h(of)g(the)g(graphics)f(conte)o(xt)g(to)g(use)h(when)g
1629
(cop)o(ying)f(the)g(area)951 4821 y Fa(x)30 b Fh(:)50
1630
b(the)24 b(X)h(coordinate)f(to)h(cop)o(y)f(the)h(area)h(to)e(within)g
1631
(the)h(destination)e(dra)o(w)o(able)p Black 3784 5278
1632
a Fg(35)p Black eop
1633
%%Page: 36 36
1634
36 35 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
1635
Black 948 587 a Fa(y)i Fh(:)50 b(the)24 b(Y)h(coordinate)f(to)h(cop)o
1636
(y)f(the)h(area)h(to)e(within)g(the)h(destination)e(dra)o(w)o(able)717
1637
741 y Fa(width)h Fh(:)50 b(the)24 b(width)g(of)h(the)g(area)g(to)g(cop)
1638
o(y)657 895 y Fa(height)f Fh(:)50 b(the)24 b(height)g(of)h(the)g(area)g
1639
(to)g(cop)o(y)713 1050 y Fa(srcid)j Fh(:)50 b(the)24
1640
b(ID)h(of)g(the)g(dra)o(w)o(able)f(to)h(cop)o(y)f(the)h(area)h(from)772
1641
1204 y Fa(srcx)j Fh(:)50 b(the)24 b(X)h(coordinate)f(to)h(cop)o(y)f
1642
(the)h(area)h(from)e(within)g(the)h(source)g(dra)o(w)o(able)769
1643
1359 y Fa(srcy)32 b Fh(:)50 b(the)24 b(Y)h(coordinate)f(to)h(cop)o(y)f
1644
(the)h(area)h(from)e(within)g(the)h(source)g(dra)o(w)o(able)896
1645
1513 y Fa(op)g Fh(:)50 b(the)24 b(R)l(OP)i(codes)f(to)f(pass)h(to)f
1646
(the)h(blitter)e(when)i(performing)f(the)h(cop)o(y)396
1647
2030 y Fb(GrBitmap)34 b(\(\))396 2246 y Fc(void)430 b(GrBitmap)1289
1648
b(\(GR_DRAW_ID)52 b(id,)2817 2362 y(GR_GC_ID)g(gc,)2817
1649
2479 y(GR_COORD)g(x,)2817 2596 y(GR_COORD)g(y,)2817 2712
1650
y(GR_SIZE)h(width,)2817 2829 y(GR_SIZE)g(height,)2817
1651
2945 y(GR_BITMAP)f(*im-)396 3062 y(agebits\);)396 3291
1652
y Fh(Dra)o(ws)25 b(the)f(monochrome)g(bitmap)g(data)h(pro)o(vided)e(in)
1653
i(the)f(bitmaptable)g(ar)n(gument)g(at)h(the)396 3421
1654
y(speci\002ed)g(position)e(on)i(the)g(speci\002ed)g(dra)o(w)o(able)f
1655
(using)g(the)h(speci\002ed)g(graphics)f(conte)o(xt.)30
1656
b(Note)396 3550 y(that)25 b(the)f(bitmap)g(data)h(should)e(be)i(an)g
1657
(array)h(of)f(aligned)f(16)g(bit)h(w)o(ords.)30 b(The)25
1658
b(usebackground)396 3680 y(\003ag)g(in)e(the)h(graphics)g(conte)o(xt)e
1659
(speci\002es)j(whether)e(to)h(dra)o(w)g(the)f(background)h(colour)f
1660
(where)n(v)o(er)h(a)396 3809 y(bit)g(v)n(alue)h(is)f(zero.)893
1661
4100 y Fa(id)k Fh(:)50 b(the)24 b(ID)h(of)g(the)g(dra)o(w)o(able)f(to)h
1662
(dra)o(w)f(the)h(bitmap)f(onto)896 4255 y Fa(gc)h Fh(:)50
1663
b(the)24 b(ID)h(of)g(the)g(graphics)f(conte)o(xt)g(to)g(use)h(when)g
1664
(dra)o(wing)f(the)g(bitmap)951 4409 y Fa(x)30 b Fh(:)50
1665
b(the)24 b(X)h(coordinate)f(to)h(dra)o(w)f(the)h(bitmap)f(at)h(relati)n
1666
(v)o(e)e(to)i(the)f(dra)o(w)o(able)948 4564 y Fa(y)33
1667
b Fh(:)50 b(the)24 b(Y)h(coordinate)f(to)h(dra)o(w)f(the)h(bitmap)f(at)
1668
h(relati)n(v)o(e)e(to)i(the)f(dra)o(w)o(able)717 4718
1669
y Fa(width)g Fh(:)50 b(the)24 b(width)g(of)h(the)g(bitmap)p
1670
Black -2 5278 a Fg(36)p Black eop
1671
%%Page: 37 37
1672
37 36 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
1673
Black 657 587 a Fa(height)24 b Fh(:)50 b(the)24 b(height)g(of)h(the)g
1674
(bitmap)478 741 y Fa(imagebits)e Fh(:)396 1258 y Fb(GrFreeIma)o(g)q(e)
1675
35 b(\(\))396 1474 y Fc(void)430 b(GrFreeImage)1127 b(\(GR_IMAGE_ID)52
1676
b(id\);)396 1703 y Fh(Destro)o(ys)24 b(the)h(speci\002ed)g(image)f(b)n
1677
(uf)n(fer)h(and)g(reclaims)f(the)h(memory)f(used)h(by)f(it.)893
1678
2015 y Fa(id)k Fh(:)50 b(ID)25 b(of)f(the)h(image)g(b)n(uf)n(fer)f(to)h
1679
(free)396 2511 y Fb(GrGetIma)o(g)q(eInf)n(o)35 b(\(\))396
1680
2727 y Fc(void)430 b(GrGetImageInfo)965 b(\(GR_IMAGE_ID)52
1681
b(id,)2817 2844 y(GR_IMAGE_INFO)f(*iip\);)396 3073 y
1682
Fh(Fills)24 b(in)h(the)f(speci\002ed)i(image)e(information)f(structure)
1683
i(with)f(the)g(details)g(of)h(the)g(speci\002ed)g(image)396
1684
3202 y(b)n(uf)n(fer)-5 b(.)893 3494 y Fa(id)28 b Fh(:)50
1685
b(ID)25 b(of)f(an)h(image)g(b)n(uf)n(fer)836 3648 y Fa(iip)g
1686
Fh(:)50 b(pointer)24 b(to)g(a)h(GR_IMA)l(GE_INFO)g(structure)396
1687
4165 y Fb(GrDra)n(wIma)o(g)q(eFr)n(omFile)35 b(\(\))396
1688
4381 y Fc(void)430 b(GrDrawImageFromFile)695 b(\(GR_DRAW_ID)52
1689
b(id,)2817 4497 y(GR_GC_ID)g(gc,)2817 4614 y(GR_COORD)g(x,)2817
1690
4731 y(GR_COORD)g(y,)2817 4847 y(GR_SIZE)h(width,)p Black
1691
3780 5278 a Fg(37)p Black eop
1692
%%Page: 38 38
1693
38 37 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
1694
Black 2817 579 a Fc(GR_SIZE)53 b(height,)2817 695 y(char)g(*path,)2817
1695
812 y(int)g(flags\);)396 1041 y Fh(Loads)25 b(the)f(speci\002ed)h
1696
(image)g(\002le)g(and)g(dra)o(ws)f(it)g(at)h(the)g(speci\002ed)g
1697
(position)e(on)h(the)h(speci\002ed)396 1171 y(dra)o(w)o(able)g(using)f
1698
(the)g(speci\002ed)h(graphics)g(conte)o(xt.)k(The)c(width)f(and)h
1699
(height)f(v)n(alues)g(specify)g(the)396 1300 y(size)h(of)g(the)g(image)
1700
f(to)g(dra)o(w-)h(if)g(the)g(actual)f(image)h(is)f(a)h(dif)n(ferent)g
1701
(size,)f(it)h(will)f(be)h(scaled)f(to)h(\002t.)396 1430
1702
y(The)g(image)f(type)h(is)f(automatically)g(detected)g(using)g(the)h
1703
(magic)f(numbers)g(in)h(the)f(image)h(header)396 1559
1704
y(\(ie.)31 b(the)25 b(\002lename)g(e)o(xtension)e(is)h(irrele)n(v)n
1705
(ant\).)30 b(The)25 b(currently)g(supported)e(image)i(types)f(include)
1706
396 1689 y(GIF)-8 b(,)26 b(JPEG,)e(W)l(indo)n(ws)g(BMP)-11
1707
b(,)25 b(PNG,)g(XPM,)g(and)f(both)g(ascii)h(and)g(binary)f(v)n(ariants)
1708
g(of)h(PBM,)396 1818 y(PGM,)g(and)g(PPM.)g(Ho)n(we)n(v)o(er)e(the)i
1709
(image)f(types)h(supported)f(by)g(a)h(particular)g(serv)o(er)g(depend)f
1710
(on)396 1948 y(which)h(image)f(types)g(were)i(enabled)e(in)h(the)g
1711
(serv)o(er)f(con\002guration)h(at)f(b)n(uild)g(time.)893
1712
2259 y Fa(id)k Fh(:)50 b(the)24 b(ID)h(of)g(the)g(dra)o(w)o(able)f(to)h
1713
(dra)o(w)f(the)h(image)f(onto)896 2414 y Fa(gc)h Fh(:)50
1714
b(the)24 b(ID)h(of)g(the)g(graphics)f(conte)o(xt)g(to)g(use)h(when)g
1715
(dra)o(wing)f(the)g(image)951 2568 y Fa(x)30 b Fh(:)50
1716
b(the)24 b(X)h(coordinate)f(to)h(dra)o(w)f(the)h(image)f(at)h(relati)n
1717
(v)o(e)f(to)g(the)h(dra)o(w)o(able)948 2723 y Fa(y)33
1718
b Fh(:)50 b(the)24 b(Y)h(coordinate)f(to)h(dra)o(w)f(the)h(image)f(at)h
1719
(relati)n(v)o(e)f(to)g(the)h(dra)o(w)o(able)717 2877
1720
y Fa(width)f Fh(:)50 b(the)24 b(maximum)f(image)i(width)657
1721
3031 y Fa(height)f Fh(:)50 b(the)24 b(maximum)f(image)i(height)777
1722
3186 y Fa(path)f Fh(:)50 b(string)23 b(containing)h(the)h(\002lename)g
1723
(of)f(the)h(image)g(to)f(load)717 3340 y Fa(flags)g Fh(:)50
1724
b(\003ags)25 b(speci\002c)g(to)f(the)h(particular)g(image)f(loader)396
1725
3837 y Fb(GrLoadIma)o(g)q(eFr)n(omFile)36 b(\(\))396
1726
4053 y Fc(GR_IMAGE_ID)52 b(GrLoadImageFromFile)695 b(\(char)53
1727
b(*path,)2817 4169 y(int)g(flags\);)396 4399 y Fh(Loads)25
1728
b(the)f(speci\002ed)h(image)g(\002le)g(into)f(a)h(ne)n(wly)f(created)h
1729
(serv)o(er)g(image)g(b)n(uf)n(fer)f(and)h(returns)g(the)396
1730
4528 y(ID)g(of)g(the)g(b)n(uf)n(fer)-5 b(.)30 b(The)25
1731
b(image)f(type)h(is)f(automatically)f(detected)i(using)f(the)h(magic)f
1732
(numbers)g(in)396 4658 y(the)h(image)f(header)i(\(ie.)31
1733
b(the)24 b(\002lename)h(e)o(xtension)f(is)g(irrele)n(v)n(ant\).)30
1734
b(The)24 b(currently)h(supported)396 4787 y(image)g(types)f(include)g
1735
(GIF)-8 b(,)25 b(JPEG,)g(W)l(indo)n(ws)e(BMP)-11 b(,)26
1736
b(PNG,)f(XPM,)f(and)h(both)f(ascii)h(and)f(binary)p Black
1737
-2 5278 a Fg(38)p Black eop
1738
%%Page: 39 39
1739
39 38 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
1740
Black 396 579 a Fh(v)n(ariants)24 b(of)h(PBM,)g(PGM,)g(and)g(PPM.)g(Ho)
1741
n(we)n(v)o(er)e(the)i(image)f(types)h(supported)e(by)i(a)g(particular)
1742
396 708 y(serv)o(er)g(depend)g(on)f(which)h(image)f(types)g(were)i
1743
(enabled)e(in)h(the)g(serv)o(er)f(con\002guration)h(at)f(b)n(uild)396
1744
838 y(time.)777 1129 y Fa(path)g Fh(:)50 b(string)23
1745
b(containing)h(the)h(\002lename)g(of)f(the)h(image)g(to)f(load)717
1746
1284 y Fa(flags)g Fh(:)50 b(\003ags)25 b(speci\002c)g(to)f(the)h
1747
(particular)g(image)f(loader)706 1438 y Fg(Returns)g
1748
Fh(:)50 b(ID)25 b(of)f(the)h(image)g(b)n(uf)n(fer)f(the)h(image)f(w)o
1749
(as)h(loaded)g(into)396 1955 y Fb(GrDra)n(wIma)o(g)q(eT)-10
1750
b(oFit)36 b(\(\))396 2171 y Fc(void)430 b(GrDrawImageToFit)857
1751
b(\(GR_DRAW_ID)52 b(id,)2817 2288 y(GR_GC_ID)g(gc,)2817
1752
2404 y(GR_COORD)g(x,)2817 2521 y(GR_COORD)g(y,)2817 2637
1753
y(GR_SIZE)h(width,)2817 2754 y(GR_SIZE)g(height,)2817
1754
2870 y(GR_IMAGE_ID)f(im-)396 2987 y(ageid\);)396 3216
1755
y Fh(Dra)o(ws)25 b(the)f(image)h(from)f(the)h(speci\002ed)g(image)f(b)n
1756
(uf)n(fer)h(at)g(the)g(speci\002ed)g(position)e(on)h(the)396
1757
3346 y(speci\002ed)h(dra)o(w)o(able)g(using)f(the)g(speci\002ed)h
1758
(graphics)g(conte)o(xt.)k(The)c(width)f(and)h(height)f(v)n(alues)396
1759
3475 y(specify)h(the)g(size)f(of)h(the)g(image)f(to)h(dra)o(w-)f(if)h
1760
(the)g(actual)g(image)f(is)g(a)i(dif)n(ferent)e(size,)h(it)f(will)g(be)
1761
396 3605 y(scaled)h(to)g(\002t.)893 3896 y Fa(id)j Fh(:)50
1762
b(the)24 b(ID)h(of)g(the)g(dra)o(w)o(able)f(to)h(dra)o(w)f(the)h(image)
1763
f(onto)896 4050 y Fa(gc)h Fh(:)50 b(the)24 b(ID)h(of)g(the)g(graphics)f
1764
(conte)o(xt)g(to)g(use)h(when)g(dra)o(wing)f(the)g(image)951
1765
4205 y Fa(x)30 b Fh(:)50 b(the)24 b(X)h(coordinate)f(to)h(dra)o(w)f
1766
(the)h(image)f(at)h(relati)n(v)o(e)f(to)g(the)h(dra)o(w)o(able)948
1767
4359 y Fa(y)33 b Fh(:)50 b(the)24 b(Y)h(coordinate)f(to)h(dra)o(w)f
1768
(the)h(image)f(at)h(relati)n(v)o(e)f(to)g(the)h(dra)o(w)o(able)717
1769
4514 y Fa(width)f Fh(:)50 b(the)24 b(maximum)f(image)i(width)657
1770
4668 y Fa(height)f Fh(:)50 b(the)24 b(maximum)f(image)i(height)594
1771
4822 y Fa(imageid)i Fh(:)50 b(the)24 b(ID)h(of)g(the)g(image)f(b)n(uf)n
1772
(fer)h(containing)e(the)i(image)g(to)f(display)p Black
1773
3784 5278 a Fg(39)p Black eop
1774
%%Page: 40 40
1775
40 39 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
1776
Black 396 583 a Fb(GrDra)n(wIma)o(g)q(eBits)36 b(\(\))396
1777
799 y Fc(void)430 b(GrDrawImageBits)911 b(\(GR_DRAW_ID)52
1778
b(id,)2817 916 y(GR_GC_ID)g(gc,)2817 1032 y(GR_COORD)g(x,)2817
1779
1149 y(GR_COORD)g(y,)2817 1266 y(GR_IMAGE_HDR)g(*pim-)396
1780
1382 y(age\);)396 1611 y Fh(Dra)o(ws)25 b(the)f(image)h(contained)f(in)
1781
g(the)h(speci\002ed)g(image)g(structure)f(onto)g(the)h(speci\002ed)g
1782
(dra)o(w)o(able)396 1741 y(at)g(the)g(speci\002ed)g(coordinates)f
1783
(using)g(the)g(speci\002ed)i(graphics)e(conte)o(xt.)893
1784
2052 y Fa(id)k Fh(:)50 b(the)24 b(ID)h(of)g(the)g(dra)o(w)o(able)f(to)h
1785
(dra)o(w)f(the)h(image)f(onto)896 2207 y Fa(gc)h Fh(:)50
1786
b(the)24 b(ID)h(of)g(the)g(graphics)f(conte)o(xt)g(to)g(use)h(when)g
1787
(dra)o(wing)f(the)g(image)951 2361 y Fa(x)30 b Fh(:)50
1788
b(the)24 b(X)h(coordinate)f(to)h(dra)o(w)f(the)h(image)f(at)h(relati)n
1789
(v)o(e)f(to)g(the)h(dra)o(w)o(able)948 2516 y Fa(y)33
1790
b Fh(:)50 b(the)24 b(Y)h(coordinate)f(to)h(dra)o(w)f(the)h(image)f(at)h
1791
(relati)n(v)o(e)f(to)g(the)h(dra)o(w)o(able)657 2670
1792
y Fa(pimage)f Fh(:)50 b(pointer)24 b(to)g(the)h(image)f(structure)396
1793
3166 y Fb(GrT)-7 b(e)n(xt)34 b(\(\))396 3383 y Fc(void)430
1794
b(GrText)1397 b(\(GR_DRAW_ID)52 b(id,)2817 3499 y(GR_GC_ID)g(gc,)2817
1795
3616 y(GR_COORD)g(x,)2817 3732 y(GR_COORD)g(y,)2817 3849
1796
y(void)h(*str,)2817 3965 y(GR_COUNT)f(count,)2817 4082
1797
y(int)h(flags\);)396 4311 y Fh(Dra)o(ws)25 b(the)f(speci\002ed)h(te)o
1798
(xt)f(string)g(at)h(the)g(speci\002ed)g(position)e(on)h(the)h
1799
(speci\002ed)g(dra)o(w)o(able)f(using)396 4441 y(the)h(speci\002ed)g
1800
(graphics)f(conte)o(xt)g(and)h(\003ags.)31 b(The)25 b(def)o(ault)f
1801
(\003ags)h(specify)g(ASCII)h(encoding)e(and)396 4570
1802
y(baseline)h(alignment.)p Black -2 5278 a Fg(40)p Black
1803
eop
1804
%%Page: 41 41
1805
41 40 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
1806
Black 893 587 a Fa(id)e Fh(:)50 b(the)24 b(ID)h(of)g(the)g(dra)o(w)o
1807
(able)f(to)h(dra)o(w)f(the)h(te)o(xt)f(string)g(onto)896
1808
741 y Fa(gc)h Fh(:)50 b(the)24 b(ID)h(of)g(the)g(graphics)f(conte)o(xt)
1809
g(to)g(use)h(when)g(dra)o(wing)f(the)g(te)o(xt)g(string)951
1810
895 y Fa(x)30 b Fh(:)50 b(the)24 b(X)h(coordinate)f(to)h(dra)o(w)f(the)
1811
h(string)f(at)h(relati)n(v)o(e)e(to)i(the)g(dra)o(w)o(able)948
1812
1050 y Fa(y)33 b Fh(:)50 b(the)24 b(Y)h(coordinate)f(to)h(dra)o(w)f
1813
(the)h(string)f(at)h(relati)n(v)o(e)e(to)i(the)g(dra)o(w)o(able)833
1814
1204 y Fa(str)j Fh(:)50 b(the)24 b(te)o(xt)g(string)g(to)g(dra)o(w)717
1815
1359 y Fa(count)g Fh(:)50 b(the)24 b(number)g(of)h(characters)h(\(not)e
1816
(bytes\))h(in)f(the)h(string)717 1513 y Fa(flags)f Fh(:)50
1817
b(\003ags)25 b(specifying)f(te)o(xt)f(encoding,)h(alignment,)g(etc.)-2
1818
2307 y Ff(e)m(vents)47 b(\(3\))396 2786 y Fe(Name)396
1819
2988 y Fd(events)24 b Fh(\227)396 3381 y Fe(Synopsis)396
1820
3831 y Fc(void)430 b(GrSelectEvents)965 b(\(GR_WINDOW_ID)52
1821
b(wid,)2817 3947 y(GR_EVENT_MASK)f(eventmask\);)396 4064
1822
y(void)430 b(GrGetNextEvent)965 b(\(GR_EVENT)52 b(*ep\);)396
1823
4180 y(void)430 b(GrGetNextEventTimeout)587 b(\(GR_EVENT)52
1824
b(*ep,)2817 4297 y(GR_TIMEOUT)g(timeout\);)396 4413 y(void)430
1825
b(GrCheckNextEvent)857 b(\(GR_EVENT)52 b(*ep\);)396 4530
1826
y(int)484 b(GrPeekEvent)1127 b(\(GR_EVENT)52 b(*ep\);)p
1827
Black 3784 5278 a Fg(41)p Black eop
1828
%%Page: 42 42
1829
42 41 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
1830
Black 396 601 a Fe(Description)396 1116 y(Details)396
1831
1461 y Fb(GrSelectEvents)k(\(\))396 1677 y Fc(void)430
1832
b(GrSelectEvents)965 b(\(GR_WINDOW_ID)52 b(wid,)2817
1833
1793 y(GR_EVENT_MASK)f(event-)396 1910 y(mask\);)396
1834
2139 y Fh(Select)26 b(the)e(e)n(v)o(ent)g(types)g(which)h(should)e(be)i
1835
(returned)g(for)g(the)g(speci\002ed)g(windo)n(w)-6 b(.)833
1836
2451 y Fa(wid)28 b Fh(:)50 b(the)24 b(ID)h(of)g(the)g(windo)n(w)e(to)i
1837
(set)f(the)h(e)n(v)o(ent)f(mask)g(of)475 2605 y Fa(eventmask)i
1838
Fh(:)50 b(a)25 b(bit)f(\002eld)h(specifying)f(the)g(desired)h(e)n(v)o
1839
(ent)f(mask)396 3101 y Fb(GrGetNe)n(xtEvent)35 b(\(\))396
1840
3318 y Fc(void)430 b(GrGetNextEvent)965 b(\(GR_EVENT)52
1841
b(*ep\);)396 3547 y Fh(Gets)25 b(the)f(ne)o(xt)g(e)n(v)o(ent)g(from)h
1842
(the)f(e)n(v)o(ent)g(queue)h(and)g(places)f(it)h(in)f(the)h
1843
(speci\002ed)g(GR_EVENT)396 3676 y(structure.)31 b(If)25
1844
b(the)g(queue)f(is)h(currently)f(empty)-6 b(,)24 b(we)h(sleep)f(until)g
1845
(the)h(ne)o(xt)f(e)n(v)o(ent)f(arri)n(v)o(es)h(from)h(the)396
1846
3806 y(serv)o(er)g(or)g(input)f(is)g(read)h(on)g(a)g(\002le)g
1847
(descriptor)g(pre)n(viously)e(speci\002ed)i(by)f(GrRe)o
1848
(gisterInput\(\).)896 4117 y Fa(ep)h Fh(:)50 b(pointer)24
1849
b(to)g(the)h(GR_EVENT)f(structure)h(to)f(return)h(the)g(e)n(v)o(ent)e
1850
(in)396 4614 y Fb(GrGetNe)n(xtEventTimeout)36 b(\(\))396
1851
4830 y Fc(void)430 b(GrGetNextEventTimeout)587 b(\(GR_EVENT)52
1852
b(*ep,)p Black -2 5278 a Fg(42)p Black eop
1853
%%Page: 43 43
1854
43 42 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
1855
Black 2817 579 a Fc(GR_TIMEOUT)52 b(time-)396 695 y(out\);)396
1856
925 y Fh(Gets)25 b(the)f(ne)o(xt)g(e)n(v)o(ent)g(from)h(the)f(e)n(v)o
1857
(ent)g(queue)h(and)g(places)f(it)h(in)f(the)h(speci\002ed)g(GR_EVENT)
1858
396 1054 y(structure.)31 b(If)25 b(the)g(queue)f(is)h(currently)f
1859
(empty)-6 b(,)24 b(we)h(sleep)f(until)g(the)h(ne)o(xt)f(e)n(v)o(ent)f
1860
(arri)n(v)o(es)h(from)h(the)396 1184 y(serv)o(er)l(,)g(input)f(is)g
1861
(read)h(on)g(a)g(\002le)g(descriptor)g(pre)n(viously)e(speci\002ed)i
1862
(by)f(GrRe)o(gisterInput\(\),)g(or)h(a)396 1313 y(timeout)f(occurs.)30
1863
b(Note)25 b(that)f(a)h(v)n(alue)g(of)g(0)f(for)h(the)g(timeout)e
1864
(parameter)j(doesn')n(t)e(mean)h("timeout)396 1443 y(after)h(0)e
1865
(milliseconds")f(b)n(ut)h(is)g(in)h(f)o(act)g(a)g(magic)f(number)h
1866
(meaning)f("ne)n(v)o(er)g(time)g(out".)896 1754 y Fa(ep)h
1867
Fh(:)50 b(pointer)24 b(to)g(the)h(GR_EVENT)f(structure)h(to)f(return)h
1868
(the)g(e)n(v)o(ent)e(in)598 1909 y Fa(timeout)g Fh(:)50
1869
b(the)24 b(number)g(of)h(milliseconds)e(to)h(w)o(ait)h(before)g(timing)
1870
e(out)396 2405 y Fb(GrChec)n(kNe)n(xtEvent)36 b(\(\))396
1871
2621 y Fc(void)430 b(GrCheckNextEvent)857 b(\(GR_EVENT)52
1872
b(*ep\);)396 2850 y Fh(Gets)25 b(the)f(ne)o(xt)g(e)n(v)o(ent)g(from)h
1873
(the)f(e)n(v)o(ent)g(queue)h(if)g(there)g(is)f(one,)h(or)g(returns)f
1874
(immediately)f(with)h(an)396 2980 y(e)n(v)o(ent)g(type)g(of)h
1875
(GR_EVENT_TYPE_NONE)f(if)h(it)f(is)h(empty)-6 b(.)896
1876
3291 y Fa(ep)25 b Fh(:)50 b(pointer)24 b(to)g(the)h(GR_EVENT)f
1877
(structure)h(to)f(return)h(the)g(e)n(v)o(ent)e(in)396
1878
3788 y Fb(GrP)l(eekEvent)35 b(\(\))396 4004 y Fc(int)484
1879
b(GrPeekEvent)1127 b(\(GR_EVENT)52 b(*ep\);)396 4233
1880
y Fh(Fills)24 b(in)h(the)f(speci\002ed)i(e)n(v)o(ent)d(structure)i
1881
(with)f(a)h(cop)o(y)g(of)f(the)h(ne)o(xt)f(e)n(v)o(ent)g(on)g(the)h
1882
(queue,)g(without)396 4363 y(actually)g(remo)o(ving)e(it)h(from)h(the)f
1883
(queue.)31 b(An)25 b(e)n(v)o(ent)e(type)i(of)g(GR_EVENT_TYPE_NONE)f(is)
1884
396 4492 y(gi)n(v)o(en)g(if)g(the)h(queue)g(is)f(empty)-6
1885
b(.)896 4804 y Fa(ep)25 b Fh(:)50 b(pointer)24 b(to)g(the)h(GR_EVENT)f
1886
(structure)h(to)f(return)h(the)g(e)n(v)o(ent)e(in)p Black
1887
3784 5278 a Fg(43)p Black eop
1888
%%Page: 44 44
1889
44 43 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
1890
Black 706 587 a(Returns)24 b Fh(:)50 b(1)24 b(if)h(an)g(e)n(v)o(ent)f
1891
(w)o(as)h(returned,)f(or)h(0)g(if)g(the)f(queue)h(w)o(as)g(empty)-2
1892
1380 y Ff(f)m(onts)48 b(\(3\))396 1860 y Fe(Name)396
1893
2061 y Fd(fonts)24 b Fh(\227)396 2455 y Fe(Synopsis)396
1894
2904 y Fc(GR_FONT_ID)106 b(GrCreateFont)1073 b(\(GR_CHAR)53
1895
b(*name,)2817 3021 y(GR_COORD)f(height,)2817 3137 y(GR_LOGFONT)g
1896
(*plogfont\);)396 3254 y(void)430 b(GrSetFontSize)1019
1897
b(\(GR_FONT_ID)52 b(fontid,)2817 3370 y(GR_COORD)g(size\);)396
1898
3487 y(void)430 b(GrSetFontRotation)803 b(\(GR_FONT_ID)52
1899
b(fontid,)2817 3604 y(int)h(tenthsdegrees\);)396 3720
1900
y(void)430 b(GrSetFontAttr)1019 b(\(GR_FONT_ID)52 b(fontid,)2817
1901
3837 y(int)h(setflags,)2817 3953 y(int)g(clrflags\);)396
1902
4070 y(void)430 b(GrDestroyFont)1019 b(\(GR_FONT_ID)52
1903
b(fontid\);)396 4186 y(void)430 b(GrGetFontInfo)1019
1904
b(\(GR_FONT_ID)52 b(font,)2817 4303 y(GR_FONT_INFO)g(*fip\);)p
1905
Black -2 5278 a Fg(44)p Black eop
1906
%%Page: 45 45
1907
45 44 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
1908
Black 396 601 a Fe(Description)396 1116 y(Details)396
1909
1461 y Fb(GrCreateFont)k(\(\))396 1677 y Fc(GR_FONT_ID)106
1910
b(GrCreateFont)1073 b(\(GR_CHAR)53 b(*name,)2817 1793
1911
y(GR_COORD)f(height,)2817 1910 y(GR_LOGFONT)g(*plog-)396
1912
2026 y(font\);)396 2256 y Fh(Attempts)23 b(to)h(locate)h(a)f(font)g
1913
(with)g(the)g(desired)h(attrib)n(utes)e(and)h(returns)g(a)h(font)f(ID)h
1914
(number)f(which)396 2385 y(can)h(be)g(used)g(to)f(refer)i(to)f(it.)30
1915
b(If)25 b(the)g(plogfont)e(ar)n(gument)i(is)f(not)g(NULL,)h(the)f(v)n
1916
(alues)g(in)h(that)396 2515 y(structure)g(will)f(be)h(used)f(to)h
1917
(choose)f(a)h(font.)31 b(Otherwise,)24 b(if)h(the)f(height)g(is)h(non)f
1918
(zero,)h(the)g(b)n(uilt)e(in)396 2644 y(font)i(with)f(the)g(closest)g
1919
(height)g(to)h(that)f(speci\002ed)h(will)f(be)h(used.)31
1920
b(If)25 b(the)f(height)g(is)h(zero,)g(the)g(b)n(uilt)396
1921
2774 y(in)g(font)f(with)g(the)h(speci\002ed)g(name)g(will)e(be)i(used.)
1922
31 b(If)25 b(the)g(desired)f(font)h(is)f(not)g(found,)h(the)f(\002rst)
1923
396 2903 y(b)n(uilt)g(in)g(font)h(will)f(be)h(returned)f(as)h(a)g(last)
1924
g(resort.)777 3194 y Fa(name)f Fh(:)50 b(string)23 b(containing)h(the)h
1925
(name)f(of)h(a)g(b)n(uilt)f(in)g(font)h(to)f(look)g(for)657
1926
3349 y Fa(height)g Fh(:)50 b(the)24 b(desired)h(height)f(of)h(the)f
1927
(font)538 3503 y Fa(plogfont)f Fh(:)50 b(pointer)24 b(to)g(a)h(LOGFONT)
1928
g(structure)706 3658 y Fg(Returns)f Fh(:)50 b(a)25 b(font)f(ID)h
1929
(number)f(which)h(can)g(be)g(used)f(to)h(refer)h(to)e(the)h(font)396
1930
4174 y Fb(GrSetFontSiz)q(e)33 b(\(\))396 4391 y Fc(void)430
1931
b(GrSetFontSize)1019 b(\(GR_FONT_ID)52 b(fontid,)2817
1932
4507 y(GR_COORD)g(size\);)396 4736 y Fh(Changes)25 b(the)g(size)g(of)g
1933
(the)f(speci\002ed)h(font)g(to)f(the)h(speci\002ed)g(size.)p
1934
Black 3784 5278 a Fg(45)p Black eop
1935
%%Page: 46 46
1936
46 45 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
1937
Black 654 587 a Fa(fontid)c Fh(:)50 b(the)24 b(ID)h(number)f(of)h(the)g
1938
(font)f(to)h(change)g(the)g(size)f(of)777 741 y Fa(size)g
1939
Fh(:)396 1237 y Fb(GrSetFontRotation)34 b(\(\))396 1454
1940
y Fc(void)430 b(GrSetFontRotation)803 b(\(GR_FONT_ID)52
1941
b(fontid,)2817 1570 y(int)h(tenthsdegrees\);)396 1799
1942
y Fh(Changes)25 b(the)g(rotation)f(of)h(the)f(speci\002ed)h(font)g(to)f
1943
(the)h(speci\002ed)g(angle.)654 2111 y Fa(fontid)i Fh(:)50
1944
b(the)24 b(ID)h(number)f(of)h(the)g(font)f(to)h(rotate)556
1945
2265 y Fa(tenthsde-)396 2395 y(grees)f Fh(:)396 2996
1946
y Fb(GrSetFontAttr)32 b(\(\))396 3212 y Fc(void)430 b(GrSetFontAttr)
1947
1019 b(\(GR_FONT_ID)52 b(fontid,)2817 3329 y(int)h(setflags,)2817
1948
3445 y(int)g(clrflags\);)396 3674 y Fh(Changes)25 b(the)g(attrib)n
1949
(utes)f(\(GR_TFKERNING,)h(GR_TF)-7 b(ANTIALIAS,)396 3804
1950
y(GR_TFUNDERLINE,)25 b(etc.\))h(of)f(the)f(speci\002ed)h(font)g
1951
(according)f(to)h(the)f(set)h(and)g(clear)g(mask)396
1952
3933 y(ar)n(guments.)654 4245 y Fa(fontid)i Fh(:)50 b(the)24
1953
b(ID)h(of)g(the)g(font)f(to)h(set)f(the)h(attrib)n(utes)f(of)538
1954
4399 y Fa(setflags)f Fh(:)50 b(mask)24 b(specifying)g(attrib)n(ute)g
1955
(\003ags)h(to)f(set)538 4554 y Fa(clrflags)f Fh(:)50
1956
b(mask)24 b(specifying)g(attrib)n(ute)g(\003ags)h(to)f(clear)p
1957
Black -2 5278 a Fg(46)p Black eop
1958
%%Page: 47 47
1959
47 46 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
1960
Black 396 583 a Fb(GrDestr)n(o)n(yFont)j(\(\))396 799
1961
y Fc(void)430 b(GrDestroyFont)1019 b(\(GR_FONT_ID)52
1962
b(fontid\);)396 1028 y Fh(Frees)26 b(all)e(resources)i(associated)e
1963
(with)g(the)h(speci\002ed)g(font)f(ID,)h(and)g(if)g(the)f(font)h(is)f
1964
(a)h(non)f(b)n(uilt)g(in)396 1158 y(type)h(and)f(this)g(is)h(the)f
1965
(last)h(ID)g(referring)g(to)f(it,)h(unloads)f(the)g(font)h(from)f
1966
(memory)-6 b(.)654 1470 y Fa(fontid)27 b Fh(:)50 b(the)24
1967
b(ID)h(of)g(the)g(font)f(to)h(destro)o(y)396 1966 y Fb(GrGetFontInf)n
1968
(o)33 b(\(\))396 2182 y Fc(void)430 b(GrGetFontInfo)1019
1969
b(\(GR_FONT_ID)52 b(font,)2817 2299 y(GR_FONT_INFO)g(*fip\);)396
1970
2528 y Fh(Fills)24 b(in)h(the)f(speci\002ed)i(GR_FONT_INFO)f(structure)
1971
f(with)h(information)e(re)o(garding)h(the)396 2657 y(speci\002ed)h
1972
(font.)777 2969 y Fa(font)f Fh(:)836 3123 y Fa(fip)h
1973
Fh(:)50 b(pointer)24 b(to)g(a)h(GR_FONT_INFO)h(structure)-2
1974
3917 y Ff(pointer)48 b(\(3\))396 4397 y Fe(Name)396 4598
1975
y Fd(pointer)24 b Fh(\227)p Black 3780 5278 a Fg(47)p
1976
Black eop
1977
%%Page: 48 48
1978
48 47 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
1979
Black 396 601 a Fe(Synopsis)396 1050 y Fc(void)430 b(GrSetCursor)1127
1980
b(\(GR_WINDOW_ID)52 b(wid,)2817 1166 y(GR_SIZE)h(width,)2817
1981
1283 y(GR_SIZE)g(height,)2817 1400 y(GR_COORD)f(hotx,)2817
1982
1516 y(GR_COORD)g(hoty,)2817 1633 y(GR_COLOR)g(foreground,)2817
1983
1749 y(GR_COLOR)g(background,)2817 1866 y(GR_BITMAP)g(*fbbitmap,)2817
1984
1982 y(GR_BITMAP)g(*bgbitmap\);)396 2099 y(void)430 b(GrMoveCursor)1073
1985
b(\(GR_COORD)52 b(x,)2817 2215 y(GR_COORD)g(y\);)396
1986
2332 y(void)430 b(GrInjectPointerEvent)641 b(\(MWCOORD)53
1987
b(x,)2817 2449 y(MWCOORD)g(y,)2817 2565 y(int)g(button,)2817
1988
2682 y(int)g(visible\);)396 3175 y Fe(Description)396
1989
3690 y(Details)396 4035 y Fb(GrSetCur)n(sor)33 b(\(\))396
1990
4251 y Fc(void)430 b(GrSetCursor)1127 b(\(GR_WINDOW_ID)52
1991
b(wid,)2817 4368 y(GR_SIZE)h(width,)2817 4484 y(GR_SIZE)g(height,)2817
1992
4601 y(GR_COORD)f(hotx,)2817 4718 y(GR_COORD)g(hoty,)2817
1993
4834 y(GR_COLOR)g(foreground,)p Black -2 5278 a Fg(48)p
1994
Black eop
1995
%%Page: 49 49
1996
49 48 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
1997
Black 2817 579 a Fc(GR_COLOR)52 b(background,)2817 695
1998
y(GR_BITMAP)g(*fbbitmap,)2817 812 y(GR_BITMAP)g(*bg-)396
1999
929 y(bitmap\);)396 1158 y Fh(Speci\002es)26 b(a)f(cursor)g(\(mouse)f
2000
(pointer)g(graphic\))h(to)g(display)e(when)i(the)g(mouse)f(pointer)g
2001
(is)g(o)o(v)o(er)396 1287 y(the)h(speci\002ed)g(windo)n(w)e(and)i
2002
(subsequently)e(created)j(children.)k(Points)24 b(in)h(the)f(bitmap)g
2003
(which)396 1417 y(ha)n(v)o(e)h(neither)f(the)h(fore)o(ground)f(or)h
2004
(background)f(bits)g(set)h(are)g(not)f(painted.)833 1728
2005
y Fa(wid)k Fh(:)50 b(the)24 b(ID)h(of)g(the)g(windo)n(w)e(to)i(set)f
2006
(the)h(cursor)g(of)717 1883 y Fa(width)f Fh(:)50 b(the)24
2007
b(width)g(of)h(the)g(pointer)f(bitmap)657 2037 y Fa(height)g
2008
Fh(:)50 b(the)24 b(height)g(of)h(the)g(pointer)f(bitmap)772
2009
2192 y Fa(hotx)29 b Fh(:)50 b(the)24 b(X)h(coordinate)f(within)g(the)h
2010
(bitmap)e(used)i(as)g(the)f(tar)n(get)h(of)g(the)g(pointer)769
2011
2346 y Fa(hoty)32 b Fh(:)50 b(the)24 b(Y)h(coordinate)f(within)g(the)h
2012
(bitmap)e(used)i(as)g(the)f(tar)n(get)h(of)g(the)g(pointer)439
2013
2500 y Fa(foreground)i Fh(:)e(the)f(colour)h(to)f(use)h(for)g(the)f
2014
(fore)o(ground)h(of)f(the)h(pointer)439 2759 y Fa(background)i
2015
Fh(:)e(the)f(colour)h(to)f(use)h(for)g(the)f(background)h(of)g(the)f
2016
(pointer)537 3019 y Fa(fbbitmap)g Fh(:)537 3173 y Fa(bgbitmap)g
2017
Fh(:)50 b(pointer)24 b(to)g(bitmap)g(data)h(specifying)f(the)g
2018
(background)g(of)h(the)g(pointer)396 3669 y Fb(GrMo)n(veCur)n(sor)33
2019
b(\(\))396 3886 y Fc(void)430 b(GrMoveCursor)1073 b(\(GR_COORD)52
2020
b(x,)2817 4002 y(GR_COORD)g(y\);)396 4231 y Fh(Mo)o(v)o(es)23
2021
b(the)i(cursor)g(\(mouse)f(pointer\))g(to)h(the)f(speci\002ed)i
2022
(coordinates.)k(The)24 b(coordinates)h(are)396 4361 y(relati)n(v)o(e)f
2023
(to)g(the)h(root)f(windo)n(w)-6 b(,)23 b(where)j(\(0,0\))e(is)h(the)f
2024
(upper)h(left)g(hand)f(corner)i(of)f(the)f(screen.)32
2025
b(The)396 4490 y(reference)27 b(point)c(used)i(for)g(the)g(pointer)f
2026
(is)g(that)g(of)h(the)g("hot)f(spot".)29 b(After)d(mo)o(ving)c(the)j
2027
(pointer)l(,)396 4620 y(the)g(graphic)g(used)f(for)h(the)g(pointer)f
2028
(will)g(change)h(to)f(the)h(graphic)g(de\002ned)g(for)g(use)g(in)f(the)
2029
396 4749 y(windo)n(w)g(which)g(it)g(is)h(o)o(v)o(er)-5
2030
b(.)p Black 3784 5278 a Fg(49)p Black eop
2031
%%Page: 50 50
2032
50 49 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
2033
Black 951 587 a Fa(x)f Fh(:)50 b(the)24 b(X)h(coordinate)f(to)h(mo)o(v)
2034
o(e)e(the)i(pointer)f(to)948 741 y Fa(y)33 b Fh(:)50
2035
b(the)24 b(Y)h(coordinate)f(to)h(mo)o(v)o(e)e(the)i(pointer)f(to)396
2036
1258 y Fb(GrInjectP)-5 b(ointerEvent)35 b(\(\))396 1474
2037
y Fc(void)430 b(GrInjectPointerEvent)641 b(\(MWCOORD)53
2038
b(x,)2817 1590 y(MWCOORD)g(y,)2817 1707 y(int)g(button,)2817
2039
1824 y(int)g(visible\);)396 2053 y Fh(Sets)25 b(the)g(pointer)f(in)l
2040
(visible)f(if)i(the)g(visible)e(parameter)i(is)g(GR_F)-7
2041
b(ALSE,)25 b(or)g(visible)e(if)i(it)f(is)396 2182 y(GR_TR)l(UE,)h(then)
2042
g(mo)o(v)o(es)e(the)i(pointer)f(to)g(the)h(speci\002ed)g(position)e
2043
(and)i(generates)g(a)g(mouse)396 2312 y(e)n(v)o(ent)f(with)g(the)h
2044
(speci\002ed)g(b)n(utton)e(status.)30 b(Also)24 b(performs)h(a)g
2045
(GrFlush\(\))g(so)f(that)g(the)h(e)n(v)o(ent)f(tak)o(es)396
2046
2441 y(ef)n(fect)h(immediately)-6 b(.)951 2753 y Fa(x)30
2047
b Fh(:)50 b(the)24 b(X)h(coordinate)f(of)h(the)g(pointer)f(e)n(v)o(ent)
2048
g(rele)n(v)n(ant)g(to)g(the)h(root)f(windo)n(w)948 2907
2049
y Fa(y)33 b Fh(:)50 b(the)24 b(Y)h(coordinate)f(of)h(the)g(pointer)f(e)
2050
n(v)o(ent)g(rele)n(v)n(ant)g(to)g(the)h(root)f(windo)n(w)657
2051
3062 y Fa(button)g Fh(:)50 b(the)24 b(pointer)g(b)n(utton)g(status)598
2052
3216 y Fa(visible)f Fh(:)50 b(whether)24 b(to)h(display)e(the)i
2053
(pointer)f(after)i(the)e(e)n(v)o(ent)-2 4010 y Ff(colour)m(s)48
2054
b(\(3\))396 4489 y Fe(Name)396 4691 y Fd(colours)24 b
2055
Fh(\227)p Black -2 5278 a Fg(50)p Black eop
2056
%%Page: 51 51
2057
51 50 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
2058
Black 396 601 a Fe(Synopsis)396 1050 y Fc(void)430 b
2059
(GrGetSystemPalette)749 b(\(GR_PALETTE)52 b(*pal\);)396
2060
1166 y(void)430 b(GrSetSystemPalette)749 b(\(GR_COUNT)52
2061
b(first,)2817 1283 y(GR_PALETTE)g(*pal\);)396 1400 y(void)430
2062
b(GrFindColor)1127 b(\(GR_COLOR)52 b(c,)2817 1516 y(GR_PIXELVAL)g
2063
(*retpixel\);)396 1633 y(GR_COLOR)214 b(GrGetSysColor)1019
2064
b(\(int)53 b(index\);)396 2126 y Fe(Description)396 2641
2065
y(Details)396 2986 y Fb(GrGetSystemP)l(alette)36 b(\(\))396
2066
3202 y Fc(void)430 b(GrGetSystemPalette)749 b(\(GR_PALETTE)52
2067
b(*pal\);)396 3431 y Fh(Retrie)n(v)o(es)24 b(the)h(system)f(palette)g
2068
(and)h(places)g(it)f(in)h(the)f(speci\002ed)h(palette)g(structure.)837
2069
3743 y Fa(pal)f Fh(:)50 b(pointer)24 b(to)g(a)h(palette)g(structure)f
2070
(to)h(\002ll)f(in)h(with)f(the)g(system)g(palette)396
2071
4239 y Fb(GrSetSystemP)l(alette)36 b(\(\))396 4455 y
2072
Fc(void)430 b(GrSetSystemPalette)749 b(\(GR_COUNT)52
2073
b(first,)2817 4572 y(GR_PALETTE)g(*pal\);)396 4801 y
2074
Fh(Sets)25 b(the)g(system)f(palette)g(to)g(the)h(v)n(alues)f(stored)g
2075
(in)h(the)g(speci\002ed)g(palette)f(structure.)30 b(The)25
2076
b(v)n(alues)p Black 3784 5278 a Fg(51)p Black eop
2077
%%Page: 52 52
2078
52 51 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
2079
Black 396 579 a Fh(before)26 b(the)e(speci\002ed)h(\002rst)g(v)n(alue)f
2080
(are)i(not)e(set.)717 890 y Fa(first)g Fh(:)50 b(the)24
2081
b(\002rst)h(palette)g(v)n(alue)f(to)g(set)837 1045 y
2082
Fa(pal)g Fh(:)50 b(pointer)24 b(to)g(a)h(palette)g(structure)f
2083
(containing)g(the)g(ne)n(w)h(v)n(alues)396 1541 y Fb(GrFindColor)34
2084
b(\(\))396 1757 y Fc(void)430 b(GrFindColor)1127 b(\(GR_COLOR)52
2085
b(c,)2817 1874 y(GR_PIXELVAL)g(*ret-)396 1991 y(pixel\);)396
2086
2220 y Fh(Calculates)25 b(the)g(pix)o(el)f(v)n(alue)g(to)g(use)h(to)f
2087
(display)g(the)h(speci\002ed)g(colour)f(v)n(alue.)30
2088
b(The)25 b(colour)g(v)n(alue)396 2349 y(is)g(speci\002ed)g(as)g(a)g
2089
(GR_COLOR,)g(which)g(is)f(a)h(32)g(bit)f(truecolour)g(v)n(alue)g
2090
(stored)h(as)g(RGBX.)g(The)396 2479 y(pix)o(el)f(v)n(alue)g(size)h
2091
(depends)f(on)h(the)g(architecture.)956 2790 y Fa(c)g
2092
Fh(:)50 b(the)24 b(colour)h(v)n(alue)f(to)g(\002nd)538
2093
2945 y Fa(retpixel)f Fh(:)50 b(pointer)24 b(to)g(the)h(returned)g(pix)o
2094
(el)e(v)n(alue)396 3441 y Fb(GrGetSysColor)34 b(\(\))396
2095
3657 y Fc(GR_COLOR)214 b(GrGetSysColor)1019 b(\(int)53
2096
b(index\);)712 4060 y Fa(index)29 b Fh(:)50 b(an)25 b(inde)o(x)e(into)h
2097
(the)h(serv)o(er')-5 b(s)24 b(colour)h(look)f(up)g(table)706
2098
4214 y Fg(Returns)g Fh(:)50 b(the)24 b(colour)h(found)f(at)h(the)f
2099
(speci\002ed)i(inde)o(x)p Black -2 5278 a Fg(52)p Black
2100
eop
2101
%%Page: 53 53
2102
53 52 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
2103
Black -2 621 a Ff(regions)47 b(\(3\))396 1101 y Fe(Name)396
2104
1303 y Fd(regions)24 b Fh(\227)396 1696 y Fe(Synopsis)396
2105
2146 y Fc(GR_REGION_ID)52 b(GrNewRegion)1073 b(\(void\);)396
2106
2262 y(void)430 b(GrDestroyRe-)396 2379 y(gion)914 b(\(GR_REGION_ID)51
2107
b(region\);)396 2495 y(void)430 b(GrUnionRectWithRe-)396
2108
2612 y(gion)591 b(\(GR_REGION_ID)51 b(region,)2817 2728
2109
y(GR_RECT)i(*rect\);)396 2845 y(void)430 b(GrUnionRe-)396
2110
2962 y(gion)1022 b(\(GR_REGION_ID)51 b(dst_rgn,)2817
2111
3078 y(GR_REGION_ID)h(src_rgn1,)2817 3195 y(GR_REGION_ID)g(src_rgn2\);)
2112
396 3311 y(void)430 b(GrSubtractRe-)396 3428 y(gion)860
2113
b(\(GR_REGION_ID)51 b(dst_rgn,)2817 3544 y(GR_REGION_ID)h(src_rgn1,)
2114
2817 3661 y(GR_REGION_ID)g(src_rgn2\);)396 3777 y(void)430
2115
b(GrXorRe-)396 3894 y(gion)1129 b(\(GR_REGION_ID)51 b(dst_rgn,)2817
2116
4011 y(GR_REGION_ID)h(src_rgn1,)2817 4127 y(GR_REGION_ID)g(src_rgn2\);)
2117
396 4244 y(void)430 b(GrIntersectRe-)396 4360 y(gion)806
2118
b(\(GR_REGION_ID)52 b(dst_rgn,)2817 4477 y(GR_REGION_ID)g(src_rgn1,)
2119
2817 4593 y(GR_REGION_ID)g(src_rgn2\);)396 4710 y(void)430
2120
b(GrSetGCRegion)1019 b(\(GR_GC_ID)52 b(gc,)2817 4827
2121
y(GR_REGION_ID)g(region\);)p Black 3784 5278 a Fg(53)p
2122
Black eop
2123
%%Page: 54 54
2124
54 53 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
2125
Black 396 579 a Fc(GR_BOOL)268 b(GrPointInRe-)396 695
2126
y(gion)914 b(\(GR_REGION_ID)51 b(region,)2817 812 y(GR_COORD)h(x,)2817
2127
929 y(GR_COORD)g(y\);)396 1045 y(int)484 b(GrRectInRe-)396
2128
1162 y(gion)968 b(\(GR_REGION_ID)51 b(region,)2817 1278
2129
y(GR_COORD)h(x,)2817 1395 y(GR_COORD)g(y,)2817 1511 y(GR_COORD)g(w,)
2130
2817 1628 y(GR_COORD)g(h\);)396 1745 y(GR_BOOL)268 b(GrEmptyRe-)396
2131
1861 y(gion)1022 b(\(GR_REGION_ID)51 b(region\);)396
2132
1978 y(GR_BOOL)268 b(GrEqualRegion)1019 b(\(GR_REGION_ID)52
2133
b(rgn1,)2817 2094 y(GR_REGION_ID)g(rgn2\);)396 2211 y(void)430
2134
b(GrOffsetRe-)396 2327 y(gion)968 b(\(GR_REGION_ID)51
2135
b(region,)2817 2444 y(GR_SIZE)i(dx,)2817 2560 y(GR_SIZE)g(dy\);)396
2136
2677 y(int)484 b(GrGetRegion-)396 2794 y(Box)968 b(\(GR_REGION_ID)51
2137
b(region,)2817 2910 y(GR_RECT)i(*rect\);)396 3027 y(GR_REGION_ID)f
2138
(GrNewPolygonRegion)695 b(\(int)53 b(mode,)2817 3143
2139
y(GR_COUNT)f(count,)2817 3260 y(GR_POINT)g(*points\);)396
2140
3753 y Fe(Description)396 4268 y(Details)396 4613 y Fb(GrNe)n(wRegion)
2141
35 b(\(\))396 4829 y Fc(GR_REGION_ID)52 b(GrNewRegion)1073
2142
b(\(void\);)p Black -2 5278 a Fg(54)p Black eop
2143
%%Page: 55 55
2144
55 54 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
2145
Black 396 579 a Fh(Creates)c(a)f(ne)n(w)f(re)o(gion)g(structure)h(and)g
2146
(returns)f(the)h(ID)g(used)f(to)h(refer)h(to)e(it.)30
2147
b(The)25 b(structure)g(is)396 708 y(initialised)e(with)h(a)h(set)g(of)g
2148
(def)o(ault)f(parameters.)706 1020 y Fg(Returns)g Fh(:)50
2149
b(the)24 b(ID)h(of)g(the)g(ne)n(wly)f(created)h(re)o(gion)396
2150
1516 y Fb(GrDestr)n(o)n(yRegion)34 b(\(\))396 1733 y
2151
Fc(void)430 b(GrDestroyRegion)911 b(\(GR_REGION_ID)52
2152
b(re-)396 1849 y(gion\);)396 2078 y Fh(Destro)o(ys)24
2153
b(the)h(re)o(gion)f(structure)g(with)g(the)h(speci\002ed)g(ID.)657
2154
2390 y Fa(region)f Fh(:)50 b(the)24 b(ID)h(of)g(the)g(re)o(gion)f
2155
(structure)g(to)h(destro)o(y)396 2886 y Fb(GrUnionRectWithRegion)36
2156
b(\(\))396 3102 y Fc(void)430 b(GrUnionRectWithRegion)587
2157
b(\(GR_REGION_ID)52 b(re-)396 3219 y(gion,)2817 3336
2158
y(GR_RECT)h(*rect\);)396 3565 y Fh(Mak)o(es)25 b(a)g(union)f(of)h(the)f
2159
(speci\002ed)h(re)o(gion)f(and)h(the)g(speci\002ed)g(rectangle)g(and)g
2160
(places)g(the)f(result)396 3694 y(back)h(in)g(the)f(source)h(re)o
2161
(gion.)657 4006 y Fa(region)f Fh(:)50 b(the)24 b(ID)h(of)g(the)g(re)o
2162
(gion)f(to)g(modify)777 4160 y Fa(rect)g Fh(:)50 b(a)25
2163
b(pointer)f(to)g(the)h(rectangle)g(to)f(add)h(to)g(the)f(re)o(gion)396
2164
4657 y Fb(GrUnionRegion)35 b(\(\))396 4873 y Fc(void)430
2165
b(GrUnionRe-)p Black 3784 5278 a Fg(55)p Black eop
2166
%%Page: 56 56
2167
56 55 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
2168
Black 396 579 a Fc(gion)1022 b(\(GR_REGION_ID)51 b(dst_rgn,)2817
2169
695 y(GR_REGION_ID)h(src_rgn1,)2817 812 y(GR_REGION_ID)g(src_rgn2\);)
2170
396 1041 y Fh(Mak)o(es)25 b(a)g(union)f(of)h(the)f(speci\002ed)h
2171
(source)g(re)o(gions)f(and)h(places)g(the)f(result)h(in)f(the)h
2172
(speci\002ed)396 1171 y(destination)e(re)o(gion.)598
2173
1482 y Fa(dst_rgn)g Fh(:)50 b(the)24 b(ID)h(of)g(the)g(destination)e
2174
(re)o(gion)538 1637 y Fa(src_rgn1)g Fh(:)50 b(the)24
2175
b(ID)h(of)g(the)g(\002rst)g(source)g(re)o(gion)538 1791
2176
y Fa(src_rgn2)e Fh(:)50 b(the)24 b(ID)h(of)g(the)g(second)f(source)h
2177
(re)o(gion)396 2288 y Fb(GrSubtractRegion)34 b(\(\))396
2178
2504 y Fc(void)430 b(GrSubtractRe-)396 2620 y(gion)860
2179
b(\(GR_REGION_ID)51 b(dst_rgn,)2817 2737 y(GR_REGION_ID)h(src_rgn1,)
2180
2817 2853 y(GR_REGION_ID)g(src_rgn2\);)396 3083 y Fh(Subtracts)25
2181
b(the)g(second)f(source)h(re)o(gion)f(from)h(the)f(\002rst)h(source)g
2182
(re)o(gion)f(and)h(places)g(the)f(result)h(in)396 3212
2183
y(the)g(speci\002ed)g(destination)e(re)o(gion.)598 3524
2184
y Fa(dst_rgn)g Fh(:)50 b(the)24 b(ID)h(of)g(the)g(destination)e(re)o
2185
(gion)538 3678 y Fa(src_rgn1)g Fh(:)50 b(the)24 b(ID)h(of)g(the)g
2186
(\002rst)g(source)g(re)o(gion)538 3832 y Fa(src_rgn2)e
2187
Fh(:)50 b(the)24 b(ID)h(of)g(the)g(second)f(source)h(re)o(gion)396
2188
4329 y Fb(GrXorRegion)33 b(\(\))396 4545 y Fc(void)430
2189
b(GrXorRe-)396 4662 y(gion)1129 b(\(GR_REGION_ID)51 b(dst_rgn,)2817
2190
4778 y(GR_REGION_ID)h(src_rgn1,)p Black -2 5278 a Fg(56)p
2191
Black eop
2192
%%Page: 57 57
2193
57 56 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
2194
Black 2817 579 a Fc(GR_REGION_ID)52 b(src_rgn2\);)396
2195
808 y Fh(Performs)25 b(a)h(logical)e(e)o(xclusi)n(v)o(e)e(OR)k
2196
(operation)e(on)g(the)h(speci\002ed)g(source)g(re)o(gions)f(and)g
2197
(places)396 938 y(the)h(result)f(in)h(the)f(destination)f(re)o(gion.)30
2198
b(The)25 b(destination)e(re)o(gion)h(will)g(contain)g(only)g(the)h
2199
(parts)g(of)396 1067 y(the)g(source)g(re)o(gions)f(which)g(do)g(not)h
2200
(o)o(v)o(erlap.)598 1379 y Fa(dst_rgn)e Fh(:)50 b(the)24
2201
b(ID)h(of)g(the)g(destination)e(re)o(gion)538 1533 y
2202
Fa(src_rgn1)g Fh(:)50 b(the)24 b(ID)h(of)g(the)g(\002rst)g(source)g(re)
2203
o(gion)538 1688 y Fa(src_rgn2)e Fh(:)50 b(the)24 b(ID)h(of)g(the)g
2204
(second)f(source)h(re)o(gion)396 2184 y Fb(GrInter)n(sectRegion)36
2205
b(\(\))396 2400 y Fc(void)430 b(GrIntersectRe-)396 2517
2206
y(gion)806 b(\(GR_REGION_ID)52 b(dst_rgn,)2817 2633 y(GR_REGION_ID)g
2207
(src_rgn1,)2817 2750 y(GR_REGION_ID)g(src_rgn2\);)396
2208
2979 y Fh(Calculates)25 b(the)g(intersection)f(of)h(the)f(tw)o(o)h
2209
(speci\002ed)g(source)g(re)o(gions)e(and)i(places)g(the)g(result)f(in)
2210
396 3108 y(the)h(speci\002ed)g(destination)e(re)o(gion.)30
2211
b(The)25 b(destination)e(re)o(gion)h(will)g(contain)g(only)g(the)h
2212
(parts)f(of)396 3238 y(the)h(source)g(re)o(gions)f(which)g(o)o(v)o
2213
(erlap)g(each)h(other)-5 b(.)598 3550 y Fa(dst_rgn)23
2214
b Fh(:)50 b(the)24 b(ID)h(of)g(the)g(destination)e(re)o(gion)538
2215
3704 y Fa(src_rgn1)g Fh(:)50 b(the)24 b(ID)h(of)g(the)g(\002rst)g
2216
(source)g(re)o(gion)538 3858 y Fa(src_rgn2)e Fh(:)50
2217
b(the)24 b(ID)h(of)g(the)g(second)f(source)h(re)o(gion)396
2218
4355 y Fb(GrSetGCRegion)35 b(\(\))396 4571 y Fc(void)430
2219
b(GrSetGCRegion)1019 b(\(GR_GC_ID)52 b(gc,)2817 4688
2220
y(GR_REGION_ID)g(re-)396 4804 y(gion\);)p Black 3780
2221
5278 a Fg(57)p Black eop
2222
%%Page: 58 58
2223
58 57 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
2224
Black 396 579 a Fh(Sets)25 b(the)g(clip)f(mask)g(of)h(the)g
2225
(speci\002ed)g(graphics)g(conte)o(xt)e(to)i(the)f(speci\002ed)h(re)o
2226
(gion.)30 b(Subsequent)396 708 y(dra)o(wing)24 b(operations)g(using)g
2227
(this)g(graphics)g(conte)o(xt)g(will)g(not)g(dra)o(w)h(outside)e(the)i
2228
(speci\002ed)396 838 y(re)o(gion.)30 b(The)25 b(re)o(gion)f(ID)h(can)g
2229
(be)g(set)g(to)f(0)h(to)f(remo)o(v)o(e)g(the)h(clipping)e(re)o(gion)h
2230
(from)h(the)f(speci\002ed)396 967 y(graphics)h(conte)o(xt.)896
2231
1279 y Fa(gc)g Fh(:)50 b(the)24 b(ID)h(of)g(the)g(graphics)f(conte)o
2232
(xt)g(to)g(set)h(the)g(clip)f(mask)g(of)657 1433 y Fa(region)g
2233
Fh(:)50 b(the)24 b(ID)h(of)g(the)g(re)o(gion)f(to)g(use)h(as)g(the)f
2234
(clip)h(mask)396 1930 y Fb(GrP)-5 b(ointInRegion)35 b(\(\))396
2235
2146 y Fc(GR_BOOL)268 b(GrPointInRegion)911 b(\(GR_REGION_ID)52
2236
b(re-)396 2263 y(gion,)2817 2379 y(GR_COORD)g(x,)2817
2237
2496 y(GR_COORD)g(y\);)396 2725 y Fh(T)-7 b(ests)25 b(whether)f(the)h
2238
(speci\002ed)g(point)f(is)g(within)g(the)g(speci\002ed)h(re)o(gion,)f
2239
(and)h(then)f(returns)h(either)396 2854 y(T)m(rue)g(or)g(F)o(alse)f
2240
(depending)g(on)h(the)g(result.)657 3166 y Fa(region)f
2241
Fh(:)50 b(the)24 b(ID)h(of)g(the)g(re)o(gion)f(to)g(e)o(xamine)951
2242
3320 y Fa(x)30 b Fh(:)50 b(the)24 b(X)h(coordinate)f(of)h(the)g(point)f
2243
(to)g(test)g(for)948 3475 y Fa(y)33 b Fh(:)50 b(the)24
2244
b(Y)h(coordinate)f(of)h(the)g(point)f(to)g(test)g(for)706
2245
3629 y Fg(Returns)g Fh(:)50 b(T)m(rue)24 b(if)h(the)f(point)g(is)h
2246
(within)e(the)i(re)o(gion,)f(or)h(F)o(alse)f(otherwise)396
2247
4126 y Fb(GrRectInRegion)36 b(\(\))396 4342 y Fc(int)484
2248
b(GrRectInRegion)965 b(\(GR_REGION_ID)52 b(re-)396 4458
2249
y(gion,)2817 4575 y(GR_COORD)g(x,)2817 4691 y(GR_COORD)g(y,)2817
2250
4808 y(GR_COORD)g(w,)p Black -2 5278 a Fg(58)p Black
2251
eop
2252
%%Page: 59 59
2253
59 58 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
2254
Black 2817 579 a Fc(GR_COORD)52 b(h\);)396 808 y Fh(T)-7
2255
b(ests)25 b(whether)f(the)h(speci\002ed)g(rectangle)g(is)f(contained)h
2256
(within)e(the)i(speci\002ed)g(re)o(gion.)30 b(Returns)396
2257
938 y(GR_RECT_OUT)c(if)e(it)h(is)f(not)g(inside)g(it)g(at)h(all,)g
2258
(GR_RECT_ALLIN)g(if)g(it)f(is)g(completely)396 1067 y(contained)h
2259
(within)e(the)i(re)o(gion,)f(or)g(GR_RECT_P)-9 b(AR)j(TIN)27
2260
b(if)d(it)h(is)f(partially)g(contained)g(within)396 1197
2261
y(the)h(re)o(gion.)657 1508 y Fa(region)f Fh(:)50 b(the)24
2262
b(ID)h(of)g(the)g(re)o(gion)f(to)g(e)o(xamine)951 1663
2263
y Fa(x)30 b Fh(:)50 b(the)24 b(X)h(coordinates)f(of)h(the)g(rectangle)g
2264
(to)f(test)948 1817 y Fa(y)33 b Fh(:)50 b(the)24 b(Y)h(coordinates)f
2265
(of)h(the)g(rectangle)g(to)f(test)947 1971 y Fa(w)34
2266
b Fh(:)50 b(the)24 b(width)g(of)h(the)g(rectangle)g(to)f(test)956
2267
2126 y Fa(h)h Fh(:)50 b(the)24 b(height)g(of)h(the)g(rectangle)g(to)f
2268
(test)706 2280 y Fg(Returns)g Fh(:)50 b(GR_RECT_P)-9
2269
b(AR)j(TIN,)26 b(GR_RECT_ALLIN,)f(or)g(GR_RECT_OUT)396
2270
2777 y Fb(GrEmptyRegion)35 b(\(\))396 2993 y Fc(GR_BOOL)268
2271
b(GrEmptyRegion)1019 b(\(GR_REGION_ID)52 b(re-)396 3109
2272
y(gion\);)396 3339 y Fh(Determines)24 b(whether)h(the)g(speci\002ed)g
2273
(re)o(gion)f(is)g(empty)-6 b(,)24 b(and)g(returns)h(GR_TR)l(UE)g(if)g
2274
(it)f(is,)h(or)396 3468 y(GR_F)-7 b(ALSE)25 b(otherwise.)657
2275
3770 y Fa(region)f Fh(:)50 b(the)24 b(ID)h(of)g(the)g(re)o(gion)f(to)g
2276
(e)o(xamine)706 3924 y Fg(Returns)g Fh(:)50 b(GR_TR)l(UE)25
2277
b(if)g(the)f(re)o(gion)g(is)h(empty)-6 b(,)23 b(or)i(GR_F)-7
2278
b(ALSE)25 b(if)g(it)f(is)g(not)396 4430 y Fb(GrEqualRegion)35
2279
b(\(\))396 4647 y Fc(GR_BOOL)268 b(GrEqualRegion)1019
2280
b(\(GR_REGION_ID)52 b(rgn1,)2817 4763 y(GR_REGION_ID)g(rgn2\);)p
2281
Black 3784 5278 a Fg(59)p Black eop
2282
%%Page: 60 60
2283
60 59 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
2284
Black 396 579 a Fh(Determines)24 b(whether)h(the)g(speci\002ed)g(re)o
2285
(gions)f(are)h(identical,)f(and)h(returns)f(GR_TR)l(UE)i(if)e(it)h(is,)
2286
396 708 y(or)g(GR_F)-7 b(ALSE)25 b(otherwise.)777 1010
2287
y Fa(rgn1)f Fh(:)50 b(the)24 b(ID)h(of)g(the)g(\002rst)g(re)o(gion)f
2288
(to)g(e)o(xamine)777 1165 y Fa(rgn2)g Fh(:)50 b(the)24
2289
b(ID)h(of)g(the)g(second)f(re)o(gion)g(to)h(e)o(xamine)706
2290
1319 y Fg(Returns)f Fh(:)50 b(GR_TR)l(UE)25 b(if)g(the)f(re)o(gions)g
2291
(are)h(equal,)g(or)g(GR_F)-7 b(ALSE)25 b(otherwise)396
2292
1825 y Fb(GrOffsetRegion)35 b(\(\))396 2041 y Fc(void)430
2293
b(GrOffsetRegion)965 b(\(GR_REGION_ID)52 b(re-)396 2158
2294
y(gion,)2817 2275 y(GR_SIZE)h(dx,)2817 2391 y(GR_SIZE)g(dy\);)396
2295
2620 y Fh(Of)n(fsets)24 b(the)h(speci\002ed)g(re)o(gion)f(by)h(the)f
2296
(speci\002ed)h(distance.)657 2932 y Fa(region)f Fh(:)50
2297
b(the)24 b(ID)h(of)g(the)g(re)o(gion)f(to)g(of)n(fset)891
2298
3086 y Fa(dx)30 b Fh(:)50 b(the)24 b(distance)h(to)f(of)n(fset)g(the)h
2299
(re)o(gion)f(by)g(in)h(the)f(X)h(axis)888 3241 y Fa(dy)33
2300
b Fh(:)50 b(the)24 b(distance)h(to)f(of)n(fset)g(the)h(re)o(gion)f(by)g
2301
(in)h(the)f(Y)h(axis)396 3737 y Fb(GrGetRegionBo)l(x)36
2302
b(\(\))396 3953 y Fc(int)484 b(GrGetRegionBox)965 b(\(GR_REGION_ID)52
2303
b(re-)396 4070 y(gion,)2817 4186 y(GR_RECT)h(*rect\);)396
2304
4416 y Fh(Fills)24 b(in)h(the)f(speci\002ed)i(rectangle)f(structure)f
2305
(with)g(a)h(bounding)f(box)g(that)g(w)o(ould)g(completely)396
2306
4545 y(enclose)h(the)g(speci\002ed)g(re)o(gion,)f(and)g(also)h(returns)
2307
f(the)h(type)f(of)h(the)g(speci\002ed)g(re)o(gion.)p
2308
Black -2 5278 a Fg(60)p Black eop
2309
%%Page: 61 61
2310
61 60 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
2311
Black 657 587 a Fa(region)24 b Fh(:)50 b(the)24 b(ID)h(of)g(the)g(re)o
2312
(gion)f(to)g(get)h(the)f(bounding)g(box)g(of)777 741
2313
y Fa(rect)g Fh(:)50 b(pointer)24 b(to)g(a)h(rectangle)g(structure)706
2314
895 y Fg(Returns)f Fh(:)50 b(the)24 b(re)o(gion)g(type)396
2315
1392 y Fb(GrNe)n(wP)-5 b(ol)n(ygonRegion)36 b(\(\))396
2316
1608 y Fc(GR_REGION_ID)52 b(GrNewPolygonRegion)695 b(\(int)53
2317
b(mode,)2817 1725 y(GR_COUNT)f(count,)2817 1841 y(GR_POINT)g
2318
(*points\);)396 2070 y Fh(Creates)26 b(a)f(ne)n(w)f(re)o(gion)g
2319
(structure,)h(\002lls)f(it)h(with)f(the)g(re)o(gion)g(described)h(by)f
2320
(the)h(speci\002ed)396 2200 y(polygon,)f(and)g(returns)h(the)g(ID)g
2321
(used)f(to)h(refer)g(to)g(it.)777 2511 y Fa(mode)f Fh(:)50
2322
b(the)24 b(polygon)g(mode)g(to)g(use)h(\(GR_POL)-10 b(Y_EVENODD)25
2323
b(or)1094 2641 y(GR_POL)-10 b(Y_WINDING\))717 2795 y
2324
Fa(count)24 b Fh(:)50 b(the)24 b(number)g(of)h(points)f(in)g(the)h
2325
(polygon)657 2950 y Fa(points)f Fh(:)50 b(pointer)24
2326
b(to)g(an)h(array)h(of)f(point)e(structures)h(describing)g(the)h
2327
(polygon)706 3104 y Fg(Returns)f Fh(:)50 b(the)24 b(ID)h(of)g(the)g(ne)
2328
n(wly)f(allocated)g(re)o(gion)g(structure,)h(or)f(0)h(on)g(error)-2
2329
3898 y Ff(selections)47 b(\(3\))396 4377 y Fe(Name)396
2330
4579 y Fd(selections)23 b Fh(\227)p Black 3784 5278 a
2331
Fg(61)p Black eop
2332
%%Page: 62 62
2333
62 61 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
2334
Black 396 601 a Fe(Synopsis)396 1050 y Fc(void)430 b
2335
(GrSetSelectionOwner)695 b(\(GR_WINDOW_ID)52 b(wid,)2817
2336
1166 y(GR_CHAR)h(*typelist\);)396 1283 y(GR_WINDOW_ID)f(GrGetSelec-)396
2337
1400 y(tionOwner)644 b(\(GR_CHAR)52 b(**typelist\);)396
2338
1516 y(void)430 b(GrRequestClientData)695 b(\(GR_WINDOW_ID)52
2339
b(wid,)2817 1633 y(GR_WINDOW_ID)g(rid,)2817 1749 y(GR_SERIALNO)g
2340
(serial,)2817 1866 y(GR_MIMETYPE)g(mimetype\);)396 1982
2341
y(void)430 b(GrSendClientData)857 b(\(GR_WINDOW_ID)52
2342
b(wid,)2817 2099 y(GR_WINDOW_ID)g(did,)2817 2215 y(GR_SERIALNO)g
2343
(serial,)2817 2332 y(GR_LENGTH)g(len,)2817 2449 y(GR_LENGTH)g(thislen,)
2344
2817 2565 y(void)h(*data\);)396 3059 y Fe(Description)396
2345
3574 y(Details)396 3919 y Fb(GrSetSelectionOwner)35 b(\(\))396
2346
4135 y Fc(void)430 b(GrSetSelectionOwner)695 b(\(GR_WINDOW_ID)52
2347
b(wid,)2817 4251 y(GR_CHAR)h(*typelist\);)396 4480 y
2348
Fh(Sets)25 b(the)f(current)h(selection)e(\(otherwise)h(kno)n(wn)f(as)i
2349
(the)f(clipboard\))g(o)n(wnership)f(to)h(the)g(speci\002ed)396
2350
4610 y(windo)n(w)-6 b(.)29 b(Specifying)c(an)g(o)n(wner)f(of)h(0)g
2351
(diso)n(wns)e(the)h(selection.)30 b(The)25 b(typelist)e(ar)n(gument)i
2352
(is)f(a)h(list)396 4739 y(of)g(mime)f(types)g(\(seperated)h(by)g(space)
2353
g(characters\))h(which)e(the)h(windo)n(w)f(is)g(able)h(to)f(supply)g
2354
(the)p Black -2 5278 a Fg(62)p Black eop
2355
%%Page: 63 63
2356
63 62 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
2357
Black 396 579 a Fh(data)25 b(as.)31 b(At)24 b(least)h(one)g(type)f
2358
(must)g(be)h(speci\002ed)g(unless)f(you)g(are)i(diso)n(wning)c(the)j
2359
(selection)396 708 y(\(typically)f(te)o(xt/plain)f(for)i(plain)f(ASCII)
2360
i(te)o(xt)e(or)h(te)o(xt/uri-list)d(for)j(a)g(\002lename\).)396
2361
888 y(The)g(windo)n(w)e(which)i(o)n(wns)f(the)g(current)h(selection)f
2362
(must)g(be)h(prepared)g(to)g(handle)396 1017 y(SELECTION_LOST)g(e)n(v)o
2363
(ents)f(\(recei)n(v)o(ed)g(when)h(another)g(windo)n(w)e(tak)o(es)i(o)n
2364
(wnership)e(of)i(the)396 1147 y(selection\))g(and)f(CLIENT_D)l(A)-11
2365
b(T)i(A_REQ)25 b(e)n(v)o(ents)e(\(recei)n(v)o(ed)i(when)f(a)h(client)g
2366
(wishes)f(to)g(retrei)n(v)o(e)396 1276 y(the)h(selection)f(data\).)833
2367
1583 y Fa(wid)k Fh(:)50 b(the)24 b(ID)h(of)g(the)g(windo)n(w)e(to)i
2368
(set)f(the)h(selection)f(o)n(wner)g(to)538 1738 y Fa(typelist)f
2369
Fh(:)50 b(list)23 b(of)i(mime)f(types)g(selection)g(data)h(can)g(be)g
2370
(supplied)f(as)396 2239 y Fb(GrGetSelectionOwner)35 b(\(\))396
2371
2455 y Fc(GR_WINDOW_ID)52 b(GrGetSelectionOwner)641 b(\(GR_CHAR)53
2372
b(**type-)396 2571 y(list\);)396 2801 y Fh(Finds)25 b(the)f(windo)n(w)g
2373
(which)g(currently)h(o)n(wns)e(the)i(selection)f(and)h(returns)f(its)g
2374
(ID,)h(or)g(0)g(if)g(no)396 2930 y(windo)n(w)f(currently)g(o)n(wns)g
2375
(the)h(selection.)30 b(A)24 b(pointer)h(to)f(the)h(list)e(of)i(mime)f
2376
(types)g(the)h(selection)396 3060 y(o)n(wner)g(is)f(capable)h(of)g
2377
(supplying)e(is)h(placed)h(in)g(the)f(pointer)g(speci\002ed)i(by)e(the)
2378
h(typelist)396 3189 y(ar)n(gument.)31 b(The)24 b(typelist)g(is)g(null)g
2379
(terminated,)g(and)h(the)f(\002elds)h(are)h(seperated)f(by)f(space)396
2380
3319 y(characters.)32 b(It)25 b(is)f(the)h(callers)g(responsibility)d
2381
(to)i(free)i(the)f(typelist)e(string,)h(as)h(it)f(is)g(allocated)396
2382
3448 y(dynamically)-6 b(.)29 b(If)c(the)g(allocation)f(f)o(ails,)g(it)h
2383
(will)e(be)i(set)g(to)f(a)i(NULL)e(pointer)l(,)g(so)h(remember)f(to)396
2384
3578 y(check)h(the)g(v)n(alue)f(of)h(it)g(before)g(using)f(it.)538
2385
3889 y Fa(typelist)f Fh(:)50 b(pointer)24 b(used)g(to)h(return)f(the)h
2386
(list)f(of)h(a)n(v)n(ailable)f(mime)g(types)706 4044
2387
y Fg(Returns)g Fh(:)50 b(the)24 b(ID)h(of)g(the)g(windo)n(w)e(which)i
2388
(currently)f(o)n(wns)g(the)g(selection,)g(or)h(0)396
2389
4540 y Fb(GrRequestClientData)37 b(\(\))396 4756 y Fc(void)430
2390
b(GrRequestClientData)695 b(\(GR_WINDOW_ID)52 b(wid,)2817
2391
4873 y(GR_WINDOW_ID)g(rid,)p Black 3784 5278 a Fg(63)p
2392
Black eop
2393
%%Page: 64 64
2394
64 63 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
2395
Black 2817 579 a Fc(GR_SERIALNO)52 b(serial,)2817 695
2396
y(GR_MIMETYPE)g(mime-)396 812 y(type\);)396 1041 y Fh(Sends)25
2397
b(a)g(CLIENT_D)l(A)-11 b(T)i(A_REQ)25 b(e)n(v)o(ent)e(to)i(the)f
2398
(speci\002ed)h(windo)n(w)-6 b(.)29 b(Used)c(for)g(requesting)f(both)396
2399
1171 y(selection)g(and)h("drag)g(and)f(drop")h(data.)30
2400
b(The)25 b(mimetype)f(ar)n(gument)g(speci\002es)h(the)g(format)f(of)h
2401
(the)396 1300 y(data)g(you)f(w)o(ould)g(lik)o(e)h(to)f(recei)n(v)o(e,)h
2402
(as)g(an)g(inde)o(x)e(into)h(the)h(list)f(returned)g(by)396
2403
1430 y(GrGetSelectionOwner)h(\(the)g(\002rst)g(type)f(in)h(the)f(list)g
2404
(is)g(inde)o(x)g(0\).)31 b(The)25 b(serv)o(er)g(mak)o(es)f(no)396
2405
1559 y(guarantees)h(as)g(to)f(when,)h(or)g(e)n(v)o(en)f(if,)h(the)f
2406
(client)h(will)f(reply)g(to)h(the)f(request.)31 b(If)25
2407
b(the)g(client)f(does)396 1689 y(reply)-6 b(,)24 b(the)h(reply)g(will)f
2408
(tak)o(e)g(the)h(form)g(of)g(one)f(or)h(more)g(CLIENT_D)l(A)-11
2409
b(T)i(A)24 b(e)n(v)o(ents.)29 b(The)c(request)396 1818
2410
y(serial)g(number)f(is)h(typically)e(a)i(unique)f(ID)h(which)g(the)f
2411
(client)h(can)g(assign)f(to)g(a)h(request)g(in)f(order)396
2412
1948 y(for)h(it)g(to)f(be)h(able)g(to)f(k)o(eep)h(track)g(of)g
2413
(transfers)g(\(CLIENT_D)l(A)-11 b(T)i(A)25 b(e)n(v)o(ents)e(contain)h
2414
(the)h(same)396 2077 y(number)g(in)f(the)h(sid)f(\002eld\).)31
2415
b(Remember)25 b(to)f(free)i(the)f(data)g(\002eld)g(of)g(the)f(CLIENT_D)
2416
l(A)-11 b(T)i(A)24 b(e)n(v)o(ents)396 2207 y(as)h(the)o(y)f(are)i
2417
(dynamically)d(allocated.)31 b(Also)24 b(note)g(that)g(if)h(the)g
2418
(allocation)f(f)o(ails)g(the)h(data)g(\002eld)396 2336
2419
y(will)f(be)h(set)g(to)f(NULL,)h(so)f(you)g(should)g(check)h(the)g(v)n
2420
(alue)f(before)h(using)f(it.)833 2648 y Fa(wid)k Fh(:)50
2421
b(the)24 b(ID)h(of)g(the)g(windo)n(w)e(requesting)h(the)h(data)833
2422
2802 y Fa(rid)j Fh(:)50 b(the)24 b(ID)h(of)g(the)g(windo)n(w)e(to)i
2423
(request)f(the)h(data)g(from)657 2957 y Fa(serial)f Fh(:)50
2424
b(the)24 b(serial)h(number)f(of)h(the)g(request)538 3111
2425
y Fa(mimetype)e Fh(:)50 b(the)24 b(number)g(of)h(the)g(desired)g(mime)e
2426
(type)i(to)f(request)396 3608 y Fb(GrSendClientData)35
2427
b(\(\))396 3824 y Fc(void)430 b(GrSendClientData)857
2428
b(\(GR_WINDOW_ID)52 b(wid,)2817 3940 y(GR_WINDOW_ID)g(did,)2817
2429
4057 y(GR_SERIALNO)g(serial,)2817 4173 y(GR_LENGTH)g(len,)2817
2430
4290 y(GR_LENGTH)g(thislen,)2817 4407 y(void)h(*data\);)396
2431
4636 y Fh(Used)25 b(as)g(the)f(response)h(to)f(a)h(CLIENT_D)l(A)-11
2432
b(T)i(A_REQ)25 b(e)n(v)o(ent.)k(Sends)c(the)g(speci\002ed)g(data)g(of)g
2433
(the)396 4765 y(speci\002ed)g(length)f(to)h(the)f(speci\002ed)h(windo)n
2434
(w)f(using)g(the)g(speci\002ed)h(source)g(windo)n(w)f(ID)h(and)p
2435
Black -2 5278 a Fg(64)p Black eop
2436
%%Page: 65 65
2437
65 64 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
2438
Black 396 579 a Fh(transfer)25 b(serial)g(number)-5 b(.)30
2439
b(An)o(y)24 b(fragmentation)g(of)g(the)h(data)g(into)f(multiple)f
2440
(CLIENT_D)l(A)-11 b(T)i(A)396 708 y(e)n(v)o(ents)24 b(which)g(is)g
2441
(required)h(is)g(handled)f(automatically)-6 b(.)29 b(The)c(serial)f
2442
(number)g(should)g(al)o(w)o(ays)h(be)396 838 y(set)g(to)f(the)h(v)n
2443
(alue)f(supplied)g(by)g(the)h(CLIENT_D)l(A)-11 b(T)i(A_REQ)24
2444
b(e)n(v)o(ent.)30 b(The)25 b(thislen)e(parameter)i(is)396
2445
967 y(used)g(internally)f(to)g(split)g(the)g(data)h(up)g(into)f(pack)o
2446
(ets.)30 b(It)25 b(should)e(be)i(set)g(to)f(the)h(same)g(v)n(alue)f(as)
2447
h(the)396 1097 y(len)g(parameter)-5 b(.)833 1409 y Fa(wid)28
2448
b Fh(:)50 b(the)24 b(ID)h(of)g(the)g(windo)n(w)e(sending)h(the)h(data)
2449
833 1563 y Fa(did)j Fh(:)50 b(the)24 b(ID)h(of)g(the)g(destination)e
2450
(windo)n(w)657 1717 y Fa(serial)h Fh(:)837 1872 y Fa(len)g
2451
Fh(:)50 b(the)24 b(number)g(of)h(bytes)g(of)f(data)h(to)g(transfer)598
2452
2026 y Fa(thislen)e Fh(:)50 b(the)24 b(number)g(of)h(bytes)g(in)f(this)
2453
g(pack)o(et)777 2181 y Fa(data)g Fh(:)50 b(pointer)24
2454
b(to)g(the)h(data)g(to)f(transfer)-2 2974 y Ff(misc)47
2455
b(\(3\))396 3454 y Fe(Name)396 3655 y Fd(misc)24 b Fh(\227)396
2456
4049 y Fe(Synopsis)396 4498 y Fc(void)430 b(GrReqShmCmds)1073
2457
b(\(long)53 b(shmsize\);)396 4615 y(void)430 b(GrInjectKeyboardEvent)
2458
587 b(\(GR_WINDOW_ID)52 b(wid,)2817 4731 y(GR_UNICODE)g(uch,)2817
2459
4848 y(GR_CHAR)h(ch,)p Black 3784 5278 a Fg(65)p Black
2460
eop
2461
%%Page: 66 66
2462
66 65 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
2463
Black 2817 579 a Fc(int)53 b(modif,)2817 695 y(int)g(special,)2817
2464
812 y(un-)396 929 y(signed)g(char)g(content\);)396 1045
2465
y(void)430 b(GrRegisterInput)911 b(\(int)53 b(fd\);)396
2466
1162 y(void)430 b(GrPrepareSelect)911 b(\(int)53 b(*maxfd,)2817
2467
1278 y(void)g(*rfdset\);)396 1395 y(void)430 b(GrServiceSelect)911
2468
b(\(void)53 b(*rfdset,)2817 1511 y(GR_FNCALLBACKEVENT)d(fncb\);)396
2469
1628 y(void)430 b(GrBell)1397 b(\(void\);)396 1745 y(void)430
2470
b(GrSetScreenSaverTimeout)479 b(\(GR_TIMEOUT)52 b(time-)396
2471
1861 y(out\);)396 2354 y Fe(Description)396 2870 y(Details)396
2472
3214 y Fb(GrReqShmCmds)35 b(\(\))396 3431 y Fc(void)430
2473
b(GrReqShmCmds)1073 b(\(long)53 b(shmsize\);)396 3660
2474
y Fh(Requests)25 b(a)g(shared)g(memory)f(area)i(of)f(the)f(speci\002ed)
2475
h(size)g(to)g(use)f(for)h(transferring)g(command)396
2476
3789 y(ar)n(guments.)30 b(This)24 b(is)h(f)o(aster)g(b)n(ut)f(less)g
2477
(portable)h(than)f(the)h(standard)f(BSD)i(sock)o(ets)e(method)g(of)396
2478
3919 y(communication)f(\(and)i(of)g(course)g(will)f(only)g(w)o(ork)g
2479
(if)h(the)g(client)f(and)h(serv)o(er)g(are)g(on)g(the)f(same)396
2480
4048 y(machine\).)31 b(Apart)25 b(from)f(the)h(initial)e(allocation)h
2481
(of)h(the)g(area)g(using)f(this)g(call,)h(the)f(use)h(of)g(shared)396
2482
4178 y(memory)f(is)h(completely)e(transparent.)31 b(Additionally)-6
2483
b(,)22 b(if)i(the)h(allocation)f(f)o(ails)g(we)h(silently)f(and)396
2484
4307 y(automatically)g(f)o(all)g(back)h(on)g(sock)o(et)f
2485
(communication.)29 b(It)c(is)f(safe)h(to)g(call)f(this)g(function)g(e)n
2486
(v)o(en)g(if)396 4437 y(shared)h(memory)f(support)g(is)g(not)h
2487
(compiled)e(in;)h(it)h(will)f(simply)f(do)h(nothing.)396
2488
4616 y(FIXME:)h(ho)n(w)f(does)g(the)h(user)g(decide)g(what)f(size)h(of)
2489
g(shared)g(memory)f(area)i(to)e(allocate?)p Black -2
2490
5278 a Fg(66)p Black eop
2491
%%Page: 67 67
2492
67 66 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
2493
Black 598 587 a Fa(shmsize)23 b Fh(:)50 b(the)24 b(size)h(of)g(the)g
2494
(shared)f(memory)g(area)i(to)f(allocate)396 1083 y Fb(GrInjectK)n(e)n
2495
(yboar)n(dEvent)36 b(\(\))396 1299 y Fc(void)430 b
2496
(GrInjectKeyboardEvent)587 b(\(GR_WINDOW_ID)52 b(wid,)2817
2497
1416 y(GR_UNICODE)g(uch,)2817 1532 y(GR_CHAR)h(ch,)2817
2498
1649 y(int)g(modif,)2817 1765 y(int)g(special,)2817 1882
2499
y(unsigned)f(char)h(con-)396 1999 y(tent\);)396 2228
2500
y Fh(Sends)25 b(a)g(k)o(e)o(yboard)f(e)n(v)o(ent)g(to)h(the)f
2501
(speci\002ed)h(windo)n(w)-6 b(,)23 b(or)i(to)f(the)h(windo)n(w)f(with)g
2502
(the)g(current)396 2357 y(k)o(e)o(yboard)g(focus)h(if)g(0)g(is)f(used)g
2503
(as)h(the)g(ID.)g(The)g(other)f(ar)n(guments)h(correspond)f(directly)g
2504
(to)h(the)396 2487 y(\002elds)g(of)g(the)g(same)f(names)h(in)f(the)h(k)
2505
o(e)o(yboard)f(e)n(v)o(ent)g(structure.)833 2798 y Fa(wid)k
2506
Fh(:)50 b(ID)25 b(of)f(the)h(windo)n(w)f(to)g(send)g(the)h(e)n(v)o(ent)
2507
f(to,)g(or)h(0)837 2953 y Fa(uch)f Fh(:)50 b(32)24 b(bit)g(Unicode)h(k)
2508
o(e)o(ystrok)o(e)e(v)n(alue)i(to)f(inject)897 3107 y
2509
Fa(ch)g Fh(:)50 b(8)24 b(bit)g(ascii)h(k)o(e)o(ystrok)o(e)f(v)n(alue)g
2510
(to)g(inject)711 3262 y Fa(modif)30 b Fh(:)598 3416 y
2511
Fa(special)23 b Fh(:)50 b(special)24 b(k)o(e)o(ys)g(to)h(inject)598
2512
3570 y Fa(content)e Fh(:)50 b(mask)24 b(specifying)g(which)g(ar)n
2513
(guments)g(are)i(v)n(alid)396 4067 y Fb(GrRegisterInput)35
2514
b(\(\))396 4283 y Fc(void)430 b(GrRegisterInput)911 b(\(int)53
2515
b(fd\);)396 4512 y Fh(Re)o(gister)25 b(an)g(e)o(xtra)f(\002le)h
2516
(descriptor)g(to)f(monitor)g(in)g(the)h(main)f(select\(\))h(call.)31
2517
b(An)24 b(e)n(v)o(ent)g(will)g(be)396 4642 y(returned)h(when)g(the)f
2518
(fd)h(has)g(data)g(w)o(aiting)f(to)g(be)h(read)g(if)g(that)g(e)n(v)o
2519
(ent)e(has)i(been)g(selected)g(for)-5 b(.)p Black 3780
2520
5278 a Fg(67)p Black eop
2521
%%Page: 68 68
2522
68 67 bop Black -2 67 a Fg(Chapter)24 b(1.)31 b(libnano-X)p
2523
Black 893 587 a Fa(fd)d Fh(:)50 b(the)24 b(\002le)h(descriptor)g(to)f
2524
(monitor)396 1083 y Fb(GrPrepareSelect)34 b(\(\))396
2525
1299 y Fc(void)430 b(GrPrepareSelect)911 b(\(int)53 b(*maxfd,)2817
2526
1416 y(void)g(*rfdset\);)396 1645 y Fh(Prepare)26 b(for)f(a)h
2527
(GrServiceSelect)g(function)e(by)g(asking)g(the)h(serv)o(er)g(to)f
2528
(send)h(the)f(ne)o(xt)g(e)n(v)o(ent)g(b)n(ut)396 1774
2529
y(not)g(w)o(aiting)g(around)h(for)g(it)f(to)h(arri)n(v)o(e)f(and)h
2530
(initialising)d(the)i(speci\002ed)i(fd_set)e(structure)g(with)g(the)396
2531
1904 y(client/serv)o(er)g(sock)o(et)h(descriptor)f(and)h(an)o(y)f(pre)n
2532
(viously)f(re)o(gistered)h(e)o(xternal)g(\002le)i(descriptors.)396
2533
2033 y(Also)e(compares)h(the)g(current)g(contents)f(of)h(maxfd,)f(the)h
2534
(client/serv)o(er)e(sock)o(et)i(descriptor)l(,)f(and)396
2535
2163 y(the)h(pre)n(viously)e(re)o(gistered)h(e)o(xternal)g(\002le)i
2536
(descriptors,)e(and)g(returns)h(the)g(highest)e(of)i(them)f(in)396
2537
2292 y(maxfd.)713 2584 y Fa(maxfd)k Fh(:)50 b(pointer)24
2538
b(to)g(a)h(v)n(ariable)g(which)f(the)h(highest)e(in)i(use)f(fd)h(will)f
2539
(be)h(written)f(to)657 2738 y Fa(rfdset)g Fh(:)50 b(pointer)24
2540
b(to)g(the)h(\002le)g(descriptor)f(set)h(structure)f(to)h(use)396
2541
3255 y Fb(GrSer)q(viceSelect)36 b(\(\))396 3471 y Fc(void)430
2542
b(GrServiceSelect)911 b(\(void)53 b(*rfdset,)2817 3588
2543
y(GR_FNCALLBACKEVENT)d(fncb\);)396 3817 y Fh(Used)25
2544
b(by)f(GrMainLoop\(\))g(to)h(call)g(the)f(speci\002ed)h(callback)g
2545
(function)f(when)h(an)g(e)n(v)o(ent)e(arri)n(v)o(es)h(or)396
2546
3946 y(there)h(is)g(data)g(w)o(aiting)e(on)i(an)g(e)o(xternal)f(fd)h
2547
(speci\002ed)g(by)g(GrRe)o(gisterInput\(\).)657 4258
2548
y Fa(rfdset)f Fh(:)50 b(pointer)24 b(to)g(the)h(\002le)g(descriptor)f
2549
(set)h(to)f(monitor)775 4412 y Fa(fncb)i Fh(:)50 b(pointer)24
2550
b(to)g(the)h(function)f(to)g(call)h(when)g(an)g(e)n(v)o(ent)e(needs)i
2551
(handling)p Black -2 5278 a Fg(68)p Black eop
2552
%%Page: 69 69
2553
69 68 bop Black 3023 67 a Fg(Chapter)25 b(1.)30 b(libnano-X)p
2554
Black 396 583 a Fb(GrBell)k(\(\))396 799 y Fc(void)430
2555
b(GrBell)1397 b(\(void\);)396 1028 y Fh(Asks)24 b(the)h(serv)o(er)g(to)
2556
f(ring)h(the)f(console)h(bell)f(on)g(behalf)h(of)g(the)g(client)f
2557
(\(intended)g(for)h(terminal)396 1158 y(apps)g(to)f(be)h(able)g(to)f
2558
(ring)h(the)g(bell)f(on)g(the)h(serv)o(er)g(e)n(v)o(en)f(if)h(the)o(y)f
2559
(are)h(running)f(remotely\).)396 1612 y Fb(GrSetScreenSa)n(verTimeout)
2560
36 b(\(\))396 1828 y Fc(void)430 b(GrSetScreenSaverTimeout)479
2561
b(\(GR_TIMEOUT)52 b(time-)396 1945 y(out\);)396 2174
2562
y Fh(Sets)25 b(the)g(number)f(of)h(seconds)f(of)h(inacti)n(vity)e
2563
(before)i(a)h(screen)f(sa)n(v)o(er)g(acti)n(v)n(ate)e(e)n(v)o(ent)h(is)
2564
g(sent)h(to)396 2304 y(the)g(root)f(windo)n(w)g(ID.)h(A)f(v)n(alue)h
2565
(of)g(0)f(acti)n(v)n(ates)g(the)g(screen)i(sa)n(v)o(er)e(immediately)-6
2566
b(,)23 b(and)i(a)g(v)n(alue)f(of)396 2433 y(-1)h(disables)f(the)h
2567
(screen)g(sa)n(v)o(er)g(function.)598 2724 y Fa(timeout)e
2568
Fh(:)50 b(the)24 b(number)g(of)h(seconds)g(of)g(inacti)n(vity)d(before)
2569
k(screen)f(sa)n(v)o(er)g(acti)n(v)n(ates)p Black 3784
2570
5278 a Fg(69)p Black eop
2571
%%Page: 70 70
2572
70 69 bop Black Black Black Black eop
2573
%%Trailer
2574
end
2575
userdict /end-hook known{end-hook}if
2576
%%EOF

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.