logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

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(3).

Name

XmListYToPos  —  A  List  function  that  returns  the  position  of the item at a specified y-coordinate
       "XmListYToPos" "List functions" "XmListYToPos"

Return

       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 (zero) indicates that no item
       exists at the specified y coordinate.

Synopsis

       #include <Xm/List.h>
       intXmListYToPos(
       Widgetwidget,
       Positiony);

See Also