home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / msdos / graphics / window.arc / WINDOW.DOC < prev    next >
Text File  |  1985-09-26  |  3KB  |  65 lines

  1.  
  2.  
  3.                           Window Management Library Documentation
  4.  
  5.                               Ray L. McVay - 30 August, 1984
  6.                                         S P A R K S
  7.                                         908 Newton
  8.                                    Arlington, TX  76010
  9.                                       (817) 265-7688
  10.  
  11.             WINDOW.C -
  12.  
  13.             Window.c ia a simple window management library based on the article
  14.             "A Simple Window Package" by  Edward Mitchell  in the  January 1984
  15.             issue of  Dr. Dobb's Journal.  This implementation uses dynamically
  16.             allocated buffers for window control blocks and screen save buffers
  17.             instead of the fixed arrays used by Mitchell. Although this library
  18.             is written  to be  used with  the DeSmet  C compiler, the only non-
  19.             standard characteristic  of the source is that some of the function
  20.             names are more than 8 characters long.
  21.  
  22.             VLIB.A -
  23.  
  24.             An assembly  language  support  library  called  VLIB  is  used  to
  25.             interface the  DeSmet C  compiler  with  the  IBM  ROM  BIOS  video
  26.             routines.  VLIB will undoubtedly have to be rewritten if the window
  27.             package  is   to  be  used  with  other  compilers.  The  following
  28.             paragraphs should  be of  help to  those folks  who must tread this
  29.             path.
  30.  
  31.             The calling  convention for  DeSmet is to push parameters rightmost
  32.             first then do an intrasegment call to the function. In other words,
  33.             functions are NEAR procedures. Most other compilers do intersegment
  34.             (FAR) calls to assembly language functions so their parameters will
  35.             be 2 bytes farther away on the stack.
  36.  
  37.             Functions return  char's and  int's in  the AX register. Long's are
  38.             returned in DX:AX.
  39.  
  40.             The compiler  adds an  underscore  character  to  the  end  of  all
  41.             function names  so getmode() would become getmode_ in the assembler
  42.             source.
  43.  
  44.             WNDEMO.C -
  45.  
  46.             Just what it says. WNDEMO shows how to open windows, write strings
  47.             in them and close 'em.
  48.  
  49.             FINALLY -
  50.  
  51.             Since all  the windowing  functions go  through the  standard  BIOS
  52.             calls, any display mode can be accommodated. The graphic modes will
  53.             require more  attention from  the host  program than  was  paid  in
  54.             WNDEMO, but  that (as is so often said) is left as an excercise for
  55.             the reader (programmer).
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.