home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / Xfe / Chrome.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  3.2 KB  |  95 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/Chrome.h>                                            */
  21. /* Description:    XfeChrome widget public header file.                    */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27. #ifndef _XfeChrome_h_                            /* start Chrome.h        */
  28. #define _XfeChrome_h_
  29.  
  30. #include <Xfe/ToolBox.h>
  31. #include <Xfe/DashBoard.h>
  32. #include <Xfe/TaskBar.h>
  33. #include <Xm/RowColumn.h>
  34.  
  35. #ifdef __cplusplus                                /* start C++            */
  36. extern "C" {
  37. #endif
  38.  
  39. /*----------------------------------------------------------------------*/
  40. /*                                                                        */
  41. /* XmRChromeChildType                                                    */
  42. /*                                                                        */
  43. /*----------------------------------------------------------------------*/
  44. enum
  45. {
  46.     XmCHROME_BOTTOM_VIEW,
  47.     XmCHROME_CENTER_VIEW,
  48.     XmCHROME_DASH_BOARD,
  49.     XmCHROME_IGNORE,
  50.     XmCHROME_LEFT_VIEW,
  51.     XmCHROME_MENU_BAR,
  52.     XmCHROME_RIGHT_VIEW,
  53.     XmCHROME_TOOL_BOX,
  54.     XmCHROME_TOP_VIEW
  55. };
  56.  
  57. /*----------------------------------------------------------------------*/
  58. /*                                                                        */
  59. /* XfeBox class names                                                    */
  60. /*                                                                        */
  61. /*----------------------------------------------------------------------*/
  62. externalref WidgetClass xfeChromeWidgetClass;
  63.  
  64. typedef struct _XfeChromeClassRec *            XfeChromeWidgetClass;
  65. typedef struct _XfeChromeRec *                XfeChromeWidget;
  66.  
  67. /*----------------------------------------------------------------------*/
  68. /*                                                                        */
  69. /* XfeBox subclass test macro                                            */
  70. /*                                                                        */
  71. /*----------------------------------------------------------------------*/
  72. #define XfeIsChrome(w)    XtIsSubclass(w,xfeChromeWidgetClass)
  73.  
  74. /*----------------------------------------------------------------------*/
  75. /*                                                                        */
  76. /* XfeChrome public methods                                                */
  77. /*                                                                        */
  78. /*----------------------------------------------------------------------*/
  79. extern Widget
  80. XfeCreateChrome                    (Widget                pw,
  81.                                  String                name,
  82.                                  Arg *                av,
  83.                                  Cardinal            ac);
  84. /*----------------------------------------------------------------------*/
  85. extern Widget
  86. XfeChromeGetComponent            (Widget                w,
  87.                                  unsigned char        component);
  88. /*----------------------------------------------------------------------*/
  89.  
  90. #ifdef __cplusplus                                /* end C++                */
  91. }
  92. #endif
  93.  
  94. #endif                                            /* end Chrome.h            */
  95.