Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
X/Open Curses Library Functionsgetbegyx(3XCURSES)


NAME

 getbegyx, getmaxyx, getparyx, getyx - get cursor or window coordinates

SYNOPSIS

 
#include <curses.h>
void getbegyx(WINDOW *win, int y, int x);
 void getmaxyx(WINDOW *win, int y, int x);
 void getparyx(WINDOW *win, int y, int x);
 void getyx(WINDOW *win, int y, int x);

DESCRIPTION

 

The getyx() macro stores the current cursor position of the specified window in x and y.

The getparyx() macro stores the x and y coordinates (relative to the parent window) of the specified window's origin (upper-left corner). If win does not point to a subwindow, x and y are set to -1.

The getbegyx() macro stores the x and y coordinates of the specified window's origin (upper-left corner).

The getmaxyx() macro stores the numbers of rows in the specified window in y and the number of columns in x.

PARAMETERS

 
win
Is a pointer to a window.
y
stores the y coordinate for the cursor or origin. The getmaxyx() macro uses it to store the number of rows in the window.
x
stores the x coordinate for the cursor or origin. The getmaxyx() macro uses it to store the number of columns in the window.

RETURN VALUES

 

These macros do not return a value.

ERRORS

 

None.


SunOS 5.9Go To TopLast Changed 1 Jun 1996

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.