[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]
Motif 2.1 Widget Writer's Guide
XmeTraitSet
Installs a trait on a specified object
Format
#include <Xm/TraitP.h>
Boolean XmeTraitSetXtPointer
objectXrmQuark traitXtPointer
trait_record
DESCRIPTION
XmeTraitSet installs trait on object. Typically,
XmeTraitSet is called from a widget's class_part_initialize
method. If it is, Motif propagates the trait to all subclasses of
object.
objectSpecifies the object. Typically, the object is a widget class.
traitSpecifies the XrmQuark value symbolizing the trait. Here is the
list of trait quarks defined by the Motif toolkit:
XmQTaccessTextualThe object can display one primary text parcel.
XmQTactivatableThe object can become a command button in a DialogBox.
XmQTcareParentVisualThe object can borrow its parent's visual information.
XmQTcontainerThe object can manage children holding the XmQTcontainer
trait.
XmQTcontainerItemThe object can be managed by a widget holding the XmQTcontainer
trait.
XmQTdialogShellSavvyThe object can become a child of XmDialogShell.
XmQTjoinSideThe object can attach itself to one side of a suitable parent.
XmQTmenuSavvyThe object can become a menu child.
XmQTmenuSystemThe object can manage a menu system.
XmQTnavigatorThe object can act as a navigator to a scrollable widget.
XmQTscrollFrameThe object can handle one or more widgets holding the
XmQTnavigator trait.
XmQTspecifyRenderTableThe object can supply the names of its default render tables.
XmQTtakesDefaultThe object can change its appearance to show that it is the
default button.
XmQTtransferThe object can serve as either the source or the destination (or
possibly both) of a data transfer operation
trait_recordSpecifies the name of the structure that holds the trait information.
Specifying NULL turns off the trait for object and its
subclasses.
RETURN
Returns True if the trait was succesfully installed on
object. Otherwise, it returns False. One possible reason for
failure is that the trait_record was not declared.
RELATED
XmeTraitGet(3).
[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]