1XmListPosToBounds(library call) XmListPosToBounds(library call)
2
3
4
6 XmListPosToBounds — A List function that returns the bounding box of an
7 item at a specified position in a list
8
10 #include <Xm/List.h>
11 Boolean XmListPosToBounds(
12 Widget widget,
13 int position,
14 Position *x,
15 Position *y,
16 Dimension *width,
17 Dimension *height);
18
20 XmListPosToBounds returns the coordinates of an item within a list and
21 the dimensions of its bounding box. The function returns the associated
22 x and y-coordinates of the upper left corner of the bounding box rela‐
23 tive to the upper left corner of the List widget, as well as the width
24 and the height of the box. The caller can pass a NULL value for the x,
25 y, width, or height parameters to indicate that the return value for
26 that parameter is not requested.
27
28 widget Specifies the ID of the List widget.
29
30 position Specifies the position of the specified item. A value of 1
31 indicates the first item in the list; a value of 2 indicates
32 the second item; and so on. A value of 0 (zero) specifies the
33 last item in the list.
34
35 x Specifies a pointer to the returned x-coordinate of the item.
36
37 y Specifies the pointer to the returned y-coordinate of the
38 item.
39
40 width Specifies the pointer to the returned width of the item.
41
42 height Specifies the pointer to the returned height of the item.
43
44 For a complete definition of List and its associated resources, see
45 XmList(3).
46
48 If the item at the specified position is not visible, returns False,
49 and the returned values (if any) are undefined. Otherwise, this func‐
50 tion returns True.
51
53 XmList(3) and XmListYToPos(3).
54
55
56
57 XmListPosToBounds(library call)