[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: _maxy AND _maxx
From: |
Thomas Dickey |
Subject: |
Re: _maxy AND _maxx |
Date: |
Thu, 23 Feb 2006 18:20:54 -0500 (EST) |
On Wed, 22 Feb 2006, Bryan Christ wrote:
According to the ncurses.h documentation of struct _win_st, _maxx and _maxy
are not the size of the window. However, in all my experiments, these
coordinates do correlate to the window size. Can someone explain how there
would ever be a case were _maxx does not represent window width or _maxy does
not represent window height?
~~ fron ncurses.h ~~
NCURSES_SIZE_T _maxy, _maxx; /* maximums of x and y, NOT window size */
ncurses uses _maxx/_maxy consistently as the maximum x and y indices
respectively. For instance
for (j = 0; j <= win->_maxx; j++)
win->_line[line].text[j] = blank;
The actual width and height of the window would be one more than the
maximum indices because they are zero-based.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
- _maxy AND _maxx, Bryan Christ, 2006/02/22
- Re: _maxy AND _maxx,
Thomas Dickey <=