inq_ele_type(3G)
NAME
inq_ele_type − return the type of the current element in the currently open segment
SYNOPSIS
C Syntax:
void inq_ele_type ( fildes, ele_type )
int fildes, *ele_type
FORTRAN77 Syntax:
subroutine inq_ele_type ( fildes, ele_type )
integer*4 fildes, ele_type
Pascal Syntax:
procedure inq_ele_type ( fildes:integer; var ele_type:integer );
DESCRIPTION
Input Parameters
fildes Integer file descriptor returned by gopen when an I/O path to a graphics device is opened.
Output Parameters
ele_type Integer identifying current element type.
Discussion
Inq_ele_type returns the type of the current element in the currently open segment of the specified graphics device.
Integer code definitions for defined element types are provided in language-dependent include files.
If the current element is element 0, the type returned is OP_NULL.
ERRORS
1 Graphics device is not initialized for this operation.
24 Segment not open.
LANGUAGE DEPENDENCIES
The include files defining the integer codes for the element types are (the actual path names of the directories given in angle brackets in this section depend on the file system structure; see the Graphics Administration Guide for details):
C: <sb-include>/sbdl.c.h
FORTRAN77: <sb-include>/sbdl.f2.h
Pascal: <sb-include>/sbdl.p1.h
SEE ALSO
inq_ele(3G), inq_ele_control(3G), inq_content(3G), print_element(3G).
Hewlett-Packard Company — HP-UX Release 10.0