1XmStringDraw(library call) XmStringDraw(library call)
2
3
4
6 XmStringDraw — A compound string function that draws a compound string
7 in an X window
8
10 #include <Xm/Xm.h>
11 void XmStringDraw(
12 Display * d,
13 Window w,
14 XmRenderTable rendertable,
15 XmString string,
16 GC gc,
17 Position x,
18 Position y,
19 Dimension width,
20 unsigned char alignment,
21 unsigned char layout_direction,
22 XRectangle * clip);
23
25 XmStringDraw draws a compound string in an X Window. If a compound
26 string segment uses a rendition that contains a font set, the graphic
27 context passed to this routine will have the GC font member left in an
28 undefined state. The underlying XmbStringDraw function called by this
29 routine modifies the font ID field of the GC passed into it and does
30 not attempt to restore the font ID to the incoming value. If the com‐
31 pound string segment is not drawn using a font set, the graphic context
32 must contain a valid font member. Graphic contexts created by XtGetGC
33 are not valid for this routine; instead, use XtAllocateGC to create a
34 graphic context.
35
36 d Specifies the display.
37
38 w Specifies the window.
39
40 rendertable
41 Specifies the render table.
42
43 string Specifies the string.
44
45 gc Specifies the graphics context to use.
46
47 x Specifies a coordinate of the rectangle that will contain the
48 displayed compound string.
49
50 y Specifies a coordinate of the rectangle that will contain the
51 displayed compound string.
52
53 width Specifies the width of the rectangle that will contain the
54 displayed compound string.
55
56 alignment Specifies how the string will be aligned within the specified
57 rectangle. It is either XmALIGNMENT_BEGINNING, XmALIGN‐
58 MENT_CENTER, or XmALIGNMENT_END.
59
60 layout_direction
61 Controls the direction in which the segments of the compound
62 string will be laid out. It also determines the meaning of
63 the alignment parameter.
64
65 clip Allows the application to restrict the area into which the
66 compound string will be drawn. If the value is NULL, clip‐
67 ping will be determined by the GC.
68
70 XmStringCreate(3).
71
72
73
74 XmStringDraw(library call)