home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / Xfe / BypassShellP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  5.5 KB  |  156 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/BypassShellP.h>                                    */
  21. /* Description:    XfeBypassShell widget private header file.                */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27. #ifndef _XfeBypassShellP_h_                        /* start BypassShellP.h    */
  28. #define _XfeBypassShellP_h_
  29.  
  30. #include <Xfe/BypassShell.h>
  31. #include <Xfe/ManagerP.h>
  32. #include <X11/ShellP.h>
  33. #include <Xm/VendorSEP.h>
  34.  
  35. #ifdef __cplusplus                                /* start C++            */
  36. extern "C" {
  37. #endif
  38.     
  39. /*----------------------------------------------------------------------*/
  40. /*                                                                        */
  41. /* XfeBypassShellClassPart                                                */
  42. /*                                                                        */
  43. /*----------------------------------------------------------------------*/
  44. typedef struct
  45. {
  46.     XtPointer            extension;                    /* extension        */ 
  47. } XfeBypassShellClassPart;
  48.  
  49. /*----------------------------------------------------------------------*/
  50. /*                                                                        */
  51. /* XfeBypassShellClassRec                                                */
  52. /*                                                                        */
  53. /*----------------------------------------------------------------------*/
  54. typedef struct _XfeBypassShellClassRec
  55. {
  56.       CoreClassPart                core_class;
  57.     CompositeClassPart            composite_class;
  58.     ShellClassPart                shell_class;
  59.     WMShellClassPart            wm_shell_class;
  60.     VendorShellClassPart        vendor_shell_class;
  61.     XfeBypassShellClassPart        xfe_bypass_shell_class;
  62. } XfeBypassShellClassRec;
  63.  
  64. externalref XfeBypassShellClassRec xfeBypassShellClassRec;
  65.  
  66. /*----------------------------------------------------------------------*/
  67. /*                                                                        */
  68. /* XfeBypassShellPart                                                    */
  69. /*                                                                        */
  70. /*----------------------------------------------------------------------*/
  71. typedef struct _XfeBypassShellPart
  72. {
  73.     /* Realization callback resources */
  74.     XtCallbackList        realize_callback;        /* Realize cb            */
  75.     XtCallbackList        before_realize_callback;/* Before realize cb    */
  76.  
  77.     /* Mapping callbacks */
  78.     XtCallbackList        map_callback;            /* Map cb                */
  79.     XtCallbackList        unmap_callback;            /* Unmap cb                */
  80.  
  81.     XtCallbackList        change_managed_callback;/* Change managed cb    */
  82.  
  83.     /* Shadow resources */
  84.     Pixel                bottom_shadow_color;    /* Bottom shadow color    */
  85.     Pixel                top_shadow_color;        /* Top shadow color        */
  86.     Dimension            shadow_thickness;        /* Shadow Thickness        */
  87.     unsigned char        shadow_type;            /* Shadow Type            */
  88.  
  89.     /* Cursor resources */
  90.     Cursor                cursor;                    /* Cursor                */
  91.  
  92.     /* Other resources */
  93.     Boolean                ignore_exposures;        /* Ignore_exposures     */
  94.  
  95.     /* Private data -- Dont even look past this comment -- */
  96.     GC                    bottom_shadow_GC;        /* Bottom shadow GC        */
  97.     GC                    top_shadow_GC;            /* Top shadow GC        */
  98.     Widget                managed_child;            /* Managed child        */
  99.  
  100. } XfeBypassShellPart;
  101.  
  102. /*----------------------------------------------------------------------*/
  103. /*                                                                        */
  104. /* XfeBypassShellRec                                                    */
  105. /*                                                                        */
  106. /*----------------------------------------------------------------------*/
  107. typedef struct _XfeBypassShellRec
  108. {
  109.     CorePart                core;
  110.     CompositePart            composite;
  111.     ShellPart                shell;
  112.     WMShellPart                wm;
  113.     VendorShellPart            vendor;
  114.     XfeBypassShellPart        xfe_bypass_shell;
  115. } XfeBypassShellRec;
  116.  
  117. /*----------------------------------------------------------------------*/
  118. /*                                                                        */
  119. /* XfeBypassShellPart Access Macro                                        */
  120. /*                                                                        */
  121. /*----------------------------------------------------------------------*/
  122. #define _XfeBypassShellPart(w) \
  123. &(((XfeBypassShellWidget) w) -> xfe_bypass_shell)
  124.  
  125. /*----------------------------------------------------------------------*/
  126. /*                                                                        */
  127. /* XmVendorShell Access Macro                                            */
  128. /*                                                                        */
  129. /*----------------------------------------------------------------------*/
  130. #define _XfeVendorShellPart(w) &(((XmVendorShellExtObject) w) -> vendor)
  131.  
  132. /*----------------------------------------------------------------------*/
  133. /*                                                                        */
  134. /* XfeBypassShell private methods                                        */
  135. /*                                                                        */
  136. /*----------------------------------------------------------------------*/
  137. extern Boolean
  138. _XfeBypassShellGlobalIsAlive                (void);
  139. /*----------------------------------------------------------------------*/
  140. extern Widget
  141. _XfeBypassShellGlobalAccess                (void);
  142. /*----------------------------------------------------------------------*/
  143. extern Widget
  144. _XfeBypassShellGlobalInitialize            (Widget        pw,
  145.                                          String        name,
  146.                                          Arg *        av,
  147.                                          Cardinal    ac);
  148. /*----------------------------------------------------------------------*/
  149.  
  150. #ifdef __cplusplus                                /* end C++                */
  151. }
  152. #endif
  153.  
  154. #endif                                            /* end BypassShellP.h    */
  155.  
  156.