Volume Two

Xlib Reference Manual

for Version 11 of the X Window System

edited by Adrian Nye

O'Reilly & Associates, Inc.

Copyright © 1988,1989,1990 O'Reilly & Associates, Inc. All Rights Reserved

The X Window System is a trademark of the Massachusetts Institute of Technology. UNIX is a registered trademark of AT&T.

Revision and Printing History

August 1988: First Printing.

November 1988: Second Printing. Minor revisions.

May 1989: Third Printing. Release 3 updates added. Minor revisions.

April 1990: Second Edition covers Release 3 and Release 4. Major revisions.

July 1990: Fifth Printing. Minor revisions.

Small Print

This document is based in part on Xlib-C Language X Interface, by Jim Gettys, Ron Newman, and Robert Scheifler, and the X Window System Protocol, Version 11, by Robert Scheifler and Ron Newman, both of which are copyright © 1985, 1986, 1987 the Massachusetts Institute of Technology, Cambridge, Massachusetts, and Digital Equipment Corporation, Maynard, Massachusetts. In addition, we have included some material provided in Oliver Jones' Xlib Tutorial Overheads, which was distributed at the MIT X Conference in January 1988 and which is copyright © 1987 Apollo Computer, Inc. Appendix F is based on the Inter-Client Communication Conventions Manual by David Rosenthal, which is copyright © 1988 Sun Microsystems, Inc.

We have used this material under the terms of its copyright, which grants free use, subject to the following condi tions:

"Permission to use, copy, modify and distribute this documentation (i.e., the original MIT, DEC, Sun Microsystems, or Apollo material) for any purpose and without fee is hereby granted, provided that the above copyright notice appears in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of MTT, Apollo, Digital, or Sun not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. MIT and Digital make no representations about the suitability of the software described herein for any purpose. It is provided 'as is' without expressed or implied warranty."

Note, however, that those portions of this document that are based on the original XI1 documentation and other source material have been significantly revised and that all such revisions are copyright © 1987, 1988, 1989, 1990 O'Reilly & Associates, Inc. Inasmuch as the proprietary revisions cannot be separated from the freely copyable MTT source material, the net result is that copying of this document is not allowed. Sorry for the doublespeak!

While every precaution has been taken in the preparation of this book, we assume no responsibility for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained herein.

Volume 2: ISBN 0-937175-12-9 Set: ISBN 0-937175-13-7

The X Window System

The books in the X Window System Series are based in part on the original MIT X Window System documentation, but are far more comprehensive, easy to use, and are loaded with examples, tutorials and helpful hints. Over 20 major computer vendors recommend or license volumes in the series. In short, these are the definitive guides to the X Window System.

Volume 0:

X Protocol Reference Manual

A complete programmer's reference to the X Network Protocol, the language of communication between the X server and the X clients. 498 pages. $30.00.

Volumes 1 and 2:

Xlib Programming Manual

Xlib Reference Manual

Revised for Release 4. Complete guide and reference to programming with the X library (Xlib), the lowest level of programming interface to X. 672 and 792 pages. $60.00 for the set. or $34.95 each.

Volume 3:

X Window System User's Guide

Revised and enlarged for X11 Release 4. Describes window system concepts and the most common client applications available for X11. Includes complete explanation of the new window manager, fww, and a chapter on Motif. For experienced users, later chapters explain customizing the X envi ronment. Useful with either Release 3 or Release 4. 749 pages. $30.00.

Volumes 4 and 5:

X Toolkit Intrinsics Programming Manual

X Toolkit Intrinsics Reference Manual

Complete guides to programming with the X Toolkit. The Programming Manual provides concepts and examples for using widgets and for the more complex task of writing new widgets. The Reference Manual provides reference pages for Xt functions, and Xt and Athena widgets. 582 and 545 pages. $55.00 for the set, or $30.00 each.

Volume 7:

XView Programming Manual

XView is an easy-to-use toolkit that is not just for Sun developers. It is available on MIT's R4 tape and System V Release 4, as well as being a part of Sun's Open Windows package. This manual provides complete information on XView, from concepts to creating applications to reference pages. 566 pages. $30.00.

The X Window System in a Nutshell

For the experienced X programmer, contains essential information from other volumes of the series in a boiled-down, quick reference format that makes it easy to find the answers needed most often. 380 pages. $24.95.

For orders or a free catalog of all our books, please contact us.

O'Reilly & Associates, Inc.

Creators and Publishers of Nutshell Handbooks

632 Petaluma Avenue. Sebastopol. CA 95472

email: uunet!ora!nuts • 1-800-338-6887 • 1-707-829-0515 FAX 1-707-829-0104

Table of Contents

Page

Preface xvii

About This Manual xvii

Summary of Contents xvii

How to Use This Manual xviii

Example Programs xix

Assumptions xx

Font Conventions Used in This Manual xx

Related Documents xxi

Requests for Comments xxi

Bulk Sales Information xxii

Acknowledgements xxii

Permuted Index .. ... i

Xlib Function Reference 33

Introduction 33

XActivateScreenSaver 35

XAddHost 36

XAddHosts 38

XAddPixel 40

XAddToSaveSet 42

XAllocClassHint 43

XAllocColor 44

XAllocColorCells 46

XAllocColorPlanes 48

XAllocIconSize 50

XAllocNamedColor 51

XAllocSizeHints 53

XAllocStandardColormap 54

XAllocWMHints 55

XAllowEvents 56

XAutoRepeatOff 59

XAutoRepeatOn 60

XBell 61

XChangeKeyboardControl 65

XChangeKeyboardMapping 67

XChangePointerControl 69

XChangeProperty 71

XChangeSaveSet 73

XChangeWindow Attributes 74

XChecklffivent 77

XCheckMaskEvent 78

XCheckTypedEvent 79

XCheckTypedWindowEvent 80

XCheckWindowEvent 81

XCirculateSubwindows 82

XCirculateSubwindowsDown 83

XCirculateSubwindowsUp 84

XClearArea 85

XClearWindow 87

XClipBox 88

XCloseDisplay 89

XConfigure Window 90

XConvertSelection 94

XCopyArea 95

XCopyColormapAndFree 97

XCopyGC 98

XCopyPlane 100

XCreateAssocTable 102

XCreateBitmapFromData 103

XCreateColormap 105

XCreateFontCursor 107

XCreateGC 109

XCreateGlyphCursor 112

XCreatelmage 114

XCreatePixmap 116

XCreatePixmapCursor 117

XCreatePixmapFromBitmapData 119

XCreateRegion 121

XCreateSimpleWindow 122

XCreateWindow 124

XDefineCursor 127

XDeleteAssoc 128

XDeleteContext 129

XDeleteModifiermapEntry 130

XDeleteProperty 132

XDestroyAssocTable 133

XDestroylmage 134

XDestroyRegion 135

XDestroySubwindows 136

XDestroyWindow 137

vl

XDisplayKeycodes 139

XDisplayName 140

XDraw 141

XDrawArc 143

XDrawArcs 146

XDrawFilled 149

XDrawImageString 150

XDrawImageStringl6 152

XDrawLine 154

XDrawLines 155

XDrawPoint 157

XDrawPoints 158

XDrawRectangle 160

XDrawRectangles 162

XDrawSegments 164

XDrawString 166

XDrawStringl6 168

XDrawText 170

XDrawTextl6 172

XEmptyRegion 174

XEnableAccessControl 175

XEqualRegion 176

XEventsQueued 177

XFetchBuffer 178

XFetchBytes 179

XFetchName 180

XFillArc 181

XFillArcs 183

XFillPolygon 185

XFillRectangle 187

XFillRectangles 189

XFindContext 191

XFlush 192

XForceScreenSaver 193

XFree 194

XFreeColormap 195

XFreeColors 196

XFreeCursor 197

XFreeExtensionList 198

XFreeFont 199

XFreeFondnfo 200

XFreeFontNames 201

XFreeFontPath 202

XFreeGC 203

XFreeModifiermap 204

XFreePixmap 205

XFreeStringList 206

vii

XGeometry 208

XGetAtomName 210

XGetClassHint 211

XGetDefault 212

XGetErrorDatabaseText 214

XGetEnorText 216

XGelFontPath 217

XGetFontProperty 218

XGetGCValues 219

XGetGeometry 221

XGetlconName 222

XGetlconSizes 223

XGetlmage 225

XGetlnputFocus 227

XGetKeyboardControl 228

XGetKeyboardMapping 229

XGetModifierMapping 231

XGetMotionEvents 232

XGetNormalHints 234

XGetPixel 236

XGetPointerControl 238

XGetPointerMapping 239

XGetRGBColormaps 240

XGetScreenSaver 242

XGetSelectionOwner 243

XGetSizeHints 244

XGetStandardColormap 246

XGetSublmage 248

XGetTextProperty 250

XGetTransientForHint 252

XGetVisuallnfo 253

XGetWMIconName 255

XGetWMName 256

XGetWMNormalHints 257

XGetWMSizeHints 259

XGetWindowAttributes 261

XGetWindowProperty 264

XGetWMHints 267

XGetZoomHints 268

XGrabButton 270

XGrabKey 273

XGrabKeyboard 275

XGrabPointer 277

XGrabServer 280

XlconifyWindow 281

XlfEvent 282

XlnsertModifiermapEntry 283

via

XInternAtom 287

XIntersectRegion 289

XKeycodeToKeysym 290

XKeysymToKeycode 291

XKeysymToString 292

XKillClient 293

XListDepths 294

XListExtensions 295

XListFonts 296

XListFontsWithlnfo 297

XListHosts 299

XListlnstalledColormaps 300

XListPixmapFormats 301

XListProperties 302

XLoadFont 303

XLoadQueryFont 304

XLookUpAssoc 306

XLookupColor 307

XLookupKeysym 309

XLookupString 311

XLowerWindow 313

XMakeAssoc 314

XMapRaised 315

XMapSubwindows 316

XMapWindow 317

XMaskEvent 318

XMatchVisuallnfo 319

XMoveResizeWindow 320

XMoveWindow 321

XNewModifiermap 322

XNextEvent 323

XNoOp 324

XOffsetRegion 325

XOpenDisplay 326

XParseColor 328

XParseGeometry 330

XPeekEvent 331

XPeeklfEvent 332

XPending 333

Xpermalloc 334

XPointlnRegion 335

XPolygonRegion 336

XPutBackEvent 337

XPutlmage 338

XPutPixel • 340

XQueryBestCursor 342

XQueryBestSize 343

XQueryBestTile 346

XQueryColor 347

XQueryColors 348

XQueryExtension 349

XQueryFont 350

XQueryKeymap 352

XQueryPointer 353

XQueryTextExtents 355

XQueryTextExtentsl6 357

XQueryTree 359

XRaise Window 360

XReadBitmapFile 361

XRebindKeysym 363

XRecolorCursor 364

XReconfigureWMWindow 365

XRecanRegion 367

XRefreshKeyboardMapping 368

XRemoveFromSaveSet 369

XRemoveHost 370

XRemoveHosts 372

XReparentWindow 374

XResetScreenSaver 376

XResizeWindow 377

XRestackWindows 378

XrmDestroyDatabase 379

XrmGetFileDatabase 380

XrmGetResource 381

XrmGetStringDatabase 385

Xrmlnitialize 386

XrmMergeDatabases 387

XrmParseCommand 388

XrmPutFileDatabase 391

XrmPutLineResource 392

XrmPutResource 394

XrmPutStringResource 395

XrmQGetResource 396

XrmQGetSearchList 398

XrmQGetSearchResource 400

XrmQPutResource 402

XrmQPutStringResource 404

XrmQuarkToString 406

XrmSlringToBindingQuarkList 407

XrmStringToQuark 409

XrmStringToQuarkList 410

XrmUniqueQuark 412

XRotateBuffers 413

XRotateWindowProperties 414

XSelectlnput 417

XSendEvent 419

XSetAccessControl 421

XSetAfterFunction 422

XSetArcMode 423

XSetBackground 425

XSetClassHint 426

XSetClipMask 427

XSetClipOrigin 428

XSetClipRectangles 429

XSetCloseDownMode 431

XSetCommand 432

XSetDashes 433

XSetErrorHandler 435

XSetFillRule 437

XSetFillStyle 439

XSetFont 441

XSetFontPath 442

XSetForeground 443

XSetFunction 444

XSetGraphicsExposures 446

XSetlconName 447

XSetlconSizes 448

XSetlnputFocus 449

XSetlOErrorHandler 451

XSetLineAttributes 452

XSetModifierMapping 454

XSetNormalHints 456

XSetPlaneMask 458

XSetPointerMapping 459

XSetRGBColormaps 460

XSetRegion 462

XSetScreenSaver 463

XSetSelectionOwner 465

XSetSizeHints 467

XSetStandardColormap 469

XSetStandardProperties 471

XSetState 473

XSetStipple 474

XSetSubwindowMode 475

XSctTcxtProDcrtv 476

XSetTile 477

XSetTransientForHint 478

XSetTSOrigin 479

XSetWMClientMachine 480

XSetWMColormapWindows 481

XSetWMIconName 482

xi

XSetWMNormalHints 484

XSetWMProperties 486

XSetWMProtocols 489

XSetWMSizeHints 490

XSetWindowBackground 492

XSetWindowBackgroundPixmap 493

XSetWindowBorder 495

XSetWindowBorderPixmap 496

XSetWindowBorderWidth 497

XSetWindowColormap 498

XSetWMHints 499

XSetZoomHints 501

XShrinkRegion 503

XStoreBuffer 504

XStoreBytes 505

XStoreColor 506

XStoreColors 507

XStoreName 508

XStoreNamedColor 509

XStringListToTextProperty 510

XStringToKeysym 511

XSublmage 512

XSubtractRegion 513

XSync 514

XSynchronize 515

XTextExtents 516

XTextExtentsl6 518

XTextPropertyToStringList 520

XTextWidth 521

XTextWidthl6 522

XTranslateCoordinates 523

XUndefineCursor 524

XUngrabButton 525

XUngrabKey 526

XUngrabKeyboard 527

XUngrabPointer 528

XUngrabServer 529

XUninstallColormap 530

XUnionRectWithRegion 531

XUnionRegion 532

XUniqueContext 533

XUnloadFont 534

XUnmapSubwindows 535

XUnmapWindow 536

XVisuallDFromVisual 537

XWMGeometry 538

XWarpPointer 540

xii

XWithdrawWindow 543

XWriteBitmapFile 544

XXorRegion ,... 545

Appendix A: Function Group Summary 547

Group Listing with Brief Descriptions 547

Alphabetical Listing of Routines ... 563

Appendix B: Error Messages and Protocol Requests 573

Appendix C: Macros 581

Display Macros 582

Image Format Macros 586

Keysym Classification Macros 586

Resource Manager Macros 586

Appendix D: The Color Database 589

Appendix E: Event Reference 599

Meaning of Common Structure Elements 601

ButtonPress, ButtonRelease 603

CirculateNotify 605

CirculateRequest 606

ClientMessage 607

ColormapNotify 608

ConfigureNotify 609

ConfigureRequest 611

CreateNotify 613

DestroyNotify 615

EnterNotify, LeaveNotify 616

Extx)sc • *..«.................. 622

Focusln, FocusOut 624

GraphicsExpose, NoExpose 630

GravityNotify 632

KeymapNotify 633

KeyPress, KeyRelease 634

MapNotify, UnmapNotify 636

MappingNotify 638

xiii

MapRequest 640

MotionNotify 641

PropertyNotify 643

ReparentNotify 644

ResizeRequest 645

SelectionClear 646

SelectionNotify 647

SelectionRequest 648

VisibilityNotify 649

Appendix F: Structure Reference 651

Description of Header Files 651

Resource Types 652

Structure Definitions ... .... 652

Appendix G: Symbol Reference 665

Appendix H: Keysyms 691

Keysyms and Description 692

Appendix I: The Cursor Font 709

Appendix J: The Xmu Library 711

XctCreate 712

XctFree 714

XctNextltem 715

XctReset 717

XmuAddCloseDisplayHook 718

XmuAllStandardColormaps 719

XmuClientWindow 712

XmuComparelSOLatinl 722

XmuCopylSOLatinlLowered 723

XmuCopylSOLatinlUppered 724

XmuCreateColormap 725

XmuCreatePixmapFromBitmap 726

XmuCreateStippledPixmap 727

XmuCursorNameToIndex 728

XmuDQAddDisplay 729

XmuDQCreate 730

XmuDQDestroy 731

XmuDQNDisplays 733

XmuDQRemoveDisplay 734

XmuDeleteStandardColormap 735

XmuDrawLogo 736

XmuDrawRoundedRectangle 737

XmuFillRoundedRectangle 738

XmuGetAtomName 739

XmuGetColormapAllocation 740

XmuGetHostname 741

XmuInternAtom 742

XmuInternStrings 743

XmuLocateBitmapFile 744

XmuLookup* 745

XmuLookupCloseDisplayHook 747

XmuLookupStandardColormap 748

XmuMakeAtom 750

XmuNameOfAtom 751

XmuPrintDefaultErrorMessage 752

XmuReadBitmapData 753

XmuReadBitmapDataFromFile 754

XmuReleaseStippledPixmap 755

XmuRemoveCloseDisplayHook 756

XmuScreenOfWindow 757

XmuSimpleError Handler 758

XmuStandardColormap 759

XmuUpdateMapHints 760

XmuVisualStandardColormaps 761

Window Attributes At-a-glance 763

GC At-a-glance 765

XV

Preface

About This Manual

