home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / doc / Xaw / SmeLine < prev    next >
Encoding:
Text File  |  1989-12-21  |  2.0 KB  |  78 lines

  1. .NH 2
  2. SmeLine Object
  3. .LP
  4. .XS
  5.     SmeLine Object
  6. .XE
  7. .IN "SmeLine object" "" "@DEF@"
  8. .sp
  9. .Ds 0
  10. .TA 2.0i
  11. .ta 2.0i
  12. Application Header file    <X11/Xaw/SmeLine.h>
  13. .IN "SmeLine.h" ""
  14. Class Header file    <X11/Xaw/SmeLineP.h>
  15. .IN "SmeLineP.h" ""
  16. Class        smeLineObjectClass
  17. .IN "smeLineObjectClass" ""
  18. Class Name    SmeLine
  19. .IN "SmeLine object" "class name"
  20. Superclass    Sme
  21. .De
  22. .sp
  23. .LP
  24. The SmeLine object is used to add a horizontal line or menu separator to
  25. a menu.  Since each menu entry is an independent object, the application
  26. is able to change the color, height, and other attributes of the menu
  27. entries, on an entry by entry basis.  This entry is not selectable, and
  28. will not highlight when the pointer cursor is over it.
  29. .NH 3
  30. Resources
  31. .IN "SmeLine object" "resources"
  32. .LP
  33. The resources associated with the SmeLine object are defined in this section,
  34. and affect only the single menu entry specified by this object.
  35. .ps 9
  36. .nr PS 9
  37. .vs 11
  38. .nr VS 11
  39. .TS H
  40. lw(1i) lw(1i) lw(1i) lw(.5i) lw(2i).
  41. _
  42. .sp 3p
  43. .TB
  44. Name    Class    Type    Notes    Default Value
  45. .sp 3p
  46. _
  47. .TH
  48. .R
  49. .sp 3p
  50. destroyCallback    Callback    XtCallbackList        NULL
  51. foreground    Foreground    Pixel        XtDefaultForeground
  52. height    Height    Dimension        \fBlineWidth\fP
  53. lineWidth    LineWidth    Dimension        1
  54. stipple    Stipple    Pixmap        XtUnspecifiedPixmap
  55. width    Width    Dimension        1
  56. .sp 3p
  57. _
  58. .TE
  59. .ps 11
  60. .nr PS 11
  61. .vs 13
  62. .nr VS 13
  63. .Dc
  64. .IP \fBforeground\fP 1.5i
  65. A pixel value which indexes the SimpleMenu's colormap to derive the
  66. foreground color used to draw the separator line.
  67. .Hw
  68. Keep in mind that the SimpleMenu widget will force all menu items to
  69. be the width of the widest entry.  Thus the width is generally not
  70. very important.
  71. .IP \fBlineWidth\fP 1.5i
  72. The width of the horizontal line that is to be displayed.
  73. .IP \fBstipple\fP 1.5i
  74. If a bitmap is specified for this resource, the line will be stippled
  75. through it.  This allows the menu separator to be rendered as something
  76. more exciting than just a line.  For instance, if you define a stipple
  77. that is a chain link, then your menu separators will look like chains.
  78.