1XmTextPosToXY(library call) XmTextPosToXY(library call)
2
3
4
6 XmTextPosToXY — A Text function that accesses the x and y position of a
7 character position
8
10 #include <Xm/Text.h>
11 Boolean XmTextPosToXY(
12 Widget widget,
13 XmTextPosition position,
14 Position *x,
15 Position *y);
16
18 XmTextPosToXY accesses the x and y position, relative to the upper left
19 corner of the Text widget, of a given character position in the text
20 buffer.
21
22 In the case of horizontal writing, the position is the origin of the
23 character. In the case of vertical writing, the position is the verti‐
24 cal origin of the character.
25
26 widget Specifies the Text widget ID
27
28 position Specifies the character position in the text for which the x
29 and y position is accessed. This is an integer number of
30 characters from the beginning of the buffer. The first char‐
31 acter position is 0 (zero).
32
33 x Specifies the pointer in which the x position is returned.
34 The returned position is the distance from the left side of
35 the widget to the left border of the character. This value
36 is meaningful only if the function returns True.
37
38 y Specifies the pointer in which the y position is returned.
39 The returned position is the distance from the top of the
40 widget to the character's baseline. This value is meaningful
41 only if the function returns True.
42
43 For a complete definition of Text and its associated resources, see
44 XmText(3).
45
47 This function returns True if the character position is displayed in
48 the Text widget; otherwise, it returns False, and no x or y value is
49 returned.
50
52 XmText(3).
53
54
55
56 XmTextPosToXY(library call)