home *** CD-ROM | disk | FTP | other *** search
- /*
- * Winfo
- * by Paul S. Kleppner
- *
- * This program may be freely distributed, but not sold.
- * It is provided without warranty of any kind, expressed or
- * implied, as to its fitness for any particular use.
- */
-
- /*
- * This file contains DPS wrappers for a number of
- * functions which deal with windows. We have to write our
- * own wrappers because we are dealing with true DPS window numbers
- * as known by the window server. The appkit, and the standard wrappers,
- * seem to use "logical" window numbers which are local to each app.
- */
-
- // Look up the window at the given location; returns its
- // number, and whether or not one was found.
- defineps myFindWindow(float x; float y; int where; int initWin;
- |float *lx; float *ly; int *winFound; boolean *didFind)
-
- x y where initWin findwindow
- didFind winFound lx ly
- endps
-
- // Return alpha value for current window
- defineps myCurrentWindowAlpha(int win; |int *alpha)
- win currentwindowalpha alpha
- endps
-
- // Return bounds of current window
- defineps myCurrentWindowBounds(int win; |float *x; float *y;
- float *w; float *h)
- win currentwindowbounds h w y x
- endps
-
-
- // Return depth of current window
- defineps myCurrentWindowDepth(int win; |int *depth)
- win currentwindowdepth depth
- endps
-
- // Return depthlimit of current window
- defineps myCurrentWindowDepthLimit(int win; |int *depth)
- win currentwindowdepthlimit depth
- endps
-
- // Returns owner (i.e. context value) for current window
- defineps myCurrentOwner(int win; |int *context)
- win currentowner context
- endps
-
- // Sets level of current window
- defineps mySetCurrentWindowLevel(int level)
- level currentwindow setwindowlevel
- endps
-
- // Sets level of current window
- defineps mySetCurrentWindowLevelOfWindow(int win; int level)
- level win setwindowlevel
- endps
-
- // Returns level of current window
- defineps myCurrentWindowLevel(int win; |int *level)
- win currentwindowlevel level
- endps
-
- // Orders given window on the screen list
- defineps myOrderWindow(int place; int otherwin; int win)
- place otherwin win orderwindow
- endps
-
-
- // Fills window w2 with contents of all windows below level of w1
- defineps fillBelowWin(int w1; int w2)
- Below w1 w2 fillwindow
- endps