This manual describes the X library, the C Language programming interface to Version 11 of the X Window System. The X library, known as Xlib, is the lowest level of programming interface to X. This library enables a programmer to write applications with an advanced user interface based on windows on the screen, with complete network transparency, that will run without changes on many types of workstations and personal computers.

Xlib is powerful enough to write effective applications without additional programming tools and is necessary for certain tasks even in applications written with higher-level "toolkits."

There are a number of these toolkits for X programming, the most notable being the DEC/MIT toolkit Xt, the Andrew toolkit developed by IBM and Carnegie-Mellon University, and the Interviews toolkit from Stanford. These toolkits are still evolving, and only Xt is currently part of the X standard. Toolkits simplify the process of application writing con siderably, providing a number of widgets that implement menus, command buttons, and other common features of the user interface.

This manual does not describe Xt or any other toolkit. That is done in Volumes Four, Five, and Six of our X Window System series. Nonetheless, much of the material described in this book is helpful for understanding and using the toolkits, since the toolkits themselves are written using Xlib and allow Xlib code to be intermingled with toolkit code.

Summary of Contents

This manual is divided into two volumes. This is the second volume, the Xlib Reference Manual. It includes reference pages for each of the Xlib functions (organized alphabeti cally), a permuted index, and numerous appendices and quick reference aids.

The first volume, the Xlib Programming Manual, provides a conceptual introduction to Xlib, including tutorial material and numerous programming examples. Arranged by task or topic, each chapter brings together a group of Xlib functions, describes the conceptual foundation they are based on, and illustrates how they are most often used in writing applications (or, in the case of the last chapter, in writing window managers). Volume One is structured so as to be useful as a tutorial and also as a task-oriented reference.

Preface

Volume One and Volume Two are designed to be used together. To get the most out of the examples in Volume One, you will need the exact calling sequences of each function from Volume Two. To understand fully how to use each of the functions described in Vol ume Two, all but the most experienced X "hacker" will need the explanation and examples in Volume One.

Both volumes include material from the original Xlib and XI1 Protocol documentation pro vided by MIT, as well as from other documents provided on the MIT release tape. We have done our best to incorporate all of the useful information from the MIT documentation, to correct references we found to be in error, to reorganize and present it in a more useful form, and to supplement it with conceptual material, tutorials, reference aids, and examples. In other words, this manual is not only a replacement but is a superset of the MIT documenta tion.

Those of you familiar with the MIT documentation will recognize that each reference page in Volume Two includes the detailed description of the routine found in Gettys, Newman, and Scheifler's Xlib-C Language X Interface, plus, in many cases, additional text that clarifies ambiguities and describes the context in which the routine would be used. We have also added cross references to related reference pages and to where additional information can be found in Volume One.

How to Use This Manual

Volume Two is designed to make it as easy and fast as possible to look up virtually any fact about Xlib. It includes a permuted index, reference pages for each library function, appen dices that cover macros, structures, function groups, events, fonts, colors, cursors, keysyms, and errors, and at-a-glance tables for the graphics context and window attributes.

The permuted index is the standard UNIX way of finding a particular function name given a keyword. By looking up a word in the second column that you think describes the function you are looking for, you can find the group of functions that have that word in their descrip tion lines. The description line also appears at the top of each reference page. Once you have found the routine you are looking for, you can look for its reference page.

The reference pages themselves provide all the details necessary for calling each routine, including its arguments, returned values, definitions of the structure types of arguments and returned values, and the errors it may generate. Many of the pages also give hints about how the routine is used in the context of other routines. This is the part of this volume you will use the most.

Appendix A, Function Group Summary, groups the routines according to function, and pro vides brief descriptions. You'll find it useful to have in one place a description of related routines, so their differences can be noted and the appropriate one chosen.

Appendix B, Error Messages and Protocol Requests, describes the errors that Xlib routines can generate. When an error is handled by the default error handler, one of these messages is printed. Also printed is the X Protocol request that caused the error. Since Protocol requests do not map directly to Xlib routines, this appendix provides a table with which you can find out which Xlib routine in your code caused the error.

Xlib Reference Manual

Appendix C, Macros, describes the macros that access members of the Display structure, classify keysyms, and convert resource manager types.

Appendix D, ColorCaEE, presents the standard color database. The color names in this data base should be available on all servers, though the corresponding RGB values may have been modified to account for screen variations.

Appendix E, Event Reference, describes each event type and structure, in a reference page format. This is an invaluable reference for event programming.

Appendix F, Structure Reference, describes all structures used by Xlib except the event struc tures described in Appendix E, including which routines use each structure.

Appendix G, Symbol Reference, lists in alphabetical order and describes all of the symbols defined in Xlib include files.

Appendix H, Keysym Reference, lists and describes each character in the standard keysym families, used for translating keyboard events. The characters for English and foreign lan guage keysyms are shown where possible.

Appendix I, The Cursor Font, describes the standard cursor font, including a illustration of the font shapes.

Appendix J, The Xmu Library, provides reference pages for each function in the miscella neous utilities library. This library is provided with the standard X distribution and is very useful when programming with Xlib.

Finally, Volume Two concludes with at-a-glance charts that help in setting the graphics con text (GC) and the window attributes.

Example Programs

The example programs in this book are on the XI1 Release 4 distribution in the contributed section. There are many ways of getting this distribution; most are described in Appendix H.

