home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c185 / 2.ddi / OWLSRC.EXE / CSCAPE / SOURCE / DIGCURSB.C < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-06  |  933 b   |  38 lines

  1. /*
  2.     digcursb.c
  3.  
  4.     % Function for getting graphics cursor box given cursor type.
  5.  
  6.     5/16/88  by Ted.
  7.     Extracted from pcfuncs.c
  8.  
  9.     OWL 1.1
  10.     Copyright (c) 1988, by Oakland Group, Inc.
  11.     ALL RIGHTS RESERVED.
  12.  
  13.     Revision History:
  14.     -----------------
  15. */
  16.  
  17. #include "oakhead.h"
  18. #include "disppriv.h"
  19. #include "digutil.h"
  20. /* -------------------------------------------------------------------------- */
  21.  
  22. void DIGPRIV dig_getcursbox(win, ctype, cursboxp)
  23.     win_type win;
  24.     cursortype ctype;
  25.     opbox *cursboxp;
  26. {
  27.     opcoord start, end;
  28.  
  29.     dig_getcurslines(ctype, win_GetFontHeight(win), &start, &end);
  30.     cursboxp->xmin = win_GetCursx(win);
  31.     cursboxp->xmax = cursboxp->xmin + (win_GetFontWidth(win) * 7 / 8);
  32.     cursboxp->ymin = win_GetCursy(win) - win_GetFontHeight(win);
  33.     cursboxp->ymax = cursboxp->ymin + end;
  34.     cursboxp->ymin += start;
  35. }
  36. /* -------------------------------------------------------------------------- */
  37.  
  38.