home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / os2 / hpgl312.zip / X11.H < prev   
C/C++ Source or Header  |  1993-04-18  |  2KB  |  85 lines

  1. /*
  2.    Copyright (c) 1992  Michael Schoene.  All rights reserved.
  3.    Distributed by Free Software Foundation, Inc.
  4.  
  5. This file is part of HP2xx.
  6.  
  7. HP2xx is distributed in the hope that it will be useful, but
  8. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  9. to anyone for the consequences of using it or for whether it serves any
  10. particular purpose or works at all, unless he says so in writing.  Refer
  11. to the GNU General Public License, Version 2 or later, for full details.
  12.  
  13. Everyone is granted permission to copy, modify and redistribute
  14. HP2xx, but only under the conditions described in the GNU General Public
  15. License.  A copy of this license is supposed to have been
  16. given to you along with HP2xx so you can know your rights and
  17. responsibilities.  It should be in a file named COPYING.  Among other
  18. things, the copyright notice and this notice must be preserved on all
  19. copies.
  20.  
  21. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  22. */
  23.  
  24. /**
  25.  ** $Id: x11.h,v 1.1 1992/01/15 15:22:09 michael Exp $
  26.  **
  27.  **
  28.  ** $Log: x11.h,v $
  29.  ** Revision 1.1  1992/01/15  15:22:09  michael
  30.  ** Initial revision
  31.  **
  32.  **
  33.  ** DESCRIPTION: Interface for X11
  34.  **                win_open and win_close open and close a window
  35.  **                create_image and show_image are used for b/w bitmap display
  36.  **                win_clear clears the window
  37.  **
  38.  **
  39.  ** AUTHOR      : Michael Schoene
  40.  **                (see file hp2xx.c for full address)
  41.  **/
  42.  
  43.  
  44. #ifndef X11_H
  45. #define X11_H
  46.  
  47.  
  48. #define    NO_SERVER    1
  49. #define    SIZE        2
  50. #define    NO_MEM        3
  51.  
  52. #define    CMS_SIZE    16
  53. #define    BLACK        0
  54. #define    WHITE        15
  55. #define    RED        2
  56. #define    GREEN        3
  57. #define    BLUE        4
  58. #define    CYAN        5
  59. #define    MAGENTA        6
  60. #define    YELLOW        7
  61. #define    LIGHTGRAY    8
  62. #define    LIGHTRED    10
  63. #define    LIGHTGREEN    11
  64. #define    LIGHTBLUE    12
  65. #define    LIGHTCYAN    13
  66. #define    LIGHTMAGENTA    14
  67. #define    GRAY        15
  68.  
  69.  
  70. /** Open window at position (x,y) with height h and width w
  71.  ** return value:  0:    OK.
  72.  **                1:    Server does not respond
  73.  **                  2:    Window too big
  74.  **                  3:    Out of memory
  75.  **/
  76.  
  77. int  win_open( int x, int y, int w, int h );
  78. void win_close();
  79. void win_clear();
  80. void create_image( char* buf, int line );
  81. void show_image();
  82.  
  83.  
  84. #endif
  85.