The example programs are also available free from UUNET (that is, free except for UUNET's usual connect-time charges). If you have access to UUNET, you can retrieve the source code using uucp orftp. For uucp, find a machine with direct access to UUNET and type the follow ing command:

uucp uunet\!~uucp/nutshell/Xlib/xlibprgs.tar.Z yourhosW'/yourname/

The backslashes can be omitted if you use the Bourne shell (sh) instead of csh. The file should appear some time later (up to a day or more) in the directory lusrlspoolluucp-publiclyourname.

To ustftp,ftp to uunet.uu.net and use anonymous as your user name and guest as your pass word. Then type the following:

cd /nutshell/Xlib

binary ( you must specify binary transfer for compressed files)

get xlibprgs.tar.Z

bye

Preface

The file is a compressed tar archive. To restore the files once you have retrieved the archive, type:

uncompress xlibprgs.tar tar xvf xlibprgs.tar

The example programs are also available free by/fp from expo.lcs.mit.edu. The directory containing the examples is contriblexampleslOReillylXlib .

The examples will be installed in subdirectories under the current directory, one for each chapter in the book. Imakefiles are included. (Imakefiles are used with imake, a program supplied with the XI1 distribution that generates proper Makefiles on a wide variety of sys tems.)

Assumptions

Readers should be proficient in the C programming language, although examples are pro vided for infrequently used features of the language that are necessary or useful when pro gramming with X. In addition, general familiarity with the principles of raster graphics will be helpful.

Font Conventions Used in This Manual

Italic is used for:

• UNIX pathnames, filenames, program names, user command names, and options for user commands.

• New terms where they are defined.

Typewriter Font is used for:

• Anything that would be typed verbatim into code, such as examples of source code and text on the screen.

• The contents of include files, such as structure types, structure members, symbols (defined constants and bit flags), and macros.

• Xlib functions.

• Names of subroutines of the example programs.

Italic Typewri ter Fon t is used for:

• Arguments to Xlib functions, since they could be typed in code as shown but are arbi trary.

Helvetica Italics are used for:

• Titles of examples, figures, and tables.

xx Xlib Reference Manual

Boldface is used for:

• Chapter and section headings.

Related Documents

The C Programming Language by B. W. Kernighan and D. M. Ritchie The following documents are included on the XI1 source tape:

Xt Toolkit Intrinsics by Joel McCormack, Paul Asente, and Ralph Swick

Xt Toolkit Widgets by Ralph Swick and Terry Weissman

Xlib-C Language X Interface by Jim Gettys, Ron Newman, and Robert Scheifler

X Window System Protocol, Version 11 by Robert Scheifler

The following books on the X Window System are available from O'Reilly and Associates, Inc.:

Volume Zero — X Protocol Reference Manual

Volume Three — X Window System User's Guide

Volume Four — X Toolkit Intrinsics Programming Manual

Volume Five — X Toolkit Intrinsics Reference Manual

Volume Six — X Toolkit Widgets Reference Manual (available summer 1990)

Volume Seven — XView Programmer's Guide

Quick Reference — The X Window System in a Nutshell

Requests for Comments

Please write to tell us about any flaws you find in this manual or how you think it could be improved, to help us provide you with the best documentation possible.

Our U.S. mail address, e-mail address, and telephone number are as follows:

O'Reilly and Associates, Inc. 632 Petaluma Avenue Sebastopol, CA 95472 (800) 338-6887

UUCP: uunet!ora!adrian ARPA: adrian@ora.UU.NET

Bulk Sales Information

This manual is being resold as the official X Window System documentation by many work station manufacturers. For information on volume discounts for bulk purchase, call Linda Walsh at O'Reilly and Associates, Inc., at 617-354-5800, or send e-mail to linda@ora.com.

For companies requiring extensive customization of the book, source licensing terms are also available.

Acknowledgements

The information contained in this manual is based in part on Xlib-C Language X Interface, written by Jim Gettys, Ron Newman, and Robert Scheifler, and the X Window System Proto col, Version 11, by Robert Scheifler (with many contributors). The X Window System soft ware and these documents were written under the auspices of Project Athena at MIT. In addition, this manual includes material from Oliver Jones' Xlib tutorial presentation, which was given at the MIT X Conference in January 1988, and from David Rosenthal's Inter-Client Communication Conventions Manual.

I would like to thank the people who helped this book come into being. It was Tim O'Reilly who originally sent me out on a contract to write a manual for X Version 10 for a workstation manufacturer and later to another company to write a manual for X Version 11, from which this book began. I have learned most of what I know about computers and technical writing while working for Tim. For this book, he acted as an editor, he helped me reorganize several chapters, he worked on the Color and Managing User Preferences chapters when time was too short for me to do it, and he kept my spirits up through this long project. While I was concentrating on the details, his eye was on the overall presentation, and his efforts improved the book enormously.

This book would not be as good (and we might still be working on it) had it not been for Daniel Gilly. Daniel was my production assistant for critical periods in the project. He dealt with formatting issues, checked for consistent usage of terms and noticed irregularities in content, and edited files from written corrections by me and by others. His job was to take as much of the work off me as possible, and with his technical skill and knowledge of UNIX, he did that very well.

This manual has benefitted from the work and assistance of the entire staff of O'Reilly and Associates, Inc. Susan Willing was responsible for graphics and design, and she proofed many drafts of the book; Linda Mui tailored the troff macros to the design by Sue Willing and myself and was invaluable in the final production process; John Strang figured out the resource manager and wrote the original section on that topic; Karen Cakebread edited a draft of the manual and established some conventions for terms and format. Peter Mui exe cuted the "at-a-glance" tables for the inside back cover; Tom Scanlon entered written edits and performed copy fitting; Donna Woonteiler wrote the index of the book, Valerie Quercia, Tom Van Raalte, and Linda Walsh all contributed in some small ways; and Cathy Brennan, Suzanne Van Hove, and Jill Berlin fielded many calls from people interested in the X manual and saved me all the time that would have taken. Ruth Terry, Lenny Muellner, and Donna

xxii Xlib Reference Manual

Woonteiler produced the Second Edition, with graphics done by Chris Reilly. A special thanks to everyone at O'Reilly and Associates for putting up with my habits of printer and terminal hogging, lugging X books around, recycling paper, and for generally being good at what they do and good-natured to boot.

Many people sent in corrections for this Second Edition of the manual. Those whose efforts were most noteworthy were Jane-Na Chang of NEC, Jonathan Saunders of Identification and Security Systems Inc., Saundra Miller, and Russell Ferriday.

I would also like to thank the people from other companies that reviewed the book or other wise made this project possible: John Posner, Barry Kingsbury, Jeff MacMann and Jeffrey Vroom of Stellar Computer; Oliver Jones of Apollo Computer; Sam Black, Jeff Graber, and Janet Egan of Masscomp; Al Tabayoyon, Paul Shearer, and many others from Tektronix; Robert Scheifler and Jim Fulton of the X Consortium (who helped with the Color and Managing User Preferences chapters), and Peter Winston II and Aub Harden of Integrated Computer Solutions. Despite the efforts of the reviewers and everyone else, any errors that remain are my own.

— Adrian Nye

Preface

Permuted Index

How to Use the Permuted Index

The permuted index takes the brief descriptive string from the title of each command page and rotates (permutes) the string so that each keyword will at one point start the second, or center, column of the line. The beginning and end of the original string are indicated by a slash when they are in other than their original position; if the string is too long, it is trun cated.

To find the command you want, simply scan down the middle of the page, looking for a key word of interest on the right side of the blank gutter. Once you find the keyword you want, you can read (with contortions) the brief description of the command that makes up the entry. If things still look promising, you can look all the way over to the right for the name of the relevant command page.

The Permuted Index

for string and font metrics of a 16-bit character string /server XQueryTextExtents 16

/get string and font metrics of a 16-bit character string, locally XTextExtentsl6

/get the width in pixels of a 16-bit character string, locally XTextWidth 16

XDrawImageStringl6: draw 16-bit image text characters XDrawImageStringl6

XDrawTextl6: draw 16-bit polytext strings XDrawTextl6

/get the width in pixels of an 8-bit character string, locally XTextWidth

XDrawImageString: draw 8-bit image text characters XDrawImageString

XDrawText: draw 8-bit polytext strings XDrawText

only XDrawString: draw an 8-bit text string, foreground XDrawString

/disable or enable access control XSetAccessControl

XAddHost: add a host to the access control list XAddHost

add multiple hosts to the access control list XAddHosts: XAddHosts

/remove a host from the access control list XRemoveHost

/remove multiple hosts from the access control list XRemoveHosts

deny/ XEnableAccessControl: use access control list to allow or XEnableAccessControl

XDisableAccessControl: allow access from any host XDisableAccessControl

/obtain a b'st of hosts having access to this display XListHosts

XActivateScreenSaver: activate screen blanking XActivateScreenSaver

release the keyboard from an active grab XUngrabKeyboard: XUngrabKeyboard

release the pointer from an active grab XUngrabPointer: XUngrabPointer

/change the parameters of an active pointer grab XChangeActivePointerGrab

pixel value in an/ XAddPixel: add a constant value to every XAddPixel

b'st XAddHost: add a host to the access control XAddHost

Permuted Index

XInsertModifiermapEntry: add a new entry to an/ XInsertModifiermapEntry

XUnionRectWithRegion: add a rectangle to a region XUnionRectWithRegion

a/ XrmQPutStringResource: add a resource specification to XrmQPutStringResource

a resource/ XrmPutLineResource: add a resource specification to XrmPutLineResource

with/ XrmPutStringResource: add a resource specification XrmPutStringResource

save-set XAddToSaveSet: add a window to the client's XAddToSaveSet

control list XAddHosts: add multiple hosts to the access XAddHosts

the client's/ XChangeSaveSet: add or remove a sub window from XChangeSaveSet

XrmUniqueQuark: allocate a new quark XrmUniqueQuark

from color/ XAUocNamedColor: aUocate a read-only colorcell XAUocNamedColor

cell with closest/ XAUocColor: aUocate a read-only colormap XAllocColor

XAllocClassHint: allocate an XClassHint structure XAUocClassHint

XAllocIconSize: allocate an XlconSize structure XAllocIconSize

XAllocSizeHints: allocate an XSizeHints structure XAllocSizeHints

XAllocStandardColormap: allocate an XStandardColormap/ XAllocStandardColormap

XAllocWMHints: aUocate an XWMHints structure XAllocWMHints

structure XCreatelmage: allocate memory for an Xlmage XCreatelmage

freed Xpermalloc: allocate memory never to be Xpermalloc

XAllocColorPlanes: aUocate read/write/ XAUocColorPlanes

colorceUs XAUocColorCeUs: aUocate read/write (nonshared) XAUocColorCeUs

XFree: free specified memory aUocated by an Xlib function XFree

XFreeFontPath: free the memory aUocated by XGetFontPath XFreeFontPath

XFreeFontNames: free the memory aUocated by XListFonts XFreeFontNames

XFreeFontlnfo: free the memory aUocated by XListFontsWithlnfo XFreeFontlnfo

XFreeExtensionList: free memory aUocated for a list of/ XFreeExtensionList

table, /free the memory aUocated for an association XDestroyAssocTable

XDisableAccessControl: aUow access from any host XDisableAccessControl

/use access control Ust to aUow or deny connection/ XEnableAccessControl

colormap; instaU default if not already instaUed /uninstaU a XUninstaUColormap

XLoadFont: load a font if not already loaded; get font ID XLoadFont

contents of one database into another /merge the XrmMergeDatabases

subtract one region from another XSubtractRegion: XSubtractRegion

system from one window to another /change the coordinate XTranslateCoordinates

/move the pointer to another point on the screen XWarpPointer

/insert a window between another window and its parent XReparentWindow

into a drawable with depth, applying pixel values /drawable XCopyPlane

/convert a keysym to the appropriate keycode XKeysymToKeycode

XFiUArc: fdl an arc XFiUArc

XDrawArc: draw an arc fitting inside a rectangle XDrawArc

XSetArcMode: set the arc mode in a graphics context XSetArcMode

XDrawArcs: draw multiple arcs XDrawArcs

XFiUArcs: fiU multiple arcs XFiUArcs

fiU a rectangular area XFiURectangle: XFillRectangle

XClearArea: clear a rectangular area in a window XClearArea

XCopyArea: copy an area of a drawable XCopyArea

fiU multiple rectangular areas XFillRectangles: XFillRectangles

database from command line arguments /load a resource XrmParseCommand

XA_WM_COMMAND atom (command line arguments) XSetCommand: set the XSetCommand

properties in the properties array /rotate XRotateWindowProperties

/obtain RGB values for an array of colorceUs XQueryColors

/look up RGB values from ASCII color name or translate/ XParseColor

/map a key event to ASCII string, keysym, and/ XLookupString

XDefineCursor: assign a cursor to a window XDefineCursor

the window manager XStoreName: assign a name to a window for XStoreName

/deaUocate storage associated with a region XDestroyRegion

/change a property associated with a window XChangeProperty

XDestroylmage: deallocate memory associated with an image XDestroylmage

/the GContext (resource ID) associated with the specified/ XGContextFromGC

Xlib Reference Manual

/the XStandardColoimap structure associated with the specified/ XGetRGBColormaps

string/ /free the in-memory data associated with the specified XFreeStringLast

/delete an entry from an association table XDeleteAssoc

/free the memory allocated for an association table XDestroyAssocTable

obtain data from an association table XLookUpAssoc: XLookUpAssoc

create an entry in an association table XMakeAssoc: XMakeAssoc

XCreateAssocTable: create a new association table (X10) XCreateAssocTable

name for a property given its atom XGetAtomName: get a string XGetAtomName

get a font property given its atom XGetFontProperty: XGetFontProperty

/set the XA_WM_COMMAND atom (command line arguments) XSetCommand

string XInternAtom: return an atom for a given property name XInternAtom

XGetWindowProperty: obtain the atom type and property format/ XGetWindowProperty

/a window border pixel value attribute and repaint the border XSetWindowBorder

/change a window border tile attribute and repaint the border XSetWindowBorderPixmap

/set the colormap attribute for a window XSetWindowColormap

/set the background pixel value attribute of a window XSetWindowBackground

/change the background tile attribute of a window XSetWindowBackgroundPixmap

/set window attributes XChangeWindowAttributes

create a window and set attributes XCreateWindow: XCreateWindow

/obtain the current attributes of window XGetWindowAttributes

/turn off the keyboard auto-repeat keys X AutoRepeatOff

turn on the keyboard auto-repeat keys XAutoRepeatOn: XAutoRepeatOn

XPutBackEvent: push an event back on the input queue XPutBackEvent

XSetState: set the foreground, background, logical function,/ XSetState

XSetWindowBackground: set the background pixel value attribute/ XSetWindowBackground

XSelBackground: set the background pixel value in a/ XSetBackground

window /change the background tile attribute of a XSetWindowBackgroundPixmap

XAllowEvents: control the behavior of keyboard and pointer/ X AUowEvents

XBell: ring the bell (Control G) XBell

or/ XQueryBestSize: obtain the "best" supported cursor, tile, XQueryBestSize

XReparentWindow: insert a window between another window and its/ XReparentWindow

/calculate the difference between the union and/ XXorRegion

XDrawLine: draw a line between two points XDrawLine

XDraw: draw a polyline or curve between vertex list (from X10) XDraw

/convert a key string to a binding list and a quark list XrmStringToBindingQuarkList

of the/ XQueryKeymap: obtain a bit vector for the current state XQueryKeymap

/create a pixmap with depth from bitmap data XCreatePixmapFromBitmapData

/create a bitmap from XI1 bitmap format data XCreateBitmapFromData

XReadBitmapFile: read a bitmap from disk XReadBitmapFile

XCreateBitmapFromData: create a bitmap from XI1 bitmap format/ XCreateBitmapFromData

XWriteBitmapFile: write a bitmap to a file XWriteBitmapFile

create a cursor from two bitmaps XCreatePixmapCursor: XCreatePixmapCursor

graphics/ XSetFunction: set the bitwise logical operation in a XSetFunction

activate screen blanking XActivateScreenSaver: XActivateScreenSaver

value attribute and repaint the border /a window border pixel XSetWindowBorder

tile attribute and repaint the border /change a window border XSetWindowBorderPixmap

repaint the/ /change a window border pixel value attribute and XSetWindowBorder

repaint the/ /change a window border tile attribute and XSetWindowBorderPixmap

/change the border width of a window XSetWindowBorderWidth

/the window position, size, border width, or stacking order XConfigureWindow

/remove the next event matching both passed window and passed/ XCheckWindowEvent

stacking order /circulate the bottom child to the top of the XCirculateSubwindowsDown

/circulate the top child to the bottom of the stacking order XCirculateSubwindowsUp

return data from a cut buffer XFetchBuffen XFetchBuffer

from pointer motion history buffer /get events XGetMotionEvents

store data in a cut buffer XStoreBuffer: XStoreBuffer

return data from cut buffer 0 XFetchBytes: XFetchBytes

XStoreBytes: store data in cut buffer 0 XStoreBytes

Permuted Index

XPending: flush the request buffer and return the number of/ XPending

and/ XSync: flush the request buffer and wait for all events XSync

XFlush: flush the request buffer (display all queued/ XFlush

XRotateBuffers: rotate the cut buffers XRotateBuffers

XGrabButton: grab a pointer button XGrabButton

XUngrabButton: release a button from a passive grab XUngrabButton

/get the pointer button mapping XGetPointerMapping

/set the pointer button mapping XSetPointerMapping

of a given GC from Xlib's GC cache /obtain components XGetGCValues

the union and/ XXorRegion: calculate the difference between XXorRegion

user geometry string/ XGeometry: calculate window geometry given XGeometry

/set a function called after all Xlib functions XSetAfterFunction

allocate a read-only colormap cell with closest/ XAllocColon XAllocColor

with a window XChangeProperty: change a property associated XChangeProperty

value/ XSetWindowBorder: change a window border pixel XSetWindowBorder

XSetWindowBorderPixmap: change a window border tile/ XSetWindowBorderPixmap

XResizeWindow: change a window's size XResizeWindow

context to/ XSetClipRectangles: change clip_mask in a graphics XSetClipRectangles

XOffsetRegion: change offset of a region XOffsetRegion

XSetWindowBackgroundPixmap: change the background tile/ XSetWindowBackgroundPixmap

window XSetWindowBorderWidth: change the border width of a XSetWindowBorderWidth

client XSetCloseDownMode: change the close down mode of a XSetCloseDownMode

XRecolorCursor: change the color of a cursor XRecolorCursor

graphics context XChangeGC: change the components of a given XChangeGC

from one/ XTranslateCoordinates: change the coordinate system XTranslateCoordinates

XChangeKeyboardMapping: change the keyboard mapping XChangeKeyboardMapping

such as/ XChangeKeyboardControl: change the keyboard preferences XChangeKeyboardControl

XChangeActivePointerGrab: change the parameters of an/ XChangeActivePointerGrab

XChangePointerControl: change the pointer preferences XChangePointerControl

read/write/ XStoreColor: set or change the RGB values of a XStoreColor

read/write/ XStoreColors: set or change the RGB values of XStoreColors

a window XMoveResizeWindow: change the size and position of XMoveResizeWindow

siblings XRestackWindows: change the stacking order of XRestackWindows

property XSetStandardColormap: change the standard colormap XSetStandardColormap

size, border/ XConfigureWindow: change the window position, XConfigureWindow

and font metrics of a 16-bit character string /for string XQueryTextExtentsl6

/and font metrics of a 16-bit character string, locally XTextExtentsl6

the width in pixels of an 8-bit character string, locally /get XTextWidth

the width in pixels of a 16-bit character string, locally /get XTextWidthl6

draw 8-bit image text characters XDrawImageString: XDrawImageString

draw 16-bit image text characters XDrawImageString 16: XDrawImageString 16

matching event XChecklfEvent: check the event queue for a XChecklfEvent

the event queue XEventsQueued: check the number of events in XEventsQueued

stacking/ /circulate the top child to the bottom of the XCirculateSubwindowsUp

order /circulate the bottom child to the top of the stacking XCirculateSubwindowsDown

XQueryTree: return a list of children, parent, and root XQueryTree

/circulate the stacking order of children up or down XCirculateSubwindows

the/ XCirculateSubwindowsDown: circulate the bottom child to XCirculateSubwindowsDown

children/ XCirculateSubwindows: circulate the stacking order of XCirculateSubwindows

bottom/ XCirculateSubwindowsUp: circulate the top child to the XCirculateSubwindowsUp

matches the desired depth and class /visual information that XMatchVisuallnfo

a resource value using name and class as quarks /get XrmQGetResource

/get a resource from name and class as strings XrmGetResource

window XClearArea: clear a rectangular area in a XClearArea

XClearWindow: clear an entire window XClearWindow

keyboard preferences such as key click /change the XChangeKeyboardControl

rebind a keysym to a string for client XRebindKeysym: XRebindKeysym

change the close down mode of a client XSetCloseDownMode: XSetCloseDownMode

Xlib Reference Manual

XKillClient: destroy a client or its remaining/ XKillClient

and/ XCloseDisplay: disconnect a client program from an X server XCloseDisplay

XOpenDisplay: connect a client program to an X server XOpenDisplay

/add a window to the client's save-set XAddToSaveSet

or remove a subwindow from the client's save-set /add XChangeSaveSet

/remove a window from the client's save-set XRemoveFromSaveSet

context XSetClipOrigin: set the clip origin in a graphics XSetClipOrigin

to a/ XSetClipRectangles: change clip_mask in a graphics context XSetClipRectangles

context to the/ XSetRegion: set clip_mask of the graphics XSetRegion

context XSetClipMask: set clip_mask pixmap in a graphics XSetClipMask

XSetaoseDownMode: change the close down mode of a client XSetCloseDownMode

/a read-only colormap cell with closest hardware-supported color XAllocColor

/get database RGB values and closest hardware-supported RGB/ XLookupColor

/read/write colormap entry to the closest possible hardware color XStoreColor

/of read/write colorcells to the closest possible hardware colors XStoreColors

XQueryBestCursor: get the closest supported cursor sizes XQueryBestCursor

obtain a description of error code XGetErrorText: XGetErrorText

with closest hardware-supported color /a read-only colormap cell XAllocColor

to the closest possible hardware color /read/write colormap entry XStoreColor

a read-only colorcell from color name /allocate XAllocNamedColor

RGB values from color name /hardware-supported XLookupColor

of a read/write colorcell by color name /set RGB values XStoreNamedColor

/look up RGB values from ASCII color name or translate/ XParseColor

XRecolorCursor: change the color of a cursor XRecolorCursor

read/write (nonshareable) color planes /allocate XAllocColorPlanes

values and flags for a specified colorcell /obtain the RGB XQueryColor

/set RGB values of a read/write colorcell by color name XStoreNamedColor

/allocate a read-only colorcell from color name XAllocNamedColor

allocate read/write (nonshared) colorcells XAllocColorCells: XAllocColorCells

RGB values for an array of colorcells XQueryColors: obtain XQueryColors

/the RGB values of read/write colorcells to the closest/ XStoreColors

XCreateColormap: create a colormap XCreateColormap

colormap and install the default colormap /delete a XFreeColormap

XInstallColormap: install a colormap XlnstallColormap

XFreeColormap: delete a colormap and install the default/ XFreeColormap

XCopyColonmapAndFree: copy a colormap and return a new/ XCopyColormapAndFree

XSetWindowColormap: set the colormap attribute for a window XSetWindowColormap

/allocate a read-only colormap cell with closest/ XAllocColor

XFreeColors: free colormap cells or planes XFreeColors

/the RGB values of a read/write colormap entry to the closest/ XStoreColor

/copy a colormap and return a new colormap ID XCopyColormapAndFree

XUninstallColormap: uninstall a colormap; install default if not/ XUninstallColormap

/get the standard colormap property XGetStandardColormap

/change the standard colormap property XSetStandardColormap

/get a list of installed colormaps XListlnstalledColormaps

to the closest possible hardware colors /of read/write colorcells XStoreColors

/load a resource database from command line arguments XrmParseCommand

/set the XA_WM_COMMAND atom (command line arguments) XSetCommand

/set the graphics_exposures component in a graphics context XSetGraphicsExposures

/set the line drawing components in a graphics context XSetLineAttributes

Xlib's GC/ XGetGCValues: obtain components of a given GC from XGetGCValues

context XChangeGC: change the components of a given graphics XChangeGC

to ASCT string, keysym, and ComposeStatus /map a key event XLookupString

regions XIntersectRegion: compute the intersection of two XIntersectRegion

XUnionRegion: compute the union of two regions XUnionRegion

server XOpenDisplay: connect a client program to an X XOpenDisplay

XDrawLines: draw multiple connected lines XDrawLines

control list to allow or deny connection requests /use access XEnableAccessControl

Permuted Index

/report the display name (when connection to a display fails) XDisplayName

XNoOp: send a NoOp to exercise connection with the server XNoOp

value in an/ XAddPixel: add a constant value to every pixel XAddPixel

drawable into/ XGetLnage: place contents of a rectangle from XGetLnage

XrmMcrgeDatabases: merge the contents of one database into/ XnmMcrgcDatahascs

components of a given graphics context XChangeGC: change the XChangcGC

XCopyGC: copy a graphics context XCopyGC

context manager (not graphics context) /get data from the XFindContext

XFreeGC: free a graphics context XFreeGC

with the specified graphics context /ID) associated XGContextFromGC

and context type (not graphics context) /to a window XSaveContext

set the arc mode in a graphics context XSetArcMode: XSetArcMode

pixel value in a graphics context /set the background XSetBackground

clipjmask pixmap in a graphics context XSetClipMask: set XSetClipMask

the clip origin in a graphics context XSetClipOrigin: set XSetClipOrigin

of line dashes in a graphics context /set a pattern XSetDashes

set the fill rule in a graphics context XSetFillRule: XSetFillRule

set the fill style in a graphics context XSetFillStyle: XSetFillStyle

the current font in a graphics context XSetFont: set XSetFont

pixel value in a graphics context /set the foreground XSetForeground

logical operation in a graphics context /set the bitwise XSetFunction

component in a graphics context /the graphics_exposures XSetGraphicsExposures

drawing components in a graphics context /set the line XSetLJneAttributes

set the plane mask in a graphics context XSetPlaneMask: XSetPlaneMask

and plane mask in a graphics context /logical function, XSctState

set the stipple in a graphics context XSetStipple: XSetStipple

the sub window mode in a graphics context XSetSubwindowMode: set XSetSubwindowMode

set the fill tile in a graphics context XSetTile: XSetTile

origin in a graphics context /set the tile/stipple XSetTSOrigin

a new context ID (not graphics context) XUniqueContext: create XUniqueContext

and/ XDeleteContext: delete a context entry for a given window XDeleteContext

XCreateGC: create a new graphics context for a given screen with/ XCreateGC

XUniqueContext: create a new context ID (not graphics/ XUniqueContext

XFindContext: get data from the context manager (not graphics/ XFindContext

/change clip_mask in a graphics context to a list of rectangles XSetClipRectangles

/set clip_mask of the graphics context to the specified region XSetRegion

/corresponding to a window and context type (not graphics/ XSaveContext

disable or enable access control XSetAccessControl: XSetAccessControl

mapping of modifier keys (Shift, Control, etc.) /obtain a XGetModifierMapping

to be used as modifiers (Shift, Control, etc.) /set keycodes XSetModifierMapping

XBell: ring the bell (Control G) XBell

add a host to the access control list XAddHost: XAddHost

add multiple hosts to the access control list XAddHosts: XAddHosts

remove a host from the access control list XRemoveHost: XRemoveHost

multiple hosts from the access control list /remove XRemoveHosts

XEnableAccessControl: use access control list to allow or deny/ XEnableAccessControl

and pointer/ XAllowEvents: control the behavior of keyboard XAllowEvents

XrmStringToBindingQuarkList: convert a key string to a/ XrmStringToBindingQuarkList

list XrmStringToQuarkList: convert a key string to a quark XrmStringToQuarkUst

XKeycodeToKeysym: convert a keycode to a keysym XKeycodeToKeysym

a keysym XStringToKeysym: convert a keysym name string to XStringToKeysym

string XKeysymToString: convert a keysym symbol to a XKeysymToString

appropriate/ XKeysymToKeycode: convert a keysym to the XKeysymToKeycode

XrmQuarkToString: convert a quark to a string XrmQuarkToString

XrmStringToQuark: convert a string to a quark XrmStringToQuark

window to another /change the coordinate system from one XTranslateCoordinates

colormap/ XCopyColormapAndFree: copy a colormap and return a new XCopyColormapAndFree

XCopyGC: copy a graphics context XCopyGC

Xlib Reference Manual

a location within/ XGetSublmage: copy a rectangle in drawable to XGetSublmage

drawable into a/ XCopyPlane: copy a single plane of a XCopyPlane

XCopyArea: copy an area of a drawable XCopyArea

XLookupKeysym: get the keysym corresponding to a keycode in/ XLookupKeysym

XSaveContext: save a data value corresponding to a window and/ XSaveContext

format/ XCreateBitmapFromData: create a bitmap from XI1 bitmap XCreateBitmapFromData

XCreateColormap: create a colormap XCreateColormap

XCreateGlyphCursor: create a cursor from font glyphs XCreateGlyphCursor

standard/ XCreateFontCursor: create a cursor from the XCreateFontCursor

XCreatePixmapCursor: create a cursor from two bitmaps XCreatePixmapCursor

XrmGetStringDatabase: create a database from a string XrmGetStringDatabase

mapping/ XNewModifiermap: create a keyboard modifier XNewModifiermap

(X10) XCreateAssocTable: create a new association table XCreateAssocTable

graphics/ XUniqueContext: create a new context ID (not XUniqueContext

XCreateRegion: create a new empty region XCreateRegion

for a given screen/ XCreateGC: create a new graphics context XCreateGC

XCreatePixmap: create a pixmap XCreatePixmap

XCreatePixmapFromBitmapData: create a pixmap with depth from/ XCreatePixmapFromBitmapData

an image XSublmage: create a subimage from part of XSublmage

attributes XCreateWindow: create a window and set XCreateWindow

association table XMakeAssoc: create an entry in an XMakeAssoc

window XCreateSimpleWindow: create an unmapped InputOutput XCreateSimpleWindow

XGetWindowAttributes: obtain the current attributes of window XGetWindowAttributes

context XSetFont: set the current font in a graphics XSetFont

XGetFontPath: get the current font search path XGetFontPath

XGetGeometry: obtain the current geometry of drawable XGetGeometry

XGetlnputFocus: return the current keyboard focus window XGetlnputFocus

/obtain a list of the current keyboard preferences XGetKeyboardControl

XQueryPointer: get the current pointer location XQueryPointer

XGetPointerControl: get the current pointer preferences XGetPointerControl

XGetScreenSaver: get the current screen saver parameters XGetScreenSaver

/obtain a bit vector for the current state of the keyboard XQueryKeymap

XFreeCursor: release a cursor XFreeCursor

change the color of a cursor XRecolorCursor: XRecolorCursor

a cursor from the standard cursor font /create XCreateFontCursor

XUndefineCursor: disassociate a cursor from a window XUndefineCursor

XCreateGlyphCursor: create a cursor from font glyphs XCreateGlyphCursor

XCreateFontCursor: create a cursor from the standard cursor/ XCreateFontCursor

XCreatePixmapCursor: create a cursor from two bitmaps XCreatePixmapCursor

get the closest supported cursor sizes XQueryBestCursor: XQueryBestCursor

/obtain the "best" supported cursor, tile, or stipple size XQueryBestSize

XDefineCursor: assign a cursor to a window XDefineCursor

X10) XDraw: draw a polyline or curve between vertex list (from XDraw

X10) /draw a filled polygon or curve from vertex list (from XDrawFilled

XFetchBuffer: return data from a cut buffer XFetchBuffer

XStoreBuffer: store data in a cut buffer XStoreBuffer

XFetchBytes: return data from cut buffer 0 XFetchBytes

XStoreBytes: store data in cut buffer 0 XStoreBytes

XRotateBuffers: rotate the cut buffers XRotateBuffers

/set a pattern of line dashes in a graphics context XSetDashes

a bitmap from XI1 bitmap format data /create XCreateBitmapFromData

a pixmap with depth from bitmap data, /create XCreatePixmapFromBitmapData

specified/ /free the in-memory data associated with the XFreeStringList

XFetchBuffer: return data from a cut buffer XFetchBuffer

XLookUpAssoc: obtain data from an association table XLookllpAssoc

XFetchBytes: return data from cut buffer 0 XFetchBytes

(not graphics/ XFindContext: get data from the context manager XFindContext

XStoreBuffer: store data in a cut buffer XStoreBuffer

Permuted Index

XStoreBytes: store

window and/ XSaveContext: save a

option value from the resource

error messages from the error

destroy a resource

specification to a resource

specification into a resource

XrmGetFileDatabase: retrieve a

XrmGetStringDatabase: create a

XrmParseCommand: load a resource

/store a resource

/merge the contents of one

/return a list of

XLookupColor: get

/a resource specification to a

a resource specification into a

with an image XDestroylmage:

with a region XDestroyRegion:

or disable synchronization for

a colormap and install the

given user geometry string and

/uninstall a colormap; install

the default/ XFreeColormap:

given window/ XDeleteContext:

XDeleteProperty:

association/ XDeleteAssoc:

XDeleteModifiermapEntry:

access control list to allow or

that matches the desired

a drawable into a drawable with

/create a pixmap with

/for a given screen with the

XListDepths: determine the

XGetErrorText: obtain a

information that matches the

remaining/ XKillClient:

XrmDestroyDatabase:

XDestroyWindow: unmap and

window XDestroySubwindows:

modifier/ XFreeModifiermap:

region XPointlnRegion:

in a region XRectlnRegion:

XEmptyRegion:

the same size,/ XEqualRegion:

on a given screen XListDepths:

XXorRegion: calculate the

XSetAccessControl:

XSynchronize: enable or

window XUndefineCursor:

an X server and/ XCloseDisplay:

XDrawSegments: draw multiple

read a bitmap from

program from an X server and

of hosts having access to this

XFlush: flush the request buffer

name (when connection to a

a/ XDisplayName: report the

XSetlconName: set the name to be

data in cut buffer 0

data value corresponding to a

database /extract an

database /obtain

XStoreBytes

XSaveContext

XGetDefault

XGetErrorDatabaseText

database. XrmDestroyDatabase: XrmDestroyDatabase

database /add a resource XrmPutLineResource

database /store a resource XrmPutResource

database from a file XrmGetFileDatabase

database from a string XrmGetStringDatabase

database from command line/ XrmParseCommand

database in a file XrmPutFileDatabase

database into another XrmMergeDatabases

database levels XrmQGetSearchList

database RGB values and closest/ XLookupColor

database using a quark resource/ XrmQPutStringResource

database using quarks /store XrmQPutResource

deallocate memory associated XDestroylmage

deallocate storage associated XDestroyRegion

debugging XSynchronize: enable XSynchronize

default colormap /delete XFreeColormap

default geometry /geometry XGeometry

default if not already installed XUninstallColormap

delete a colormap and install XFreeColormap

delete a context entry for a XDeleteContext

delete a window property XDeleteProperty

delete an entry from an XDeleteAssoc

delete an entry from an/ XDeleteModifiermapEntry

deny connection requests /use XEnableAccessControl

depth and class /information XMatchVisuallnfo

depth, applying pixel values /of XCopyPlane

depth from bitmap data XCreatePixmapFromBitmapData

depth of the specified drawable XCreateGC

depths available on a given/ XListDepths

description of error code XGetErrorText

desired depth and class /visual XMatchVisuallnfo

destroy a client or its XKillClient

destroy a resource database XrmDestroyDatabase

destroy a window and all/ XDestroyWindow

destroy all subwindows of a XDestroySubwindows

destroy and free a keyboard XFreeModifiermap

determine if a point is inside a XPointlnRegion

determine if a rectangle resides XRectlnRegion

determine if a region is empty XEmptyRegion

determine if two regions have XEqualRegion

determine the depths available XListDepths

difference between the union and/ XXorRegion

disable or enable access control XSetAccessControl

disable synchronization for/ XSynchronize

disassociate a cursor from a XUndefineCursor

disconnect a client program from

disjoint lines

disk XReadBitmapFile:

display /disconnect a client

display /obtain a list

... XCloseDisplay XDrawSegments XReadBitmapFile XCloseDisplay XlistHosts XFlush XDisplayName

(display all queued requests)

display fails) /the display

display name (when connection to XDisplayName

displayed in a window's icon XSetlconName

Xlib Reference Manual

XGetlconName: get the name to be

next event that matches mask;

queue that matches event type;

passed window and passed mask;

stacking order of children up or

/change the close

characters XDrawImageStringl6:

XDrawTextl6:

XDrawImageString:

XDrawText:

from vertex list/ XDrawFilled: XDrawLine: XDrawPoint:

vertex list (from X10) XDraw:

foreground only XDrawString:

rectangle XDrawArc:

pixmap XPutlmage:

XDrawRectangle:

XDraw Arcs:

XDrawUnes:

XDra wSegments:

XDrawPoints:

rectangles XDrawRectangles:

XDrawStringl6:

XCopyArea: copy an area of a

with the depth of the specified

obtain the current geometry of

depth J /copy a single plane of a

contents of a rectangle from

the/ /copy a rectangle in

/plane of a drawable into a

XSetLineAttributes: set the line

determine if a region is

XCreateRegion: create a new

XSetAccessControl: disable or

synchronization/ XSynchronize:

generate the smallest rectangle

XClearWindow: clear an

XDeleteContext: delete a context

XDeleteAssoc: delete an

structure /delete an

XMakeAssoc: create an

structure /add a new

/values of a read/write colormap

obtain a description of

/obtain error messages from the

XSetErrorHandler: set a nonfatal

XGetErrorDatabaseText: obtain

/and wait for all events and

modifier keys (Shift, Control,

as modifiers (Shift, Control,

the event queue for a matching

XSendEvent: send an

XPutBackEvent: push an

set a nonfatal error

window /return the next

event type;/ /return the next

procedure/ XPeeklfEvent: get an

displayed in an icon

don't wait /remove the

don't wait /the next event in ......

don't wait /event matching both down /circulate the

down mode of a client

draw 16-bit image text

draw 16-bit polytext strings

draw 8-bit image text characters

draw 8-bit polytext strings

draw a filled polygon or curve

draw a line between two points

draw a point

draw a polyline or curve between ....

draw an 8-bit text string

draw an arc fitting inside a

draw an image on a window or

draw an outline of a rectangle

draw multiple arcs

draw multiple connected lines

draw multiple disjoint lines

draw multiple points

draw the outlines of multiple

draw two-byte text strings

drawable

drawable /for a given screen

drawable XGetGeometry:

drawable into a drawable with

drawable into an image /place

drawable to a location within

drawable with depth, applying/

drawing components in a graphics/ .

empty XEmptyRegion:

empty region

enable access control

enable or disable

enclosing a region XQipBox:

entire window

entry for a given window and/

entry from an association table

entry from an XModifierKeymap ....

entry in an association table

entry to an XModifierKeymap

entry to the closest possible/

error code XGetErrorText:

error database

error event handler

error messages from the error/

errors to be processed by the/

etc.) /obtain a mapping of

etc.) /set keycodes to be used

event XChecklfEvent: check

event back on the input queue

event handler XSetErrorHandler: .... event in queue matching type and ...

event in queue that matches

event matched by predicate

, XGetlconName

, XCheckMaskEvent

, XCheckTypedEvent

, XCheckWindowEvent

, XCirculateSubwindows

, XSetCloseDownMode

, XDrawImageString 16

,XDrawTextl6

, XDrawImageString

, XDrawText

, XDrawFilled

.XDrawLine

, XDrawPoint

.XDraw

. XDrawString

. XDrawArc

. XPutlmage

. XDrawRectangle

. XDrawArcs

. XDrawLines

. XDrawSegments

. XDrawPoints

. XDrawRectangles

.XDrawString 16

. XCopyArea

. XCreateGC

. XGetGeometry

. XCopyPlane

. XGetlmage

. XGetSublmage

. XCopyPlane

: XSetLineAttributes

. XEmptyRegion

. XCreateRegion

. XSetAccessControl

. XSynchronize

. XClipBox

. XClearWindow

. XDeleteContext

. XDeleteAssoc

. XDeleteModifiermapEntry

. XMakeAssoc

. XInsertModifiermapEntry

. XStoreColor

. XGetErrorText

. XGetErrorDatabaseText

. XSetErrorHandler

. XGetErrorDatabaseText

.XSync

. XGetModifierMapping

. XSetModifierMapping

. XChecklfEvent

. XSendEvent

, XPutBackEvent

, XSetErrorHandler

, XCheckTypedWindowEvent

, XCheckTypedEvent

, XPeeklfEvent

Permuted Index

procedure XlfEvent: wait for

window and/ /remove the next

XNextEvent: get the next

the number of events in the

XChecklfEvent: check the

XMaskEvent: remove the next

XCheckMaskEvent: remove the next

XWindowEvent: remove the next

and/ XLookupString: map a key

next event in queue that matches

window XSelectlnput: select the

the queue XPeekEvent: get an

the number of pending input

request buffer and wait for all

history/ XGetMotionEvents: get

/check the number of

/behavior of keyboard and pointer

server XNoOp: send a NoOp to

XShrinkRegion: reduce or

XQueryExtension: get

for a list of installed

Xlib and/ /return a list of all

resource database XGetDefault:

(when connection to a display

XQueryBestTile: obtain the

XQueryBestStipple: obtain the

retrieve a database from a

store a resource database in a

write a bitmap to a

XFillPolygon:

XFillRectangle:

XFillArc:

XLoadQueryFont: load a font and

XFillArcs:

XFillRectangles:

XSetFillRule:setthe

XSetFillStyle: set the

XSetTilersetthe

obtain the fastest supported

vertex list/ XDrawFilled: draw a

structures that/ XGetVisuallnfo:

XDrawArc: draw an arc

/obtain the RGB values and

return the number of/ XPending:

wait for all events and/ XSync:

(display all queued/ XFlush:

return the current keyboard

XSetlnputFocus: set the keyboard

cursor from the standard cursor

information about a loaded

XUnloadFont: unload a

XLoadQueryFont: load a

font/ XFreeFont: unload a

create a cursor from

font if not already loaded; get

font ID XLoadFont: load a

XSetFont: set the current

query the server for string and

event matched in predicate

event matching both passed

event of any type or window

event queue /check

event queue for a matching event

event that matches mask

event that matches mask; don't/ ... event that matches the specified/ . event to ASCII string, keysym, ....

event type; don't wait /the

event types to be sent to i

event without removing it from ........

events /buffer and return

events and errors to be/ /the

events from pointer motion

events in the event queue

events when these resources are/ ....

exercise connection with the

expand the size of a region

extension information

extensions /memory allocated

extensions to X supported by

extract an option value from the

fails) /report the display name

fastest supported fill tile/

fastest supported stipple shape

file XrmGetFileDatabase:

file XrmPutFileDatabase:

file XWriteBitmapFile:

fill a polygon

fill a rectangular area

fill an arc

fill information structure

fill multiple arcs

fill multiple rectangular areas

fill rule in a graphics context

fill style in a graphics context

fill tile in a graphics context

fill tile shape XQueryBestTile:

filled polygon or curve from

find the visual information

fitting inside a rectangle

flags for a specified colorcell

flush the request buffer and

flush the request buffer and

flush the request buffer

focus window XGetlnputFocus:...

focus window

font /create a

font XQueryFont: return

font and fill information/

font and free storage for the

font glyphs XCreateGlyphCursor:

font ID XLoadFont: load a

font if not already loaded; get

font in a graphics context

font metrics XQueryTextExtents:.

. XlfEvent

. XCheckWindowEvent

. XNextEvent

. XEventsQueued

. XChecklfEvent

.XMaskEvent

. XCheckMaskEvent

. XWindowEvent

. XLookupString

. XCheckTypedEvent

, XSelectlnput

. XPeekEvent

. XPending

.XSync

. XGetMotionEvents

. XEventsQueued

. XAllowEvents

.XNoOp

. XShrinkRegion

. XQueryExtension

. XFreeExtensionList

. XListExtensions

.XGetDefault

. XDisplayName

. XQueryBestTile

. XQueryBestStipple

. XrmGetFileDatabase

. XrmPutFileDatabase

. XWriteBitmapFile

. XFillPolygon

. XFillRectangle

. XFillArc

, XLoadQueryFont

, XFillArcs

, XFillRectangles

.XSetFillRule

, XSetFillStyle

.XSetTile

, XQueryBestTile

, XDrawFilled

, XGetVisuallnfo

, XDrawArc

, XQueryColor

, XPending

, XSync

, XFlush

, XGetlnputFocus

, XSetlnputFocus

, XCreateFontCursor

, XQueryFont

, XUnloadFont

, XLoadQueryFont

, XFreeFont

, XCreateGlyphCursor

, XLoadFont

, XLoadFont

, XSetFont

, XQueryTextExtents

10

Xlib Reference Manual

XTextExtents: get string and font metrics locally XTextExtents

/query the server for string and font metrics of a 16-bit/ XQueryTextExtentsl6

XTextExtents 16: get string and font metrics of a 16-bit/ XTextExtents 16

return a list of the available font names XlistFonts: XUstFonts

XGetFontProperty: get a font property given its atom XGetFontProperty

XGetFontPath: get the current font search path XGetFontPath

XSetFontPath: set the font search path XSetFontPath

a font and free storage for the font structure /unload XFreeFont

and information about loaded fonts /obtain the names XListFontsWithlnfo

function,/ XSetState: set the foreground, background, logical XSetState

draw an 8-bit text string, foreground only XDrawString: XDrawString

XSetForeground: set the foreground pixel value in a/ XSetForeground

/create a bitmap from XI1 bitmap format data XCreateBitmapFromData

the atom type and property format for a window /obtain XGetWindowProperty

/obtain the supported pixmap formats for a given server XUstPixmapFormats

XFreeGC: free a graphics context XFreeGC

XFreeModifiermap: destroy and free a keyboard modifier mapping/ XFreeModifiermap

XFreePixmap: free a pixmap ID XFreePixmap

XFreeColors: free colormap cells or planes XFreeColors

of/ XFreeExtensionList: free memory allocated for a list XFreeExtensionUst

by an Xlib function XFree: free specified memory allocated XFree

XFreeFont: unload a font and free storage for the font/ XFreeFont

associated/ XFreeStringlist: free the in-memory data XFreeStringList

XGetFontPath XFreeFontPath: free the memory allocated by XFreeFontPath

XUstFonts. XFreeFontNames: free the memory allocated by XFreeFontNames

XFreeFontlnfo: free the memory allocated by/ XFreeFontlnfo

association/ XDestroyAssocTable: free the memory allocated for an XDestroyAssocTable

allocate memory never to be freed Xpermalloc: Xpermalloc

memory allocated by an Xlib function XFree: free specified XFree

/foreground, background, logical function, and plane mask in a/ XSetState

XSetAfterFunction: set a function called after all Xlib/ XSetAfterFunction

a function called after all Xlib functions /set XSetAfterFunction

XBell: ring the bell (Control G) XBell

of a given GC from XHb's GC cache /obtain components XGetGCValues

/obtain components of a given GC from Xlib's GC cache XGetGCValues

XGContextFromGC: obtain the GContext (resource ID)/ XGContextFromGC

XPolygonRegion: generate a region from points XPolygonRegion

standard window/ XParseGeometry: generate position and size from XParseGeometry

enclosing a region XClipBox: generate the smallest rectangle XClipBox

user geometry string and default geometry /window geometry given XGeometry

XGeometry: calculate window geometry given user geometry/ XGeometry

XWMGeometry: obtain a window's geometry information XWMGeometry

XGetGeometry: obtain the current geometry of drawable XGetGeometry

and size from standard window geometry string /position XParseGeometry

/window geometry given user geometry string and default/ XGeometry

atom XGetFontProperty: get a font property given its XGetFontProperty

XListlnstalledColormaps: get a list of installed/ XListlnstaUedColormaps

class as/ XrmGetResource: get a resource from name and XrmGetResource

and class as/ XrmQGetResource: get a resource value using name XrmQGetResource

given its atom XGetAtomName: get a string name for a property XGetAtomName

property) XFetchName: get a window's name (XA_WM_NAME. XFetchName

predicate/ XPeeklfEvent: get an event matched by XPeeklfEvent

from the queue XPeekEvent: get an event without removing it XPeekEvent

manager (not/ XFindContext: get data from the context XFindContext

closest/ XLookupColor: get database RGB values and XLookupColor

history/ XGetMotionEvents: get events from pointer motion XGetMotionEvents

XQueryExtension: get extension information XQueryExtension

a font if not already loaded; get font ID XLoadFont: load XLoadFont

XGetlconSizes: get preferred icon sizes XGetlconSizes

locally XTextExtents: get string and font metrics XTextExtents

16-bit/ XTextExtents 16: get string and font metrics of a XTextExtents 16

sizes XQueryBestCursor: get the closest supported cursor XQueryBestCursor

XGetFontPath: get the current font search path XGetFontPath

XQueryPointer: get the current pointer location XQueryPointer

preferences XGetPointerControl: get the current pointer XGetPointerControl

parameters XGetScreenSaver: get the current screen saver XGetScreenSaver

a keycode in/ XLookupKeysym: get the keysym corresponding to XLookupKeysym

an icon XGetlconName: get the name to be displayed in XGetlconName

or window XNextEvent: get the next event of any type XNextEvent

XGetPointerMapping: get the pointer button mapping XGetPointerMapping

window XListProperties: get the property list for a XListProperties

window in/ XGetNormalHints: get the size hints property of a XGetNormalHints

property XGetStandardColormap: get the standard colormap XGetStandardColormap

16-bit character/ XTextWidth 16: get the width in pixels of a XTextWidth 16

8-bit character/ XTextWidth: get the width in pixels of an XTextWidth

a window XGetClassHint: get the XA_WM_CLASS property of XGelClassHint

property/ XGetTransientForHint: get the XA_WM_TRANSIENT_FOR XGetTransientForHint

create a cursor from font glyphs XCreateGlyphCurson XCreateGlyphCursor

parameters of an active pointer grab /change the XChangeActivePointerGrab

release a button from a passive grab XUngrabButton: XUngrabButton

release a key from a passive grab XUngrabKey: XUngrabKey

the keyboard from an active grab XUngrabKeyboard: release XUngrabKeyboard

the pointer from an active grab XUngrabPointer: release XUngrabPointer

release the server from grab XUngrabServer: XUngrabServer

XGrabKey: grab a key XGrabKey

XGrabButton: grab a pointer button XGrabButton

XGrabKeyboard: grab the keyboard XGrabKeyboard

XGrabPointer: grab the pointer XGrabPointer

XGrabServer: grab the server XGrabServer

events when these resources are grabbed /of keyboard and pointer XAllowEvents

change the components of a given graphics context XChangeGC: XChangeGC

XCopyGC: copy a graphics context XCopyGC

from the context manager (not graphics context) /get data XFindContext

XFreeGC: free a graphics context XFreeGC

associated with the specified graphics context /(resource ID) XGContextFromGC

a window and context type (not graphics context) Ao XSaveContext

set the arc mode in a graphics context XSetArcMode: XSetArcMode

the background pixel value in a graphics context /set XSetBackground

set clip_mask pixmap in a graphics context XSetClipMask: XSetClipMask

/set the clip origin in a graphics context XSetClipOrigin

a pattern of line dashes in a graphics context /set XSetDashes

set the fill rule in a graphics context XSetFillRule: XSetFillRule

set the fill style in a graphics context XSetFillStyle: XSetFUlStyle

set the current font in a graphics context XSetFont: XSetFont

the foreground pixel value in a graphics context /set XSetForeground

bitwise logical operation in a graphics context /set the XSetFunction

/component in a graphics context XSetGraphicsExposures

the line drawing components in a graphics context /set XSetLineAttributes

set the plane mask in a graphics context XSetPlaneMask: XSetPlaneMask

function, and plane mask in a graphics context /logical XSetState

set the stipple in a graphics context XSetStipple: XSetStipple

/set the subwindow mode in a graphics context XSetSubwindowMode

XSetTile: set the fill tile in a graphics context XSetTile

set the tile/supple origin in a graphics context XSetTSOrigin: XSetTSOrigin

/create a new context ID (not graphics context) XUniqueContext

screen/ XCreateGC: create a new graphics context for a given XCreateGC

/change clip_mask in a graphics context to a list of/ XSetClipRectangles

XSctRegion: set clip_mask of the graphics context to the/ XSetRegion

XSetGraphicsExposures: set the graphics_exposures component in/ XSetGraphicsExposures

set a nonfatal error event handler XSetErrorHandlen XSetErrorHandler

entry to the closest possible hardware color /colormap XStoreColor

to the closest possible hardware colors /colorcells XStoreColors

/colormap cell with closest hardware-supported color XAllocColor

/database RGB values and closest hardware-supported RGB values/ XLookupColor

/obtain a list of hosts having access to this display XListHosts

ASCII color name or translate hexadecimal value /values from XParseColor

read the window manager hints property XGetWMHints: XGetWMHints

set a window manager hints property XSetWMHints: XSetWMHints

XGetNormalHints: get the size hints property of a window in/ XGetNormalHints

XSetNormalHints: set the size hints property of a window in/ XSetNormalHints

XGetZoomHints: read the size hints property of a zoomed/ XGetZoomHints

XSetZoomHints: set the size hints property of a zoomed/ XSetZoomHints

/get events from pointer motion history buffer XGetMotionEvents

allow access from any host XDisableAccessControl: XDisableAccessControl

list XRemoveHosl: remove a host from the access control XRemoveHost

XAddHost: add a host to the access control list XAddHost

XRemoveHosts: remove multiple hosts from the access control/ XRemoveHosts

XListHosts: obtain a list of hosts having access to this/ XListHosts

XAddHosts: add multiple hosts to the access control list XAddHosts

the name to be displayed in an icon XGetlconName: get XGetlconName

to be displayed in a window's icon XSetlconName: set the name XSetlconName

XGetlconSizes: get preferred icon sizes XGetlconSizes

in normal state (not zoomed or iconified) /property of a window XGetNormalHints

that a top-level window be iconified /request XlconifyWindow

in normal state (not zoomed or iconified) /property of a window XSetNormalHints

and return a new colormap ID /copy a colormap XCopyColormapAndFree

XFreePixmap: free a pixmap ID XFreePixmap

if not already loaded; get font ID XLoadFont: load a font XLoadFont

/obtain the GContext (resource ID) associated with the/ XGContextFromGC

/obtain the visual ID from a Visual XVisuallDFromVisual

/create a new context ID (not graphics context) XUniqueContext

value to every pixel value in an image XAddPixel: add a constant XAddPixel

memory associated with an image XDestroylmage: deallocate XDestroylmage

rectangle from drawable into an image /place contents of a XGetlmage

a single pixel value from an image XGetPixel: obtain XGetPixel

location within the pre-existing image /in drawable to a XGetSublmage

set a pixel value in an image XPutPixel: XPutPixel

a subimage from part of an image XSublmage: create XSublmage

XPutlmage: draw an image on a window or pixmap XPutlmage

XDrawImageString: draw 8-bit image text characters XDrawImageString

XDrawImageStringl6: draw 16-bit image text characters XDrawImageString 16

XQueryExtension: get extension information XQueryExtension

obtain a window's geometry information XWMGeometry: XWMGeometry

XQueryFont: return information about a loaded font XQueryFont

/obtain the names and information about loaded fonts XListFontsWithlnfo

/load a font and fill information structure XLoadQueryFont

XGetVisuallnfo: find the visual information structures that/ XGetVisuallnfo

desired depth/ /obtain the visual information that matches the XMatchVisuallnfo

Xrmlnitialize: initialize the resource manager Xrmlnitialize

the/ XFreeStringList: free the in-memory data associated with XFreeStringList

and return the number of pending input events /the request buffer XPending

push an event back on the input queue XPutBackEvent: XPutBackEvent

/create an unmapped InputOutput window XCreateSimpleWindow

window and its/ XReparentWindow: insert a window between another XReparentWindow

XDrawArc: draw an arc fitting inside a rectangle XDrawArc

determine if a point is inside a region XPointlnRegion: XPointlnRegion

XInstallColormap: install a colormap XListallColormap

installed /uninstall a colormap; install default if not already XUninstallColormap

/delete a colormap and install the default colormap XFreeColormap

install default if not already installed /uninstall a colormap; XUninstallColormap

/get a list of installed colormaps XListlnstalledColormaps

memory allocated for a list of installed extensions /free XFreeExtensionList

XIntersectRegion: compute the intersection of two regions XIntersectRegion

difference between the union and intersection of two regions /the XXorRegion

XGrabKey: grab a key XGrabKey

the keyboard preferences such as key click /change XChangeKeyboardControl

keysym,/ XLookupString: map a key event to ASCII string, XLookupString

XUngrabKey: release a key from a passive grab XUngrabKey

a quark list /convert a key string to a binding list and XrmStringToBindingQuarkList

XrrnStringToQuarkList: convert a key string to a quark list XrmStringToQuarkList

XGrabKeyboard: grab the keyboard XGrabKeyboard

for the current state of the keyboard /obtain a bit vector XQueryKeymap

these/ /control the behavior of keyboard and pointer events when XAllowEvents

XAutoRepeatOff: turn off the keyboard auto-repeat keys XAutoRepeatOff

XAutoRepeatOn: turn on the keyboard auto-repeat keys XAutoRepeatOn

/return the current keyboard focus window XGetlnputFocus

XSetlnputFocus: set the keyboard focus window XSetlnputFocus

XUngrabKeyboard: release the keyboard from an active grab XUngrabKeyboard

/change the keyboard mapping XChangeKeyboardMapping

structure /destroy and free a keyboard modifier mapping XFreeModifiermap

XNewModifiermap: create a keyboard modifier mapping/ XNewModifiermap

/obtain a list of the current keyboard preferences XGetKeyboardControl

click /change the keyboard preferences such as key XChangeKeyboardControl

a keysym to the appropriate keycode /convert XKeysymToKeycode

the keysym corresponding to a keycode in structure /get XLookupKeysym

XKeycodeToKeysym: convert a keycode to a keysym XKeycodeToKeysym

XRefreshKeyboardMapping: read keycode-keysym mapping from/ XRefreshKeyboardMapping

return symbols for keycodes XGetKeyboardMapping: XGetKeyboardMapping

/obtain the range of legal keycodes for a server XDisplayKeycodes

XSetModifierMapping: set keycodes to be used as modifiers/ XSetModifierMapping

off the keyboard auto-repeat keys XAutoRepeatOff: turn XAutoRepeatOff

turn on the keyboard auto-repeat keys XAutoRepeatOn: XAutoRepeatOn

/obtain a mapping of modifier keys (Shift, Control, etc.) XGetModifierMapping

convert a keycode to a keysym XKeycodeToKeysym: XKeycodeToKeysym

a keysym name string to a keysym XStringToKeysym: convert XStringToKeysym

/map a key event to ASCII string, keysym, and ComposeStatus XLookupString

keycode/ XLookupKeysym: get the keysym corresponding to a XLookupKeysym

XStringToKeysym: convert a keysym name string to a keysym XStringToKeysym

XKeysymToString: convert a keysym symbol to a string XKeysymToString

XRebindKeysym: rebind a keysym to a string for client XRebindKeysym

XKeysymToKeycode: convert a keysym to the appropriate/ XKeysymToKeycode

/obtain the range of legal keycodes for a server XDisplayKeycodes

return a list of database levels XrmQGetSearchList: XrmQGetSearchList

a resource database from command line arguments /load XrmParseCommand

the XA_WM_COMMAND atom (command line arguments) /set XSetCommand

XDrawLine: draw a line between two points XDrawLine

XSetDashes: set a pattern of line dashes in a graphics/ XSetDashes

XSetLine Attributes: set the line drawing components in a/ XSetLineAttributes

draw multiple connected lines. XDrawLines: XDrawLines

draw multiple disjoint lines XDrawSegments: XDrawSegments

add a host to the access control list XAddHost: XAddHost

hosts to the access control list XAddHosts: add multiple XAddHosts

with the specified string list /in-memory data associated XFreeStringList

a host from the access control list XRemoveHost: remove XRemoveHost

hosts from the access control list /remove multiple XRemoveHosts

to a binding list and a quark list /convert a key string XrmStringToBindingQuarkList

convert a key string to a quark list XrmStringToQuarkList: XrmStringToQuarkList

a key string to a binding list and a quark list /convert XrmStringToBindingQuarkList

/search prepared list for a given resource XrmQGetSearchResource

/get the property list for a window XListProperties

polyline or curve between vertex list (from XI0) XDraw: draw a XDraw

polygon or curve from vertex list (from X10) /draw a filled XDrawFilled

XListExtensions: return a list of all extensions to X/ XListExtensions

root XQueryTree: return a list of children, parent, and XQueryTree

XrmQGetSearchList: return a list of database levels XrmQGetSearchList

this/ XListHosts: obtain a list of hosts having access to XListHosts

XListlnstalledColormaps: get a list of installed colormaps XListlnstalledColormaps

/free memory allocated for a list of installed extensions XFreeExtensionUst

in a graphics context to a list of rectangles /clip_mask XSetClipRectangles

XTextProperty/ /obtain a list of strings from a specified XTextPropertyToStringList

XTextProperty/ /set the specified list of strings to an XStringListToTextProperty

XListFonts: return a list of the available font names XListFonts

XGetKeyboardControl: obtain a list of the current keyboard/ XGetKeyboardControl

requests /use access control list to allow or deny connection XEnableAccessControl

structure XLoadQueryFont: load a font and fill information XLoadQueryFont

loaded; get font ID XLoadFont: load a font if not already XLoadFont

command line/ XrmParseCommand: load a resource database from XrmParseCommand

return information about a loaded font XQueryFont: XQueryFont

the names and information about loaded fonts /obtain XListFontsWithlnfo

load a font if not already loaded; get font ID XLoadFont: XLoadFont

get string and font metrics locally XTextExtents: XTextExtents

of a 16-bit character string, locally /string and font metrics XTextExtents 16

of an 8-bit character string, locally /get the width in pixels XTextWidth

of a 16-bit character string, locally /get the width in pixels XTextWidth 16

get the current pointer location XQueryPointer: XQueryPointer

/a rectangle in drawable to a location within the pre-existing/ XGetSublmage

/set the foreground, background, logical function, and plane mask/ XSetState

XSetFunction: set the bitwise logical operation in a graphics/ XSetFunction

color name or/ XParseColor: look up RGB values from ASCII XParseColor

order XLowerWindow: lower a window in the stacking XLowerWindow

initialize the resource manager Xrmlnitialize: Xrmlnitialize

set of properties for the window manager /set the minimum XSetStandardProperties

name to a window for the window manager XStoreName: assign a XStoreName

XGetWMHints: read the window manager hints property XGetWMHints

XSetWMHints: set a window manager hints property XSetWMHints

/get data from the context manager (not graphics context) XFindContext

/set a window's standard window manager properties XSetWMProperties

keysym, and/ XLookupString: map a key event to ASCII string XLookupString

XMapWindow: map a window XMapWindow

siblings XMapRaised: map a window on top of its XMapRaised

XMapSubwindows: map all subwindows of window XMapSubwindows

change the keyboard mapping XChangeKeyboardMapping:... XChangeKeyboardMapping

get the pointer button mapping XGetPointerMapping: XGetPointerMapping

set the pointer button mapping XSetPointerMapping: XSetPointerMapping

/read keycode-keysym mapping from server into Xlib XRefreshKeyboardMapping

XGetModifierMapping: obtain a mapping of modifier keys (Shift,/ XGetModifierMapping

and free a keyboard modifier mapping structure /destroy XFreeModifiermap

/create a keyboard modifier mapping structure XNewModifiermap

the next event that matches mask XMaskEvent: remove XMaskEvent

event that matches the specified mask and window /remove the next XWindowEvent

the next event that matches

both passed window and passed

XSetPlaneMask: set the plane

/logical function, and plane

/information structures that

XPeeklfEvent: get an event

XlfEvent: wait for event

/the next event in queue that

remove the next event that

/remove the next event that

/the visual information that

/remove the next event that

passed/ /remove the next event

check the event queue for a

/return the next event in queue

function XFree: free specified

XFreeFontPath: free the

XFreeFontNames: free the

XFreeFontlnfo: free the

XFreeExtensionList: free

XDestroyAssocTable: free the

XDestroyImage: deallocate

XCreatelmage: allocate

Xpermalloc: allocate

database/ XrmMergeDatabases:

/obtain error

the server for string and font

get string and font

/the server for string and font

stringy /get string and font

XSetStandardProperties: set the

XSetArcMode: set the arc

/set the subwindow

/change the close down

etc.) /obtain a mapping of

/destroy and free a keyboard

/create a keyboard

/set keycodes to be used as

/get events from pointer

XMoveWindow:

point on the/ XWarpPointer:

XDrawArcs: draw

XFillArcs: fill

XDrawLines: draw

XDrawSegments: draw

control/ XRemoveHosts: remove

control list XAddHosts: add

XDrawPoints: draw

/draw the outlines of

XFillRectangles: fill

a read-only colorcell from color

RGB values from color

a read/write colorcell by color

/get a resource value using

/get a resource from

database using a quark resource

with separate resource

Uom XGetAtomName: get a string

mask; don't wait /remove, mask; don't wait /event matching mask in a graphics context ............

mask in a graphics context

match the specified template ,

matched by predicate procedure/ ,

matched in predicate procedure

matches event type; don't wait

matches mask XMaskEvent: ,

matches mask; don't wait

matches the desired depth and/ ,

matches the specified mask and/

matching both passed window and ....

matching event XChecklfEvent:

matching type and window

memory allocated by an Xlib

memory allocated by XGetFontPath .

memory allocated by XUstFonts

memory allocated by/

memory allocated for a list of/

memory allocated for an/

memory associated with an image

memory for an Xlmage structure

memory never to be freed

merge the contents of one

messages from the error database

metrics /Query

metrics locally XTextExtents:

metrics of a 16-bit character/

metrics of a 16-bit character

minimum set of properties for/

mode in a graphics context

mode in a graphics context

mode of a client

modifier keys (Shift, Control,

modifier mapping structure

modifier mapping structure

modifiers (Shift, Control, etc.)

motion history buffer

move a window

move the pointer to another

multiple arcs

multiple arcs

multiple connected lines

multiple disjoint lines

multiple hosts from the access

multiple hosts to the access

multiple points

multiple rectangles

multiple rectangular areas

name XAllocNamedColor: allocate .. name /closest hardware-supported ....

name /set RGB values of

name and class as quarks

name and class as strings

name and string value Ao a

name and value /specification

name for a property given its

, XCheckMaskEvent

. XCheckWindowEvent

. XSetPlaneMask

.XSetState

.XGetVisuallnfo

. XPeeklfEvent

. XlfEvent

. XCheckTypedEvent

. XMaskEvent

. XCheckMaskEvent

. XMatchVisuallnfo

. XWindowEvent

.XCheckWindowEvent

. XChecklfEvent

. XCheckTypedWindowEvent

.XFree

. XFreeFontPath

. XFreeFontNames

. XFreeFontlnfo

. XFreeExtensionList

. XDestroyAssocTable

. XDestroylmage

. XCreatelmage

. Xpermalloc

. XrmMergeDatabases

. XGetErrorDatabaseText

. XQueryTextExtents

. XTextExtents

. XQueryTextExtents 16

.XTextExtents 16

. XSetStandardProperties

. XSetArcMode

. XSetSubwindowMode

. XSetCloseDownMode

. XGetModifierMapping

. XFreeModifiermap

, XNewModifiermap

. XSetModifierMapping

, XGetMotionEvents

. XMoveWindow

. XWarpPointer

. XDrawArcs

. XFillArcs

, XDrawLines

. XDrawSegments

. XRemoveHosts

. XAddHosts

. XDrawPoints

, XDrawRectangles

. XFillRectangles

. XAllocNamedColor

. XLookupColor

. XStoreNamedColor

. XrmQGetResource

. XrmGetResource

. XrmQPutStringResource

, XrmPutStringResource

, XGetAtomName

16

Xlib Reference Manual

/up RGB values from ASCII color name or translate hexadecimal/ XParseColor

an atom for a given property name string XInternAtom: return XInternAtom

/convert a keysym name string to a keysym XStringToKeysym

manager XStoreName: assign a name to a window for the window XStoreName

window's/ XSetlconName: set the name to be displayed in a XSetlconName

XGetlconName: get the name to be displayed in an icon XGetlconName

XDisplayName: report the display name (when connection to a/ XDisplayName

XFetchName: get a window's name (XA_WM_NAME property) XFetchName

a list of the available font names XlistFonts: return XUstFonts

XUstFontsWithlnfo: obtain the names and information about/ XListFontsWithlnfo

Xpermalloc: allocate memory never to be freed Xpermalloc

XCreateAssocTable: create a new association table (X10) XCreateAssocTable

/copy a colormap and return a new colormap ID XCopyColormapAndFree

XUniqueContext: create a new context ID (not graphics/ XUniqueContext

XCreateRegion: create a new empty region XCreateRegion

XInsertModifiermapEntry: add a new entry to an XModifierKeymap/ XlnsertModifiermapEntry

screen with/ XCreateGC: create a new graphics context for a given XCreateGC

XrmUniqueQuark: allocate a new quark XrmUniqueQuark

type and window /return the next event in queue matching XCheckTypedWindowEvent

XCheckTypedEvent: return the next event in queue that matches/ XCheckTypedEvent

XCheckWindowEvent: remove the next event matching both passed/ XCheckWindowEvent

XNextEvent: get the next event of any type or window XNextEvent

XMaskEvent: remove the next event that matches mask XMaskEvent

XCheckMaskEvent: remove the next event that matches mask;/ XCheckMaskEvent

XWindowEvent: remove the next event that matches the/ XWindowEvent

XSetErrorHandler: set a nonfaial error event handler XSetErrorHandler

/allocate read/write (nonshareable) color planes X AllocColorPlanes

/allocate read/write (nonshared) colorcells XAllocColorCells

the server XNoOp: send a NoOp to exercise connection with XNoOp

/hints property of a window in normal state (not zoomed or/ XGetNormalHints

/hints property of a window in normal state (not zoomed or/ XSetNormalHinls

a colormap; install default if not already installed /uninstall XUninstallColormap

XLoadFont: load a font if not already loaded; get font ID XLoadFont

data from the context manager (not graphics context) /get XFindContext

/to a window and context type (not graphics context) XSaveContext

/create a new context ID (not graphics context) XUniqueContext

/of a window in normal state (not zoomed or iconified) XGetNormalHints

/of a window in normal state (not zoomed or iconified) XSetNormalHints

queue XEventsQueued: check the number of events in the event XEventsQueued

/request buffer and return the number of pending input events XPending

current state of/ XQueryKeymap: obtain a bit vector for the XQueryKeymap

code XGetErrorText: obtain a description of error XGetErrorText

access to this/ XListHosts: obtain a list of hosts having XListHosts

XTextPropertyToStringLJst: obtain a list of strings from a/ XTextPropertyToStringLJst

keyboard/ XGetKeyboardControl: obtain a list of the current XGetKeyboardControl

keys/ XGetModifierMapping: obtain a mapping of modifier XGetModifierMapping

an image XGetPixel: obtain a single pixel value from XGetPixel

information XWMGeometry: obtain a window's geometry XWMGeometry

from Xlib's GC/ XGetGCValues: obtain components of a given GC XGetGCValues

table XLookUpAssoc: obtain data from an association XLookUpAssoc

error/ XGetErrorDatabaseText: obtain error messages from the XGetErrorDatabaseText

of colorcells XQueryColors: obtain RGB values for an array XQueryColors

property/ XGetWindowProperty: obtain the atom type and XGetWindowProperty

cursor, tile,/ XQueryBestSize: obtain the "best" supported XQueryBestSize

window XGetWindowAttributes: obtain the current attributes of XGetWindowAttributes

drawable XGetGeometry: obtain the current geometry of XGetGeometry

fill tile shape XQueryBestTile: obtain the fastest supported XQueryBestTile

stipple/ XQueryBestStipple: obtain the fastest supported XQueryBestStipple

Permuted Index

ID) associated/ XGContextFromGC: obtain the GContext (resource XGContextFromGC

about/ XlistFontsWithlnfo: obtain the names and information XListFontsWithlnfo

key codes for/ XDisplayKeycodes: obtain the range of legal XDisplayKeycodes

for a specified/ XQueryColor: obtain the RGB values and flags XQueryColor

formats for/ XListPixmapFormats: obtain the supported pixmap XListPixmapFormats

Visual XVisuallDFromVisual: obtain the visual ID from a XVisuallDFromVisual

that matches/ XMatchVisuallnfo: obtain the visual information XMatchVisuallnfo

structure/ XGetRGBColormaps: obtain the XStandardColormap XGetRGBColormaps

turn the screen saver on or off XForceScreenSaver: XForceScreenSaver

keys XAutoRepeatOff: turn off the keyboard auto-repeat XAutoRepeatOff

two regions have the same size, offset, and shape /determine if XEqualRegion

XOffsetRegion: change offset of a region XOffsetRegion

an 8-bit text string, foreground only XDrawString: draw XDrawString

/set the bitwise logical operation in a graphics context XSetFunction

XGetDefault: extract an option value from the resource/ XGetDefault

child to the top of the stacking order /circulate the bottom XCirculaleSubwindowsDown

to the bottom of the stacking order /circulate the top child XCirculateSubwindowsUp

size, border width, or stacking order /the window position, XConfigureWindow

lower a window in the stacking order XLowerWindow: XLowerWindow

to the top of the stacking order /raise a window XRaiseWindow

/circulate the stacking order of children up or down XCirculateSubwindows

/change the stacking order of siblings XRestack Windows

XSetClipOrigin: set the clip origin in a graphics context XSetClipOrigin

/set the tile/stipple origin in a graphics context XSetTSOrigin

XDrawRectangle: draw an outline of a rectangle XDrawRectangle

XDrawRectangles: draw the outlines of multiple rectangles XDrawRectangles

XGetSelectionOwner: return the owner of a selection XGetSelectionOwner

XSetSelectionOwner: set the owner of a selection XSetSelectionOwner

get the current screen saver parameters XGetScreenSaver: XGetScreenSaver

grab /change the parameters of an active pointer XChangeActivePointerGrab

XSetScreenSaver: set the parameters of the screen saver XSetScreenSaver

between another window and its parent /insert a window XReparentWindow

return a list of children, parent, and root XQueryTree: XQueryTree

create a subimage from part of an image XSublmage: XSuhlmage

matching both passed window and passed mask; don't wait /event XCheckWindowEvent

/the next event matching both passed window and passed mask;/ XCheckWindowEvent

release a button from a passive grab XUngrabButton: XUngrabButton

XUngrabKey: release a key from a passive grab XUngrabKey

get the current font search path XGetFontPath: XGetFontPath

set the font search path XSetFontPath: XSetFontPath

graphics/ XSetDashes: set a pattern of line dashes in a XSetDashes

buffer and return the number of pending input events /request XPending

repaint/ /change a window border pixel value attribute and XSetWindowBorder

window /set the background pixel value attribute of a XSetWindowBackground

XGetPixel: obtain a single pixel value from an image XGetPixel

context /set the background pixel value in a graphics XSetBackground

context /set the foreground pixel value in a graphics XSetForeground

/add a constant value to every pixel value in an image XAddPixel

XPutPixel: set a pixel value in an image XPutPixel

a drawable with depth, applying pixel values /of a drawable into XCopyPlane

XTextWidthl6: get the width in pixels of a 16-bit character/ XTextWidthl6

XTextWidth: get the width in pixels of an 8-bit character/ XTextWidth

XCreatePixmap: create a pixmap XCreatePixmap

draw an image on a window or pixmap XPutlmage: XPutlmage

server /obtain the supported pixmap formats for a given XListPixmapFormats

XFreePixmap: free a pixmap ID XFreePixmap

XSetClipMask: set clip_mask pixmap in a graphics context XSetClipMask

data, /create a pixmap with depth from bitmap XCreatePixmapFromBitmapData

from drawable into/ XGetlmage: place contents of a rectangle XGetlmage

XSetPlaneMask: set the plane mask in a graphics context XSetPlaneMask

/logical function, and plane mask in a graphics context XSetState

XCopyPlane: copy a single plane of a drawable into a/ XCopyPlane

read/write (nonshareable) color planes /allocate XAllocColorPlanes

free colormap cells or planes XFreeColors: XFreeColors

XDrawPoint: draw a point XDrawPoint

XPointlnRegion: determine if a point is inside a region XPointlnRegion

/move the pointer to another point on the screen XWarpPointer

XGrabPointer: grab the pointer XGrabPointer

XGrabButton: grab a pointer button XGrabButton

XGetPointerMapping: get the pointer button mapping XGetPointerMapping

XSetPointerMapping: set the pointer button mapping XSetPointerMapping

/the behavior of keyboard and pointer events when these/ XAllowEvents

XUngrabPointer: release the pointer from an active grab XUngrabPointer

the parameters of an active pointer grab /change XChangeActivePointerGrab

XQueryPointer: get the current pointer location XQueryPointer

/get events from pointer motion history buffer XGetMotionEvents

/change the pointer preferences XChangePointerControl

/get the current pointer preferences XGetPointerControl

screen XWarpPointer: move the pointer to another point on the XWarpPointer

draw a line between two points XDrawLine: XDrawLJne

XDrawPoints: draw multiple points XDrawPoints

generate a region from points XPolygonRegion: XPolygonRegion

XFillPolygon: fill a polygon XFillPolygon

list/ XDrawFilled: draw a filled polygon or curve from vertex XDrawFilled

list (from X10) XDraw: draw a polyline or curve between vertex XDraw

XDrawText: draw 8-bit polylext strings XDrawText

XDrawTextl6: draw 16-bit polytext strings XDrawTextl6

window/ XParseGeometry: generate position and size from standard XParseGeometry

/change the size and position of a window XMoveResizeWindow

stacking/ /change the window position, size, border width, or XConfigu re Window

/colormap entry to the closest possible hardware color XStoreColor

/colorcells to the closest possible hardware colors XStoreColors

wait for event matched in predicate procedure XlfEvent: XlfEvent

/get an event matched by predicate procedure without/ XPeeklfEvent

to a location within the pre-existing image fm drawable XGetSublmage

/change the pointer preferences XChangePointerControl

a list of the current keyboard preferences /obtain XGetKeyboardControl

get the current pointer preferences XGetPointerControl: XGetPointerControl

/change the keyboard preferences such as key click XChangeKeyboardControl

XGetlconSizes: get preferred icon sizes XGetlconSizes

XrmQGetSearchResource: search prepared list for a given/ XrmQGetSearchResource

for event matched in predicate procedure XlfEvent: wait XlfEvent

/an event matched by predicate procedure without removing it/ XPeeklfEvent

for all events and errors to be processed by the server /wait XSync

display /disconnect a client program from an X server and XCloseDisplay

XOpenDisplay: connect a client program to an X server XOpenDisplay

read one of a window's text properties XGetTextProperty: XGetTextProperty

set one of a window's text properties XSetTextProperty: XSetTextProperty

window's standard window manager properties /set a XSetWMProperties

/rotate properties in the properties array XRotateWindowProperties

manager /set the minimum set of properties for the window XSetStandardProperties

XRotateWindowProperties: rotate properties in the properties/ XRotateWindowProperties

XDeleteProperty: delete a window property XDeleteProperty

get a window's name (XA_WM_NAME property) XFetchName: XFetchName

associated with the specified property /structure XGetRGBColormaps

get the standard colormap property XGetStandardColormap: XGetStandardColormap

read the window manager hints

read a window's XA_WM_ICON_NAME

read a window's XA_WM_NAME

a window's XA_WM_NORMAL_HINTS

read a window's XA_WM_SEE_fflNTS

the value of the XA_WM_ICON_SIZE

change the standard colormap

set a window's WM_CLffiNT_MACHINE

a window's WM_COLORMAP_WINDOWS

set a window manager hints

set a window's XA_WM_ICON_NAME

set a window's XA_WM_NAME

a window's XA_WM_NORMAL_fflNTS

set a window's WM_PROTOCOLS

set a window's WM_SEE_HINTS

XChangeProperty: change a

/set the XA_WM_TRANSIENT_FOR

/obtain the atom type and

/get a string name for a

XGetFontProperty: get a font

XUstProperries: get the

/return an atom for a given

/gettheXA_WM_CLASS

/gettheXA_WM TRANSffiNT_FOR

/settheXA_WM_CLASS

state (not/ /get the size hints

state (not/ /set the size hints

/read the size hints

/set the size hints

XGetSizeHints: read any

/set the value of any

queue XPutBackEvent:

convert a string to a

XrmUniqueQuark: allocate a new

string to a binding list and a

/convert a key string to a

value Ao a database using a

XrmQuarkToString: convert a

value using name and class as

into a database using

font metrics XQueryTextExtents:

font/ XQueryTextExtents 16:

number of events in the event

without removing it from the

without removing it from the

push an event back on the input

XChecklfEvent: check the event

/return the next event in

don't/ /return the next event in

the request buffer (display all

stacking order XRaiseWindow:

XDisplayKeycodes: obtain the

XReadBitmapFile:

property XGetWMIconName:

property XGetWMName:

XGetWMNormalHints:

property XGetWMSizeHints:

XA_SIZE_HINTS XGetSizeHints:

property XGetWMHints:

property XGetWMIconName: property XGetWMName: .......

property /read

property XGetWMSizeHints:

property XSetlconSizes: set...........

property XSetStandardColormap:. property XSetWMClientMachine: property /set

.XGetWMHints

.XGetWMIconName

.XGetWMName

.XGetWMNormalHints .. XGetWMSizeHints .. XSetlconSizes .. XSetStandardColormap ... XSetWMClientMachine ... XSetWMColormapWindows ,. XSetWMHints ..XSetWMIconName ,.. XSetWMName .. XSetWMNormalHints ,. XSetWMProtocols

property XSetWMHints:

property XSetWMIconName:

property. XSetWMName:

property XSetWMNormalHints: set

property XSetWMProtocols:

property XSetWMSizeHints: XSetWMSizeHints

property associated with a/ XChangeProperty

property for a window XSetTransientForHint

property format for a window XGetWindowProperty

property given its atom XGetAtomName

property given its atom XGelFontProperty

property list for a window XListProperties

property name string XIntemAtom

property of a window XGetClassHint

property of a window XGetTransientForHint

property of a window XSetClassHint

property of a window in normal XGetNormalHints

property of a window in normal XSetNormalHints

property of a zoomed window XGetZoomHints

property of a zoomed window XSetZoomHints

property of type XA_SIZE_HINTS XGetSizeHints

property of type XA_SEE_HINTS XSetSizeHints

push an event back on the input XPutBackEvent

quark XrmStringToQuark: XrmStringToQuark

Quark XrmUniqueQuark

quark list /convert a key XrmStringToBindingQuarkList

quark list XrmStringToQuarkList

.... XrmQPutStringResource .... XrmQuarkToString .... XrmQGetResource .... XrmQPutResource .... XQueryTextExtents .... XQueryTextExtents 16 .... XEventsQueued

quark resource name and string

quark to a string

quarks /get a resource

quarks /a resource specification

query the server for string and

query the server for string and ........

queue XEventsQueued: check the ...

queue XPeekEvent: get an event XPeekEvent

queue /by predicate procedure XPeeklfEvent

queue XPutBackEvent: XPutBackEvent

queue for a matching event XChecklfEvent

queue matching type and window XCheckTypedWindowEvent

queue that matches event type; XCheckTypedEvent

queued requests) XFlush: flush XFlush

raise a window to the top of the XRaiseWindow

range of legal keycodes for a/ XDisplayKeycodes

read a bitmap from disk XReadBitmapFile

read a window's XA_WM_ICON_NAME XGetWMIconName

read a window's XA_WM_NAME XGetWMName

read a window's/ XGetWMNormalHints

read a window's XA_WM_SEE_fflNTS XGetWMSizeHints read any property of type XGetSizeHints

20

Xlib Reference Manual

server/ XRefreshKeyboardMapping: read keycode-keysym mapping from XRefreshKeyboardMapping

properties XGetTextProperty: read one of a window's text XGetTextProperty

a zoomed window XGetZoomffints: read the size hints property of XGetZoomHints

property XGetWMHints: read the window manager hints XGetWMffints

XAllocNamedColor: allocate a read-only colorcell from color/ XAllocNamedColor

closest/ XAllocColor: allocate a read-only coloimap cell with XAllocColor

name /set RGB values of a read/write colorcell by color XStoreNamedColor

/set or change the RGB values of read/write colorcells to the/ XStoreColors

/or change the RGB values of a read/write colormap entry to the/ XStoreColor

XAllocColorPlanes: allocate read/write (nonshareable) color/ XAllocColorPlanes

XAllocColorCells: allocate read/write (nonshared)/ XAllocColorCells

client XRebindKeysym: rebind a keysym to a string for XRebindKeysym

that a top-level window be reconfigured /request XReconfigureWMWindow

draw an arc fitting inside a rectangle XDrawArc: XDrawArc

draw an outline of a rectangle XDrawRectangle: XDrawRectangle

XClipBox: generate the smallest rectangle enclosing a region XClipBox

XGetlmage: place contents of a rectangle from drawable into an/ XGetlmage

location/ XGetSublmage: copy a rectangle in drawable to a XGetSublmage

XRectlnRegion: detemune if a rectangle resides in a region XRectlnRegion

XUnionRectWithRegion: add a rectangle to a region XUnionRectWithRegion

draw the outlines of multiple rectangles XDrawRectangles: XDrawRectangles

a graphics context to a list of rectangles /change clip_mask in XSetClipRectangles

XFillRectangle: fill a rectangular area XFillRectangle

XClearArea: clear a rectangular area in a window XClearArea

XFillRectangles: fill multiple rectangular areas XFillRectangles

region XShrinkRegion: reduce or expand the size of a XShrinkRegion

smallest rectangle enclosing a region XClipBox: generate the XClipBox

create a new empty region XCreateRegion: XCreateRegion

storage associated with a region /deallocate XDestroyRegion

change offset of a region XOffsetRegion: XOffsetRegion

determine if a point is inside a region XPointlnRegion: XPointlnRegion

if a rectangle resides in a region XRectlnRegion: determine XRectlnRegion

context to the specified region /of the graphics XSetRegion

reduce or expand the size of a region XShrinkRegion: XShrinkRegion

add a rectangle to a region XUnionRectWithRegion: XUnionRectWithRegion

XSubtractRegion: subtract one region from another XSubtraciRegion

XPolygonRegion: generate a region from points XPolygonRegion

XFjnptyRegion: determine if a region is empty XEmptyRegion

compute the intersection of two regions XIntersectRegion: XIntersectRegion

compute the union of two regions XUnionRegion: XUnionRegion

union and intersection of two regions /difference between the XXorRegion

XEqualRegion: determine if two regions have the same size,/ XEqualRegion

grab XUngrabButton: release a button from a passive XUngrabButton

XFreeCursor: release a cursor XFreeCursor

grab XUngrabKey: release a key from a passive XUngrabKey

active grab XUngrabKeyboard: release the keyboard from an XUngrabKeyboard

active grab XUngrabPointer: release the pointer from an XUngrabPointer

XUngrabServer: release the server from grab XUngrabServer

/destroy a client or its remaining resources XKillClient

control list XRemoveHost: remove a host from the access XRemoveHost

client's/ XChangeSaveSet: add or remove a subwindow from the XChangeSaveSet

client's/ XRemoveFromSaveSet: remove a window from the XRemoveFromSaveSet

access control/ XRemoveHosts: remove multiple hosts from the XRemoveHosts

both passed/ XCheckWindowEvent: remove the next event matching XCheckWindowEvent

matches mask XMaskEvent: remove the next event that XMaskEvent

matches mask;/ XCheckMaskEvent: remove the next event that XCheckMaskEvent

matches the/ XWindowEvent: remove the next event that XWindowEvent

XPeekEvent: get an event without removing it from the queue XPeekEvent

/by predicate procedure without

border pixel value attribute and

window border tile attribute and

connection to a/ XDisplayName:

number of/ XPending: flush the

events and/ XSync: flush the

queued/ XFlush: flush the

be iconified XlconifyWindow:

be/ XReconfigureWMWindow:

be withdrawn XWithdrawWindow:

list to allow or deny connection

buffer (display all queued

XResetScreenSaver:

/determine if a rectangle

search prepared list for a given

extract an option value from the

XrmDestroyDatabase: destroy a

a resource specification to a

a resource specification into a

line/ XrmParseCommand: load a

XrmPutFileDatabase: store a

strings XrmGetResource: get a

the/ /obtain the GContext

Xrmlnitialize: initialize the

Ao a database using a quark

/specification with separate

XrmQPutResource: store a

XrmPutResource: store a

XrmQPutStringResource: add a

XrmPutLineResource: add a

XrmPutStringResource: add a

class as/ XrmQGetResource: get a

a client or its remaining

and pointer events when these

XrmGetFileDatabase:

to X supported/ XListExtensions:

parent, and root XQueryTree:

XrmQGetSearchList:

font names XListFonts:

/copy a colormap and

property name/ XInternAtom:

XFetchBuffer:

XFetchBytes:

loaded font XQueryFont:

XGetKeyboardMapping:

focus window XGetlnputFocus:

XCheckTypedWindowEvent:

that matches/ XCheckTypedEvent:

/flush the request buffer and

XGetSelectionOwner:

XLookupColor: get database

XQueryColor: obtain the

colorcells XQueryColors: obtain

or/ XParseColor: look up

/and closest hardware-supported

colorcelV XStoreNamedColor: set

XStoreColor: set or change the

XStoreColors: set or change the

removing it from the queue ,

repaint the border /a window ,

repaint the border /change a ,

report the display name (when ,

request buffer and return the ,

request buffer and wait for all

request buffer (display all

request that a top-level window

request that a top-level window .......

request that a top-level window .......

requests /use access control

requests) /flush the request

reset the screen saver

resides in a region

resource XrmQGetSearchResource:

resource database XGetDefault:

resource database

resource database /add .....................

resource database /store ... resource database from command resource database in a file resource from name and class as .......

(resource ID) associated with

resource manager

resource name and string value resource name and value resource specification into a/ resource specification into a/ resource specification to a/ resource specification to a/ resource specification with/ resource value using name and resources XKillClient: destroy resources are grabbed /keyboard retrieve a database from a file return a list of all extensions

return a list of children,

return a list of database levels

return a list of the available

return a new colormap ID

return an atom for a given

return data from a cut buffer

return data from cut buffer 0

return information about a

return symbols for keycodes

return the current keyboard

return the next event in queue/

return the next event in queue

return the number of pending/

return the owner of a selection

RGB values and closest/

RGB values and flags for a/

RGB values for an array of

RGB values from ASCII color name .

RGB values from color name

RGB values of a read/write

RGB values of a read/write/

RGB values of read/write/

.XPeeklfEvent

, XSetWindowBorder

, XSetWindowBorderPixmap

, XDisplayName

, XPending

, XSync

, XFlush

, Xlconify Window

, XReconfigureWMWindow

, XWithdrawWindow

, XEnableAccessControl

, XFlush

, XResetScreenSaver

, XRectlnRegion

, XrmQGetSearchResource

. XGetDefault

. XrmDestroyDatabase

, XrmPutLineResource

, XrmPutResource

, XrmParseCommand

. XrmPutFileDatabase

. XrmGetResource

. XGContextFromGC

, Xrmlnitialize

, XrmQPutStringResource

, XrmPutStringResource

, XrmQPutResource

. XrmPutResource

. XrmQPutStringResource

. XrmPutLineResource

, XrmPutStringResource

, XrmQGetResource

. XKillClient

. XAllowEvents

. XrmGetFileDatabase

, XListExtensions

, XQueryTree

, XrmQGetSearchList

, XListFonts

, XCopyColormapAndFree

, XInternAtom

, XFetchBuffer

, XFetchBytes

, XQueryFont

. XGetKeyboardMapping

. XGetlnputFocus

. XCheckTypedWindowEvent

. XCheckTypedEvent

. XPending

. XGetSelectionOwner

. XLookupColor

. XQueryColor

. XQueryColors

. XParseColor

. XLookupColor

.XStoreNamedColor

. XStoreColor

. XStoreColors

22

Xlib Reference Manual

XBell:

a list of children, parent, and

XRotateWindowProperties:

XRotateBuffers:

XSetFillRule: set the fill

fif two regions have the

to a window and/ XSaveContext:

reset the screen

set the parameters of the screen

/turn the screen

/get the current screen

add a window to the client's

a subwindow from the client's

a window from the client's

the depths available on a given

pointer to another point on the

XActivateScreenSaver: activate

XResetScreenSaver: reset the

set the parameters of the

XForceScreenSaver: turn the

XGetScreenSaver: get the current

. new graphics context for a given

get the current font

XSetFontPath: set the font

resource XrmQGetSearchResource:

sent to a window XSelectlnput:

use the value of a

return the owner of a

set the owner of a

connection with the/ XNoOp:

XSendEvent:

select the event types to be

/a resource specification with

range of legal keycodes for a

XGrabServer: grab the

to X supported by Xh'b and the

pixmap formats for a given

to exercise connection with the

connect a client program to an X

errors to be processed by the

a client program from an X

XQueryTextExtents: query the

XQueryTextExtentsl6: query the

XUngrabServer: release the

/read keycode-keysym mapping from

Xlib/ XSetAfterFunction:

handler XSetErrorHandler:

a graphics context XSetDashes:

XPutPixel:

property XSetWMHints:

manager/ XSetWMProperties:

property XSetWMClientMachine:

XSetWMColormapWindows:

property XSetWMProtocols:

property XSetWMSizeHints:

property XSetWMIconName:

property. XSetWMName:

XSetWMNormalHints:

XBell

XQueryTree

, XRotateWindowProperties

ring the bell (Control G)

root XQueryTree: return

rotate properties in the/

rotate the cut buffers XRotateBuffers

rule in a graphics context XSetFillRule

same size, offset, and shape XEqualRegion

save a data value corresponding XSaveContext

saver XResetScreenSaver: XResetScreenSaver

saver XSetScreenSaver: XSetScreenSaver

saver on or off XForceScreenSaver

saver parameters XGetScreenSaver

save-set XAddToSaveSet: XAddToSaveSet

save-set /add or remove XChangeSaveSet

save-set /remove XRemoveFromSaveSet

screen XUstDepths: determine XListDepths

screen XWarpPointer: move the XWarpPointer

screen blanking XActivateScreenSaver

screen saver XResetScreenSaver

screen saver XSetScreenSaver: XSetScreenSaver

screen saver on or off XForceScreenSaver

screen saver parameters XGetScreenSaver

screen with the depth of the/ /a XCreateGC

search path XGetFontPath: XGetFontPath

search path XSetFontPath

search prepared list for a given

select the event types to be

selection XConvertSelection:

selection XGetSelectionOwner: ....

selection XSetSelectionOwner:

send a NoOp to exercise

send an event

sent to a window XSelectlnput: XSelectlnput

separate resource name and value XrmPutStringResource

server /obtain the XDisplayKeycodes

server XGrabServer

server /a list of all extensions XListExtensions

server /obtain the supported XListPixmapFormats

server XNoOp: send a NoOp XNoOp

server XOpenDisplay: XOpenDisplay

server /wait for all events and XSync

server and display /disconnect XCloseDisplay

server for string and font/ XQueryTextExtents

server for string and font/ XQueryTextExtents 16

server from grab XUngrabServer

server into Xlib XRefreshKeyboardMapping

set a function called after all XSetAfterFunction

set a nonfatal error event XSetErrorHandler

set a pattern of line dashes in XSetDashes

set a pixel value in an image XPutPixel

set a window manager hints XSetWMHints

set a window's standard window XSetWMProperties

set a window's WM_CLIENT_MACHINE XSetWMClientMachine

set a window's/ XSetWMColormapWindows

set a window's WM.PROTOCOLS XSetWMProtocols

set a window's WM_SEE_HINTS XSetWMSizeHints

set a window's XA_WM_ICON_NAME XSetWMIconName

set a window's XA_WM_NAME XSetWMName

set a window's/ XSetWMNormalHints

XrmQGetSearchResource

XSelectlnput

XConvertSelection

XGetSelectionOwner

XSetSelectionOwner

XNoOp

XSendEvent

Permuted Index

structure XSetRGBColormaps:

create a window and

context to the/ XSetRegion:

graphics context XSetClipMask:

modifiers/ XSetModifierMapping:

manager /set the minimum

properties XSetTextProperty:

a read/write/ XStoreColor:

read/write/ XStoreColors:

colorcell by/ XStoreNamedColor:

context XSetArcMode:

attribute/ XSetWindowBackground:

in a graphics/ XSetBackground:

operation in a/ XSetFunction:

graphics/ XSetClipOrigin:

window XSetWindowColormap:

graphics context XSetFont:

context XSetFillRule:

context XSetFillStyle:

context XSetTile:

XSetFontPath:

logical function,/ XSetState:

in a graphics/ XSetForeground:

XSetGraphicsExposures:

XSetlnputFocus:

in a/ XSetLine Attributes:

XSetStandardProperties:

a window's icon XSetlconName:

XSetSelectionOwner:

saver XSetScreenSaver:

context XSetPlaneMask:

XSetPointerMapping:

window in/ XSetNormalHints:

zoomed window XSetZoomHints:

XStringListToTextProperty:

context XSetStipple:

graphics/ XSetSubwindowMode:

graphics context XSetTSOrigin:

type/ XSetSizeHints:

XA_WM_ICON_SIZE/ XSetlconSizes:

a window XSelClassHint:

(command line/ XSetCommand:

property/ XSetTransientForHint:

XChangeWindow Attributes:

have the same size, offset, and

the fastest supported stipple

the fastest supported fill tile

a mapping of modifier keys

keycodes to be used as modifiers

map a window on top of its

change the stacking order of

XGetPixel: obtain a

a drawable/ XCopyPlane: copy a

cursor, tile, or stipple

XResizeWindow: change a window's

XMoveResizeWindow: change the

/change the window position,

geometry/ /generate position and

set an XStandardColormap

set attributes XCreateWindow:

set clip_mask of the graphics

set clip_mask pixmap in a

set keycodes to be used as

set of properties for the window

set one of a window's text

set or change the RGB values of

set or change the RGB values of

set RGB values of a read/write

set the arc mode in a graphics ,

set the background pixel value ,

set the background pixel value ,

set the bitwise logical ,

set the clip origin in a ,

set the colormap attribute for a ,

set the current font in a ,

set the fill rule in a graphics ,

set the fill style in a graphics ,

set the fill tile in a graphics ,

set the font search path ,

set the foreground, background, ,

set the foreground pixel value

set the graphics_exposures/

set the keyboard focus window ,

set the line drawing components ,

set the minimum set of/

set the name to be displayed in

set the owner of a selection

set the parameters of the screen

set the plane mask in a graphics

set the pointer button mapping

set the size hints property of a

set the size hints property of a

set the specified list of/

set the stipple in a graphics

set the subwindow mode in a

set the tile/stipple origin in a

set the value of any property of

set the value of the

set the XA_WM_CLASS property of.. set the XA_WM_COMMAND atom .. set the XA_WM_TRANSIENT_FOR

set window attributes

shape /determine if two regions

shape XQueryBestStipple: obtain

shape XQueryBestTile: obtain

(Shift, Control, etc.) /obtain

(Shift, Control, etc.) /set

siblings XMapRaised:

siblings XRestackWindows:

single pixel value from an image

single plane of a drawable into

size /the "best" supported

SJ2£ ...„.„..„.....„..,....,„.„„.„..... ,

size and position of a window

size, border width, or stacking/ ,

size from standard window ,

.XSetRGBColormaps

. XCreateWindow

, XSetRegion

. XSetClipMask

. XSetModifierMapping

. XSetStandardProperties

. XSetTextProperty

. XStoreColor

. XStoreColors

. XStoreNamedColor

. XSetArcMode

. XSetWindowBackground

. XSetBackground

. XSetFunction

. XSetClipOrigin

. XSetWindowColormap

. XSetFont

. XSetFillRule

. XSetFillStyle

. XSetTile

. XSetFontPath

.XSetState

. XSetForeground

. XSetGraphicsExposures

. XSetlnputFocus

. XSetLineAttributes

. XSetStandardProperties

. XSetlconName

. XSetSelectionOwner

. XSetScreenSaver

. XSetPlaneMask

. XSetPointerMapping

. XSetNormalHints

. XSetZoomHints

. XStringListToTextProperty

. XSetStipple

. XSetSubwindowMode

. XSetTSOrigin

. XSetSizeHints

. XSetlconSizes

. XSetClassHint

. XSetCommand

. XSetTransientForHint

. XChangeWindow Attributes

. XEqualRegion

. XQueryBestStipple

. XQueryBestTile

. XGetModifierMapping

. XSetModifierMapping

.XMapRaised

. XRestackWindows

.XGetPixel

.XCopyPlane

. XQueryBestSize

. XResizeWindow

. XMoveResize Window

. XConfigure Window

. XParseGeometry

24

Xlib Reference Manual

in/ XGetNormalHints: get the size hints property of a window XGetNormalHints

in/ XSetNormalHints: set the size hints property of a window XSetNormalHints

window XGetZoomHints: read the size hints property of a zoomed XGetZoomHints

window XSetZoomHints: set the size hints property of a zoomed XSetZoomHints

reduce or expand the size of a region XShrinkRegion: XShrinkRegion

/if two regions have the same size, offset, and shape XEqualRegion

get preferred icon sizes XGetlconSizes: XGetlconSizes

get the closest supported cursor sizes XQueryBestCurson XQueryBestCursor

region XClipBox: generate the smallest rectangle enclosing a XClipBox

using quarks /store a resource specification into a database XrmQPutResource

XrmPutResource: store a resource specification into a resource/ XrmPutResource

using a quark/ /add a resource specification to a database XrmQPutStringResource

database /add a resource specification to a resource XrmPutLJneResource

resource name/ /add a resource specification with separate XrmPutStringResource

the RGB values and flags for a specified colorcell /obtain XQueryColor

screen with the depth of the specified drawable /for a given XCreateGC

/ID) associated with the specified graphics context XGContextFromGC

XTextProperty structure /set the specified list of strings to an XStringlastToTextProperty

/the next event that matches the specified mask and window XWindowEvent

Xh'b function XFree: free specified memory allocated by an XFree

/structure associated with the specified property XGetRGBColormaps

of the graphics context to the specified region /set clip_mask XSetRegion

data associated with the specified string list /in-memory XFreeStringList

structures that match the specified template /information XGetVisuallnfo

/obtain a list of strings from a specified XTextProperty/ XTextPropertyToStringList

bottom child to the top of the stacking order /circulate the XCirculateSubwindowsDown

top child to the bottom of the stacking order /circulate the XCirculateSubwindowsUp

position, size, border width, or stacking order /the window XConfigureWindow

lower a window in the stacking order XLowerWindow: XLowerWindow

raise a window to the top of the stacking order XRaiseWindow: XRaiseWindow

down /circulate the stacking order of children up or XCirculateSubwindows

XRestackWindows: change the stacking order of siblings XRestackWindows

XGetStandardColormap: get the standard colormap property XGetStandardColormap

XSetStandardColormap: change the standard colormap property XSetStandardColormap

/create a cursor from the standard cursor font XCreateFontCursor

/generate position and size from standard window geometry string XParseGeometry

XSetWMProperties: set a window's standard window manager/ XSetWMProperties

/property of a window in normal state (not zoomed or iconified) XGetNormalHints

/property of a window in normal state (not zoomed or iconified) XSetNormalHints

a bit vector for the current state of the keyboard /obtain XQueryKeymap

XSetStipple: set the stipple in a graphics context XSetStipple

/obtain the fastest supported stipple shape XQueryBestStipple

supported cursor, tile, or stipple size /the "best" XQueryBestSize

XDestroyRegion: deallocate storage associated with a region XDestroyRegion

/unload a font and free storage for the font structure XFreeFont

file XrmPutFileDatabase: store a resource database in a XrmPutFileDatabase

into a/ XrmQPutResource: store a resource specification XrmQPutResource

into a resource/ XrmPutResource: store a resource specification XrmPutResource

XStoreBuffer: store data in a cut buffer XStoreBuffer

XStoreBytes: store data in cut buffer 0 XStoreBytes

atom for a given property name string XIntemAtom: return an XIntemAtom

convert a keysym symbol to a string XKeysymToString: XKeysymToString

from standard window geometry string /position and size XParseGeometry

metrics of a 16-bit character string /for string and font XQueryTextExtents 16

create a database from a string XrmGetStringDatabase: XrmGetStringDatabase

convert a quark to a string XrmQuarkToString: XrmQuarkToString

/geometry given user geometry string and default geometry XGeometry

/query the server for string and font metrics XQueryTextExtents

XTextExtents: get string and font metrics locally XTextExtents

16-bit/ /query the server for string and font metrics of a XQueryTextExtentsl6

16-bit/ XTextExtents 16: get string and font metrics of a XTextExtents 16

/rebind a keysym to a string for client XRebindKeysym

XDrawString: draw an 8-bit text string, foreground only XDrawString

Anap a key event to ASCII string, keysym, and/ XLookupString

associated with the specified string list /the in-memory data XFreeStringList

metrics of a 16-bit character string, locally /string and font XTextExtents 16

in pixels of an 8-bit character string, locally /get the width XTextWidth

in pixels of a 16-bit character string, locally /get the width XTextWidth 16

its atom XGetAtomName: get a string name for a property given XGetAtomName

quark list /convert a key string to a binding list and a XrmStringToBindingQuarkList

/convert a keysym name string to a keysym XStringToKeysym

XrmStringToQuark: convert a string to a quark XrmStringToQuark

/convert a key string to a quark list XrmStringToQuarkList

using a quark resource name and string value Ao a database XrmQPutStringResource

draw two-byte text strings XDrawString 16: XDrawString 16

XDrawText: draw 8-bit polytext strings XDrawText

draw 16-bitpolytext strings XDrawTextl6: XDrawTextl6

resource from name and class as strings XrmGetResource: get a XrmGelResource

XTextProperty/ /obtain a list of strings from a specified XTextPropertyToSlringList

/set the specified list of strings to an XTextProperty/ XStringListToTextProperty

allocate an XClassHint structure XAllocClassHint: XAllocClassHint

allocate an XlconSize structure XAllocIconSize: XAllocIconSize

allocate an XSizeHints structure XAllocSizeHints: XAllocSizeHints

/allocate an XStandardColormap structure XAllocStandardColormap

allocate an XWMHints structure XAllocWMHints: XAllocWMHints

allocate memory for an Xlmage structure XCreatelmage: XCreatelmage

an entry from an XModifierKeymap structure /delete XDeleteModifiermapEntry

and free storage for the font structure Ainload a font XFreeFont

free a keyboard modifier mapping structure /destroy and XFreeModifiermap

new entry to an XModifierKeymap structure /add a XlnsertModifiermapEntry

load a font and fill information structure XLoadQueryFont: XLoadQueryFont

corresponding to a keycode in structure /get the keysym XLookupKeysym

a keyboard modifier mapping structure /create XNewModifiermap

set an XStandardColormap structure XSetRGBColormaps: XSetRGBColormaps

of strings to an XTextProperty structure /the specified list XStringListToTextProperty

from a specified XTextProperty structure /a list of strings XTextPropertyToStringList

/obtain the XStandardColormap structure associated with the/ XGetRGBColormaps

A"ind the visual information structures that match the/ XGetVisuallnfo

XSetFillStyle: set the fill style in a graphics context XSetFillStyle

XSublmage: create a subimage from part of an image XSublmage

XSubtractRegion: subtract one region from another XSubtractRegion

XChangeSaveSet: add or remove a subwindow from the client's/ XChangeSaveSet

XSetSubwindowMode: set the subwindow mode in a graphics/ XSetSubwindowMode

and destroy a window and all subwindows. Ainmap XDestroyWindow

XUnmapSubwindows: unmap all subwindows of a given window XUnmapSubwindows

XDestroySubwindows: destroy all subwindows of a window XDestroySubwindows

XMapSubwindows: map all subwindows of window XMapSubwindows

/change the keyboard preferences such as key click XChangeKeyboardControl

/a list of all extensions to X supported by Xlib and the server XListExtensions

/get the closest supported cursor sizes XQueryBestCursor

stipple/ /obtain the "best" supported cursor, tile, or XQueryBestSize

/obtain the fastest supported fill tile shape XQueryBestTile

XlistPixmapFormats: obtain the supported pixmap formats for a/ XlistPixmapFormats

/obtain the fastest supported stipple shape XQueryBestStipple

/convert a keysym symbol to a string XKeysymToString

XGetKeyboardMapping: return symbols for keycodes XGetKeyboardMapping

XSynchronize: enable or disable synchronization for debugging XSynchronize

another /change the coordinate system from one window to XTranslateCoordinates

an entry from an association table. XDeleteAssoc: delete XDeleteAssoc

allocated for an association table, /free the memory XDestroyAssocTable

obtain data from an association table XLookUpAssoc: XLookUpAssoc

an entry in an association table XMakeAssoc: create XMakeAssoc

create a new association table (X10) XCreateAssocTable: XCreateAssocTable

that match the specified template /information structures XGetVisuallnfo

/draw 8-bit image text characters XDrawImageString

/draw 16-bit image text characters XDrawImageString 16

/read one of a window's text properties XGetTextProperty

/set one of a window's text properties XSetTextProperty

XDrawString: draw an 8-bit text string, foreground only XDrawString

XDrawString 16: draw two-byte text strings XDrawString 16

border /change a window border tile attribute and repaint the XSetWindowBorderPixmap

/change the background tile attribute of a window XSetWindowBackgroundPixmap

XSelTile: set the fill tile in a graphics context XSetTile

the "best" supported cursor, tile, or stipple size /obtain XQueryBestSize

the fastest supported fill tile shape /obtain XQueryBestTile

graphics/ XSetTSOrigin: set the tile/stipple origin in a XSetTSOrigin

stacking order /circulate the top child to the bottom of the XCirculateSubwindowsUp

XMapRaised: map a window on top of its siblings XMapRaised

/the bottom child to the top of the stacking order XCirculateSubwindowsDown

/raise a window to the top of the stacking order XRaiseWindow

XlconifyWindow: request that a top-level window be iconified XlconifyWindow

/request that a top-level window be reconfigured XReconfigureWMWindow

XWithdrawWindow: request that a top-level window be withdrawn XWithdrawWindow

values from ASCII color name or translate hexadecimal value /RGB XParseColor

auto-repeat/ XAutoRepeatOff: turn off the keyboard XAutoRepeatOff

keys XAutoRepeatOn: turn on the keyboard auto-repeat XAutoRepeatOn

XForceScreenSaver: turn the screen saver on or off XForceScreenSaver

/create a cursor from two bitmaps XCreatePixmapCursor

XDrawLine: draw a line between two points XDrawLine

compute the intersection of two regions XInterseclRegion: XIntersectRegion

compute the union of two regions XUnionRegion: XUnionRegion

the union and intersection of two regions /difference between XXorRegion

XEqualRcgion: determine if two regions have the same size/ XEqualRegion

XDrawStringl6: draw two-byte text strings XDrawStringl6

entry for a given window and type /delete a context XDeleteContext

window /obtain the atom type and property format for a XGetWindowProperty

the next event in queue matching type and window /return XCheckTypedWindowEvent

in queue that matches event type; don't wait /the next event XCheckTypedEvent

Ao a window and context type (not graphics context) XSaveContext

get the next event of any type or window XNextEvent: XNextEvent

/read any property of type XA_SEE_fflNTS XGetSizeHints

/set the value of any property of type XA_SEE_HINTS XSetSizeHints

XSelectlnput: select the event types to be sent to a window XSelectlnput

default if/ XUninstallColormap: uninstall a colormap; install XUninstallColormap

/the difference between the union and intersection of two/ XXorRegion

XUnionRegion: compute the union of two regions XUnionRegion

XUnloadFont: unload a font XUnloadFont

for the font/ XFreeFont: unload a font and free storage XFreeFont

XUnmapWindow: unmap a window XUnmapWindow

window XUnmapSubwindows: unmap all subwindows of a given XUnmapSubwindows

all subwindows. XDestroyWindow: unmap and destroy a window and XDestroyWindow

XCreateSimpleWindow: create an unmapped InputOutput window XCreateSimpleWindow

/calculate window geometry given user geometry string and default/ XGeometry

/specification to a database using a quark resource name and/ XrmQPutStringResource

/get a resource value using name and class as quarks XrmQGetResource

specification into a database using quarks /store a resource XrmQPutResource

name or translate hexadecimal value /values from ASCII color XParseColor

with separate resource name and value /a resource specification XrmPutStringResource

a quark resource name and string value /to a database using XrmQPutSlringResource

/change a window border pixel value attribute and repaint the/ XSetWindowBorder

/set the background pixel value attribute of a window XSetWindowBackground

and/ XSaveContext: save a data value corresponding to a window XSaveContext

XGetPixel: obtain a single pixel value from an image XGetPixel

XGetDefault: extract an option value from the resource database XGetDefault

/set the background pixel value in a graphics context XSetBackground

/set the foreground pixel value in a graphics context XSetForeground

a constant value to every pixel value in an image /add XAddPixel

XPutPixel: set a pixel value in an image XPutPixel

XConvertSelection: use the value of a selection XConvertSelection

XSetSizeHints: set the value of any property of type/ XSetSizeHints

property XSetlconSizes: set the value of the XA_WM_ICON_SIZE XSetlconSizes

image XAddPixel: add a constant value to every pixel value in an XAddPixel

XrmQGetResource: get a resource value using name and class as/ XrmQGetResource

with depth, applying pixel values /drawable into a drawable XCopyPlane

XLookupColor: get database RGB values and closest/ XLookupColor

XQueryColor: obtain the RGB values and nags for a specified/ XQueryColor

XQueryColors: obtain RGB values for an array of/ XQueryColors

XParseColor: look up RGB values from ASCII color name or/ XParseColor

closest hardware-supported RGB values from color name /and XLookupColor

by/ XStoreNamedColor: set RGB values of a read/write colorcell XStoreNamedColor

entry to/ /set or change the RGB values of a read/write colormap XStoreColor

to the/ /set or change the RGB values of read/write colorcells XStoreColors

the/ XQueryKeymap: obtain a bit vector for the current state of XQueryKeymap

draw a polyline or curve between vertex list (from X10) XDraw: XDraw

a filled polygon or curve from vertex list (from X10) /draw XDrawFilled

obtain the visual ID from a Visual XVisuallDFromVisual: XVisuallDFromVisual

XVisuallDFrom Visual: obtain the visual ID from a Visual XVisuallDFrom Visual

that/ XGetVisuallnfo: find the visual information structures XGetVisuallnfo

XMatchVisuallnfo: obtain the visual information that matches/ XMatchVisuallnfo

event that matches mask; don't wait /remove the next XCheckMaskEvent

that matches event type; don't wait /the next event in queue XCheckTypedEvent

window and passed mask; don't wait /event matching both passed XCheckWindowEvent

to/ /flush the request buffer and wait for all events and errors XSync

predicate procedure XlfEvent: wait for event matched in XlfEvent

fails) /report the display name (when connection to a display XDisplayName

character/ XTextWidthl6: get the width in pixels of a 16-bit XTextWidthl6

character/ XTextWidth: get the width in pixels of an 8-bit XTextWidth

/change the border width of a window XSetWindowBorderWidth

window position, size, border width, or stacking order /the XConfigureWindow

a property associated with a window XChangeProperty: change XChangeProperty

event in queue matching type and window /return the next XCheckTypedWindowEvent

clear a rectangular area in a window XClearArea: XClearArea

XClearWindow: clear an entire window XClearWindow

create an unmapped InputOutput window XCreateSimpleWindow: XCreateSimpleWindow

assign a cursor to a window XDefineCursor: XDefineCursor

destroy all subwindows of a window XDestroySubwindows: XDestroySubwindows

the XA_WM_CLASS property of a window XGetClassHint: get XGetClassHint

the current keyboard focus window XGetlnputFocus: return , XGetlnputFocus

property of a window /the XA_WM_TRANSIENT_FOR XGetTransientForHint

obtain the current attributes of window XGetWindowAttributes: XGetWindowAttributes

type and property format for a window /obtain the atom XGetWindowProperty

Get Xlib Reference Manual for Version 11 Volume 2, 5th Editon now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.