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

# XmSeparatorGadget(3)

The SeparatorGadget widget class

## NAME

**XmSeparatorGadget** — The SeparatorGadget widget class

## SYNOPSIS

```
#include <Xm/SeparatoG.h>
```

## DESCRIPTION

SeparatorGadget separates items in a display. Several line drawing styles are provided, as well as horizontal or vertical orientation.

Lines drawn within the SeparatorGadget are automatically centered within the height of the gadget for a horizontal orientation and centered within the width of the gadget for a vertical orientation. An **XtSetValues** with a new **XmNseparatorType** resizes the widget to its minimal height (for horizontal orientation) or its minimal width (for vertical orientation) unless height or width is explicitly set in the **XtSetValues** call.

SeparatorGadget does not draw shadows around the separator. The Gadget resource **XmNshadowThickness** is used for the SeparatorGadget's thickness when **XmNseparatorType** is **XmSHADOW\_ETCHED\_IN**, **XmSHADOW\_ETCHED\_IN\_DASH**, **XmSHADOW\_ETCHED\_OUT**, or **XmSHADOW\_ETCHED\_OUT\_DASH**.

SeparatorGadget does not highlight and allows no traversing. The Gadget resource **XmNtraversalOn** is forced to False. SeparatorGadget holds the **XmQTmenuSavvy** trait.

### Classes

SeparatorGadget inherits behavior, resources, and traits from **Object**, **RectObj**, and **XmGadget**.

The class pointer is **xmSeparatorGadgetClass**.

The class name is **XmSeparatorGadget**.

### New Resources

The following table defines a set of widget resources used by the programmer to specify data. The programmer can also set the resource values for the inherited classes to set attributes for this widget. To reference a resource by name or by class in a **.Xdefaults** file, remove the **XmN** or **XmC** prefix and use the remaining letters. To specify one of the defined values for a resource in a **.Xdefaults** file, remove the **Xm** prefix and use the remaining letters (in either lowercase or uppercase, but include any underscores between words). The codes in the access column indicate if the given resource can be set at creation time (C), set by using **XtSetValues** (S), retrieved by using **XtGetValues** (G), or is not applicable (N/A).

| | | | | | |
| --- | --- | --- | --- | --- | --- |
| **XmSeparatorGadget Resource Set** |
| **Name** | **Class** | **Type** | **Default** | **Access** |
|  |  |  |  |  |  |
| XmNmargin | XmCMargin | Dimension | 0 | CSG |
|  |  |  |  |  |  |
| XmNorientation | XmCOrientation | unsigned char | XmHORIZONTAL | CSG |
|  |  |  |  |  |  |
| XmNseparatorType | XmCSeparatorType | unsigned char | XmSHADOW\_ETCHED\_IN | CSG |
|  |  |  |  |  |  |

- **XmNmargin**

  For horizontal orientation, specifies the space on the left and right sides between the border of SeparatorGadget and the line drawn. For vertical orientation, specifies the space on the top and bottom between the border of SeparatorGadget and the line drawn.

- **XmNorientation**

  Specifies whether SeparatorGadget is displayed vertically or horizontally. This resource can have values of **XmVERTICAL** and **XmHORIZONTAL**.

- **XmNseparatorType**

  Specifies the type of line drawing to be done in the Separator widget.

  - **XmSINGLE\_LINE**

    Single line.

  - **XmDOUBLE\_LINE**

    Double line.

  - **XmSINGLE\_DASHED\_LINE**

    Single-dashed line.

  - **XmDOUBLE\_DASHED\_LINE**

    Double-dashed line.

  - **XmNO\_LINE**

    No line.

  - **XmSHADOW\_ETCHED\_IN**

    A line whose shadows give the effect of a line etched into the window. The thickness of the line is equal to the value of **XmNshadowThickness**. For horizontal orientation, the top shadow is drawn in **XmNtopShadowColor** and the bottom shadow is drawn in **XmNbottomShadowColor**. For vertical orientation, the left edge is drawn in **XmNtopShadowColor** and the right edge is drawn in **XmNbottomShadowColor**.

  - **XmSHADOW\_ETCHED\_OUT**

    A line whose shadows give the effect of an etched line coming out of the window. The thickness of the line is equal to the value of **XmNshadowThickness**. For horizontal orientation, the top shadow is drawn in **XmNbottomShadowColor** and the bottom shadow is drawn in **XmNtopShadowColor**. For vertical orientation, the left edge is drawn in **XmNbottomShadowColor** and the right edge is drawn in **XmNtopShadowColor**.

  - **XmSHADOW\_ETCHED\_IN\_DASH**

    Identical to **XmSHADOW\_ETCHED\_IN** except a series of lines creates a dashed line.

  - **XmSHADOW\_ETCHED\_OUT\_DASH**

    Identical to **XmSHADOW\_ETCHED\_OUT** except a series of lines creates a dashed line.

