---
name: "XmStringDirectionCreate"
section: "3"
platform: "linux"
package: "openmotif"
version: "2.3.8-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XmStringDirectionCreate"
---

# XmStringDirectionCreate(3)

A compound string function that creates a compound string

## NAME

**XmStringDirectionCreate** — A compound string function that creates a compound string

## SYNOPSIS

```
#include <Xm/Xm.h>
XmString XmStringDirectionCreate(
XmStringDirection direction);
```

## DESCRIPTION

**XmStringDirectionCreate** creates a compound string with a single component, a direction with the given value. When the application no longer needs the returned compound string, the application should call **XmStringFree**.

- *direction*

  Specifies the value of the direction component. The possible values are:

  - **XmSTRING\_DIRECTION\_L\_TO\_R**

    Specifies left to right display.

  - **XmSTRING\_DIRECTION\_R\_TO\_L**

    Specifies right to left display.

  - **XmSTRING\_DIRECTION\_DEFAULT**

    Specifies that the display direction will be set by the widget in which the compound string is to be displayed.

## RETURN

Returns a new compound string.

## RELATED

[**XmStringCreate**(3)](/XmStringCreate/3.md).
