Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ PEXGetElementInfo(3) — Open3D 4.96

Media Vault

Software Library

Restoration Projects

Artifacts Sought

PEXGetElementInfo(3)  —  Subroutines

Name

PEXGetElementInfo - Get Element Information

Synopsis

Status PEXGetElementInfo(Display ∗display, PEXStructure structure, int whence1, long offset1, int whence2, long offset2, int float_format, unsigned long ∗count_return, PEXElementInfo ∗∗info_return)

Arguments

displayA pointer to a display structure returned by a successful XOpenDisplay call. 

structureThe resource identifier of the structure. 

whence1A value specifying, with offset1, the first limit of the range of queried elements (PEXBeginning, PEXCurrent, PEXEnd).

offset1The offset from whence1 denoting the first limit of the range of queried elements. 

whence2A value specifying, with offset2, the second limit of the range of elements to be queried (PEXBeginning, PEXCurrent, PEXEnd).

offset2The offset from whence2 denoting the second limit of the range of elements to be queried. 

float_formatThe floating point format to use when computing element sizes (PEXIEEE_754_32, PEXDEC_F_Floating, PEXIEEE_754_64, PEXDEC_D_Floating).

count_returnReturns the number element info records returned. 

info_returnReturns an array of element info records describing the elements in the specified range. 

Returns

Zero if unsuccessful, non-zero otherwise. 

Description

This function returns information about a range of elements from the specified structure. 

If a computed offset is less than zero it is set to zero before obtaining the element information.  If a computed offset is greater than the number of elements in the structure, it is set to the offset of the last structure element in the structure.  The element pointer attribute of structure is not affected by this command. 

Information returned about the list of inquired elements includes the type of each element and its size.  The size of each element is based upon the specified floating point format.  No information is returned for inquires on element offset zero.  The element pointer is not affected by this function. 

PEXlib allocates memory for the return value.  XFree should be called to deallocate the memory.

Data Structures

typedef XID             PEXStructure;
typedef struct {
    unsigned short      type;
    unsigned short      length;
} PEXElementInfo;

Errors

BadPEXFloatingPointFormat
The specified floating point format is invalid or unsupported.

BadPEXStructure
The specified structure resource identifier is invalid.

BadValueThe specified value for whence parameter is invalid. 

See Also

PEXCreateStructure

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