]> ncurses.scripts.mit.edu Git - ncurses.git/blob - man/form_field_just.3x
ncurses 6.0 - patch 20170422
[ncurses.git] / man / form_field_just.3x
1 '\" t
2 .\"***************************************************************************
3 .\" Copyright (c) 1998-2010,2015 Free Software Foundation, Inc.              *
4 .\"                                                                          *
5 .\" Permission is hereby granted, free of charge, to any person obtaining a  *
6 .\" copy of this software and associated documentation files (the            *
7 .\" "Software"), to deal in the Software without restriction, including      *
8 .\" without limitation the rights to use, copy, modify, merge, publish,      *
9 .\" distribute, distribute with modifications, sublicense, and/or sell       *
10 .\" copies of the Software, and to permit persons to whom the Software is    *
11 .\" furnished to do so, subject to the following conditions:                 *
12 .\"                                                                          *
13 .\" The above copyright notice and this permission notice shall be included  *
14 .\" in all copies or substantial portions of the Software.                   *
15 .\"                                                                          *
16 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
17 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
18 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
19 .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
20 .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
21 .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
22 .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
23 .\"                                                                          *
24 .\" Except as contained in this notice, the name(s) of the above copyright   *
25 .\" holders shall not be used in advertising or otherwise to promote the     *
26 .\" sale, use or other dealings in this Software without prior written       *
27 .\" authorization.                                                           *
28 .\"***************************************************************************
29 .\"
30 .\" $Id: form_field_just.3x,v 1.12 2015/12/05 23:02:59 tom Exp $
31 .TH form_field_just 3X ""
32 .SH NAME
33 \fBset_field_just\fR,
34 \fBfield_just\fP \- retrieve field characteristics
35 .SH SYNOPSIS
36 \fB#include <form.h>\fR
37 .br
38 int set_field_just(FIELD *field, int justification);
39 .br
40 int field_just(const FIELD *field);
41 .br
42 .SH DESCRIPTION
43 The function \fBset_field_just\fR sets the justification attribute of
44 a field; \fBfield_just\fR returns a field's justification attribute.
45 The attribute may be one of NO_JUSTIFICATION, JUSTIFY_RIGHT,
46 JUSTIFY_LEFT, or JUSTIFY_CENTER.
47 .
48 .SH RETURN VALUE
49 The function \fBfield_just\fR returns one of: NO_JUSTIFICATION,
50 JUSTIFY_RIGHT, JUSTIFY_LEFT, or JUSTIFY_CENTER.
51 .PP
52 The function \fBset_field_just\fR returns one of the following:
53 .TP 5
54 .B E_OK
55 The routine succeeded.
56 .TP 5
57 .B E_SYSTEM_ERROR
58 System error occurred (see \fBerrno\fR).
59 .TP 5
60 .B E_BAD_ARGUMENT
61 Routine detected an incorrect or out-of-range argument.
62 .SH SEE ALSO
63 \fBcurses\fR(3X) and related pages whose names begin "form_" for detailed
64 descriptions of the entry points.
65 .SH NOTES
66 The header file \fB<form.h>\fR automatically includes the header file
67 \fB<curses.h>\fR.
68 .SH PORTABILITY
69 These routines emulate the System V forms library.  They were not supported on
70 Version 7 or BSD versions.
71 .SH AUTHORS
72 Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric
73 S. Raymond.