Document mvwin().
Fixes PR 21041 by Tyler Retzlaff.
This commit is contained in:
parent
0ad9e0dccc
commit
119cd94332
@ -1,4 +1,4 @@
|
|||||||
.\" $NetBSD: curses_window.3,v 1.6 2003/03/17 08:39:54 wiz Exp $
|
.\" $NetBSD: curses_window.3,v 1.7 2003/04/08 05:53:49 jdc Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 2002
|
.\" Copyright (c) 2002
|
||||||
.\" Brett Lymn (blymn@NetBSD.org, brett_lymn@yahoo.com.au)
|
.\" Brett Lymn (blymn@NetBSD.org, brett_lymn@yahoo.com.au)
|
||||||
@ -30,7 +30,7 @@
|
|||||||
.\" SUCH DAMAGE.
|
.\" SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.\"
|
.\"
|
||||||
.Dd December 4, 2002
|
.Dd April 7, 2003
|
||||||
.Dt CURSES_WINDOW 3
|
.Dt CURSES_WINDOW 3
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -39,6 +39,7 @@
|
|||||||
.Nm dupwin ,
|
.Nm dupwin ,
|
||||||
.Nm delwin ,
|
.Nm delwin ,
|
||||||
.Nm derwin ,
|
.Nm derwin ,
|
||||||
|
.Nm mvwin ,
|
||||||
.Nm mvderwin ,
|
.Nm mvderwin ,
|
||||||
.Nm newwin ,
|
.Nm newwin ,
|
||||||
.Nm overlay ,
|
.Nm overlay ,
|
||||||
@ -69,6 +70,8 @@
|
|||||||
.Ft int
|
.Ft int
|
||||||
.Fn delwin "WINDOW *win"
|
.Fn delwin "WINDOW *win"
|
||||||
.Ft int
|
.Ft int
|
||||||
|
.Fn mvwin "WINDOW *win" "int y" "int x"
|
||||||
|
.Ft int
|
||||||
.Fn mvderwin "WINDOW *win" "int y" "int x"
|
.Fn mvderwin "WINDOW *win" "int y" "int x"
|
||||||
.Ft WINDOW *
|
.Ft WINDOW *
|
||||||
.Fn newwin "int lines" "int cols" "int begin_y" "int begin_x"
|
.Fn newwin "int lines" "int cols" "int begin_y" "int begin_x"
|
||||||
@ -141,6 +144,16 @@ A window may deleted and all resources freed by calling the
|
|||||||
function with the pointer to the window to be deleted in
|
function with the pointer to the window to be deleted in
|
||||||
.Fa win .
|
.Fa win .
|
||||||
.Pp
|
.Pp
|
||||||
|
A window can be moved to a new position by calling the
|
||||||
|
.Fn mvwin
|
||||||
|
function. The
|
||||||
|
.Fa y
|
||||||
|
and
|
||||||
|
.Fa x
|
||||||
|
positions are the new origin of the window on the screen.
|
||||||
|
If the new position would cause the any part of the window to lie outside
|
||||||
|
the screen, it is an error and the window is not moved.
|
||||||
|
.Pp
|
||||||
A subwindow can be moved relative to the parent window by calling the
|
A subwindow can be moved relative to the parent window by calling the
|
||||||
.Fn mvderwin
|
.Fn mvderwin
|
||||||
function, the
|
function, the
|
||||||
@ -151,6 +164,8 @@ positions are relative to the origin of the parent window.
|
|||||||
If the given window in
|
If the given window in
|
||||||
.Fa win
|
.Fa win
|
||||||
is not a subwindow then an error will be returned.
|
is not a subwindow then an error will be returned.
|
||||||
|
If the new position would cause the any part of the window to lie outside
|
||||||
|
the parent window, it is an error and the window is not moved.
|
||||||
.Pp
|
.Pp
|
||||||
The
|
The
|
||||||
.Fn newwin
|
.Fn newwin
|
||||||
|
Loading…
Reference in New Issue
Block a user