Sun Microsystems SunWindows — Sun Microsystems SunWindows: Руководство программиста - Полное введение в систему окон

0 Table of Contents Preface ........................................................................................................................................................ xv Chapter 1 An Introduction to Windows ........................................................................... 1-1 1.1. The What and Why of a Window System ......................................................... 1-1 1.2. What is SunWindows! .................................................................................................... 1-3 Chapter 2 SunWindows Implementation Overview ................................................... 2-1 2.1.

Architectural Principles.................................................................................................. 2-1 2.2. Layers or Implementation ............................................................................................. 2-2 2.2.1. Suntool Layer ............................................................................................................ 2-3 2.2.2. Sunwindow Layer.................................................................................................... 2-5 2.2.3. Pixrect Layer ............................................................................................................. 2-8 2.3.

Choosing the Appropriate Layer .............................................................................. 2-9 0 Chapter 3 Applications - Tools and Canvas Programs ........................................ 3-1 3.1; Applications Concepts ......... :........................................................................................... 3-1 3.2. What is a Tool! ................................................................................................................... 3-2 3.2.1. Designing a Tool ...................................................................................................... 3-2 3.2.2.

Flow or Control in a Tool .................................................................................. 3-3 3.2.3. Sample Tools .............................................................................................................. 3-3 8.3. Canvas Programs ............................................................................................................... 3-4 3.3.1. The Graphics Subwindow .................................................................................. 3-4 3.3.2. Sample Canvas Programs ................................................................................... 3-5 3.4.

Non-interactive Utility Programs ............................................................................. 3-5 3.4.1. Sample Non-interactive Utility Program .................................................. 3-5 3.5. Review ...................................................................................................................................... 3-5 4.1. The g/ztool Code ................................................................................................................. 4-2 4.2. Include Files .......................................................................................................................... 4-4 4.3.

Defining Global Data ....................................................................................................... 4-4 4.4. Declaring the Local Variables ..................................................................................... 4-5 4.5. Creating the Tool Object .............................................................................................. 4-5 4.6. Creating Subwindow Objects ..................................................................................... 4-6 4.7. Installing the Tool ............................................................................................................. 4-7 4.8.

Client Code............................................................................................................................ 4-7 0 Chapter , Writing a Simple Tool ......................................................................................... '91 - vii-