]> ncurses.scripts.mit.edu Git - ncurses.git/blob - man/form_field_just.3x
ncurses 6.1 - patch 20191221
[ncurses.git] / man / form_field_just.3x
1 '\" t
2 .\"***************************************************************************
3 .\" Copyright (c) 1998-2018,2019 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.15 2019/11/30 21:02:36 tom Exp $
31 .TH form_field_just 3X ""
32 .ie \n(.g .ds `` \(lq
33 .el       .ds `` ``
34 .ie \n(.g .ds '' \(rq
35 .el       .ds '' ''
36 .SH NAME
37 \fBset_field_just\fR,
38 \fBfield_just\fP \- retrieve field characteristics
39 .SH SYNOPSIS
40 \fB#include <form.h>\fR
41 .br
42 int set_field_just(FIELD *field, int justification);
43 .br
44 int field_just(const FIELD *field);
45 .br
46 .SH DESCRIPTION
47 The function \fBset_field_just\fR sets the justification attribute of
48 a field; \fBfield_just\fR returns a field's justification attribute.
49 The attribute may be one of NO_JUSTIFICATION, JUSTIFY_RIGHT,
50 JUSTIFY_LEFT, or JUSTIFY_CENTER.
51 .
52 .SH RETURN VALUE
53 The function \fBfield_just\fR returns one of: NO_JUSTIFICATION,
54 JUSTIFY_RIGHT, JUSTIFY_LEFT, or JUSTIFY_CENTER.
55 .PP
56 The function \fBset_field_just\fR returns one of the following:
57 .TP 5
58 .B E_OK
59 The routine succeeded.
60 .TP 5
61 .B E_SYSTEM_ERROR
62 System error occurred (see \fBerrno\fR(3)).
63 .TP 5
64 .B E_BAD_ARGUMENT
65 Routine detected an incorrect or out-of-range argument.
66 .SH SEE ALSO
67 \fBcurses\fR(3X) and related pages whose names begin \*(``form_\*('' for detailed
68 descriptions of the entry points.
69 .SH NOTES
70 The header file \fB<form.h>\fR automatically includes the header file
71 \fB<curses.h>\fR.
72 .SH PORTABILITY
73 These routines emulate the System V forms library.
74 They were not supported on
75 Version 7 or BSD versions.
76 .SH AUTHORS
77 Juergen Pfeifer.
78 Manual pages and adaptation for new curses by Eric S. Raymond.