Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmdirectionmatch(3) [redhat man page]

XmDirectionMatch(library call)											    XmDirectionMatch(library call)

NAME
XmDirectionMatch -- A function that checks for a specified direction component SYNOPSIS
#include <Xm/Xm.h> Boolean XmDirectionMatch (d1, d2) XmDirection d1; XmDirection d2; (void) DESCRIPTION
XmDirectionMatch compares two XmDirection values. The function returns a Boolean value depending on whether or not the two input values "match." The simplest match is when d1 and d2 are identical. However, other matches are possible. XmDirectionMatch attempts to compare specified bits only; nonspecified bits automatically match. For example, suppose that d1 equals XmTOP_TO_BOTTOM_RIGHT_TO_LEFT. In this case, the function will return True if d2 equals either XmRIGHT_TO_LEFT or XmTOP_TO_BOTTOM. However, the function will return False if d2 equals XmTOP_TO_BOTTOM_LEFT_TO_RIGHT, XmBOT- TOM_TO_TOP_RIGHT_TO_LEFT, or XmBOTTOM_TO_TOP_LEFT_TO_RIGHT. Note that direction can be thought of as having three components, a horizontal component, a vertical component, and the precedence among them. This means that in addition to the previously mentioned directions, the function will still return False if d1 equals XmTOP_TO_BOT- TOM_RIGHT_TO_LEFT and d2 equals XmRIGHT_TO_LEFT_TOP_TO_BOTTOM. d1 Specifies an XmDirection value. d2 Specifies an XmDirection value. RETURN VALUES
Returns True if d1 "matches" d2; otherwise, returns False. RELATED INFORMATION
XmDirection(3), XmDirectionMatchPartial(3), XmDirectionToStringDirection(3), XmString(3), XmStringDirection(3), and XmStringDirectionToDi- rection(3). XmDirectionMatch(library call)

Check Out this Related Man Page

XmDirectionToStringDirection(library call)								XmDirectionToStringDirection(library call)

NAME
XmDirectionToStringDirection -- A function that converts an XmDirection value to an XmStringDirection value SYNOPSIS
#include <Xm/Xm.h> XmStringDirection XmDirectionToStringDirection (dir) XmDirection dir; (void) DESCRIPTION
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 XmDirection value 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 horizon- tal direction value in the dir argument is ambiguous, such as in the XmTOP_TO_BOTTOM value. XmSTRING_DIRECTION_DEFAULT If there was no horizontal direction specified. RELATED INFORMATION
XmDirection(3), XmDirectionMatch(3), XmDirectionMatchPartial(3), XmDirectionToStringDirection(3), XmString(3), XmStringDirection(3), and XmStringDirectionToDirection(3), XmDirectionToStringDirection(library call)
Man Page