TY - BOOK AU - AU - Reichard,Kevin TI - X Window applications programming SN - 9781558281806 U1 - 005.1 22 PY - 1992/// CY - New York PB - MIS Press KW - UNIX (Computer file) KW - X Window System (Computer system) KW - X window applications N1 - SECTION 1: Learning X Programming CHAPTER 1: Building a First X Program Default Display Names Basic Format Of Display Names The Display Environment Variable The Default Screen The Root Window A Function that Opens a Display Connection Exploring the X Environment The ''Colors'' Black and White Etc. CHAPTER 2: Creating Windows The Root Windows Creating Windows The Event Mask Overriding Windows Setting the Attribute Mask Source Code for the Open Window Function Sending Hints to the Window Manager Etc. CHAPTER 3: Drawing with X The Graphics Context Creating the Graphics Context for a Window The GC Values Structure Source Code for g.c.c Changing a Graphics Context Drawing Ovals from Arcs Etc. CHAPTER 4: Color The Probability and Usefulness of Color Applications Visuals Color Overview Going Technicolor, or why the Defaults Are Useful Finding a PseudoColor Visual Climbing the Visual Tree Source Code for Visual. C Etc. CHAPTER 5: Text and Fonts Fonts Loading Fonts Source Code for Load font . C Setting Up the Graphics Context Drawing Text Where the Text is Drawn Etc. CHAPTER 6: Events and Event-Driven Programming Event-Driven Programming The X Event Model Asking for Events The Event Mask Receiving Events from the X Server Polling for Events Etc. CHAPTER 7: Keyboard Events Decoding Key Events Sun Type 4 Keypad Codes Converting Functions Keys to Strings Meta Keys Detecting Meta Keys Using Alt-Q to Quit Etc. CHAPTER 8: Cursors Specifying a cursor During Window Creation Creating your own Cursors Freeing Up Cursor Resources Busy Cursors A Program to Display the Cursor Font Source Code for Chapter 8. C -Etc. CHAPTER 9: Bitmaps and Icons: Off-Screen Drawing With Pixmaps Pixmaps and Windows Using a Pixmap as Backing Store for a Window Clearing Pixmaps Source Code for Pixmap .c Bitmaps A Test Icon Saving Bitmaps to Files Etc. CHAPTER 10: Rubber-Band Lines Raster Operation Functions Summary of the GC Graphics Function Rubber-Band Lines Creating an Xor GC Source code for Xor .c Rubber-Band Rectangles and Ovals Etc. SECTION 11: Following the Rules For Well-Behaved X Programs CHAPTER 11: Common Command-Line Parameters Checking Command-Line Parameters Source Code for args.c Display Names Searching for Display Names Source Code for display .c X Geometry Etc. CHAPTER 12: Sending More Information to the Window Manager Checking for More Command-Line Parameters Starting out Icons Setting the Command Hint Setting the Standard Properties Source Code for topwind. c. Etc. CHAPTER 13: Handling Critical Errors Decoding the Error Message Common Problems Trapping Errors in Programs X Error Events X Error Numbers X Protocol Numbers Handling Fatal I/Q Errors Etc. SECTION III: Putting It All Together: Building X Window Applications CHAPTER 14: Building a Small Toolkit for X Applications Toolkit Windows Creating Toolkit Windows Handling Events for Toolkit Windows Callback Functions Drawing Centered Text in a Toolkit Windows Drawing 3D Bevels Etc. CHAPTER 15: Pop-Up Dialogs and Transient Windows Hinting About Transient Windows Source Code for tranwind .c Finding the Mouse Pointer Location Source Code For Query .c Implementing the Dialog Box Etc. CHAPTER 16: Introducing The Draw Application User Manual for the Draw Application The Pushbutton Palette Points Text Loading New Files Unloading Drawing Operations Etc. CHAPTER 17: Editing Pixmaps Undo Using Pixmaps Overview of the Undo Operation Handling Undo Managing the Drawing Pixmap Source Code for da_pix .c Etc. CHAPTER 18: The Draw Application Source Code Source Files for the Draw Application Source Code for the File drawapp .c Source Code for the Bitmap File drawapp .xbm Source Code for the File da__draw .c Source Code for the File da_edit .c Etc. CHAPTER 19: Enhancing The Draw Application Multiple Levels of Undo Handling Expose Events Enlargements and Fat Bits Scrolling Cursor Editing Cutting and Pasting/Moving and Copying Areas Etc. SECTION IX: X Toolkits CHAPTER 20: An Introduction to X Toolkits Widgets Creating Widget-Based Programs Include the Proper files Initializing the Intrinsics The Athena Command Widget Etc. ; Index : p. 549-564 ER -