Name
XtOffsetOf — determine the byte offset of a field within a structure type.
Synopsis
Cardinal XtOffsetOf(structure_type, field_name)
Type structure_type;
Field field_name;
Arguments
structure_type
Specifies a type that is declared as a structure.
field_name
Specifies the name of a member within the structure.
Description
The XtOffsetOf macro expands to a constant expression that gives the offset in bytes to the specified structure member from the beginning of the structure. It is normally used to statically initialize resource lists and is more portable than XtOffset, which serves the same function.