ViewP.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  6. * These libraries and programs are free software; you can
  7. * redistribute them and/or modify them under the terms of the GNU
  8. * Lesser General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * These libraries and programs are distributed in the hope that
  13. * they will be useful, but WITHOUT ANY WARRANTY; without even the
  14. * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. * PURPOSE. See the GNU Lesser General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these librararies and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /* $XConsortium: ViewP.h /main/3 1995/10/26 09:35:17 rswiston $ */
  24. /**---------------------------------------------------------------------
  25. ***
  26. *** file: ViewP.h
  27. ***
  28. *** project: MotifPlus Widgets
  29. ***
  30. *** description: Private include file for DtView class.
  31. ***
  32. ***
  33. *** (c) Copyright 1990 by Hewlett-Packard Company.
  34. ***
  35. ***
  36. ***-------------------------------------------------------------------*/
  37. #ifndef _DtViewP_h
  38. #define _DtViewP_h
  39. #include <Xm/XmP.h>
  40. #include <Xm/BulletinBP.h>
  41. #include <Xm/FormP.h>
  42. #include <Dt/View.h>
  43. /*-------------------------------------------------------------
  44. ** Class Structure
  45. */
  46. /* Class Part
  47. */
  48. typedef struct _DtViewClassPart
  49. {
  50. caddr_t extension;
  51. } DtViewClassPart;
  52. /* Full Class Record
  53. */
  54. typedef struct _DtViewClassRec
  55. {
  56. CoreClassPart core_class;
  57. CompositeClassPart composite_class;
  58. ConstraintClassPart constraint_class;
  59. XmManagerClassPart manager_class;
  60. XmBulletinBoardClassPart bulletin_board_class;
  61. XmFormClassPart form_class;
  62. DtViewClassPart view_class;
  63. } DtViewClassRec;
  64. /* Actual Class
  65. */
  66. extern DtViewClassRec dtViewClassRec;
  67. /*-------------------------------------------------------------
  68. ** Instance Structure
  69. */
  70. /* Instance Part
  71. */
  72. typedef struct _DtViewPart
  73. {
  74. Dimension width_increment;
  75. Dimension height_increment;
  76. Dimension left_inset;
  77. Dimension right_inset;
  78. Dimension top_inset;
  79. Dimension bottom_inset;
  80. unsigned char box_type;
  81. Boolean subpanel_unpost_on_select;
  82. Boolean subpanel_torn;
  83. } DtViewPart;
  84. /* Full Instance Record
  85. */
  86. typedef struct _DtViewRec
  87. {
  88. CorePart core;
  89. CompositePart composite;
  90. ConstraintPart constraint;
  91. XmManagerPart manager;
  92. XmBulletinBoardPart bulletin_board;
  93. XmFormPart form;
  94. DtViewPart view;
  95. } DtViewRec;
  96. /*-------------------------------------------------------------
  97. ** Constraint Structure
  98. */
  99. /* Constraint Part
  100. */
  101. typedef struct _DtViewConstraintPart
  102. {
  103. unsigned char foo_bar;
  104. } DtViewConstraintPart, * DtViewConstraint;
  105. /* Full Constraint Record
  106. */
  107. typedef struct _DtViewConstraintRec
  108. {
  109. XmManagerConstraintPart manager_constraint;
  110. XmFormConstraintPart form_constraint;
  111. DtViewConstraintPart view_constraint;
  112. } DtViewConstraintRec, * DtViewConstraintPtr;
  113. /*-------------------------------------------------------------
  114. ** Class and Instance Macros
  115. */
  116. /* DtView Class Macros
  117. */
  118. /* DtView Instance Macros
  119. */
  120. #define M_BottomShadowColor(m) (m -> manager.bottom_shadow_color)
  121. #define M_TopShadowColor(m) (m -> manager.top_shadow_color)
  122. #define M_HighlightColor(m) (m -> manager.highlight_color)
  123. #define M_BackgroundPixmap(m) (m -> core.background_pixmap)
  124. #define M_LeftInset(m) (m -> view.left_inset)
  125. #define M_RightInset(m) (m -> view.right_inset)
  126. #define M_TopInset(m) (m -> view.top_inset)
  127. #define M_BottomInset(m) (m -> view.bottom_inset)
  128. #define M_BoxType(m) (m -> view.box_type)
  129. #define M_WidthIncrement(m) (m -> view.width_increment)
  130. #define M_HeightIncrement(m) (m -> view.height_increment)
  131. #endif /* _DtViewP_h */
  132. /* DON'T ADD ANYTHING AFTER THIS #endif */