1: #ifndef lint
   2: static char *rcsid_StoreCursors_c = "$Header: StoreCursors.c,v 10.3 86/02/01 16:23:56 tony Rel $";
   3: #endif	lint
   4: 
   5: /************************************************************************
   6:  *									*
   7:  *			Copyright (c) 1986 by				*
   8:  *		Digital Equipment Corporation, Maynard, MA		*
   9:  *		         All Rights Reserved.				*
  10:  *									*
  11:  *	Permission to use, copy, modify, and distribute this software	*
  12:  *	and its documentation is hereby granted only to licensees of 	*
  13:  *	The Regents of the University of California pursuant to their	*
  14:  *	license agreement for the Berkeley Software Distribution 	*
  15:  *	provided that the following appears on all copies.		*
  16:  *									*
  17:  *            "LICENSED FROM DIGITAL EQUIPMENT CORPORATION		*
  18:  *                      COPYRIGHT (C) 1986				*
  19:  *                 DIGITAL EQUIPMENT CORPORATION			*
  20:  *                         MAYNARD, MA					*
  21:  *                     ALL RIGHTS RESERVED.				*
  22:  *									*
  23:  *      THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT	*
  24:  *	NOTICE AND SHOULD NOT BE CONSTRUED AS A COMMITMENT BY DIGITAL	*
  25:  *	EQUIPMENT CORPORATION.  DIGITAL MAKES NO REPRESENTATIONS	*
  26:  *	ABOUT SUITABILITY OF THIS SOFTWARE FOR ANY PURPOSE. IT IS	*
  27:  *	SUPPLIED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.		*
  28:  *									*
  29:  * 	IF THE UNIVERSITY OF CALIFORNIA OR ITS LICENSEES MODIFY 	*
  30:  *	THE SOFTWARE IN A MANNER CREATING DERIVATIVE COPYRIGHT 		*
  31:  *	RIGHTS APPROPRIATE COPYRIGHT LEGENDS MAY BE PLACED ON THE	*
  32:  *	DERIVATIVE WORK IN ADDITION TO THAT SET FORTH ABOVE."		*
  33:  *									*
  34:  ************************************************************************/
  35: 
  36: 
  37: /*
  38:  * MODIFICATION HISTORY
  39:  *
  40:  * 000 -- M. Gancarz, DEC Ultrix Engineering Group
  41:  */
  42: 
  43: #ifndef lint
  44: static char *sccsid = "@(#)StoreCursors.c	3.8	1/24/86";
  45: #endif
  46: 
  47: #include "uwm.h"
  48: 
  49: /*
  50:  * Include the cursor definition files.
  51:  */
  52: #include <X/cursors/arrow_cross.cursor>
  53: #include <X/cursors/arrow_cross_mask.cursor>
  54: #include <X/cursors/xterm.cursor>
  55: #include <X/cursors/xterm_mask.cursor>
  56: #include <X/cursors/icon.cursor>
  57: #include <X/cursors/icon_mask.cursor>
  58: #include "menu.cursor"
  59: #include "menu_mask.cursor"
  60: #include "leftbutton.cursor"
  61: #include "middlebutton.cursor"
  62: #include "rightbutton.cursor"
  63: #include "button_mask.cursor"
  64: 
  65: /*
  66:  * Store all the cursors into global variables.
  67:  */
  68: StoreCursors()
  69: {
  70:     /*
  71:      * Main uwm cursor and movement cursor.
  72:      */
  73:     ArrowCrossCursor = XCreateCursor(
  74:         arrow_cross_width, arrow_cross_height,
  75:         arrow_cross_bits, arrow_cross_mask_bits,
  76:     8, 8,
  77:     BlackPixel, WhitePixel,
  78:     CursorFunc
  79:     );
  80:     if (ArrowCrossCursor == FAILURE) {
  81:     Error("StoreCursors -> Unable to store ArrowCrossCursor.");
  82:     }
  83: 
  84:     /*
  85:      * Text cursor used in icons.
  86:      */
  87:     TextCursor = XCreateCursor(
  88:         xterm_width, xterm_height,
  89:         xterm_bits, xterm_mask_bits,
  90:     8, 8,
  91:     BlackPixel, WhitePixel,
  92:     CursorFunc
  93:     );
  94:     if (TextCursor == FAILURE) {
  95:     Error("StoreCursors -> Unable to store TextCursor.");
  96:     }
  97: 
  98:     /*
  99:      * Icon cursor used to iconify windows.
 100:      */
 101:     IconCursor = XCreateCursor(
 102:         icon_width, icon_height,
 103:         icon_bits, icon_mask_bits,
 104:     8, 8,
 105:     ITextForground, ITextBackground,
 106:     IconCursorFunc
 107:     );
 108:     if (IconCursor == FAILURE) {
 109:     Error("StoreCursors -> Unable to store IconCursor.");
 110:     }
 111: 
 112:     /*
 113:      * Menu cursor.
 114:      */
 115:     MenuCursor = XCreateCursor(
 116:         menu_width, menu_height,
 117:         menu_bits, menu_mask_bits,
 118:     0, 8,
 119:     ITextForground, ITextBackground,
 120:     IconCursorFunc
 121:     );
 122:     if (MenuCursor == FAILURE) {
 123:     Error("StoreCursors -> Unable to store MenuCursor.");
 124:     }
 125: 
 126:     /*
 127:      * Left button main cursor.
 128:      */
 129:     LeftButtonCursor = XCreateCursor(
 130:         leftbutton_width, leftbutton_height,
 131:         leftbutton_bits, button_mask_bits,
 132:     8, 8,
 133:     WhitePixel, BlackPixel,
 134:     CursorFunc
 135:     );
 136:     if (LeftButtonCursor == FAILURE) {
 137:     Error("StoreCursors -> Unable to store LeftButtonCursor.");
 138:     }
 139: 
 140:     /*
 141:      * Middle button main cursor.
 142:      */
 143:     MiddleButtonCursor = XCreateCursor(
 144:         middlebutton_width, middlebutton_height,
 145:         middlebutton_bits, button_mask_bits,
 146:     8, 8,
 147:     WhitePixel, BlackPixel,
 148:     CursorFunc
 149:     );
 150:     if (MiddleButtonCursor == FAILURE) {
 151:     Error("StoreCursors -> Unable to store MiddleButtonCursor.");
 152:     }
 153: 
 154:     /*
 155:      * Right button main cursor.
 156:      */
 157:     RightButtonCursor = XCreateCursor(
 158:         rightbutton_width, rightbutton_height,
 159:         rightbutton_bits, button_mask_bits,
 160:     8, 8,
 161:     WhitePixel, BlackPixel,
 162:     CursorFunc
 163:     );
 164:     if (RightButtonCursor == FAILURE) {
 165:     Error("StoreCursors -> Unable to store RightButtonCursor.");
 166:     }
 167: }

Defined functions

StoreCursors defined in line 68; used 2 times

Defined variables

rcsid_StoreCursors_c defined in line 2; never used
sccsid defined in line 44; never used
Last modified: 1986-02-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1030
Valid CSS Valid XHTML 1.0 Strict