XKM.h
上传用户:lctgjx
上传日期:2022-06-04
资源大小:8887k
文件大小:3k
源码类别:

流媒体/Mpeg4/MP4

开发平台:

Visual C++

  1. /* $Xorg: XKM.h,v 1.3 2000/08/17 19:46:43 cpqbld Exp $ */
  2. /************************************************************
  3.  Copyright (c) 1994 by Silicon Graphics Computer Systems, Inc.
  4.  Permission to use, copy, modify, and distribute this
  5.  software and its documentation for any purpose and without
  6.  fee is hereby granted, provided that the above copyright
  7.  notice appear in all copies and that both that copyright
  8.  notice and this permission notice appear in supporting
  9.  documentation, and that the name of Silicon Graphics not be 
  10.  used in advertising or publicity pertaining to distribution 
  11.  of the software without specific prior written permission.
  12.  Silicon Graphics makes no representation about the suitability 
  13.  of this software for any purpose. It is provided "as is"
  14.  without any express or implied warranty.
  15.  
  16.  SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS 
  17.  SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 
  18.  AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
  19.  GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL 
  20.  DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 
  21.  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 
  22.  OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION  WITH
  23.  THE USE OR PERFORMANCE OF THIS SOFTWARE.
  24.  ********************************************************/
  25. #ifndef XKM_H
  26. #define XKM_H 1
  27. #define XkmFileVersion 15
  28. #define XkmIllegalFile -1
  29. #define XkmSemanticsFile 20
  30. #define XkmLayoutFile 21
  31. #define XkmKeymapFile 22
  32. #define XkmGeometryFile 23
  33. #define XkmTypesIndex 0
  34. #define XkmCompatMapIndex 1
  35. #define XkmSymbolsIndex 2
  36. #define XkmIndicatorsIndex 3
  37. #define XkmKeyNamesIndex 4
  38. #define XkmGeometryIndex 5
  39. #define XkmVirtualModsIndex 6
  40. #define XkmLastIndex XkmVirtualModsIndex
  41. #define XkmTypesMask (1<<0)
  42. #define XkmCompatMapMask (1<<1)
  43. #define XkmSymbolsMask (1<<2)
  44. #define XkmIndicatorsMask (1<<3)
  45. #define XkmKeyNamesMask (1<<4)
  46. #define XkmGeometryMask (1<<5)
  47. #define XkmVirtualModsMask (1<<6)
  48. #define XkmLegalIndexMask (0x7f)
  49. #define XkmAllIndicesMask (0x7f)
  50. #define XkmSemanticsRequired (XkmCompatMapMask)
  51. #define XkmSemanticsOptional (XkmTypesMask|XkmVirtualModsMask|XkmIndicatorsMask)
  52. #define XkmSemanticsLegal (XkmSemanticsRequired|XkmSemanticsOptional)
  53. #define XkmLayoutRequired (XkmKeyNamesMask|XkmSymbolsMask|XkmTypesMask)
  54. #define XkmLayoutOptional (XkmVirtualModsMask|XkmGeometryMask)
  55. #define XkmLayoutLegal (XkmLayoutRequired|XkmLayoutOptional)
  56. #define XkmKeymapRequired (XkmSemanticsRequired|XkmLayoutRequired)
  57. #define XkmKeymapOptional ((XkmSemanticsOptional|XkmLayoutOptional)&(~XkmKeymapRequired))
  58. #define XkmKeymapLegal (XkmKeymapRequired|XkmKeymapOptional)
  59. #define XkmLegalSection(m) (((m)&(~XkmKeymapLegal))==0)
  60. #define XkmSingleSection(m) (XkmLegalSection(m)&&(((m)&(~(m)+1))==(m)))
  61. #endif /* XKM_H */