12.07.2015 Views

Xlib − C Language X Interface

Xlib − C Language X Interface

Xlib − C Language X Interface

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Xlib</strong> − C LibraryX11, Release 6.7 DRAFTFor fonts defined with linear indexing rather than 2-byte matrix indexing, each XChar2b structureis interpreted as a 16-bit number with byte1 as the most significant byte.Both functions use these GC components: function, plane-mask, fill-style, font, subwindowmode,clip-x-origin, clip-y-origin, and clip-mask. They also use these GC mode-dependent components:foreground, background, tile, stipple, tile-stipple-x-origin, and tile-stipple-y-origin.XDrawText and XDrawText16 can generate BadDrawable, BadFont, BadGC, and Bad-Match errors.8.6.2. Drawing Text CharactersTo draw 8-bit characters in a given drawable, use XDrawString.XDrawString (display, d, gc, x, y, string, length)Display *display;Drawable d;GC gc;int x, y;char *string;int length;displaydgcxystringlengthSpecifies the connection to the X server.Specifies the drawable.Specifies the GC.Specify the x and y coordinates, which are relative to the origin of the specifieddrawable and define the origin of the first character.Specifies the character string.Specifies the number of characters in the string argument.To draw 2-byte characters in a given drawable, use XDrawString16.175

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

Saved successfully!

Ooh no, something went wrong!