EdGetLas.sgm 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!-- $XConsortium: EdGetLas.sgm /main/5 1996/08/30 12:59:41 rws $ -->
  2. <!-- (c) Copyright 1995 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1995 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1995 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1995 Novell, Inc. -->
  7. <!-- (c) Copyright 1995 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1995 Hitachi. -->
  9. <![ %CDE.C.CDE; [<RefEntry Id="CDEMX.XCSA.MAN27.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCSA.MAN27.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>DtEditorGetLastPosition</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>DtEditorGetLastPosition</Function></RefName>
  17. <RefPurpose>retrieve the position of the last character in a DtEditor widget
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- CDE Common Source Format, Version 1.0.0-->
  21. <!-- *************************************************************************-->
  22. <!-- ** (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
  23. <!-- ** (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
  24. <!-- ** (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
  25. <!-- ** (c) Copyright 1993, 1994, 1995 Novell, Inc.-->
  26. <!-- *************************************************************************-->
  27. <RefSynopsisDiv>
  28. <FuncSynopsis Remap="ANSI">
  29. <FuncSynopsisInfo>#include &lt;Dt/Editor.h>
  30. </FuncSynopsisInfo>
  31. <FuncDef>XmTextPosition <Function>DtEditorGetLastPosition</Function></FuncDef>
  32. <ParamDef>Widget <Parameter>widget</Parameter></ParamDef>
  33. </FuncSynopsis>
  34. </RefSynopsisDiv>
  35. <RefSect1>
  36. <Title>DESCRIPTION</Title>
  37. <Para>The
  38. <Function>DtEditorGetLastPosition</Function> function accesses the last text position in the DtEditor widget.
  39. The position is an
  40. integer number of characters from the beginning of the widget's buffer.
  41. Any text added to the end of the buffer is added after this position.
  42. The first character position is zero.
  43. The last character
  44. position is equal to the number of characters contained in the widget.
  45. </Para>
  46. <Para>The
  47. <Symbol Role="Variable">widget</Symbol> argument specifies the DtEditor widget ID.
  48. <![ %CDE.C.CDE; [</Para>
  49. <Para>For a complete definition of the DtEditor widget
  50. and its associated resources, see
  51. &cdeman.DtEditor;. ]]></Para>
  52. </RefSect1>
  53. <RefSect1>
  54. <Title>RETURN VALUE</Title>
  55. <Para>Upon successful completion, the
  56. <Function>DtEditorGetLastPosition</Function> function returns an
  57. <StructName Role="typedef">XmTextPosition</StructName> value that indicates the last
  58. position in the text; otherwise, it returns
  59. <SystemItem Class="Constant">NULL</SystemItem>.</Para>
  60. </RefSect1>
  61. <RefSect1>
  62. <Title>APPLICATION USAGE</Title>
  63. <Para>The position information is given in terms of characters,
  64. which may differ from the byte position when multi-byte
  65. code sets are in use.
  66. </Para>
  67. </RefSect1>
  68. <RefSect1>
  69. <Title>SEE ALSO</Title>
  70. <Para>&cdeman.Dt.Editor.h;, &cdeman.DtEditor;, &cdeman.DtEditorGetInsertionPosition;, &cdeman.DtEditorSetInsertionPosition;.</Para>
  71. </RefSect1>
  72. </RefEntry>
  73. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:40:24-->