home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / Xfe / GeometryP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  4.5 KB  |  139 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. /*-----------------------------------------*/
  19. /*                                                                        */
  20. /* Name:        <Xfe/GeometryP.h>                                        */
  21. /* Description:    Xfe geometry functions private header.                    */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27. #ifndef _XfeGeometryP_h_                        /* start GeometryP.h    */
  28. #define _XfeGeometryP_h_
  29.  
  30. #ifdef __cplusplus                                /* start C++            */
  31. extern "C" {
  32. #endif
  33.  
  34. #include <Xm/XmP.h>
  35. #include <Xfe/Geometry.h>
  36.  
  37. /*----------------------------------------------------------------------*/
  38. /*                                                                        */
  39. /* XfeGeometry                                                            */
  40. /*                                                                        */
  41. /*----------------------------------------------------------------------*/
  42. typedef struct
  43. {
  44.     int x;
  45.     int y;
  46.     int width;
  47.     int height;
  48. } XfeGeometryRec,*XfeGeometry;
  49.  
  50. /*----------------------------------------------------------------------*/
  51. /*                                                                        */
  52. /* XfeDimensions                                                        */
  53. /*                                                                        */
  54. /*----------------------------------------------------------------------*/
  55. typedef struct
  56. {
  57.     int width;
  58.     int height;
  59. } XfeDimensionsRec,*XfeDimensions;
  60.  
  61. /*----------------------------------------------------------------------*/
  62. /*                                                                        */
  63. /* XfePosition                                                            */
  64. /*                                                                        */
  65. /*----------------------------------------------------------------------*/
  66. typedef struct
  67. {
  68.     int x;
  69.     int y;
  70. } XfePositionRec,*XfePosition;
  71.  
  72. /*----------------------------------------------------------------------*/
  73. /*                                                                        */
  74. /* Geometry defines                                                        */
  75. /*                                                                        */
  76. /*----------------------------------------------------------------------*/
  77. #define XfeGEOMETRY_INVALID_DIMENSION -1
  78.  
  79. /*----------------------------------------------------------------------*/
  80. /*                                                                        */
  81. /* Misc                                                                    */
  82. /*                                                                        */
  83. /*----------------------------------------------------------------------*/
  84. extern Dimension
  85. _XfeHeightCenter                (Widget            one,
  86.                                  Widget            two);
  87. /*----------------------------------------------------------------------*/
  88. extern Dimension
  89. _XfeWidthCenter                    (Widget            one,
  90.                                  Widget            two);
  91. /*----------------------------------------------------------------------*/
  92.  
  93. /*----------------------------------------------------------------------*/
  94. /*                                                                        */
  95. /* Geometry                                                                */
  96. /*                                                                        */
  97. /*----------------------------------------------------------------------*/
  98. extern void                        
  99. _XfeConfigureWidget                (Widget            w,
  100.                                  int            x,
  101.                                  int            y,
  102.                                  int            width,
  103.                                  int            height);
  104. /*----------------------------------------------------------------------*/
  105. extern void                        
  106. _XfeConfigureOrHideWidget        (Widget            w,
  107.                                  int            x,
  108.                                  int            y,
  109.                                  int            width,
  110.                                  int            height);
  111. /*----------------------------------------------------------------------*/
  112. extern void
  113. _XfeResizeWidget                (Widget            w,
  114.                                  int            width,
  115.                                  int            height);
  116. /*----------------------------------------------------------------------*/
  117. extern void
  118. _XfeMoveWidget                    (Widget            w,
  119.                                  int            x,
  120.                                  int            y);
  121. /*----------------------------------------------------------------------*/
  122. extern void
  123. _XfePreferredGeometry            (Widget            w,
  124.                                  Dimension *    width_out,
  125.                                  Dimension *    height_out);
  126. /*----------------------------------------------------------------------*/
  127. extern void
  128. _XfeMinimumGeometry                (Widget            w,
  129.                                  Dimension *    width_out,
  130.                                  Dimension *    height_out);
  131. /*----------------------------------------------------------------------*/
  132.  
  133.  
  134. #ifdef __cplusplus                                /* end C++                */
  135. }
  136. #endif
  137.  
  138. #endif                                            /* end GeometryP.h        */
  139.