|
|
1 | (6) |
|
1.1 The Place of the X Protocol |
|
|
2 | (2) |
|
1.2 X Window Programming Gotchas |
|
|
4 | (1) |
|
1.3 Programming in X Window |
|
|
5 | (2) |
|
2 Getting Something to Show |
|
|
7 | (28) |
|
2.1 Basic Xlib Programming Code Blocks |
|
|
7 | (1) |
|
2.2 Creating a Single Window |
|
|
8 | (5) |
|
2.2.1 Open Connection to the Server |
|
|
9 | (1) |
|
|
10 | (3) |
|
|
13 | (1) |
|
2.3 Smallest Xlib Program to Produce a Window |
|
|
13 | (2) |
|
|
15 | (1) |
|
2.4 A Simple but Useful Xlib Program |
|
|
15 | (1) |
|
|
16 | (1) |
|
|
16 | (5) |
|
|
21 | (1) |
|
2.6 Parts of Windows Can Disappear from View |
|
|
21 | (9) |
|
2.6.1 Testing Overlay Services Available from an X Server |
|
|
22 | (2) |
|
2.6.2 Consequences of No Server Overlay Services |
|
|
24 | (5) |
|
|
29 | (1) |
|
2.7 Changing a Window's Properties |
|
|
30 | (2) |
|
|
32 | (3) |
|
3 Windows and Events Produce Menus |
|
|
35 | (50) |
|
|
36 | (3) |
|
|
39 | (1) |
|
|
39 | (5) |
|
|
44 | (5) |
|
|
49 | (1) |
|
|
49 | (8) |
|
3.4.1 Text Labelled Menu Buttons |
|
|
50 | (7) |
|
|
57 | (1) |
|
3.5 Further Consideration of Mouse Events |
|
|
57 | (11) |
|
|
67 | (1) |
|
3.6 A Mouse Behaviour Application |
|
|
68 | (3) |
|
|
71 | (1) |
|
3.7 Implementing Hierarchical Menus |
|
|
71 | (11) |
|
|
81 | (1) |
|
3.8 Which Window Gets the Event? |
|
|
82 | (2) |
|
|
84 | (1) |
|
|
84 | (1) |
|
4 Pattern Maps and Labels |
|
|
85 | (54) |
|
|
86 | (1) |
|
|
86 | (1) |
|
|
87 | (5) |
|
|
92 | (1) |
|
|
92 | (5) |
|
|
97 | (1) |
|
4.5 A Partially Transparent Pixmap |
|
|
97 | (4) |
|
4.6 Using Postscript to Create Labels |
|
|
101 | (4) |
|
4.7 Changing the Colour of a Pixmap |
|
|
105 | (3) |
|
4.8 Reducing Server-Client Interaction by Images |
|
|
108 | (4) |
|
|
112 | (1) |
|
4.9 Creating Menus by Using the Image Format |
|
|
112 | (6) |
|
|
118 | (1) |
|
4.10 Forming Text Messages from Bitmap Glyphs |
|
|
118 | (13) |
|
4.10.1 Accessing XI1 Standard Bitmap Fonts |
|
|
119 | (4) |
|
4.10.2 How to Use the Bitmap Fonts |
|
|
123 | (8) |
|
|
131 | (1) |
|
4.11 Using Pixmaps to Colour a Window's Background |
|
|
131 | (7) |
|
|
137 | (1) |
|
|
138 | (1) |
|
5 Keyboard Entry and Displaying Text |
|
|
139 | (48) |
|
5.1 Elementary Keyboard Text X Entry |
|
|
140 | (4) |
|
|
144 | (1) |
|
5.2 What Fonts Are Available |
|
|
144 | (2) |
|
5.3 Keyboard Echoing on Windows |
|
|
146 | (6) |
|
|
152 | (1) |
|
5.4 Putting Lines of Text in a Window |
|
|
152 | (4) |
|
|
156 | (1) |
|
|
156 | (7) |
|
|
162 | (1) |
|
5.6 Moving Between Text Input Windows Using Keys |
|
|
163 | (5) |
|
|
168 | (1) |
|
|
168 | (5) |
|
|
173 | (1) |
|
|
173 | (12) |
|
5.8.1 Scrolling Horizontally |
|
|
175 | (4) |
|
5.8.2 Scrolling Vertically |
|
|
179 | (5) |
|
|
184 | (1) |
|
|
185 | (2) |
|
|
187 | (22) |
|
6.1 Limit on Multiple Objects in a Request |
|
|
188 | (2) |
|
6.2 Drawing Lines, Circles, and a Coloured-In Square |
|
|
190 | (4) |
|
|
194 | (1) |
|
6.3 A Symbol Composed from Circle Parts |
|
|
194 | (4) |
|
|
198 | (1) |
|
6.4 A Circle Bouncing off Plain Edges |
|
|
198 | (5) |
|
|
203 | (1) |
|
6.5 Displaying the Multi Colours of a Photograph |
|
|
203 | (5) |
|
|
207 | (1) |
|
|
208 | (1) |
|
|
209 | (16) |
|
7.1 Multi-colour XPM Pixmaps |
|
|
210 | (6) |
|
|
216 | (1) |
|
7.2 Network Connecting Client to Server |
|
|
216 | (3) |
|
|
219 | (1) |
|
|
219 | (4) |
|
|
223 | (1) |
|
|
223 | (2) |
|
|
225 | (20) |
|
8.1 Starting and Finishing with Xcb |
|
|
226 | (1) |
|
8.2 Creating and Using a Window |
|
|
227 | (3) |
|
8.3 Communicating with the Window Manager |
|
|
230 | (1) |
|
|
231 | (3) |
|
8.5 A Consolidation Program |
|
|
234 | (2) |
|
|
236 | (1) |
|
8.6 Colour, Fonts, then Text |
|
|
236 | (4) |
|
|
240 | (1) |
|
8.7 A Classic Program Converted to Xcb |
|
|
240 | (4) |
|
|
244 | (1) |
|
|
244 | (1) |
|
9 Closer to the X Protocol |
|
|
245 | (16) |
|
9.1 The X Window Environment |
|
|
246 | (2) |
|
|
247 | (1) |
|
9.2 Client/Server Interaction |
|
|
248 | (4) |
|
|
252 | (1) |
|
9.3 More than a Protocol is Required |
|
|
252 | (6) |
|
|
257 | (1) |
|
|
258 | (3) |
|
|
259 | (2) |
Index |
|
261 | |