Basic Graphics Programming With The XCB Library
- Introduction
- The client and server model of the X window system
- GUI programming: the asynchronous model
- Basic XCB notions
- The X Connection
- Requests and replies: the Xlib killers
- The Graphics Context
- Object handles
- Memory allocation for XCB structures
- Events
- Using XCB-based programs
- Opening and closing the connection to an X server
- Checking basic information about a connection
- Creating a basic window - the "hello world" program
- Drawing in a window
- X Events
- Handling text and fonts
- Windows hierarchy
- Root, parent and child windows
- Events propagation
- Interacting with the window manager
- Window properties
- Setting the window name and icon name
- Setting preferred window size(s)
- Setting miscellaneous window manager hints
- Setting an application's icon
- Obeying the delete-window protocol
- Simple window operations
- Using colors to paint the rainbow
- Color maps
- Allocating and freeing Color Maps
- Allocating and freeing a color entry
- Drawing with a color
- X Bitmaps and Pixmaps
- What is a X Bitmap ? An X Pixmap ?
- Loading a bitmap from a file
- Drawing a bitmap in a window
- Creating a pixmap
- Drawing a pixmap in a window
- Freeing a pixmap
- Messing with the mouse cursor
- Translation of basic Xlib functions and macros
- Members of the Display structure
- ScreenOfDisplay related functions
- ScreenOfDisplay
- DefaultScreenOfDisplay
- RootWindow / RootWindowOfScreen
- DefaultRootWindow
- DefaultVisual / DefaultVisualOfScreen
- DefaultGC / DefaultGCOfScreen
- BlackPixel / BlackPixelOfScreen
- WhitePixel / WhitePixelOfScreen
- DisplayWidth / WidthOfScreen
- DisplayHeight / HeightOfScreen
- DisplayWidthMM / WidthMMOfScreen
- DisplayHeightMM / HeightMMOfScreen
- DisplayPlanes / DefaultDepth / DefaultDepthOfScreen / PlanesOfScreen
- DefaultColormap / DefaultColormapOfScreen
- MinCmapsOfScreen
- MaxCmapsOfScreen
- DoesSaveUnders
- DoesBackingStore
- EventMaskOfScreen
- Miscellaneaous macros