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 DRAFTXDrawImageString (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 image text characters in a given drawable, use XDrawImageString16.XDrawImageString16 (display, d, gc, x, y, string, length)Display *display;Drawable d;GC gc;int x, y;XChar2b *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.The XDrawImageString16 function is similar to XDrawImageString except that it uses 2-byteor 16-bit characters. Both functions also use both the foreground and background pixels of theGC in the destination.The effect is first to fill a destination rectangle with the background pixel defined in the GC andthen to paint the text with the foreground pixel. The upper-left corner of the filled rectangle is at:The width is:[x, y − font-ascent]177

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

Saved successfully!

Ooh no, something went wrong!