XmDirectionToStringDirection3
A function that converts an xmdirection value to an xmstringdirection value
Usage
#include <Xm/Xm.h>
XmStringDirection XmDirectionToStringDirection (dir)
XmDirection dir;
(void)
Overview
XmDirectionToStringDirection converts the specified XmDirection direction value to its equivalent XmStringDirection value. Basically, if the XmDirection value has a horizontal direction specification, that horizontal element is used; otherwise, the XmStringDirection value is interpreted as XmSTRING_DIRECTION_L_TO_R. This function provides backward compatibility with the XmStringDirection data type.
Note that the Motif toolkit also contains an XmStringDirectionToDirection routine to convert an XmStringDirection value to its XmDirection equivalent.
- dir
-
Specifies the
XmDirectionvalue to be converted.
Return
Returns the following XmStringDirection values:
XmSTRING_DIRECTION_R_TO_L-
If the dir argument has a right to left horizontal direction value in it, for example
XmRIGHT_TO_LEFT_TOP_TO_BOTTOM.
XmSTRING_DIRECTION_L_TO_R-
If the dir argument has a left to right horizontal direction in it, for example
XmLEFT_TO_RIGHT_TOP_TO_BOTTOM, or if the horizontal direction value in the dir argument is ambiguous, such as in theXmTOP_TO_BOTTOMvalue.
XmSTRING_DIRECTION_DEFAULT-
If there was no horizontal direction specified.
Releases
7 releases since Debian 8 (Jessie); the text changed 1 time.