Traits(5)

NAME
Traits — Lists the traits used by the Motif Toolkit.

DESCRIPTION

A trait is a characteristic of a widget. A widget holding a particular trait is announcing a particular ability to other widgets. The following table summarizes the standard Motif traits.

Borrow its parent's visual information.
Become a child of a container widget.
Attach itself to one side of a suitable parent.
Act as a navigator to a scrollable widget.
Handle one or more navigator widgets.
Supply the names of its default render tables.
Change its appearance to show that it is the default button.
Transfer data to other widgets and/or receive data from other
widgets
]
.nr 3crow 0
Purpose of Each Trait
.nr 3brule 1
.nr 3crow 1
Trait Name
.nr 3brule 1
.nr 3crow 2
]
.nr 3brule 1
.nr 3crow 3
XmQTaccessTextualDisplay one primary text parcel.
.nr 3brule 1
.nr 3crow 4
]
.nr 3brule 1
.nr 3crow 5
XmQTactivatable
.nr 3brule 1
.nr 3crow 6
]
.nr 3brule 1
.nr 3crow 7
XmQTcareParentVisual
.nr 3brule 1
.nr 3crow 8
]
.nr 3brule 1
.nr 3crow 9
XmQTcontainerManage container item children.
.nr 3brule 1
.nr 3crow 10
]
.nr 3brule 1
.nr 3crow 11
XmQTcontainerItem
.nr 3brule 1
.nr 3crow 12
]
.nr 3brule 1
.nr 3crow 13
XmQTdialogShellSavvyBecome a child of a DialogShell.
.nr 3brule 1
.nr 3crow 14
]
.nr 3brule 1
.nr 3crow 15
XmQTjoinSide
.nr 3brule 1
.nr 3crow 16
]
.nr 3brule 1
.nr 3crow 17
XmQTmenuSavvyBecome a menu child.
.nr 3brule 1
.nr 3crow 18
]
.nr 3brule 1
.nr 3crow 19
XmQTmenuSystemManage a menu system.
.nr 3brule 1
.nr 3crow 20
]
.nr 3brule 1
.nr 3crow 21
XmQTnavigator
.nr 3brule 1
.nr 3crow 22
]
.nr 3brule 1
.nr 3crow 23
XmQTscrollFrame
.nr 3brule 1
.nr 3crow 24
]
.nr 3brule 1
.nr 3crow 25
XmQTspecifyRenderTable
.nr 3brule 1
.nr 3crow 26
]
.nr 3brule 1
.nr 3crow 27
XmQTtakesDefault
.nr 3brule 1
.nr 3crow 28
]
.nr 3brule 1
.nr 3crow 29
XmQTtransfer
.nr 3brule 1
.nr 3crow 30
]
.nr 3brule 1

Traits are not often used in Motif application programs. However, traits are very important to widget writers. For complete details on traits, see the Motif Widget Writer's Guide.

The following table lists the names of all widgets and gadgets in the standard Motif widget set that hold a particular trait. For example, the following table shows that the XmQTcontainerItem trait is held by the XmIconGadget. As the table suggests, some traits are held by many of the standard Motif widgets.

The following table lists the traits installed on each widget. For example, the following table indicates that the XmArrowButton widget holds both the XmQTactivatable and XmQTcareParentVisual traits.

The following table summarizes how the standard Motif widgets access traits. There are two general ways for a widget to access the traits of another widget.

One way is for a widget to ask another widget if it holds a particular trait. For example, XmBulletinBoard asks each of its children widgets if they hold the XmQTtakesDefault trait. XmBulletinBoard calls none of the trait methods of XmQTtakesDefault.

Another kind of access is when one widget calls another widget's trait method(s). For example, XmBulletinBoard calls the getRenderTable trait method of the XmQTspecifyRenderTable trait.

RELATED

The following reference pages are documented in the Motif Widget Writer's Guide: XmeTraitSet(3), XmeTraitGet(3), XmQTaccessTextual(3), XmQTactivatable(3), XmQTcareParentVisual(3), XmQTcontainer(3), XmQTcontainerItem(3), XmQTdialogShellSavvy(3), XmQTjoinSide(3), XmQTmenuSavvy(3), XmQTmenuSystem(3), XmQTnavigator(3), XmQTscrollFrame(3), XmQTspecifyRenderTable(3), and XmQTtakesDefault(3).