XmeTraitGet(3X) UNIX System V XmeTraitGet(3X)
NAME
XmeTraitGet - Returns the trait record associated with a
given object
SYNOPSIS
#include <Xm/XmP.h>
XtPointer XmeTraitGet(
XtPointer object,
XrmQuark trait);
VERSION
This page documents Motif 2.1.
DESCRIPTION
Use XmeTraitGet to determine whether or not a given object
has installed a given trait. (Widgets install traits by
calling XmeTraitSet.) If object has installed trait, you
can use XmeTraitGet to get a pointer to the associated trait
record. After obtaining this pointer, you can call the trait
methods of trait.
object Specifies the object (typically, a widget class)
that you are inquiring about.
trait Specifies the trait name. The trait name must be
an XrmQuark value; for example, XmQTaccessTextual.
RETURN
If trait was installed on object, XmeTraitGetreturns a
pointer to the associated trait record. Otherwise, it
returns NULL.
RELATED
XmeTraitSet(3).
Page 1 (printed 7/20/06)