Buy new:
$39.20$39.20
$3.99
delivery:
Friday, Aug 4
Ships from: Maks Booker Sold by: Maks Booker
Buy used: $10.51
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required. Learn more
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Xlib Programming Manual for Version 11, Rel. 5, Vol. 1 (Definitive Guides to the X Window System) Third Edition
Purchase options and add-ons
- X Window System concepts
- A simple client application
- Window attributes
- The graphics context
- Graphics in practice
- Color
- Events
- Interclient communication
- Internationalization
- The Resource Manager
- A complete client application
- Window management
- ISBN-101565920023
- ISBN-13978-1565920026
- EditionThird
- PublisherO'Reilly Media
- Publication dateAugust 9, 1994
- LanguageEnglish
- Dimensions7 x 1.76 x 9.19 inches
- Print length813 pages
Frequently bought together

Customers who bought this item also bought
Editorial Reviews
From the Publisher
About the Author
Product details
- Publisher : O'Reilly Media; Third edition (August 9, 1994)
- Language : English
- Paperback : 813 pages
- ISBN-10 : 1565920023
- ISBN-13 : 978-1565920026
- Item Weight : 2.86 pounds
- Dimensions : 7 x 1.76 x 9.19 inches
- Best Sellers Rank: #1,508,291 in Books (See Top 100 in Books)
- #144 in Windows Server Guides
- #295 in C Programming Language
- #2,004 in Software Development (Books)
- Customer Reviews:
Important information
To report an issue with this product, click here.
About the author

Discover more of the author’s books, see similar authors, read author blogs and more
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on Amazon-
Top reviews
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
Chapter 1 Introduction - This chapter gives the big picture: what X is all about and some fundamentals of how it works.
Chapter 2 X Concepts - This chapter introduces the concepts that underlie X programming. You should read this chapter even if you are the type of person who likes to jump right into coding.
Chapter 3 Basic Window Program - Every Xlib program has a similar structure. This chapter shows a simple calculator program that puts up a window and handles events in that window. You can use this simple application as a template for your own more complex applications. All clients will use the techniques described and demonstrated here.
Chapter 4 Window Attributes - The window attributes control a window's background and border pattern or color, the events that should be queued for it, and so on. This chapter describes how to set and get window attributes and provides a detailed description of each attribute.
Chapter 5 The Graphics Context - The graphics primitives supplied with X are quite simple. Most of the details about how graphics are to be drawn are stored in a resource called a graphics context (GC). GCs are stored in the server, thus reducing the amount of information that needs to be transmitted for each graphics request. This chapter describes how to use GCs and provides details on each member of the XGCValues structure.
Chapter 6 Drawing Graphics and Text - This chapter describes the routines used to draw lines, geometrical figures, and text. It also discusses the use of the pixmaps, images, and regions.
Chapter 7 Color - This chapter describes how to use color in your programs. Color handling in X can be more complex than in other graphics systems because of the need for portability to many different types of displays. This chapter starts with the basics, and gradually moves to more advanced topics, including R5 device-independent color.
Chapter 8 Events - Events are central to X. The fundamental framework for handling events was given in Chapter 3, but this chapter gives much more detail, both on selecting events for a window and on handling them when they arrive. It discusses each of the masks used to select events; for a description of the event structures themselves, see Appendix E.
Chapter 9 The Keyboard and Pointer - This chapter not only describes how to handle keyboard and pointer events but also describes many other topics related to these two input devices. In particular, it discusses X's use of keysyms as portable symbols for character encoding, keyboard remapping, keyboard and pointer "grabs," and keyboard and pointer preferences.
Chapter 10 Internationalization - This chapter begins with a detailed overview of the goals, concepts, and techniques of internationalization, starting with ANSI-C internationalization and progressing to the R5 internationalization features. After the overview, each section covers an individual topic in X internationalization.
Chapter 11 Internationalized Text Input - The first two sections provide an overview of the internationalized text input model used by R5, and are valuable to any programmer writing internationalized applications. The remaining sections describe the Xlib functions and datatypes for internationalized text input, and are quite detailed.
Chapter 12 Interclient Communication - As a multi-window environment, X must support a mechanism for communication between applications. There are three: properties, selections, and cut buffers, all of which are described in this chapter. The special case of communication between an application and the window manager is also covered here.
Chapter 13 Managing User Preferences - It is a fundamental part of the X philosophy that the user, not the application, should be in control of the way things work. For this reason, applications should allow the user to specify window geometry and many other characteristics both via command line options and in a file that specifies default preferences. This chapter discusses the use of the resource manager, which helps an application to evaluate and merge its own default with user preferences.
Chapter 14 A Complete Application - This chapter describes and demonstrates these techniques with a real application, basecalc. The basecalc application is a programmer's calculator that allows integer calculations in binary, octal, decimal, and hexadecimal and conversions between these bases.
Chapter 15 Other Programming Techniques - This chapter discusses a few orphaned techniques that didn't quite fit in anywhere else. The routines and techniques described here will not be needed in most programs. The end of the chapter contains information about porting and portability.
Chapter 16 Window Management - This chapter discusses the design of a simple window manager, not so you will be able to write one, but so you will know what to expect from one. A window manager is a program implemented with Xlib to control the layout of windows on the screen, responding to user requests to move, resize, raise, lower, or iconify windows.
Appendix A Specifying Fonts
Appendix B X10 Compatibility
Appendix C Writing Extensions to X
Appendix D The basecalc Application
Appendix E Event Reference
Appendix F The Xmu Library
Appendix G Sources of Additional Information
Appendix H Release Notes
This book does an extremely good and thorough job of documenting Xlib programming.
It is without a doubt the best technical reference I have ever read.
Top reviews from other countries
Es ist wirlich schade, dass die Bände dieser Serie nicht mehr von
O'Reilly "gepflegt" werden - das wäre eigentlich unbedingt nötig,
um die teils doch etwas veralteten Quellen an die neuen Releases
von X anzupassen (und die Bugs herauszuwerfen).









