home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / Xfe / Pane.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  4.2 KB  |  129 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/Pane.h>                                            */
  21. /* Description:    XfePane widget public header file.                        */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27. #ifndef _XfePane_h_                                /* start Pane.h            */
  28. #define _XfePane_h_
  29.  
  30. #include <Xfe/Xfe.h>
  31. #include <Xfe/Oriented.h>
  32.  
  33. #ifdef __cplusplus                                /* start C++            */
  34. extern "C" {
  35. #endif
  36.  
  37. /*----------------------------------------------------------------------*/
  38. /*                                                                        */
  39. /* XmRPaneChildType                                                        */
  40. /*                                                                        */
  41. /*----------------------------------------------------------------------*/
  42. enum
  43. {
  44.     XmPANE_CHILD_NONE,
  45.     XmPANE_CHILD_ATTACHMENT_ONE,
  46.     XmPANE_CHILD_ATTACHMENT_TWO,
  47.     XmPANE_CHILD_WORK_AREA_ONE,
  48.     XmPANE_CHILD_WORK_AREA_TWO
  49. };
  50. /*----------------------------------------------------------------------*/
  51.  
  52. /*----------------------------------------------------------------------*/
  53. /*                                                                        */
  54. /* XmRPaneAttachmentType                                                */
  55. /*                                                                        */
  56. /*----------------------------------------------------------------------*/
  57. enum
  58. {
  59.     XmPANE_CHILD_ATTACH_NONE,
  60.     XmPANE_CHILD_ATTACH_BOTTOM,
  61.     XmPANE_CHILD_ATTACH_LEFT,
  62.     XmPANE_CHILD_ATTACH_RIGHT,
  63.     XmPANE_CHILD_ATTACH_TOP
  64. };
  65. /*----------------------------------------------------------------------*/
  66.  
  67. /*----------------------------------------------------------------------*/
  68. /*                                                                        */
  69. /* XmRPaneDragModeType                                                    */
  70. /*                                                                        */
  71. /*----------------------------------------------------------------------*/
  72. enum
  73. {
  74.     XmPANE_DRAG_PRESERVE_ONE,
  75.     XmPANE_DRAG_PRESERVE_TWO,
  76.     XmPANE_DRAG_PRESERVE_RATIO
  77. };
  78. /*----------------------------------------------------------------------*/
  79.  
  80. /*----------------------------------------------------------------------*/
  81. /*                                                                        */
  82. /* XmRSashType                                                            */
  83. /*                                                                        */
  84. /*----------------------------------------------------------------------*/
  85. enum
  86. {
  87.     XmPANE_SASH_DOUBLE_LINE,
  88.     XmPANE_SASH_FILLED_RECTANGLE,
  89.     XmPANE_SASH_LIVE,
  90.     XmPANE_SASH_RECTANGLE,
  91.     XmPANE_SASH_SINGLE_LINE
  92. };
  93. /*----------------------------------------------------------------------*/
  94.  
  95. /*----------------------------------------------------------------------*/
  96. /*                                                                        */
  97. /* XfeBox class names                                                    */
  98. /*                                                                        */
  99. /*----------------------------------------------------------------------*/
  100. externalref WidgetClass xfePaneWidgetClass;
  101.  
  102. typedef struct _XfePaneClassRec *            XfePaneWidgetClass;
  103. typedef struct _XfePaneRec *                XfePaneWidget;
  104.  
  105. /*----------------------------------------------------------------------*/
  106. /*                                                                        */
  107. /* XfeBox subclass test macro                                            */
  108. /*                                                                        */
  109. /*----------------------------------------------------------------------*/
  110. #define XfeIsPane(w)    XtIsSubclass(w,xfePaneWidgetClass)
  111.  
  112. /*----------------------------------------------------------------------*/
  113. /*                                                                        */
  114. /* XfePane public methods                                                */
  115. /*                                                                        */
  116. /*----------------------------------------------------------------------*/
  117. extern Widget
  118. XfeCreatePane                    (Widget        pw,
  119.                                  String        name,
  120.                                  Arg *        av,
  121.                                  Cardinal    ac);
  122. /*----------------------------------------------------------------------*/
  123.  
  124. #ifdef __cplusplus                                /* end C++                */
  125. }
  126. #endif
  127.  
  128. #endif                                            /* end Pane.h            */
  129.