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       Cardinal XtOffset(Type pointer_type, Field field_name);
11
12       Cardinal XtOffsetOf(Type structure_type, Field field_name);
13
14       Cardinal XtNumber(ArrayVariable array);
15

ARGUMENTS

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

DESCRIPTION

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

SEE ALSO

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