Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XmSeparatorGadget(3X) — Tru64 UNIX 4.0f

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

Object(3X)

RectObj(3X)

XmCreateSeparatorGadget(3X)

XmGadget(3X)

XmSeparatorGadget(3X)  —  Subroutines

OSF/Motif

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. 

Classes

SeparatorGadget inherits behavior and resources from Object, RectObj, and XmGadget Classes. 

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

XmNmargin

Class: XmCMargin
Default: 0
Type:  Dimension
Access: CSG

XmNorientation

Class: XmCOrientation
Default: XmHORIZONTAL
Type:  unsigned char
Access: CSG

XmNseparatorType

Class: XmCSeparatorType
Default: XmSHADOW_ETCHED_IN
Type:  unsigned char
Access: 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 following superclasses.  For a complete description of each resource, refer to the man page for that superclass. 

XmGadget Resource Set

XmNbottomShadowColor

Class: XmCBottomShadowColor
Default: dynamic
Type:  Pixel
Access: G

XmNhelpCallback

Class: XmCCallback
Default: NULL
Type:  XtCallbackList
Access: C

XmNhighlightColor

Class: XmCHighlightColor
Default: dynamic
Type:  Pixel
Access: G

XmNhighlightOnEnter

Class: XmCHighlightOnEnter
Default: False
Type:  Boolean
Access: CSG

XmNhighlightThickness

Class: XmCHighlightThickness
Default: 0
Type:  Dimension
Access: CSG

XmNnavigationType

Class: XmCNavigationType
Default: XmNONE
Type:  XmNavigationType
Access: CSG

XmNshadowThickness

Class: XmCShadowThickness
Default: 2
Type:  Dimension
Access: CSG

XmNtopShadowColor

Class: XmCTopShadowColor
Default: dynamic
Type:  Pixel
Access: G

XmNtraversalOn

Class: XmCTraversalOn
Default: False
Type:  Boolean
Access: G

XmNunitType

Class: XmCUnitType
Default: dynamic
Type:  unsigned char
Access: CSG

XmNuserData

Class: XmCUserData
Default: NULL
Type:  XtPointer
Access: CSG

RectObj Resource Set

XmNancestorSensitive

Class: XmCSensitive
Default: dynamic
Type:  Boolean
Access: G

XmNborderWidth

Class: XmCBorderWidth
Default: 0
Type:  Dimension
Access: CSG

XmNheight

Class: XmCHeight
Default: dynamic
Type:  Dimension
Access: CSG

XmNsensitive

Class: XmCSensitive
Default: True
Type:  Boolean
Access: CSG

XmNwidth

Class: XmCWidth
Default: dynamic
Type:  Dimension
Access: CSG

XmNx

Class: XmCPosition
Default: 0
Type:  Position
Access: CSG

XmNy

Class: XmCPosition
Default: 0
Type:  Position
Access: CSG

Object Resource Set

XmNdestroyCallback

Class: XmCCallback
Default: NULL
Type:  XtCallbackList
Access: C

Behavior

XmSeparatorGadget has no behavior. 

SEE ALSO

Object(3X), RectObj(3X), XmCreateSeparatorGadget(3X), XmGadget(3X)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026