home *** CD-ROM | disk | FTP | other *** search
- /*
- bobset.c
-
- % bob_SetPosition, bob_GetPosition
-
- No one uses these things but they're in the manual
- so....
-
- OWL 1.1
- Copyright (c) 1989, by Oakland Group, Inc.
- ALL RIGHTS RESERVED.
-
- Revision History:
- -----------------
- */
-
- #include "oakhead.h"
- #include "disppriv.h"
- #include "bordobj.h"
-
- void bob_GetPosition(bob, rowp, colp)
- bob_type bob;
- int *rowp;
- int *colp;
- /*
- Get the position of a bob.
- */
- {
- if (bob_IsWin(bob)) {
- *rowp = bord_GetTopRow(bob);
- *colp = bord_GetLeftCol(bob);
- }
- else {
- *rowp = 0;
- *colp = 0;
- }
- }
-
- void bob_GetSize(bob, heightp, widthp)
- bob_type bob;
- int *heightp;
- int *widthp;
- /*
- Get the height and width of a bob.
- */
- {
- if (bob_IsWin(bob)) {
- *heightp = bord_GetHeight(bob);
- *widthp = bord_GetWidth(bob);
- }
- else {
- *heightp = 0;
- *widthp = 0;
- }
- }
-