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

  1. /*
  2.     wmgrdecl.h
  3.  
  4.     % Window manager structure
  5.  
  6.      3/23/89  by Ted.
  7.     Extracted from winobj.h
  8.  
  9.     OWL 1.1
  10.     Copyright (c) 1988, 1989 by Oakland Group, Inc.
  11.     ALL RIGHTS RESERVED.
  12.  
  13.     Revision History:
  14.     -----------------
  15.      5/11/89 ted    Added mouse trap-win flag.
  16.      6/26/89 ted    Added nextwin, mousecode.
  17.      7/10/89 ted    Moved nextwin to window structure.
  18.      7/12/89 ted    Converted '_func' prototypes from typedef to macro.
  19.      8/16/89 ted    Added fakemouse flag.
  20. */
  21. /* -------------------------------------------------------------------------- */
  22.  
  23. /* the window manager structure */
  24.  
  25. typedef obj_type win_type;
  26. #define SMM_func(fname)                unsigned fname(_arg2(moupos_struct *moupos, boolean newcurr))
  27.  
  28. typedef struct wmgr_struct {
  29.     win_type    dispwin;        /* The display reference window */
  30.     win_type    backwin;        /* The background window */
  31.     win_type    currwin;        /* The window the cursor is shown in, etc. */
  32.  
  33.     /* The window lists */
  34.     win_type    employedhead;    /* employed window list head */
  35.     win_type    unemployedhead;    /* unemployed window list head */
  36.     win_type    bot_sys_win;    /* pointer to the non-displayable system window */
  37.                                 /* above the top displayable employed window */
  38.     win_type    bot_employed_win; /* pointer to bottom displayable employed window */
  39.  
  40.     VOID        *tilerdata;        /* pointer to the window tiler data structure */
  41.  
  42.     SMM_func    ((*SMMptr));    /* SendMouseMsgs function pointer (initted by dhard_InitMouse) */
  43.     unsigned    mousereply;        /* communication between kb_Check and kb_Read */
  44.     unsigned    inmousemsg:1;    /* re-entrancy flag for mouse messages */
  45.     unsigned    newcurrent:1;    /* flag for new current window request by mouse */
  46.     unsigned    wasmouse:1;        /* flag for kb event caused by mouse event */
  47.     unsigned    fakemouse:1;    /* flag for artificial mouse event msg */
  48.  
  49.     /* WINM_GO control-passing info */
  50.     mev_struct    lastmev;        /* Latest mev, stashed when sent to handler */
  51.     moupos_struct lastmoupos;    /* last moupos read from hardware. */
  52.     win_type    fromwin;        /* Window which control is being passed from */
  53.     win_type    trapmousewin;    /* Window to trap mouse events in */
  54.     unsigned    mousecode;        /* A stashable variable for stuffing kb_Read */
  55. } *wmgr_type;
  56.  
  57. /* -------------------------------------------------------------------------- */
  58.  
  59.