home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 428_02 / libsrc / getwpos.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-13  |  582 b   |  33 lines

  1. /*
  2. ** wpos.c
  3. **
  4. ** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
  5. ** Redistributed by permission.
  6. */
  7.  
  8. #include <stdio.h>
  9. #include "pictor.h"
  10.  
  11.  
  12. /*
  13. ** Returns the current column of the active window pane.
  14. */
  15. int getwcol(void)
  16. {
  17.     if(_PL_winhead != NULL)
  18.         return(_PL_winhead->panes[_PL_winhead->currpane].column + 1);
  19.     return(1);
  20.  
  21. } /* getwcol */
  22.  
  23. /*
  24. ** Returns the current row of the active window pane.
  25. */
  26. int getwrow(void)
  27. {
  28.     if(_PL_winhead != NULL)
  29.         return(_PL_winhead->panes[_PL_winhead->currpane].row + 1);
  30.     return(1);
  31.  
  32. } /* getwrow */
  33.