1XmTextGetTopCharacter(library call)        XmTextGetTopCharacter(library call)
2
3
4

NAME

6       XmTextGetTopCharacter  —  A Text function that accesses the position of
7       the first character displayed
8

SYNOPSIS

10       #include <Xm/Text.h>
11       XmTextPosition XmTextGetTopCharacter(
12       Widget widget);
13

DESCRIPTION

15       XmTextGetTopCharacter accesses the position of the text at the  top  of
16       the  Text  widget.   If  there  is no text in the Text widget (in other
17       words, XmNvalue contains an empty string),  then  XmTextGetTopCharacter
18       returns 0.
19
20       Suppose  that  the  XmNtopCharacter  resource  has  been set to a value
21       greater than the number of characters in the text widget. In this case,
22       XmTextGetTopCharacter  returns  an XmTextPosition value identifying the
23       position of the first character in the last line of text in a multiline
24       case;  otherwise,  it  identifies the position of the last character in
25       the line.
26
27       widget    Specifies the Text widget ID
28
29       For a complete definition of Text and  its  associated  resources,  see
30       XmText(3).
31

RETURN

33       Returns  an  XmTextPosition  value that indicates the state of the XmN‐
34       topCharacter resource. This is an integer number of characters from the
35       beginning of the text buffer. The first character position is 0 (zero).
36
38       XmText(3).
39
40
41
42                                           XmTextGetTopCharacter(library call)
Impressum