1XmTextXYToPos(library call) XmTextXYToPos(library call)
2
3
4
6 XmTextXYToPos — A Text function that accesses the character position
7 nearest an x and y position
8
10 #include <Xm/Text.h>
11 XmTextPosition XmTextXYToPos(
12 Widget widget,
13 Position x,
14 Position y);
15
17 XmTextXYToPos accesses the character position nearest to the specified
18 x and y position, relative to the upper left corner of the Text widget.
19
20 In the case of horizontal writing, the position is the origin of the
21 character. In the case of vertical writing, the position is the verti‐
22 cal origin of the character.
23
24 widget Specifies the Text widget ID
25
26 x Specifies the x position, relative to the upper left corner
27 of the widget
28
29 y Specifies the y position, relative to the upper left corner
30 of the widget
31
32 For a complete definition of Text and its associated resources, see
33 XmText(3).
34
36 Returns the character position in the text nearest the x and y position
37 specified. This is an integer number of characters from the beginning
38 of the buffer. The first character position is 0 (zero).
39
41 XmText(3).
42
43
44
45 XmTextXYToPos(library call)