ULabel.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /***********************************************************
  2. Copyright (c) 1987, 1988, 1994 X Consortium
  3. Permission is hereby granted, free of charge, to any person obtaining a copy
  4. of this software and associated documentation files (the "Software"), to deal
  5. in the Software without restriction, including without limitation the rights
  6. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7. copies of the Software, and to permit persons to whom the Software is
  8. furnished to do so, subject to the following conditions:
  9. The above copyright notice and this permission notice shall be included in
  10. all copies or substantial portions of the Software.
  11. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  12. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  13. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  14. X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  15. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  16. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  17. Except as contained in this notice, the name of the X Consortium shall not be
  18. used in advertising or otherwise to promote the sale, use or other dealings
  19. in this Software without prior written authorization from the X Consortium.
  20. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
  21. All Rights Reserved
  22. Permission to use, copy, modify, and distribute this software and its
  23. documentation for any purpose and without fee is hereby granted,
  24. provided that the above copyright notice appear in all copies and that
  25. both that copyright notice and this permission notice appear in
  26. supporting documentation, and that the name of Digital not be
  27. used in advertising or publicity pertaining to distribution of the
  28. software without specific, written prior permission.
  29. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  30. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  31. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  32. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  33. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  34. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  35. SOFTWARE.
  36. ******************************************************************/
  37. #ifndef _XawUCSLabel_h
  38. #define _XawUCSLabel_h
  39. /***********************************************************************
  40. *
  41. * UCSLabel Widget
  42. *
  43. ***********************************************************************/
  44. #include <X11/Xaw/Label.h>
  45. #include <X11/Xaw/Simple.h>
  46. /* Resources:
  47. Name Class RepType Default Value
  48. ---- ----- ------- -------------
  49. background Background Pixel XtDefaultBackground
  50. bitmap Pixmap Pixmap None
  51. border BorderColor Pixel XtDefaultForeground
  52. borderWidth BorderWidth Dimension 1
  53. cursor Cursor Cursor None
  54. cursorName Cursor String NULL
  55. destroyCallback Callback XtCallbackList NULL
  56. encoding Encoding unsigned char XawTextEncoding8bit
  57. font Font XFontStruct* XtDefaultFont
  58. foreground Foreground Pixel XtDefaultForeground
  59. height Height Dimension text height
  60. insensitiveBorder Insensitive Pixmap Gray
  61. internalHeight Height Dimension 2
  62. internalWidth Width Dimension 4
  63. justify Justify XtJustify XtJustifyCenter
  64. label Label String NULL
  65. leftBitmap LeftBitmap Pixmap None
  66. mappedWhenManaged MappedWhenManaged Boolean True
  67. pointerColor Foreground Pixel XtDefaultForeground
  68. pointerColorBackground Background Pixel XtDefaultBackground
  69. resize Resize Boolean True
  70. sensitive Sensitive Boolean True
  71. width Width Dimension text width
  72. x Position Position 0
  73. y Position Position 0
  74. */
  75. /*
  76. * The only extra resource value needed for this widget.
  77. */
  78. #define XawTextEncodingUCS 2
  79. #if 0
  80. /*
  81. * All of this is defined by Label.h.
  82. */
  83. #define XawTextEncoding8bit 0
  84. #define XawTextEncodingChar2b 1
  85. #define XtNleftBitmap "leftBitmap"
  86. #define XtCLeftBitmap "LeftBitmap"
  87. #define XtNencoding "encoding"
  88. #define XtCEncoding "Encoding"
  89. #ifndef XtNfontSet
  90. #define XtNfontSet "fontSet"
  91. #endif
  92. #ifndef XtCFontSet
  93. #define XtCFontSet "FontSet"
  94. #endif
  95. #ifndef _XtStringDefs_h_
  96. #define XtNbitmap "bitmap"
  97. #define XtNforeground "foreground"
  98. #define XtNlabel "label"
  99. #define XtNfont "font"
  100. #define XtNinternalWidth "internalWidth"
  101. #define XtNinternalHeight "internalHeight"
  102. #define XtNresize "resize"
  103. #define XtCResize "Resize"
  104. #define XtCBitmap "Bitmap"
  105. #endif
  106. #endif
  107. /* Class record constants */
  108. extern WidgetClass ucsLabelWidgetClass;
  109. typedef struct _UCSLabelClassRec *UCSLabelWidgetClass;
  110. typedef struct _UCSLabelRec *UCSLabelWidget;
  111. #endif /* _XawUniLabel_h */