<!-- $XConsortium: StrDiC.sgm /main/8 1996/09/08 21:04:09 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.MAN418.rsml.1">
<RefMeta>
<RefEntryTitle>XmStringDirectionToDirection</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>XmStringDirectionToDirection</Function></RefName>
<RefPurpose>A function that converts from XmStringDirection to XmDirection
<IndexTerm>
<Primary>XmStringDirectionToDirection</Primary>
</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/Xm.h>
</FuncSynopsisInfo>
<FuncDef>XmDirection <Function>XmStringDirectionToDirection</Function></FuncDef>
<!--<ParamDef><Replaceable>direction</Replaceable></ParamDef>-->
<ParamDef>XmStringDirection <Parameter>direction</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para><Function>XmStringDirectionToDirection</Function> converts the specified
<StructName Role="typedef">XmStringDirection</StructName>
direction value to its equivalent <StructName Role="typedef">XmDirection</StructName> value. This
function provides backward compatibility with the
<StructName Role="typedef">XmStringDirection</StructName> data type.
</Para>
<VariableList>
<VarListEntry>
<Term><Emphasis>direction</Emphasis></Term>
<ListItem>
<Para>Specifies the <StructName Role="typedef">XmStringDirection</StructName> value to be converted.
</Para>
</ListItem>
</VarListEntry>
</VariableList>
</RefSect1>
<RefSect1>
<Title>RETURN</Title>
<Para>Returns the following <StructName Role="typedef">XmDirection</StructName> values:
</Para>
<VariableList>
<VarListEntry>
<Term><SystemItem Class="Constant">XmLEFT_TO_RIGHT</SystemItem></Term>
<ListItem>
<Para>If the <Emphasis>direction</Emphasis> argument is <SystemItem Class="Constant">XmSTRING_DIRECTION_L_TO_R</SystemItem>.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><SystemItem Class="Constant">XmRIGHT_TO_LEFT</SystemItem></Term>
<ListItem>
<Para>If the <Emphasis>direction</Emphasis> argument is <SystemItem Class="Constant">XmSTRING_DIRECTION_R_TO_L</SystemItem>.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><SystemItem Class="Constant">XmDEFAULT_DIRECTION</SystemItem></Term>
<ListItem>
<Para>If the <Emphasis>direction</Emphasis> argument was not either of the above.
</Para>
</ListItem>
</VarListEntry>
</VariableList>
</RefSect1>
<RefSect1>
<Title>RELATED INFORMATION</Title>
<Para>&cdeman.XmStringDirection; and &cdeman.XmDirection;.
</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.09 7/2/95-->
