LED.h 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /************************************************************
  2. Copyright (c) 1995 by Silicon Graphics Computer Systems, Inc.
  3. Permission to use, copy, modify, and distribute this
  4. software and its documentation for any purpose and without
  5. fee is hereby granted, provided that the above copyright
  6. notice appear in all copies and that both that copyright
  7. notice and this permission notice appear in supporting
  8. documentation, and that the name of Silicon Graphics not be
  9. used in advertising or publicity pertaining to distribution
  10. of the software without specific prior written permission.
  11. Silicon Graphics makes no representation about the suitability
  12. of this software for any purpose. It is provided "as is"
  13. without any express or implied warranty.
  14. SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
  15. SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  16. AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
  17. GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
  18. DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  19. DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  20. OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
  21. THE USE OR PERFORMANCE OF THIS SOFTWARE.
  22. ********************************************************/
  23. #ifndef _XawLED_h
  24. #define _XawLED_h
  25. #include <X11/Xaw/Simple.h>
  26. /* Resources:
  27. Name Class RepType Default Value
  28. ---- ----- ------- -------------
  29. background Background Pixel XtDefaultBackground
  30. bevel Bevel Dimension 1
  31. bitmap Pixmap Pixmap None
  32. border BorderColor Pixel XtDefaultForeground
  33. borderWidth BorderWidth Dimension 1
  34. bottomColor BottomColor Pixel "White"
  35. cursor Cursor Cursor None
  36. cursorName Cursor String NULL
  37. destroyCallback Callback XtCallbackList NULL
  38. foreground Foreground Pixel XtDefaultForeground
  39. height Height Dimension 10
  40. insensitiveBorder Insensitive Pixmap Gray
  41. ledWidth ledWidth Dimension 6
  42. ledHeight ledHeight Dimension 12
  43. mappedWhenManaged MappedWhenManaged Boolean True
  44. offColor OffColor Pixel #001000
  45. on On Boolean False
  46. onColor OnColor Pixel Green
  47. pointerColor Foreground Pixel XtDefaultForeground
  48. pointerColorBackground Background Pixel XtDefaultBackground
  49. resize Resize Boolean False
  50. sensitive Sensitive Boolean False
  51. topColor TopColor Pixel "black"
  52. width Width Dimension 6
  53. x Position Position 0
  54. y Position Position 0
  55. */
  56. #define XtNbevel "bevel"
  57. #define XtNon "on"
  58. #define XtNonColor "onColor"
  59. #define XtNoffColor "offColor"
  60. #define XtNtopColor "topColor"
  61. #define XtNbottomColor "bottomColor"
  62. #define XtNledWidth "ledWidth"
  63. #define XtNledHeight "ledHeight"
  64. #define XtCBevel "Bevel"
  65. #define XtCOn "On"
  66. #define XtCOnColor "OnColor"
  67. #define XtCOffColor "OffColor"
  68. #define XtCTopColor "TopColor"
  69. #define XtCBottomColor "BottomColor"
  70. #define XtCLedWidth "LedWidth"
  71. #define XtCLedHeight "LedHeight"
  72. #ifndef _XtStringDefs_h_
  73. #define XtNbitmap "bitmap"
  74. #define XtNforeground "foreground"
  75. #define XtNresize "resize"
  76. #define XtCResize "Resize"
  77. #define XtCBitmap "Bitmap"
  78. #endif
  79. /* Class record constants */
  80. extern WidgetClass ledWidgetClass;
  81. typedef struct _LEDClassRec *LEDWidgetClass;
  82. typedef struct _LEDRec *LEDWidget;
  83. #endif /* _XawLED_h */