Solaris X Window System Developer's Guide
只搜寻这本书
以 PDF 格式下载本书

............................Contents


Preface
xv

1. Introduction to the Solaris X Server
1
...About the Solaris X Server 1
......X11R6 Sample Server 2
......DPS Extension 4
......X Consortium Extensions 4
......AccessX 7
......Shared Memory Transport 7
......Visual Overlay Windows 7
......X11 Libraries 8
...Applications That Run With the Solaris X Server 8
......Supported X11 Applications 9
......Unsupported Applications 10
...OpenWindows Directory Structure 10
...Notes on X11 Programming 13
......Compose Key Support 13
......NumLock Key Support 13
......Color Name Database 14
......Color Recommendations 14
...Further Reading 15

2. DPS Features and Enhancements
17
...About DPS 17
......How DPS Works 18
...DPS Font Enhancements in the Solaris Server 20
...DPS Libraries 20
......Adobe NX Agent Support 20
...DPS Security Issues 21
......System File Access 21
......Secure Context Creation 21
...When DPS Encounters Internal Errors 23
...How To Access Information From Adobe 23
...DPS Compositing Operators 24
......Operator Descriptions 26
......Implementation Notes and Limitations 31

3. Visuals on the Solaris X Server
35
...About Visuals 35
......Default Visual 36
......Visuals on Multi-Depth Devices 37
......Hints for Windows Programming With Visuals 37
...Gamma-Corrected Visuals 38
......Finding a Linear Visual 39
......Visual Selection Alternatives 41

4. Font Support
43
...Font Support in the Solaris X Server 43
......X Font Server 44
......Available Font Formats 44
......Associated Files 45
...Outline and Bitmap Fonts 46
......Replacing Outline Fonts With Bitmap Fonts 47
...Using TrueType and F3 Fonts in DPS 48
...Locating Fonts 48
......Changing the Default Font Path in X11 49
...Installing and Managing Fonts 49
...Using OPEN LOOK Fonts on X Terminals 50

5. Server Overlay Windows
51
...Server Overlays Versus Transparent Overlays 51
...Tips for Programming Overlays 52
......Parent-Child Model 52
......Stacking 52
...Server Overlays 53

6. Transparent Overlay Windows
55
...What are Transparent Overlay Windows? 55
...Basic Characteristics of Transparent Overlay Windows 57
......Paint Type 57
......Viewability 58
......Rendering Transparent Paint 58
...More on Transparent Overlay Characteristics 58
......Background 59
......Window Border 60
......Backing Store 60
......Window Gravity 60
......Colormaps 61
......Input Distribution Model 61
......Print Capture 62
...Choosing Visuals for Overlay/Underlay Windows 62
...Example Program 64
...Overview of the Solaris Transparent Overlay Window API 65
...Creating Transparent Overlay Windows 66
...Setting the Paint Type of a Graphics Context 67
...Setting the Background State of a Transparent Overlay Window 68
...Rendering to a Transparent Overlay Window 69
...Querying the Characteristics of a Transparent Overlay Window 70
......Determining Whether a Window is an Overlay Window 70
......Determining the Paint Type of a Graphics Context 70
...Pixel Transfer Routines 70
......Filling an Area Using the Source Area Paint Type 71
......Copying an Area and Its Paint Type 73
......Retrieving Overlay Color Information 77
......Using Existing Xlib Pixel Transfer Routines 79
...Designing an Application for Portability 80
......Selecting a Visual for an Overlay/Underlay Window 81
......Selecting an Optimal Overlay/Underlay Visual Pair 86

7. Security Issues
91
...Access Control Mechanisms 92
......User-Based 92
......Host-Based 92
...Authorization Protocols 93
......MIT-MAGIC-COOKIE-1 93
......SUN-DES-1 93
......Changing the Default Authorization Protocol 94
...Manipulating Access to the Server 95
......Client Authority File 96
......Allowing Access When Using MIT-MAGIC-COOKIE-1 97
......Allowing Access When Using SUN-DES-1 97
...Running Clients Remotely, or Locally as Another User 98

A. Reference Display Devices
99
...Solaris Reference Display Devices 99
......SPARC: Supported Reference Devices 100
......x86: Supported Reference Devices 102

Glossary
105

Index
111