1XtOffset(3)                      XT FUNCTIONS                      XtOffset(3)
2
3
4

NAME

6       XtOffset, XtOffsetOf, XtNumber - determine the byte offset or number of
7       array elements
8

SYNTAX

10       #include <X11/Intrinsic.h>
11
12       Cardinal XtOffset(Type pointer_type, Field field_name);
13
14       Cardinal XtOffsetOf(Type structure_type, Field field_name);
15
16       Cardinal XtNumber(ArrayVariable array);
17

ARGUMENTS

19       array     Specifies a fixed-size array.
20
21       field_name
22                 Specifies the name of the field for which to calculate the
23                 byte offset.
24
25       pointer_type
26                 Specifies a type that is declared as a pointer to the struc‐
27                 ture.
28
29       structure_type
30                 Specifies a type that is declared as a structure.
31

DESCRIPTION

33       The XtOffset macro is usually used to determine the offset of various
34       resource fields from the beginning of a widget and can be used at com‐
35       pile time in static initializations.
36
37       The XtOffsetOf macro expands to a constant expression that gives the
38       offset in bytes to the specified structure member from the beginning of
39       the structure.  It is normally used to statically initialize resource
40       lists and is more portable than XtOffset, which serves the same func‐
41       tion.
42
43       The XtNumber macro returns the number of elements in the specified
44       argument lists, resources lists, and other counted arrays.
45

SEE ALSO

47       XtGetResourceList(3), XtSetArg(3)
48       X Toolkit Intrinsics - C Language Interface
49       Xlib - C Language X Interface
50
51
52
53X Version 11                     libXt 1.1.5.1                     XtOffset(3)
Impressum