bitmaps.h 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  6. * These libraries and programs are free software; you can
  7. * redistribute them and/or modify them under the terms of the GNU
  8. * Lesser General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * These libraries and programs are distributed in the hope that
  13. * they will be useful, but WITHOUT ANY WARRANTY; without even the
  14. * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. * PURPOSE. See the GNU Lesser General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these libraries and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /* $XConsortium: bitmaps.h /main/3 1995/10/26 15:32:50 rswiston $ */
  24. /*
  25. * (c) Copyright 1993, 1994 Hewlett-Packard Company *
  26. * (c) Copyright 1993, 1994 International Business Machines Corp. *
  27. * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
  28. * (c) Copyright 1993, 1994 Novell, Inc. *
  29. */
  30. #ifdef REV_INFO
  31. #ifndef lint
  32. static char SCCSID[] = "OSF/Motif: %W% %E%":
  33. #endif /* lint */
  34. #endif /* REV_INFO */
  35. /******************************************************************************
  36. *******************************************************************************
  37. *
  38. * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
  39. * (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY
  40. * ALL RIGHTS RESERVED
  41. *
  42. * THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED
  43. * AND COPIED ONLY IN ACCORDANCE WITH THE TERMS OF SUCH LICENSE AND
  44. * WITH THE INCLUSION OF THE ABOVE COPYRIGHT NOTICE. THIS SOFTWARE OR
  45. * ANY OTHER COPIES THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE
  46. * AVAILABLE TO ANY OTHER PERSON. NO TITLE TO AND OWNERSHIP OF THE
  47. * SOFTWARE IS HEREBY TRANSFERRED.
  48. *
  49. * THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT
  50. * NOTICE AND SHOULD NOT BE CONSTRUED AS A COMMITMENT BY OPEN SOFTWARE
  51. * FOUNDATION, INC. OR ITS THIRD PARTY SUPPLIERS
  52. *
  53. * OPEN SOFTWARE FOUNDATION, INC. AND ITS THIRD PARTY SUPPLIERS,
  54. * ASSUME NO RESPONSIBILITY FOR THE USE OR INABILITY TO USE ANY OF ITS
  55. * SOFTWARE . OSF SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  56. * KIND, AND OSF EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES, INCLUDING
  57. * BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  58. * FITNESS FOR A PARTICULAR PURPOSE.
  59. *
  60. * Notice: Notwithstanding any other lease or license that may pertain to,
  61. * or accompany the delivery of, this computer software, the rights of the
  62. * Government regarding its use, reproduction and disclosure are as set
  63. * forth in Section 52.227-19 of the FARS Computer Software-Restricted
  64. * Rights clause.
  65. *
  66. * (c) Copyright 1989, 1990, 1991, 1992 Open Software Foundation, Inc. Unpublished - all
  67. * rights reserved under the Copyright laws of the United States.
  68. *
  69. * RESTRICTED RIGHTS NOTICE: Use, duplication, or disclosure by the
  70. * Government is subject to the restrictions as set forth in subparagraph
  71. * (c)(1)(ii) of the Rights in Technical Data and Computer Software clause
  72. * at DFARS 52.227-7013.
  73. *
  74. * Open Software Foundation, Inc.
  75. * 11 Cambridge Center
  76. * Cambridge, MA 02142
  77. * (617)621-8700
  78. *
  79. * RESTRICTED RIGHTS LEGEND: This computer software is submitted with
  80. * "restricted rights." Use, duplication or disclosure is subject to the
  81. * restrictions as set forth in NASA FAR SUP 18-52.227-79 (April 1985)
  82. * "Commercial Computer Software- Restricted Rights (April 1985)." Open
  83. * Software Foundation, Inc., 11 Cambridge Center, Cambridge, MA 02142. If
  84. * the contract contains the Clause at 18-52.227-74 "Rights in Data General"
  85. * then the "Alternate III" clause applies.
  86. *
  87. * (c) Copyright 1989, 1990, 1991, 1992 Open Software Foundation, Inc.
  88. * ALL RIGHTS RESERVED
  89. *
  90. *
  91. * Open Software Foundation is a trademark of The Open Software Foundation, Inc.
  92. * OSF is a trademark of Open Software Foundation, Inc.
  93. * OSF/Motif is a trademark of Open Software Foundation, Inc.
  94. * Motif is a trademark of Open Software Foundation, Inc.
  95. * DEC is a registered trademark of Digital Equipment Corporation
  96. * DIGITAL is a registered trademark of Digital Equipment Corporation
  97. * X Window System is a trademark of the Massachusetts Institute of Technology
  98. *
  99. *******************************************************************************
  100. ******************************************************************************/
  101. /*************************************<+>*************************************
  102. *****************************************************************************
  103. **
  104. ** File: bitmaps.h
  105. **
  106. ** Description: This file contains a set of predefines bitmaps
  107. ** which are used by the image caching functions.
  108. **
  109. ****************************************************************************
  110. ************************************<+>*************************************/
  111. #ifndef _Xmbitmaps_h
  112. #define _Xmbitmaps_h
  113. #ifdef __cplusplus
  114. extern "C" {
  115. #endif
  116. static unsigned char bitmaps [20][32] =
  117. {
  118. { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* Solid Background */
  119. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  120. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  121. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
  122. { 0x88, 0x88, 0x22, 0x22, 0x88, 0x88, 0x22, 0x22, /* 25 percent */
  123. 0x88, 0x88, 0x22, 0x22, 0x88, 0x88, 0x22, 0x22,
  124. 0x88, 0x88, 0x22, 0x22, 0x88, 0x88, 0x22, 0x22,
  125. 0x88, 0x88, 0x22, 0x22, 0x88, 0x88, 0x22, 0x22 },
  126. { 0x55, 0x55, 0xAA, 0xAA, 0x55, 0x55, 0xAA, 0xAA, /* 50 percent */
  127. 0x55, 0x55, 0xAA, 0xAA, 0x55, 0x55, 0xAA, 0xAA,
  128. 0x55, 0x55, 0xAA, 0xAA, 0x55, 0x55, 0xAA, 0xAA,
  129. 0x55, 0x55, 0xAA, 0xAA, 0x55, 0x55, 0xAA, 0xAA },
  130. { 0x55, 0x55, 0xFF, 0xFF, 0xAA, 0xAA, 0xFF, 0xFF, /* 75 percent */
  131. 0x55, 0x55, 0xFF, 0xFF, 0xAA, 0xAA, 0xFF, 0xFF,
  132. 0x55, 0x55, 0xFF, 0xFF, 0xAA, 0xAA, 0xFF, 0xFF,
  133. 0x55, 0x55, 0xFF, 0xFF, 0xAA, 0xAA, 0xFF, 0xFF },
  134. { 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, /* Vertical */
  135. 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55,
  136. 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55,
  137. 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55 },
  138. { 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, /* Horizontal */
  139. 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
  140. 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
  141. 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00 },
  142. { 0x77, 0x77, 0xbb, 0xbb, 0xdd, 0xdd, 0xee, 0xee, /* Slant Left */
  143. 0x77, 0x77, 0xbb, 0xbb, 0xdd, 0xdd, 0xee, 0xee,
  144. 0x77, 0x77, 0xbb, 0xbb, 0xdd, 0xdd, 0xee, 0xee,
  145. 0x77, 0x77, 0xbb, 0xbb, 0xdd, 0xdd, 0xee, 0xee },
  146. { 0xee, 0xee, 0xdd, 0xdd, 0xbb, 0xbb, 0x77, 0x77, /* Slant Right */
  147. 0xee, 0xee, 0xdd, 0xdd, 0xbb, 0xbb, 0x77, 0x77,
  148. 0xee, 0xee, 0xdd, 0xdd, 0xbb, 0xbb, 0x77, 0x77,
  149. 0xee, 0xee, 0xdd, 0xdd, 0xbb, 0xbb, 0x77, 0x77 },
  150. {
  151. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* Default Cascade */
  152. 0x00, 0x03, 0x00, 0x06, 0x00, 0x0c, 0x00, 0x18,
  153. 0xff, 0x3f, 0x00, 0x18, 0x00, 0x0c, 0x00, 0x06,
  154. 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
  155. {
  156. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* Default CheckMark */
  157. 0x00, 0x00, 0x00, 0x60, 0x00, 0x30, 0x00, 0x18,
  158. 0x00, 0x0c, 0x08, 0x06, 0x18, 0x03, 0xb0, 0x01,
  159. 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
  160. {
  161. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* Default menu dash */
  162. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  163. 0xff, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  164. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
  165. };
  166. static char * bitmap_name_set[] =
  167. {
  168. "background",
  169. "25_foreground",
  170. "50_foreground",
  171. "75_foreground",
  172. "vertical",
  173. "horizontal",
  174. "slant_right",
  175. "slant_left",
  176. "menu_cascade",
  177. "menu_checkmark",
  178. "menu_dash"
  179. };
  180. #ifdef __cplusplus
  181. } /* Close scope of 'extern "C"' declaration which encloses file. */
  182. #endif
  183. #endif /* _Xmbitmaps_h */
  184. /* DON'T ADD STUFF AFTER THIS #endif */