|
|
1.1 ! root 1: /* $Header: resource.h,v 1.1 87/09/11 07:49:54 toddb Exp $ */ ! 2: /*********************************************************** ! 3: Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts, ! 4: and the Massachusetts Institute of Technology, Cambridge, Massachusetts. ! 5: ! 6: All Rights Reserved ! 7: ! 8: Permission to use, copy, modify, and distribute this software and its ! 9: documentation for any purpose and without fee is hereby granted, ! 10: provided that the above copyright notice appear in all copies and that ! 11: both that copyright notice and this permission notice appear in ! 12: supporting documentation, and that the names of Digital or MIT not be ! 13: used in advertising or publicity pertaining to distribution of the ! 14: software without specific, written prior permission. ! 15: ! 16: DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ! 17: ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL ! 18: DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ! 19: ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, ! 20: WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ! 21: ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS ! 22: SOFTWARE. ! 23: ! 24: ******************************************************************/ ! 25: #ifndef RESOURCE_H ! 26: #define RESOURCE_H 1 ! 27: ! 28: /***************************************************************** ! 29: * STUFF FOR RESOURCES ! 30: *****************************************************************/ ! 31: ! 32: /* types for Resource routines */ ! 33: ! 34: #define RT_COLORMAP 1<<0 ! 35: #define RT_FONT 1<<1 ! 36: #define RT_CURSOR 1<<2 ! 37: #define RT_PIXMAP 1<<3 ! 38: #define RT_WINDOW 1<<4 ! 39: #define RT_DRAWABLE (RT_WINDOW | RT_PIXMAP) ! 40: #define RT_GC 1<<5 ! 41: #define RT_FAKE 1<<6 ! 42: #define RT_VISUALID 1<<7 ! 43: #define RT_CMAPENTRY 1<<8 ! 44: #define RT_LASTPREDEF RT_CMAPENTRY ! 45: #define RT_ANY 0xFFFF ! 46: ! 47: /* classes for Resource routines */ ! 48: ! 49: #define RC_CORE 0 ! 50: #define RC_NONE 1 ! 51: #define RC_LASTPREDEF RC_NONE ! 52: ! 53: /* bits and fields within a resource id */ ! 54: #define CLIENTOFFSET 20 /* client field */ ! 55: #define RESOURCE_ID_MASK 0x7FFFF /* low 19 bits */ ! 56: #define CLIENT_BITS(id) ((id) & 0xfff00000) /* hi 12 bits */ ! 57: #define CLIENT_ID(id) (CLIENT_BITS(id) >> CLIENTOFFSET) /* hi 12 bits */ ! 58: #define SERVER_BIT 0x80000 /* 20th bit reserved */ ! 59: #define SERVER_BIT_SHIFT 19 /* 20th bit reserved */ ! 60: #define FAKE_CLIENT_ID(c, i) FakeClientID(c) ! 61: ! 62: /* Invalid resource id */ ! 63: #define INVALID (-1) ! 64: #endif /* RESOURCE_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.