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

  1. #ifndef lint
  2. static char SccsMId[] = "%W%  %G%";
  3. #endif
  4.  
  5. /* Module:    motf.h
  6.  * Purpose:    Define the TAE-like button border patterns
  7.  * Defines:    motfBorders
  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_m_width 32
  30. #define off_out_m_height 32
  31. static char off_out_m_bits[] = {
  32.    0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0x7f, 0x02, 0x00, 0x00, 0x60,
  33.    0x02, 0x00, 0x00, 0x70, 0xf2, 0xff, 0xff, 0x7f, 0x12, 0x00, 0x00, 0x78,
  34.    0x12, 0x00, 0x00, 0x78, 0x12, 0x00, 0x00, 0x78, 0x12, 0x00, 0x00, 0x78,
  35.    0x12, 0x00, 0x00, 0x78, 0x12, 0x00, 0x00, 0x78, 0x12, 0x00, 0x00, 0x78,
  36.    0x12, 0x00, 0x00, 0x78, 0x12, 0x00, 0x00, 0x78, 0x12, 0x00, 0x00, 0x78,
  37.    0x12, 0x00, 0x00, 0x78, 0x12, 0x00, 0x00, 0x78, 0x12, 0x00, 0x00, 0x78,
  38.    0x12, 0x00, 0x00, 0x78, 0x12, 0x00, 0x00, 0x78, 0x12, 0x00, 0x00, 0x78,
  39.    0x12, 0x00, 0x00, 0x78, 0x12, 0x00, 0x00, 0x78, 0x12, 0x00, 0x00, 0x78,
  40.    0x12, 0x00, 0x00, 0x78, 0x12, 0x00, 0x00, 0x78, 0x12, 0x00, 0x00, 0x78,
  41.    0xf2, 0xff, 0xff, 0x7f, 0xfa, 0xff, 0xff, 0x7f, 0xfe, 0xff, 0xff, 0x7f,
  42.    0xfe, 0xff, 0xff, 0x7f, 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_m_width 32
  51. #define off_in_m_height 32
  52. static char off_in_m_bits[] = {
  53.    0x00, 0x00, 0x00, 0x00, 0xfe, 0xff, 0xff, 0x7f, 0x02, 0x00, 0x00, 0x60,
  54.    0xfa, 0xff, 0xff, 0x7f, 0x0a, 0x00, 0x00, 0x70, 0x0a, 0x00, 0x00, 0x70,
  55.    0x0a, 0x00, 0x00, 0x70, 0x0a, 0x00, 0x00, 0x70, 0x0a, 0x00, 0x00, 0x70,
  56.    0x0a, 0x00, 0x00, 0x70, 0x0a, 0x00, 0x00, 0x70, 0x0a, 0x00, 0x00, 0x70,
  57.    0x0a, 0x00, 0x00, 0x70, 0x0a, 0x00, 0x00, 0x70, 0x0a, 0x00, 0x00, 0x70,
  58.    0x0a, 0x00, 0x00, 0x70, 0x0a, 0x00, 0x00, 0x70, 0x0a, 0x00, 0x00, 0x70,
  59.    0x0a, 0x00, 0x00, 0x70, 0x0a, 0x00, 0x00, 0x70, 0x0a, 0x00, 0x00, 0x70,
  60.    0x0a, 0x00, 0x00, 0x70, 0x0a, 0x00, 0x00, 0x70, 0x0a, 0x00, 0x00, 0x70,
  61.    0x0a, 0x00, 0x00, 0x70, 0x0a, 0x00, 0x00, 0x70, 0x0a, 0x00, 0x00, 0x70,
  62.    0x0a, 0x00, 0x00, 0x70, 0xfa, 0xff, 0xff, 0x7f, 0xfe, 0xff, 0xff, 0x7f,
  63.    0xfe, 0xff, 0xff, 0x7f, 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_m_width 32
  72. #define on_out_m_height 32
  73. static char on_out_m_bits[] = {
  74.    0xff, 0xff, 0xff, 0xff, 0x01, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0xa0,
  75.    0x01, 0x00, 0x00, 0xb0, 0xf1, 0xff, 0xff, 0xbf, 0x11, 0x00, 0x00, 0xb8,
  76.    0x11, 0x00, 0x00, 0xb8, 0x11, 0x00, 0x00, 0xb8, 0x11, 0x00, 0x00, 0xb8,
  77.    0x11, 0x00, 0x00, 0xb8, 0x11, 0x00, 0x00, 0xb8, 0x11, 0x00, 0x00, 0xb8,
  78.    0x11, 0x00, 0x00, 0xb8, 0x11, 0x00, 0x00, 0xb8, 0x11, 0x00, 0x00, 0xb8,
  79.    0x11, 0x00, 0x00, 0xb8, 0x11, 0x00, 0x00, 0xb8, 0x11, 0x00, 0x00, 0xb8,
  80.    0x11, 0x00, 0x00, 0xb8, 0x11, 0x00, 0x00, 0xb8, 0x11, 0x00, 0x00, 0xb8,
  81.    0x11, 0x00, 0x00, 0xb8, 0x11, 0x00, 0x00, 0xb8, 0x11, 0x00, 0x00, 0xb8,
  82.    0x11, 0x00, 0x00, 0xb8, 0x11, 0x00, 0x00, 0xb8, 0x11, 0x00, 0x00, 0xb8,
  83.    0xf1, 0xff, 0xff, 0xbf, 0xf9, 0xff, 0xff, 0xbf, 0xfd, 0xff, 0xff, 0xbf,
  84.    0x01, 0x00, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff};
  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_m_width 32
  93. #define on_in_m_height 32
  94. static char on_in_m_bits[] = {
  95.    0xff, 0xff, 0xff, 0xff, 0x01, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0xa0,
  96.    0xf9, 0xff, 0xff, 0xbf, 0x09, 0x00, 0x00, 0xb0, 0x09, 0x00, 0x00, 0xb0,
  97.    0x09, 0x00, 0x00, 0xb0, 0x09, 0x00, 0x00, 0xb0, 0x09, 0x00, 0x00, 0xb0,
  98.    0x09, 0x00, 0x00, 0xb0, 0x09, 0x00, 0x00, 0xb0, 0x09, 0x00, 0x00, 0xb0,
  99.    0x09, 0x00, 0x00, 0xb0, 0x09, 0x00, 0x00, 0xb0, 0x09, 0x00, 0x00, 0xb0,
  100.    0x09, 0x00, 0x00, 0xb0, 0x09, 0x00, 0x00, 0xb0, 0x09, 0x00, 0x00, 0xb0,
  101.    0x09, 0x00, 0x00, 0xb0, 0x09, 0x00, 0x00, 0xb0, 0x09, 0x00, 0x00, 0xb0,
  102.    0x09, 0x00, 0x00, 0xb0, 0x09, 0x00, 0x00, 0xb0, 0x09, 0x00, 0x00, 0xb0,
  103.    0x09, 0x00, 0x00, 0xb0, 0x09, 0x00, 0x00, 0xb0, 0x09, 0x00, 0x00, 0xb0,
  104.    0x09, 0x00, 0x00, 0xb0, 0xf9, 0xff, 0xff, 0xbf, 0xfd, 0xff, 0xff, 0xbf,
  105.    0x01, 0x00, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff};
  106.  
  107. /*
  108.  * Data:    motfBorders
  109.  * Purpose:    TAE-like border patterns for four states of button
  110.  * Note:    Used by MakeButtonBox in create.c
  111.  * Note:    ButtonBorders defined in buttons.h
  112.  */
  113. static BorderPatterns motfBorders = {
  114.   (unsigned char *)off_out_m_bits,
  115.   (unsigned char *)off_in_m_bits,
  116.   (unsigned char *)on_out_m_bits,
  117.   (unsigned char *)on_in_m_bits };
  118.