<!DOCTYPE FUNCTION PUBLIC "-//HUNGRY//DTD Lessdox 1.0//EN">
<!--
	$Id: XmGetTextSource.sgml,v 1.1 1996/10/26 05:46:50 toshok Exp $
-->

<function name = "XmGetTextSource"
	  header = "Xm/Text.h"
	  shortdesc = "get the text source"
>

<signature>
  <returns>
    <type>        XmTextSource</type>
    <description> The source of the Text widget.
  </returns>

  <arg>
    <name>        widget</name>
    <type>        Widget</type>
    <description> Specifies the Text widget.
  </arg>
</signature>

<description>
  <code>XmTextGetSource</code>() returns the source of the specified
  Text <argref>widget</argref>.  Every Text widget has an
  <code>XmTextSource</code> data structure associated with it that
  functions as the text source and sink.
</description>

<usage>
  Multiple text widgets can share the same text source, which means
that editing in one of the widgets is reflected in all of the others.
<code>XmTextGetSource</code>() retrieves the source for a
<argref>widget</argref>; this source can then be used to set the source of
another Text widget using <funcref>XmTextSetSource</funcref>().
</usage>

</function>
