home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / Xfe / FrameShellP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  5.6 KB  |  157 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/FrameShellP.h>                                        */
  21. /* Description:    XfeFrameShell widget private header file.                */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27. #ifndef _XfeFrameShellP_h_                        /* start FrameShellP.h    */
  28. #define _XfeFrameShellP_h_
  29.  
  30. #include <Xfe/FrameShell.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. /* XfeFrameShellClassPart                                                */
  42. /*                                                                        */
  43. /*----------------------------------------------------------------------*/
  44. typedef struct
  45. {
  46.     XtPointer            extension;                    /* extension        */ 
  47. } XfeFrameShellClassPart;
  48.  
  49. /*----------------------------------------------------------------------*/
  50. /*                                                                        */
  51. /* XfeFrameShellClassRec                                                */
  52. /*                                                                        */
  53. /*----------------------------------------------------------------------*/
  54. typedef struct _XfeFrameShellClassRec
  55. {
  56.       CoreClassPart                core_class;
  57.     CompositeClassPart            composite_class;
  58.     ShellClassPart                shell_class;
  59.     WMShellClassPart            wm_shell_class;
  60.     VendorShellClassPart        vendor_shell_class;
  61.     TopLevelShellClassPart        top_level_shell_class;
  62.     XfeFrameShellClassPart        xfe_frame_shell_class;
  63. } XfeFrameShellClassRec;
  64.  
  65. externalref XfeFrameShellClassRec xfeFrameShellClassRec;
  66.  
  67. /*----------------------------------------------------------------------*/
  68. /*                                                                        */
  69. /* XfeFrameShellPart                                                    */
  70. /*                                                                        */
  71. /*----------------------------------------------------------------------*/
  72. typedef struct _XfeFrameShellPart
  73. {
  74.     /* Realization callback resources */
  75.     XtCallbackList        realize_callback;        /* Realize cb            */
  76.     XtCallbackList        before_realize_callback;/* Before realize cb    */
  77.  
  78.     /* Configure callback resources */
  79.     XtCallbackList        resize_callback;        /* Resize cb            */
  80.     XtCallbackList        before_resize_callback;    /* Before resize cb        */
  81.     XtCallbackList        move_callback;            /* Move cb                */
  82.  
  83.     /* WM Protocol callback resources */
  84.     XtCallbackList        delete_window_callback;    /* Delete window cb        */
  85.     XtCallbackList        save_yourself_callback;    /* Save yourself cb        */
  86.  
  87.     /* Mapping callbacks */
  88.     XtCallbackList        first_map_callback;        /* First map cb            */
  89.     XtCallbackList        map_callback;            /* Map cb                */
  90.     XtCallbackList        unmap_callback;            /* Unmap cb                */
  91.  
  92.     /* Title changed callback */
  93.     XtCallbackList        title_changed_callback;    /* Title changed cb        */
  94.  
  95.     /* Tracking resources */
  96.     Boolean                track_delete_window;    /* Track selete window ?*/
  97.     Boolean                track_editres;            /* Track editres ?        */
  98.     Boolean                track_mapping;            /* Track mapping ?        */
  99.     Boolean                track_position;            /* Track position ?        */
  100.     Boolean                track_save_yourself;    /* Track session man ?    */
  101.     Boolean                track_size;                /* Track size ?            */
  102.  
  103.     /* Other resources */
  104.     Boolean                has_been_mapped;        /* Has been mapped ?    */
  105.     Boolean                start_iconic;            /* Start iconic ?        */
  106.  
  107.     Widget                bypass_shell;            /* Bypass shell            */
  108.  
  109.  
  110.     /* Private data -- Dont even look past this comment -- */
  111.  
  112. } XfeFrameShellPart;
  113.  
  114. /*----------------------------------------------------------------------*/
  115. /*                                                                        */
  116. /* XfeFrameShellRec                                                        */
  117. /*                                                                        */
  118. /*----------------------------------------------------------------------*/
  119. typedef struct _XfeFrameShellRec
  120. {
  121.     CorePart                core;
  122.     CompositePart            composite;
  123.     ShellPart                shell;
  124.     WMShellPart                wm;
  125.     VendorShellPart            vendor;
  126.     TopLevelShellPart        top_level_shell;
  127.     XfeFrameShellPart        xfe_frame_shell;
  128. } XfeFrameShellRec;
  129.  
  130. /*----------------------------------------------------------------------*/
  131. /*                                                                        */
  132. /* XfeFrameShellPart Access Macro                                        */
  133. /*                                                                        */
  134. /*----------------------------------------------------------------------*/
  135. #define _XfeFrameShellPart(w) &(((XfeFrameShellWidget) w) -> xfe_frame_shell)
  136.  
  137. /*----------------------------------------------------------------------*/
  138. /*                                                                        */
  139. /* XmVendorShell Access Macro                                            */
  140. /*                                                                        */
  141. /*----------------------------------------------------------------------*/
  142. #define _XfeVendorShellPart(w) &(((XmVendorShellExtObject) w) -> vendor)
  143.  
  144. /*----------------------------------------------------------------------*/
  145. /*                                                                        */
  146. /* WMShellPart Access Macro                                                */
  147. /*                                                                        */
  148. /*----------------------------------------------------------------------*/
  149. #define _WMShellPart(w) &(((WMShellWidget) w) -> wm)
  150.  
  151. #ifdef __cplusplus                                /* end C++                */
  152. }
  153. #endif
  154.  
  155. #endif                                            /* end FrameShellP.h    */
  156.  
  157.