formfieldnew(3X) formfieldnew(3X)
NAME
formfieldnew - create and destroy form fields
SYNOPSIS
##include <>
FIELD *newfield(int height, int width,
int toprow, int leftcol,
int offscreen, int nbuffers);
FIELD *dupfield(FIELD *field, int toprow, int leftcol);
FIELD *linkfield(FIELD *field, int toprow, int leftcol);
int freefield(FIELD *field);
DESCRIPTION
The function newfield allocates a new field and initializes it from
the parameters given: height, width, row of upper-left corner, column
of upper-left corner, number off-screen rows, and number of additional
working buffers.
The function dupfield duplicates a field at a new location. Most
attributes (including current contents, size, validation type, buffer
count, growth threshold, justification, foreground, background, pad
character, options, and user pointer) are copied. Field status and the
field page bit are not copied.
The function linkfield acts like dupfield, but the new field shares
buffers with its parent. Attribute data is separate.
The function freefield de-allocates storage associated with a field.
RETURN VALUE
The function, newfield, dupfield, linkfield return NUL on error.
The function freefield returns one of the following:
EOK The routine succeeded.
ESYSTEMEROR
System error occurred (see errno).
EBADARGUMENT
Routine detected an incorrect or out-of-range argument.
SEE ALSO
curses(3X), form(3X).
NOTES
The header file <> automatically includes the header file
<>.
PORTABILITY
These routines emulate the System V forms library. They were not sup-
ported on Version 7 or BSD versions.
It may be unwise to count on the set of attributes copied by
dupfield(3X) being portable; the System V forms library documents are
not very explicit about what gets copied and what doesn't.
AUTHORS
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S.
Raymond.
formfieldnew(3X)
|