<!-- $XConsortium: ImSetXIC.sgm /main/8 1996/09/08 20:48:25 rws $ -->
<!-- (c) Copyright 1995 Digital Equipment Corporation. -->
<!-- (c) Copyright 1995 Hewlett-Packard Company. -->
<!-- (c) Copyright 1995 International Business Machines Corp. -->
<!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
<!-- (c) Copyright 1995 Novell, Inc. -->
<!-- (c) Copyright 1995 FUJITSU LIMITED. -->
<!-- (c) Copyright 1995 Hitachi. -->

<RefEntry Id="CDEMMA.MAN271.rsml.1">
<RefMeta>
<RefEntryTitle>XmImSetXIC</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>XmImSetXIC</Function></RefName>
<RefPurpose>An input manager function that registers an existing XIC with a widget
<IndexTerm>
<Primary>XmImSetXIC</Primary>
</IndexTerm><IndexTerm>
<Primary>input manager functions</Primary>
<Secondary>XmImSetXIC</Secondary>
</IndexTerm></RefPurpose>
</RefNameDiv>
<!-- @OSF_COPYRIGHT@-->
<!-- COPYRIGHT NOTICE-->
<!-- Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.-->
<!-- ALL RIGHTS RESERVED (MOTIF). See the file named COPY.MOTIF.DOC for-->
<!-- the full copyright text.-->
<!-- HISTORY-->
<RefSynopsisDiv>
<FuncSynopsis>
<FuncSynopsisInfo>#include &lt;Xm/XmIm.h>
</FuncSynopsisInfo>
<FuncDef>XIC <Function>XmImSetXIC</Function></FuncDef>
<!--<ParamDef><Replaceable>widget, xic</Replaceable></ParamDef>-->
<ParamDef>Widget <Parameter>widget</Parameter></ParamDef>
<ParamDef>XIC <Parameter>xic</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para><Function>XmImSetXIC</Function> registers the specified X Input Context (XIC) with
<Symbol Role="Variable">widget</Symbol>. Any existing XIC registered for <Symbol Role="Variable">widget</Symbol> is
unregistered. The new XIC registered for <Symbol Role="Variable">widget</Symbol> is returned.
</Para>
<Para>If <Symbol Role="Variable">xic</Symbol> was not created by <Function>XmImGetXIC</Function> or
<Function>XmImRegister</Function>, it will not be subject to closing activities when it
has no widgets registered with it.
</Para>
<VariableList>
<VarListEntry>
<Term><Symbol Role="Variable">widget</Symbol></Term>
<ListItem>
<Para>Specifies the ID of a widget for which a new Input Context is to be
registered.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">xic</Symbol></Term>
<ListItem>
<Para>Specifies the Input Context to be registered with the widget.
If <Symbol Role="Variable">xic</Symbol> is NULL, the function returns the current <Symbol Role="Define">XIC</Symbol>
used by <Symbol Role="Variable">widget</Symbol>.
</Para>
</ListItem>
</VarListEntry>
</VariableList>
</RefSect1>
<RefSect1>
<Title>RETURN</Title>
<Para>Returns the new XIC registered for <Symbol Role="Variable">widget</Symbol>.
The application is responsible for freeing the returned XIC.
To free the XIC, call <Function>XmImFreeXIC</Function>.
</Para>
</RefSect1>
<RefSect1>
<Title>RELATED</Title>
<Para>&cdeman.XmImGetXIC; and
&cdeman.XmImFreeXIC;.
</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.09 7/2/95-->
