DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

XmResolvePartOffsets(Xm)


XmResolvePartOffsets -- a function that allows writing of upward-compatible applications and widgets

Syntax

#include <Xm/XmP.h>

void XmResolvePartOffsets (widget_class, offset) WidgetClass widget_class; XmOffsetPtr * offset;

Description

The use of offset records requires one extra global variable per widget class. The variable consists of a pointer to an array of offsets into the widget record for each part of the widget structure. The XmResolvePartOffsets function allocates the offset records needed by an application to guarantee upward-compatible access to widget instance records by applications and widgets. These offset records are used by the widget to access all of the widget's variables. A widget needs to take the following steps:

The parameters for XmResolvePartOffsets are defined below:


widget_class
Specifies the widget class pointer for the created widget.

offset
Returns the offset record.

See also

XmResolveAllPartOffsets(Xm)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 26 May 2005