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

XmTextGetSelectionPosition — A Text function that accesses the position of the primary selection

Description

XmTextGetSelectionPosition accesses the left and right position of the  primary  selection  in  the  text
       buffer of the Text widget.

       widget    Specifies the Text widget ID

       left      Specifies  the  pointer  in which the position of the left boundary of the primary selection is
                 returned. This is an integer number of characters from the beginning of the buffer.  The  first
                 character position is 0 (zero).

       right     Specifies  the  pointer in which the position of the right boundary of the primary selection is
                 returned. This is an integer number of characters from the beginning of the buffer.  The  first
                 character position is 0 (zero).

       For a complete definition of Text and its associated resources, see XmText(3).

Name

XmTextGetSelectionPosition  —  A  Text  function  that  accesses  the  position  of the primary selection
       "XmTextGetSelectionPosition" "Text functions" "XmTextGetSelectionPosition"

Return

       This function returns True if the widget owns the primary selection; otherwise, it returns False.

Synopsis

       #include <Xm/Text.h>
       BooleanXmTextGetSelectionPosition(
       Widgetwidget,
       XmTextPosition*left,
       XmTextPosition*right);

See Also