### Inherited Resources

SeparatorGadget inherits behavior and resources from the superclasses in the following tables. For a complete description of each resource, refer to the reference page for that superclass.

| | | | | | |
| --- | --- | --- | --- | --- | --- |
| **XmGadget Resource Set** |
| **Name** | **Class** | **Type** | **Default** | **Access** |
|  |  |  |  |  |  |
| XmNbackground | XmCBackground | Pixel | dynamic | CSG |
|  |  |  |  |  |  |
| XmNbackgroundPixmap | XmCPixmap | Pixmap | XmUNSPECIFIED\_PIXMAP | CSG |
|  |  |  |  |  |  |
| XmNbottomShadowColor | XmCBottomShadowColor | Pixel | dynamic | CSG |
|  |  |  |  |  |  |
| XmNbottomShadowPixmap | XmCBottomShadowPixmap | Pixmap | dynamic | CSG |
|  |  |  |  |  |  |
| XmNhelpCallback | XmCCallback | XtCallbackList | NULL | C |
|  |  |  |  |  |  |
| XmNforeground | XmCForeground | Pixel | dynamic | CSG |
|  |  |  |  |  |  |
| XmNhighlightColor | XmCHighlightColor | Pixel | dynamic | CSG |
|  |  |  |  |  |  |
| XmNhighlightOnEnter | XmCHighlightOnEnter | Boolean | False | CSG |
|  |  |  |  |  |  |
| XmNhighlightPixmap | XmCHighlightPixmap | Pixmap | dynamic | CSG |
|  |  |  |  |  |  |
| XmNhighlightThickness | XmCHighlightThickness | Dimension | 0 | CSG |
|  |  |  |  |  |  |
| XmNlayoutDirection | XmNCLayoutDirection | XmDirection | dynamic | CG |
|  |  |  |  |  |  |
| XmNnavigationType | XmCNavigationType | XmNavigationType | XmNONE | CSG |
|  |  |  |  |  |  |
| XmNshadowThickness | XmCShadowThickness | Dimension | 2 | CSG |
|  |  |  |  |  |  |
| XmNtopShadowColor | XmCTopShadowColor | Pixel | dynamic | CSG |
|  |  |  |  |  |  |
| XmNtopShadowPixmap | XmCTopShadowPixmap | Pixmap | dynamic | CSG |
|  |  |  |  |  |  |
| XmNtraversalOn | XmCTraversalOn | Boolean | False | G |
|  |  |  |  |  |  |
| XmNunitType | XmCUnitType | unsigned char | dynamic | CSG |
|  |  |  |  |  |  |
| XmNuserData | XmCUserData | XtPointer | NULL | CSG |
|  |  |  |  |  |  |

| | | | | | |
| --- | --- | --- | --- | --- | --- |
| **RectObj Resource Set** |
| **Name** | **Class** | **Type** | **Default** | **Access** |
|  |  |  |  |  |  |
| XmNancestorSensitive | XmCSensitive | Boolean | dynamic | G |
|  |  |  |  |  |  |
| XmNborderWidth | XmCBorderWidth | Dimension | 0 | N/A |
|  |  |  |  |  |  |
| XmNheight | XmCHeight | Dimension | dynamic | CSG |
|  |  |  |  |  |  |
| XmNsensitive | XmCSensitive | Boolean | True | CSG |
|  |  |  |  |  |  |
| XmNwidth | XmCWidth | Dimension | dynamic | CSG |
|  |  |  |  |  |  |
| XmNx | XmCPosition | Position | 0 | CSG |
|  |  |  |  |  |  |
| XmNy | XmCPosition | Position | 0 | CSG |
|  |  |  |  |  |  |

| | | | | | |
| --- | --- | --- | --- | --- | --- |
| **Object Resource Set** |
| **Name** | **Class** | **Type** | **Default** | **Access** |
|  |  |  |  |  |  |
| XmNdestroyCallback | XmCCallback | XtCallbackList | NULL | C |
|  |  |  |  |  |  |

### Behavior

**XmSeparatorGadget** has no behavior.

## RELATED

[**Object**(3)](/Object/3.md), [**RectObj**(3)](/RectObj/3.md), [**XmCreateSeparatorGadget**(3)](/XmCreateSeparatorGadget/3.md), [**XmGadget**(3)](/XmGadget/3.md), [**XmVaCreateSeparatorGadget**(3)](/XmVaCreateSeparatorGadget/3.md), and [**XmVaCreateManagedSeparatorGadget**(3)](/XmVaCreateManagedSeparatorGadget/3.md).
