Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XtOffset(Xt) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


 XtOffset(Xt)      X Version 11 (Release 5) 6 January 1993       XtOffset(Xt)


 Name

    XtOffset - determine the byte offset or number of array elements

 Syntax


    Cardinal XtOffset(pointer_type, field_name)
    Type pointer_type;
    Field field_name;

    Cardinal XtNumber(array)
    ArrayVariable array;


 Arguments

    array     Specifies a fixed-size array.

    fieldname
              Specifies the name of the field for which to calculate the byte
              offset.

    pointertype
              Specifies a type that is declared as a pointer to the struc-
              ture.

 Description

    The XtOffset macro is usually used to determine the offset of various
    resource fields from the beginning of a widget and can be used at compile
    time in static initializations.

    The XtNumber macro returns the number of elements in the specified argu-
    ment lists, resources lists, and other counted arrays.

 See also

    XtGetResourceList(Xt) and XtSetArg(Xt).

    X Toolkit Intrinsics - C Language Interface
    Xlib - C Language X Interface


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026