VMS DECwindows Guide to Xlib (Release 4) Programming: MIT C Binding


Previous Contents Index

Chapter 9
9 Handling Events
     9.1     Event Processing
     9.2     Selecting Event Types
         9.2.1         Using the SELECT INPUT Routine
         9.2.2         Specifying Event Types When Creating a Window
         9.2.3         Specifying Event Types When Changing Window Attributes
     9.3     Pointer Events
         9.3.1         Handling Button Presses and Releases
         9.3.2         Handling Pointer Motion
     9.4     Window Entries and Exits
         9.4.1         Normal Window Entries and Exits
         9.4.2         Pseudomotion Window Entries and Exits
     9.5     Input Focus Events
     9.6     Exposure Events
         9.6.1         Handling Window Exposures
         9.6.2         Handling Graphics Exposures
     9.7     Key Events
     9.8     Window State Notification Events
         9.8.1         Handling Window Circulation
         9.8.2         Handling Changes in Window Configuration
         9.8.3         Handling Window Creations
         9.8.4         Handling Window Destructions
         9.8.5         Handling Changes in Window Position
         9.8.6         Handling Window Mappings
         9.8.7         Handling Key, Keyboard, and Pointer Mappings
         9.8.8         Handling Window Reparenting
         9.8.9         Handling Window Unmappings
         9.8.10         Handling Changes in Window Visibility
     9.9     Key Map State Events
     9.10     Color Map State Events
     9.11     Client Communication Events
         9.11.1         Handling Event Notification from Other Clients
         9.11.2         Handling Changes in Properties
         9.11.3         Handling Changes in Selection Ownership
         9.11.4         Handling Requests to Convert a Selection
         9.11.5         Handling Requests to Notify of a Selection
     9.12     Event Queue Management
         9.12.1         Checking the Contents of the Event Queue
         9.12.2         Returning the Next Event on the Queue
         9.12.3         Selecting Events That Match User-Defined Routines
         9.12.4         Selecting Events Using an Event Mask
         9.12.5         Putting Events Back on Top of the Queue
         9.12.6         Sending Events to Other Clients
     9.13     Error Handling
         9.13.1         Enabling Synchronous Operation
         9.13.2         Using the Default Error Handlers
         9.13.3         Confirming X Resource Creation
Chapter 10
10 Using the X Resource Manager
     10.1     Defining Resource Manager Fundamentals
         10.1.1         Names and Classes
         10.1.2         Forming Names and Classes
         10.1.3         Resource Manager Matching Rules
     10.2     Getting the Default Values
     10.3     Storing Resources into a Database
     10.4     Retrieving from the Resource Database
     10.5     Merging and Storing Databases
     10.6     Using Representations for Strings
         10.6.1         Converting a String to a Quark
         10.6.2         Retrieving Resources with Quarks
Chapter 11
11 Using Grabs
     11.1     Grab Fundamentals
         11.1.1         Event Reporting
         11.1.2         Active and Passive Grabs
     11.2     Pointer Grabs
     11.3     Button Grabs
     11.4     Key and Keyboard Grabs
     11.5     Allowing Events
Chapter 12
12 Complying with Inter-Client Communications Conventions
     12.1     Communicating with Standard Properties
     12.2     Manipulating Top-Level Windows
     12.3     Defining Window Manager Properties
         12.3.1         Setting Window Manager Hints
         12.3.2         Providing Size Hints
         12.3.3         Setting Window and Icon Names
         12.3.4         Example of Setting Properties
         12.3.5         Using the SET WM PROPERTIES Routine
Appendix A
Appendix A Compiling Fonts
Appendix B
Appendix B VMS DECwindows Named Colors
Appendix C
Appendix C VMS DECwindows Fonts
Index
Index
Examples
1-1 Sample Xlib Program
3-1 Creating a Simple Window
3-2 Defining Attributes When Creating Windows
3-3 Mapping and Raising Windows
3-4 Exchanging Window Properties
3-5 Reconfiguring a Window Using the CONFIGURE WINDOW Routine
3-6 Changing Window Attributes
4-1 Defining Graphics Characteristics Using the CREATE GC Routine
4-2 Using Individual Routines to Define Graphics Characteristics
5-1 Matching Visual Information
5-2 Using Named VMS DECwindows Colors
5-3 Specifying Exact Color Values
5-4 Allocating Colors for Exclusive Use
6-1 Drawing Multiple Points
6-2 Drawing Multiple Lines
6-3 Drawing Multiple Rectangles
6-4 Drawing Multiple Arcs
6-5 Filling a Polygon
6-6 Clearing a Window
6-7 Defining a Region Using the POLYGON REGION Routine
6-8 Defining the Intersection of Two Regions
6-9 Creating a Pixmap Cursor
7-1 Creating a Pixmap
7-2 Creating a Bitmap Data File
7-3 Creating a Pixmap from Bitmap Data
8-1 Drawing Text Using the DRAW TEXT Routine
8-2 Drawing Text Using the DRAW STRING Routine
9-1 Selecting Event Types Using the CREATE WINDOW Routine
9-2 Handling Button Presses
9-3 Handling Pointer Motion
9-4 Handling Window Entries and Exits
9-5 Handling Graphics Exposures
10-1 Using the GET DEFAULT Routine
10-2 Creating and Storing into the Database
10-3 Retrieving a Resource from the Database
10-4 Merging and Storing Databases
10-5 Converting a String to a Quark
10-6 Retrieving Quarks
11-1 Grabbing the Pointer
11-2 Grabbing a Button
11-3 Grabbing a Key
12-1 Reconfiguring a Top-Level Window
12-2 Setting Window Manager Properties
12-3 Using the SET WM PROPERTIES Routine


Previous Next Contents Index