[comp.windows.x] "Standard" way of getting a widget name?

swick@ATHENA.MIT.EDU (Ralph R. Swick) (01/10/90)

> Is there some standard way of getting a widget name and/or classname?

In R4-based Xt, there is XtName().  No corresponding XtClassname(), though.

> Is dotting into the core widget structure sufficient

yep.

> could the
> core widget change in future releases?)

The order of the fields in the structure is not (any longer)
specified by the standard but the field names and datatypes are
and therefore will remain backward compatible.  Where standard
access functions/macros are defined (e.g. XtName(), XtClass())
it's probably still a good idea to use them rather than directly
referencing structure members.  Non-widgets should certainly
try to avoid referencing structure contents.