12.07.2015 Views

Xlib − C Language X Interface

Xlib − C Language X Interface

Xlib − C Language X Interface

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Xlib</strong> − C LibraryX11, Release 6.7 DRAFTQLength (display)int XQLength(display)Display *display;displaySpecifies the connection to the X server.Both return the length of the event queue for the connected display. Note that there may be moreevents that have not been read into the queue yet (see XEventsQueued).RootWindow(display, screen_number)Window XRootWindow(display, screen_number)Display *display;int screen_number;displayscreen_numberSpecifies the connection to the X server.Specifies the appropriate screen number on the host server.Both return the root window. These are useful with functions that need a drawable of a particularscreen and for creating top-level windows.ScreenCount (display)int XScreenCount(display)Display *display;displaySpecifies the connection to the X server.Both return the number of available screens.ServerVendor (display)char *XServerVendor (display)Display *display;displaySpecifies the connection to the X server.Both return a pointer to a null-terminated string that provides some identification of the owner ofthe X server implementation. If the data returned by the server is in the Latin Portable CharacterEncoding, then the string is in the Host Portable Character Encoding. Otherwise, the contents ofthe string are implementation-dependent.17

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!