XmListYToPos(X3mot)


XmListYToPos -- a List function that returns the position of the item at a specified y coordinate

Synopsis

#include <Xm/List.h>

int XmListYToPos (widget, y) Widget widget; Position y;

Description

XmListYToPos returns the position of the item at the given y coordinate within the list.

widget
Specifies the ID of the List widget.

y
Specifies the y coordinate in the list's coordinate system.

For a complete definition of List and its associated resources, see XmList(X3mot).

Return values

Returns the position of the item at the specified y coordinate. A value of 1 indicates the first item in the list; a value of 2 indicates the second item; and so on. A value of 0 indicates that no item exists at the specified y coordinate.

References

XmList(X3mot) and XmListPosToBounds(X3mot).
25 April 2004
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004