PageRenderTime 442ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/xpaint-2.9.8.3/Xaw3dxft/BoxP.h

#
C Header | 108 lines | 24 code | 15 blank | 69 comment | 0 complexity | 26fb84ae3cdff68071f55e12c3b81b31 MD5 | raw file
Possible License(s): GPL-3.0
  1. /*
  2. * $XConsortium: BoxP.h,v 1.18 94/04/17 20:11:56 kaleb Exp $
  3. */
  4. /***********************************************************
  5. Copyright (c) 1987, 1988, 1994 X Consortium
  6. Permission is hereby granted, free of charge, to any person obtaining a copy
  7. of this software and associated documentation files (the "Software"), to deal
  8. in the Software without restriction, including without limitation the rights
  9. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  10. copies of the Software, and to permit persons to whom the Software is
  11. furnished to do so, subject to the following conditions:
  12. The above copyright notice and this permission notice shall be included in
  13. all copies or substantial portions of the Software.
  14. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  18. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  19. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  20. Except as contained in this notice, the name of the X Consortium shall not be
  21. used in advertising or otherwise to promote the sale, use or other dealings
  22. in this Software without prior written authorization from the X Consortium.
  23. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
  24. All Rights Reserved
  25. Permission to use, copy, modify, and distribute this software and its
  26. documentation for any purpose and without fee is hereby granted,
  27. provided that the above copyright notice appear in all copies and that
  28. both that copyright notice and this permission notice appear in
  29. supporting documentation, and that the name of Digital not be
  30. used in advertising or publicity pertaining to distribution of the
  31. software without specific, written prior permission.
  32. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  33. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  34. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  35. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  36. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  37. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  38. SOFTWARE.
  39. ******************************************************************/
  40. /*
  41. * BoxP.h - Private definitions for Box widget
  42. *
  43. */
  44. #ifndef _XawBoxP_h
  45. #define _XawBoxP_h
  46. /***********************************************************************
  47. *
  48. * Box Widget Private Data
  49. *
  50. ***********************************************************************/
  51. #include <X11/Xaw3dxft/Box.h>
  52. #include <X11/Xmu/Converters.h>
  53. /* New fields for the Box widget class record */
  54. typedef struct {int empty;} BoxClassPart;
  55. /* Full class record declaration */
  56. typedef struct _BoxClassRec {
  57. CoreClassPart core_class;
  58. CompositeClassPart composite_class;
  59. BoxClassPart box_class;
  60. } BoxClassRec;
  61. extern BoxClassRec boxClassRec;
  62. /* New fields for the Box widget record */
  63. typedef struct {
  64. /* resources */
  65. Dimension h_space, v_space;
  66. XtOrientation orientation;
  67. /* private state */
  68. Dimension preferred_width, preferred_height;
  69. Dimension last_query_width, last_query_height;
  70. XtGeometryMask last_query_mode;
  71. } BoxPart;
  72. /****************************************************************
  73. *
  74. * Full instance record declaration
  75. *
  76. ****************************************************************/
  77. typedef struct _BoxRec {
  78. CorePart core;
  79. CompositePart composite;
  80. BoxPart box;
  81. } BoxRec;
  82. #endif /* _XawBoxP_h */