XMSEPARATOR(3)
okay so this is the XmSeparator(library call) manual page, and we're about to make Separator widgets make sense, bestie π No cap, she's a whole vibe.
β¨ NAME β¨
XmSeparator β The Separator widget class. Periodt. π
πΈ SYNOPSIS πΈ
#include <Xm/Separator.h>
π DESCRIPTION π
So Separator is a primitive widget that separates items in a display. It's giving divider energy β¨. You get several different line drawing styles, plus horizontal or vertical orientation. Choose your fighter π
.
The Separator line drawing is automatically centered within the height of the widget for a horizontal orientation, and centered within the width of the widget for a vertical orientation. The way that works? 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. Lowkey important, highkey useful π«Ά.
Separator does not draw shadows around the separator. The Primitive resource XmNshadowThickness is used for the Separator's thickness when XmNseparatorType is XmSHADOW_ETCHED_IN, XmSHADOW_ETCHED_IN_DASH, XmSHADOW_ETCHED_OUT, or XmSHADOW_ETCHED_OUT_DASH. Not me keeping track of every etch variant π.
Separator does not highlight and allows no traversing. The primitive resource XmNtraversalOn is forced to False. So don't try to tab into her, she's not about that life π.
The XmNseparatorType of XmNO_LINE provides an escape to the application programmer who needs a different style of drawing. A pixmap the height of the widget can be created and used as the background pixmap by building an argument list using the XmNbackgroundPixmap argument type as defined by Core. Whenever the widget is redrawn, its background is displayed containing the desired separator drawing. Separator holds the XmQTmenuSavvy trait. Iconic behavior, fr fr π.
π¦ Classes π¦
Separator inherits behavior, resources, and traits from Core and XmPrimitive. It's giving nepo baby but make it widget hierarchy π.
The class pointer is xmSeparatorWidgetClass.
The class name is XmSeparator.
β¨ 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). Got it? Slay π
.
π XmSeparator Resource Set π
XmNmargin- Class:
XmCMargin - Type:
Dimension - Default:
0 - Access:
CSG
- Class:
XmNorientation- Class:
XmCOrientation - Type:
unsigned char - Default:
XmHORIZONTAL - Access:
CSG
- Class:
XmNseparatorType- Class:
XmCSeparatorType - Type:
unsigned char - Default:
XmSHADOW_ETCHED_IN - Access:
CSG
- Class:
π Resource Deets π
XmNmarginβ For horizontal orientation, specifies the space on the left and right sides between the border of the Separator and the line drawn. For vertical orientation, specifies the space on the top and bottom between the border of the Separator and the line drawn. Basically she needs her personal space, periodt π«Ά.XmNorientationβ Displays Separator vertically or horizontally. This resource can have values ofXmVERTICALandXmHORIZONTAL. Pick your axis, bestie π.XmNseparatorTypeβ Specifies the type of line drawing to be done in the Separator widget. The options are: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 ofXmNshadowThickness. For horizontal orientation, the top shadow is drawn inXmNtopShadowColorand the bottom shadow is drawn inXmNbottomShadowColor. For vertical orientation, the left edge is drawn inXmNtopShadowColorand the right edge is drawn inXmNbottomShadowColor.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 ofXmNshadowThickness. For horizontal orientation, the top shadow is drawn inXmNbottomShadowColorand the bottom shadow is drawn inXmNtopShadowColor. For vertical orientation, the left edge is drawn inXmNbottomShadowColorand the right edge is drawn inXmNtopShadowColor.XmSHADOW_ETCHED_IN_DASHβ Identical toXmSHADOW_ETCHED_INexcept a series of lines creates a dashed line.XmSHADOW_ETCHED_OUT_DASHβ Identical toXmSHADOW_ETCHED_OUTexcept a series of lines creates a dashed line.
π§ Inherited Resources π§
Separator inherits behavior and resources from the superclasses in the following table. For a complete description of each resource, refer to the reference page for that superclass.
π XmPrimitive Resource Set π
Bestie, this is the full roster β every single resource that lives on XmPrimitive, with its Name, Class, Type, Default and Access. Nothing skipped, not one row, we're doing all eighteen and we're doing them right. β¨
The five columns, so you can read along: Name (what you actually type), Class (the fancier name it inherits under), Type (what kind of value it eats), Default (what you get if you say nothing), Access (the lil code telling you what you're allowed to do with it). π«Ά
XmNbottomShadowColorβ classXmCBottomShadowColor, typePixel, defaultdynamic, accessCSG. Your bottom shadow's color moment. πXmNbottomShadowPixmapβ classXmCBottomShadowPixmap, typePixmap, defaultXmUNSPECIFIED_PIXMAP, accessCSG. The pixmap version, and yeah, the default is literally unspecified. She contains multitudes. πXmNconvertCallbackβ classXmCCallback, typeXtCallbackList, defaultNULL, accessC. A whole callback list, defaulting to nothing at all.XmNforegroundβ classXmCForeground, typePixel, defaultdynamic, accessCSG. The foreground, obviously. Main character pixel energy. πXmNhelpCallbackβ classXmCCallback, typeXtCallbackList, defaultNULL, accessC. Help callback, sitting there asNULLuntil you give it a purpose.XmNhighlightColorβ classXmCHighlightColor, typePixel, defaultdynamic, accessCSG. The highlight color. Glow-up pending.XmNhighlightOnEnterβ classXmCHighlightOnEnter, typeBoolean, defaultFalse, accessCSG. A boolean, and it starts out asFalse, so don't come for her. πXmNhighlightPixmapβ classXmCHighlightPixmap, typePixmap, defaultdynamic, accessCSG. Highlight, but make it a pixmap.XmNhighlightThicknessβ classXmCHighlightThickness, typeDimension, default0, accessCSG. Zero thickness by default β she's got no body, only vibes. πXmNlayoutDirectionβ classXmCLayoutDirection, typeXmDirection, defaultdynamic, accessCG. Notice the access isCG, notCSGβ read it again, bestie, it'sCG. π¦XmNnavigationTypeβ classXmCNavigationType, typeXmNavigationType, defaultXmNONE, accessCSG. Defaults toXmNONE, so she's not navigating anywhere yet. π§XmNpopupHandlerCallbackβ classXmCCallback, typeXtCallbackList, defaultNULL, accessC. Popup handler callback,NULLuntil summoned. π₯XmNshadowThicknessβ classXmCShadowThickness, typeDimension, default2, accessCSG. Two whole units of shadow. Iconic, honestly. β¨XmNtopShadowColorβ classXmCTopShadowColor, typePixel, defaultdynamic, accessCSG. Top shadow color β the bottom one's better half. πXmNtopShadowPixmapβ classXmCTopShadowPixmap, typePixmap, defaultdynamic, accessCSG. Top shadow, pixmap edition.XmNtraversalOnβ classXmCTraversalOn, typeBoolean, defaultFalse, accessG. StartsFalse, and the access here is justGβ that's it, one letter, no cap. πΈXmNunitTypeβ classXmCUnitType, typeunsigned char, defaultdynamic, accessCSG. Yep, the type isunsigned char. Weird but true, periodt.XmNuserDataβ classXmCUserData, typeXtPointer, defaultNULL, accessCSG. Your lil pocket for whatever you want,NULLuntil you fill it. π
That's the entire set, every row accounted for, no crumbs left behind. π
π Core Resource Set π
okay bestie, here's the whole glow-up menu of resources this widget inherits from Core β every single one, no skips, we don't gatekeep. Each bullet is like: name, class, type, default, access. Slay.
XmNacceleratorsβ classXmCAccelerators, typeXtAccelerators, defaultdynamic, accessCSGβ¨XmNancestorSensitiveβ classXmCSensitive, typeBoolean, defaultdynamic, accessGπXmNbackgroundβ classXmCBackground, typePixel, defaultdynamic, accessCSGπXmNbackgroundPixmapβ classXmCPixmap, typePixmap, defaultXmUNSPECIFIED_PIXMAP, accessCSGπ¦XmNborderColorβ classXmCBorderColor, typePixel, defaultXtDefaultForeground, accessCSGπΈXmNborderPixmapβ classXmCPixmap, typePixmap, defaultXmUNSPECIFIED_PIXMAP, accessCSGπXmNborderWidthβ classXmCBorderWidth, typeDimension, default0, accessCSGβXmNcolormapβ classXmCColormap, typeColormap, defaultdynamic, accessCGπXmNdepthβ classXmCDepth, typeint, defaultdynamic, accessCGπ₯XmNdestroyCallbackβ classXmCCallback, typeXtCallbackList, defaultNULL, accessCπXmNheightβ classXmCHeight, typeDimension, defaultdynamic, accessCSGπXmNinitialResourcesPersistentβ classXmCInitialResourcesPersistent, typeBoolean, defaultTrue, accessCπ«ΆXmNmappedWhenManagedβ classXmCMappedWhenManaged, typeBoolean, defaultTrue, accessCSGβ¨XmNscreenβ classXmCScreen, typeScreen *, defaultdynamic, accessCGπΈXmNsensitiveβ classXmCSensitive, typeBoolean, defaultTrue, accessCSGπXmNtranslationsβ classXmCTranslations, typeXtTranslations, defaultdynamic, accessCSGπ¦XmNwidthβ classXmCWidth, typeDimension, defaultdynamic, accessCSGπXmNxβ classXmCPosition, typePosition, default0, accessCSGβXmNyβ classXmCPosition, typePosition, default0, accessCSGπ
π§ Translations π§
not to be dramatic butβ¦ there are literally no translations for XmSeparator. that's it. that's the tea. π
π RELATED π
the besties this page is linked to, go read them too fr fr:
Core(3)XmCreateSeparator(3)XmVaCreateSeparator(3)XmVaCreateManagedSeparator(3)
and that's the whole page, you made it to the end π«Ά this is XmSeparator(library call), and yes the footer is giving "source + version + date" energy, so likeβ¦ remember it's the library-call version of this page. iconic. periodt. πβ¨
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms