~ubuntu-branches/ubuntu/jaunty/texlive-bin/jaunty

« back to all changes in this revision

Viewing changes to build/source/libs/ncurses/man/curs_getyx.3x

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2008-06-26 23:14:59 UTC
  • mfrom: (2.1.30 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080626231459-y02rjsrgtafu83yr
Tags: 2007.dfsg.2-3
add missing source roadmap.fig of roadmap.eps in fontinst documentation
(Closes: #482915) (urgency medium due to RC bug)
(new patch add-missing-fontinst-source)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.\"***************************************************************************
 
2
.\" Copyright (c) 1998-2002,2003 Free Software Foundation, Inc.              *
 
3
.\"                                                                          *
 
4
.\" Permission is hereby granted, free of charge, to any person obtaining a  *
 
5
.\" copy of this software and associated documentation files (the            *
 
6
.\" "Software"), to deal in the Software without restriction, including      *
 
7
.\" without limitation the rights to use, copy, modify, merge, publish,      *
 
8
.\" distribute, distribute with modifications, sublicense, and/or sell       *
 
9
.\" copies of the Software, and to permit persons to whom the Software is    *
 
10
.\" furnished to do so, subject to the following conditions:                 *
 
11
.\"                                                                          *
 
12
.\" The above copyright notice and this permission notice shall be included  *
 
13
.\" in all copies or substantial portions of the Software.                   *
 
14
.\"                                                                          *
 
15
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
 
16
.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
 
17
.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
 
18
.\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
 
19
.\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
 
20
.\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
 
21
.\" THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
 
22
.\"                                                                          *
 
23
.\" Except as contained in this notice, the name(s) of the above copyright   *
 
24
.\" holders shall not be used in advertising or otherwise to promote the     *
 
25
.\" sale, use or other dealings in this Software without prior written       *
 
26
.\" authorization.                                                           *
 
27
.\"***************************************************************************
 
28
.\"
 
29
.\" $Id: curs_getyx.3x,v 1.10 2003/05/10 20:33:49 jmc Exp $
 
30
.TH curs_getyx 3X ""
 
31
.SH NAME
 
32
\fBgetyx\fR,
 
33
\fBgetparyx\fR,
 
34
\fBgetbegyx\fR,
 
35
\fBgetmaxyx\fR - get \fBcurses\fR cursor and window coordinates
 
36
.SH SYNOPSIS
 
37
\fB#include <curses.h>\fR
 
38
 
 
39
\fBvoid getyx(WINDOW *win, int y, int x);\fR
 
40
.br
 
41
\fBvoid getparyx(WINDOW *win, int y, int x);\fR
 
42
.br
 
43
\fBvoid getbegyx(WINDOW *win, int y, int x);\fR
 
44
.br
 
45
\fBvoid getmaxyx(WINDOW *win, int y, int x);\fR
 
46
.br
 
47
.SH DESCRIPTION
 
48
The \fBgetyx\fR macro places the current cursor position of the given window in
 
49
the two integer variables \fIy\fR and \fIx\fR.
 
50
 
 
51
If \fIwin\fR is a subwindow, the \fBgetparyx\fR macro places the beginning
 
52
coordinates of the subwindow relative to the parent window into two integer
 
53
variables \fIy\fR and \fIx\fR.
 
54
Otherwise, \fB-1\fR is placed into \fIy\fR and \fIx\fR.
 
55
 
 
56
Like \fBgetyx\fR, the \fBgetbegyx\fR and \fBgetmaxyx\fR macros store
 
57
the current beginning coordinates and size of the specified window.
 
58
.SH RETURN VALUE
 
59
The return values of these macros are undefined (i.e.,
 
60
they should not be used as the right-hand side of assignment statements).
 
61
.SH NOTES
 
62
All of these interfaces are macros.
 
63
A "\fB&\fR" is not necessary before the variables \fIy\fR and \fIx\fR.
 
64
.SH PORTABILITY
 
65
The
 
66
\fBgetyx\fR,
 
67
\fBgetparyx\fR,
 
68
\fBgetbegyx\fR and
 
69
\fBgetmaxyx\fR
 
70
functions are described in the XSI Curses standard, Issue 4.
 
71
.PP
 
72
This implementation also provides
 
73
\fBgetbegx\fR,
 
74
\fBgetbegy\fR,
 
75
\fBgetcurx\fR,
 
76
\fBgetcury\fR,
 
77
\fBgetmaxx\fR,
 
78
\fBgetmaxy\fR,
 
79
\fBgetparx\fR and
 
80
\fBgetpary\fR
 
81
for compatibility with older versions of curses.
 
82
.SH SEE ALSO
 
83
\fBcurses\fR(3X)
 
84
.\"#
 
85
.\"# The following sets edit modes for GNU EMACS
 
86
.\"# Local Variables:
 
87
.\"# mode:nroff
 
88
.\"# fill-column:79
 
89
.\"# End: