PageRenderTime 87ms CodeModel.GetById 8ms RepoModel.GetById 0ms app.codeStats 0ms

/xts5/include/X11/Xaw/PanedP.h

#
C Header | 229 lines | 73 code | 23 blank | 133 comment | 0 complexity | 02aa2d562e7b250ba9cc8aaba9c29824 MD5 | raw file
  1. /*
  2. Copyright (c) 2005 X.Org Foundation L.L.C.
  3. Permission is hereby granted, free of charge, to any person obtaining a copy of
  4. this software and associated documentation files (the "Software"), to deal in
  5. the Software without restriction, including without limitation the rights to
  6. use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
  7. of the Software, and to permit persons to whom the Software is furnished to do
  8. so, subject to the following conditions:
  9. The above copyright notice and this permission notice shall be included in all
  10. 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. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  15. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  16. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  17. SOFTWARE.
  18. */
  19. /*
  20. *
  21. * Copyright (c) Applied Testing and Technology, Inc. 1995
  22. * All Rights Reserved.
  23. *
  24. * Project: VSW5
  25. *
  26. * File: xts5/include/X11/Xaw/PanedP.h
  27. *
  28. * Description:
  29. * Defines used by the version of Athena widgets include in VSW5
  30. *
  31. * Modifications:
  32. * $Log: PanedP.h,v $
  33. * Revision 1.2 2005-11-03 08:42:01 jmichael
  34. * clean up all vsw5 paths to use xts5 instead.
  35. *
  36. * Revision 1.1.1.2 2005/04/15 14:05:07 anderson
  37. * Reimport of the base with the legal name in the copyright fixed.
  38. *
  39. * Revision 8.0 1998/12/23 23:23:06 mar
  40. * Branch point for Release 5.0.2
  41. *
  42. * Revision 7.0 1998/10/30 22:41:07 mar
  43. * Branch point for Release 5.0.2b1
  44. *
  45. * Revision 6.0 1998/03/02 05:15:39 tbr
  46. * Branch point for Release 5.0.1
  47. *
  48. * Revision 5.0 1998/01/26 03:12:11 tbr
  49. * Branch point for Release 5.0.1b1
  50. *
  51. * Revision 4.0 1995/12/15 08:39:12 tbr
  52. * Branch point for Release 5.0.0
  53. *
  54. * Revision 3.1 1995/12/15 00:35:17 andy
  55. * Prepare for GA Release
  56. *
  57. */
  58. /***********************************************************
  59. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  60. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  61. All Rights Reserved
  62. Permission to use, copy, modify, and distribute this software and its
  63. documentation for any purpose and without fee is hereby granted,
  64. provided that the above copyright notice appear in all copies and that
  65. both that copyright notice and this permission notice appear in
  66. supporting documentation, and that the names of Digital or MIT not be
  67. used in advertising or publicity pertaining to distribution of the
  68. software without specific, written prior permission.
  69. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  70. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  71. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  72. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  73. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  74. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  75. SOFTWARE.
  76. ******************************************************************/
  77. /*
  78. * PanedP.h - Paned Composite Widget's private header file.
  79. *
  80. * Updated and significantly modified from the Athena VPaned Widget.
  81. *
  82. * Date: March 1, 1989
  83. *
  84. * By: Chris D. Peterson
  85. * MIT X Consortium
  86. * kit@expo.lcs.mit.edu
  87. */
  88. #ifndef _XawPanedP_h
  89. #define _XawPanedP_h
  90. #include <X11/Xaw/Paned.h>
  91. /*********************************************************************
  92. *
  93. * Paned Widget Private Data
  94. *
  95. *********************************************************************/
  96. /* New fields for the Paned widget class record */
  97. typedef struct _PanedClassPart {
  98. int foo; /* keep compiler happy. */
  99. } PanedClassPart;
  100. /* Full Class record declaration */
  101. typedef struct _PanedClassRec {
  102. CoreClassPart core_class;
  103. CompositeClassPart composite_class;
  104. ConstraintClassPart constraint_class;
  105. PanedClassPart paned_class;
  106. } PanedClassRec;
  107. extern PanedClassRec panedClassRec;
  108. /* Paned constraint record */
  109. typedef struct _PanedConstraintsPart {
  110. /* Resources. */
  111. Dimension min; /* Minimum height */
  112. Dimension max; /* Maximum height */
  113. Boolean allow_resize; /* TRUE iff child resize requests are ok */
  114. Boolean show_grip; /* TRUE iff child will have grip below it,
  115. when it is not the bottom pane. */
  116. Boolean skip_adjust; /* TRUE iff child's height should not be */
  117. /* changed without explicit user action. */
  118. int position; /* position location in Paned (relative to
  119. other children) ** NIY ** */
  120. Dimension preferred_size; /* The Preferred size of the pane.
  121. Iff this is zero then ask child for size.*/
  122. Boolean resize_to_pref; /* resize this pane to its preferred size
  123. on a resize or change managed after
  124. realize. */
  125. /* Private state. */
  126. Position delta; /* Desired Location */
  127. Position olddelta; /* The last value of dy. */
  128. Boolean paned_adjusted_me; /* Has the vpaned adjusted this widget w/o
  129. user interaction to make things fit? */
  130. Dimension wp_size; /* widget's preferred size */
  131. int size; /* the size the widget will actually get. */
  132. Widget grip; /* The grip for this child */
  133. } PanedConstraintsPart, *Pane;
  134. typedef struct _PanedConstraintsRec {
  135. PanedConstraintsPart paned;
  136. } PanedConstraintsRec, *PanedConstraints;
  137. /*
  138. * The Pane Stack Structure.
  139. */
  140. typedef struct _PaneStack {
  141. struct _PaneStack * next; /* The next element on the stack. */
  142. Pane pane; /* The pane in this element on the stack. */
  143. int start_size; /* The size of this element when it was pushed
  144. onto the stack. */
  145. } PaneStack;
  146. /* New Fields for the Paned widget record */
  147. typedef struct {
  148. /* resources */
  149. Position grip_indent; /* Location of grips (offset
  150. from right margin) */
  151. Boolean refiguremode; /* Whether to refigure changes
  152. right now */
  153. XtTranslations grip_translations; /* grip translation table */
  154. Pixel internal_bp; /* color of internal borders. */
  155. Dimension internal_bw; /* internal border width. */
  156. XtOrientation orientation; /* Orientation of paned widget. */
  157. Cursor cursor; /* Cursor for paned window */
  158. Cursor grip_cursor; /* inactive grip cursor */
  159. Cursor v_grip_cursor; /* inactive vert grip cursor */
  160. Cursor h_grip_cursor; /* inactive horiz grip cursor */
  161. Cursor adjust_this_cursor; /* active grip cursor: T */
  162. Cursor v_adjust_this_cursor; /* active vert grip cursor: T */
  163. Cursor h_adjust_this_cursor; /* active horiz grip cursor: T */
  164. /* vertical. */
  165. Cursor adjust_upper_cursor; /* active grip cursor: U */
  166. Cursor adjust_lower_cursor; /* active grip cursor: D */
  167. /* horizontal. */
  168. Cursor adjust_left_cursor; /* active grip cursor: U */
  169. Cursor adjust_right_cursor; /* active grip cursor: D */
  170. /* private */
  171. Boolean recursively_called; /* for ChangeManaged */
  172. Boolean resize_children_to_pref; /* override constrain resources
  173. and resize all children to
  174. preferred size. */
  175. int start_loc; /* mouse origin when adjusting */
  176. Widget whichadd; /* Which pane to add changes to */
  177. Widget whichsub; /* Which pane to sub changes from */
  178. GC normgc; /* GC to use when drawing borders */
  179. GC invgc; /* GC to use when erasing borders */
  180. GC flipgc; /* GC to use when animating
  181. borders */
  182. int num_panes; /* count of managed panes */
  183. PaneStack * stack; /* The pane stack for this widget.*/
  184. } PanedPart;
  185. /**************************************************************************
  186. *
  187. * Full instance record declaration
  188. *
  189. **************************************************************************/
  190. typedef struct _PanedRec {
  191. CorePart core;
  192. CompositePart composite;
  193. ConstraintPart constraint;
  194. PanedPart paned;
  195. } PanedRec;
  196. #endif /* _XawPanedP_h */
  197. /* DON'T ADD STUFF AFTER THIS #endif */