home *** CD-ROM | disk | FTP | other *** search
/ Encyclopedia of Graphics File Formats Companion / GFF_CD.ISO / software / unix / saoimage / sao1_07.tar / btnlib / borders.h < prev    next >
C/C++ Source or Header  |  1990-04-28  |  5KB  |  118 lines

  1. #ifndef lint
  2. static char SccsDefId[] = "%W%  %G%";
  3. #endif
  4.  
  5. /* Module:    borders.h
  6.  * Purpose:    Define the default button border patterns
  7.  * Defines:    defBorders
  8.  * Xlib calls:    none
  9.  * Note:    Set by MakeButtonBox()
  10.  * Note:    Used by btn_MakeBdrBitmap() in border.c to put border pattern
  11.  *        on buttons.  Included by create.c where assignments are made.
  12.  * Copyright:    1989, 1990 Smithsonian Astrophysical Observatory
  13.  *        You may do anything you like with this file except remove
  14.  *        this copyright.  The Smithsonian Astrophysical Observatory
  15.  *        makes no representations about the suitability of this
  16.  *        software for any purpose.  It is provided "as is" without
  17.  *        express or implied warranty.
  18.  * Modified:    {0} Michael VanHilst    initial version        21 March 1989
  19.  *        {1} MVH map expanded to 4x32 covering 4 corners    26 March 1990
  20.  *        {n} <who> -- <does what> -- <when>
  21.  */
  22.  
  23. /*
  24.  * Data:    off_out_button_bits
  25.  * Purpose:    32x32 bit border pattern
  26.  *        for button in off state, not occupied by pointer
  27.  * Note:    compatable with X11 bitmap tool
  28.  */
  29. #define off_out_button_width 32
  30. #define off_out_button_height 32
  31. static char off_out_button_bits[] = {
  32.    0x00, 0x00, 0x00, 0x00, 0xe0, 0xff, 0xff, 0x07, 0xf8, 0xff, 0xff, 0x1f,
  33.    0x3c, 0x00, 0x00, 0x3c, 0x0c, 0x00, 0x00, 0x30, 0x0e, 0x00, 0x00, 0x70,
  34.    0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60,
  35.    0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60,
  36.    0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60,
  37.    0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60,
  38.    0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60,
  39.    0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60,
  40.    0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60, 0x0e, 0x00, 0x00, 0x70,
  41.    0x0c, 0x00, 0x00, 0x30, 0x3c, 0x00, 0x00, 0x3c, 0xf8, 0xff, 0xff, 0x1f,
  42.    0xe0, 0xff, 0xff, 0x07, 0x00, 0x00, 0x00, 0x00};
  43.  
  44. /*
  45.  * Data:    off_in_button_bits
  46.  * Purpose:    32x32 bit border pattern
  47.  *        for button in off state, occupied by pointer
  48.  * Note:    compatable with X11 bitmap tool
  49.  */
  50. #define off_in_button_width 32
  51. #define off_in_button_height 32
  52. static char off_in_button_bits[] = {
  53.   0x00, 0x00, 0x00, 0x00, 0xe0, 0xff, 0xff, 0x07, 0xf8, 0xff, 0xff, 0x1f,
  54.   0x3c, 0x00, 0x00, 0x3c, 0x8c, 0xff, 0xff, 0x31, 0xee, 0xff, 0xff, 0x77,
  55.   0xe6, 0x00, 0x00, 0x67, 0x76, 0x00, 0x00, 0x6e, 0x36, 0x00, 0x00, 0x6c,
  56.   0x36, 0x00, 0x00, 0x6c, 0x36, 0x00, 0x00, 0x6c, 0x36, 0x00, 0x00, 0x6c,
  57.   0x36, 0x00, 0x00, 0x6c, 0x36, 0x00, 0x00, 0x6c, 0x36, 0x00, 0x00, 0x6c,
  58.   0x36, 0x00, 0x00, 0x6c, 0x36, 0x00, 0x00, 0x6c, 0x36, 0x00, 0x00, 0x6c,
  59.   0x36, 0x00, 0x00, 0x6c, 0x36, 0x00, 0x00, 0x6c, 0x36, 0x00, 0x00, 0x6c,
  60.   0x36, 0x00, 0x00, 0x6c, 0x36, 0x00, 0x00, 0x6c, 0x36, 0x00, 0x00, 0x6c,
  61.   0x76, 0x00, 0x00, 0x6e, 0xe6, 0x00, 0x00, 0x67, 0xee, 0xff, 0xff, 0x77,
  62.   0x8c, 0xff, 0xff, 0x31, 0x3c, 0x00, 0x00, 0x3c, 0xf8, 0xff, 0xff, 0x1f,
  63.   0xe0, 0xff, 0xff, 0x07, 0x00, 0x00, 0x00, 0x00};
  64.  
  65. /*
  66.  * Data:    on_out_button_bits
  67.  * Purpose:    32x32 bit border pattern
  68.  *        for button in on state, not occupied by pointer
  69.  * Note:    compatable with X11 bitmap tool
  70.  */
  71. #define on_out_button_width 32
  72. #define on_out_button_height 32
  73. static char on_out_button_bits[] = {
  74.  0x0f, 0x00, 0x00, 0xf0, 0xe3, 0xff, 0xff, 0xc7, 0xf9, 0xff, 0xff, 0x9f,
  75.  0x3d, 0x00, 0x00, 0xbc, 0x0c, 0x00, 0x00, 0x30, 0x0e, 0x00, 0x00, 0x70,
  76.  0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60,
  77.  0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60,
  78.  0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60,
  79.  0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60,
  80.  0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60,
  81.  0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60,
  82.  0x06, 0x00, 0x00, 0x60, 0x06, 0x00, 0x00, 0x60, 0x0e, 0x00, 0x00, 0x70,
  83.  0x0c, 0x00, 0x00, 0x30, 0x3d, 0x00, 0x00, 0xbc, 0xf9, 0xff, 0xff, 0x9f,
  84.  0xe3, 0xff, 0xff, 0xc7, 0x0f, 0x00, 0x00, 0xf0};
  85.  
  86. /*
  87.  * Data:    on_in_button_bits
  88.  * Purpose:    32x32 bit border pattern
  89.  *        for button in on state, occupied by pointer
  90.  * Note:    compatable with X11 bitmap tool
  91.  */
  92. #define on_in_button_width 32
  93. #define on_in_button_height 32
  94. static char on_in_button_bits[] = {
  95.  0x0f, 0x00, 0x00, 0xf0, 0xe3, 0xff, 0xff, 0xc7, 0xf9, 0xff, 0xff, 0x9f,
  96.  0x3d, 0x00, 0x00, 0xbc, 0x8c, 0xff, 0xff, 0x31, 0xee, 0xff, 0xff, 0x77,
  97.  0xe6, 0x00, 0x00, 0x67, 0x76, 0x00, 0x00, 0x6e, 0x36, 0x00, 0x00, 0x6c,
  98.  0x36, 0x00, 0x00, 0x6c, 0x36, 0x00, 0x00, 0x6c, 0x36, 0x00, 0x00, 0x6c,
  99.  0x36, 0x00, 0x00, 0x6c, 0x36, 0x00, 0x00, 0x6c, 0x36, 0x00, 0x00, 0x6c,
  100.  0x36, 0x00, 0x00, 0x6c, 0x36, 0x00, 0x00, 0x6c, 0x36, 0x00, 0x00, 0x6c,
  101.  0x36, 0x00, 0x00, 0x6c, 0x36, 0x00, 0x00, 0x6c, 0x36, 0x00, 0x00, 0x6c,
  102.  0x36, 0x00, 0x00, 0x6c, 0x36, 0x00, 0x00, 0x6c, 0x36, 0x00, 0x00, 0x6c,
  103.  0x76, 0x00, 0x00, 0x6e, 0xe6, 0x00, 0x00, 0x67, 0xee, 0xff, 0xff, 0x77,
  104.  0x8c, 0xff, 0xff, 0x31, 0x3d, 0x00, 0x00, 0xbc, 0xf9, 0xff, 0xff, 0x9f,
  105.  0xe3, 0xff, 0xff, 0xc7, 0x0f, 0x00, 0x00, 0xf0};
  106.  
  107. /*
  108.  * Data:    defBorders
  109.  * Purpose:    Default border patterns for four states of button
  110.  * Note:    Used by MakeButtonBox in MakeBox.c
  111.  * Note:    ButtonBorders defined in Buttons.h
  112.  */
  113. static BorderPatterns defBorders = {
  114.   (unsigned char *)off_out_button_bits,
  115.   (unsigned char *)off_in_button_bits,
  116.   (unsigned char *)on_out_button_bits,
  117.   (unsigned char *)on_in_button_bits };
  118.