12.07.2015 Views

Xlib − C Language X Interface

Xlib − C Language X Interface

Xlib − C Language X Interface

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

<strong>Xlib</strong> − C LibraryX11, Release 6.7 DRAFTvoid XmbDrawText(display, d, gc, x, y, items, nitems)Display *display;Drawable d;GC gc;int x, y;XmbTextItem *items;int nitems;void XwcDrawText(display, d, gc, x, y, items, nitems)Display *display;Drawable d;GC gc;int x, y;XwcTextItem *items;int nitems;void Xutf8DrawText(display, d, gc, x, y, items, nitems)Display *display;Drawable d;GC gc;int x, y;XmbTextItem *items;int nitems;displaydgcxyitemsnitemsSpecifies the connection to the X server.Specifies the drawable.Specifies the GC.Specify the x and y coordinates.Specifies an array of text items.Specifies the number of text items in the array.The XmbDrawText, XwcDrawText and Xutf8DrawText functions allow complex spacing andfont set shifts between text strings. Each text item is processed in turn, with the origin of a textelement advanced in the primary draw direction by the escapement of the previous text item. Atext item delta specifies an additional escapement of the text item drawing origin in the primarydraw direction. A font_set member other than None in an item causes the font set to be used forthis and subsequent text items in the text_items list. Leading text items with a font_set memberset to None will not be drawn.XmbDrawText, XwcDrawText and Xutf8DrawText do not perform any context-dependentrendering between text segments. Clients may compute the drawing metrics by passing each textsegment to XmbTextExtents, XwcTextExtents, Xutf8TextExtents or XmbTextPerCharExtents,XwcTextPerCharExtents. Xutf8TextPerCharExtents. When the XFontSet has missingcharsets, each unavailable character is drawn with the default string returned by XCreate-FontSet. The behavior for an invalid codepoint is undefined.The function Xutf8DrawText is an XFree86 extension introduced in XFree86 4.0.2. Its presenceis indicated by the macro X_HAVE_UTF8_STRING.To draw text using a single font set in a given drawable, use XmbDrawString, XwcDrawString299

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

Saved successfully!

Ooh no, something went wrong!