home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / Xfe / ToolItemP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  3.5 KB  |  106 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/ToolItemP.h>                                        */
  21. /* Description:    XfeToolItem widget private header file.                    */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27. #ifndef _XfeToolItemP_h_                        /* start ToolItemP.h    */
  28. #define _XfeToolItemP_h_
  29.  
  30. #include <Xfe/ToolItem.h>
  31. #include <Xfe/ManagerP.h>
  32.  
  33. #ifdef __cplusplus                                /* start C++            */
  34. extern "C" {
  35. #endif
  36.    
  37. /*----------------------------------------------------------------------*/
  38. /*                                                                        */
  39. /* XfeToolItemClassPart                                                    */
  40. /*                                                                        */
  41. /*----------------------------------------------------------------------*/
  42. typedef struct
  43. {
  44.     XtPointer        extension;                    /* Extension            */ 
  45. } XfeToolItemClassPart;
  46.  
  47. /*----------------------------------------------------------------------*/
  48. /*                                                                        */
  49. /* XfeToolItemClassRec                                                    */
  50. /*                                                                        */
  51. /*----------------------------------------------------------------------*/
  52. typedef struct _XfeToolItemClassRec
  53. {
  54.     CoreClassPart                core_class;
  55.     CompositeClassPart            composite_class;
  56.     ConstraintClassPart            constraint_class;
  57.     XmManagerClassPart            manager_class;
  58.     XfeManagerClassPart            xfe_manager_class;
  59.     XfeToolItemClassPart        xfe_tool_item_class;
  60. } XfeToolItemClassRec;
  61.  
  62. externalref XfeToolItemClassRec xfeToolItemClassRec;
  63.  
  64. /*----------------------------------------------------------------------*/
  65. /*                                                                        */
  66. /* XfeToolItemPart                                                        */
  67. /*                                                                        */
  68. /*----------------------------------------------------------------------*/
  69. typedef struct _XfeToolItemPart
  70. {
  71.     /* Resources */
  72.     Widget                item;                    /* Item                    */
  73.     Widget                logo;                    /* Logo                    */
  74.     Dimension            spacing;                /* Spacing                */
  75.  
  76. } XfeToolItemPart;
  77.  
  78. /*----------------------------------------------------------------------*/
  79. /*                                                                        */
  80. /* XfeToolItemRec                                                        */
  81. /*                                                                        */
  82. /*----------------------------------------------------------------------*/
  83. typedef struct _XfeToolItemRec
  84. {
  85.    CorePart                core;
  86.    CompositePart        composite;
  87.    ConstraintPart        constraint;
  88.    XmManagerPart        manager;
  89.    XfeManagerPart        xfe_manager;
  90.    XfeToolItemPart        xfe_tool_item;
  91. } XfeToolItemRec;
  92.  
  93. /*----------------------------------------------------------------------*/
  94. /*                                                                        */
  95. /* XfeToolItemPart Access Macro                                            */
  96. /*                                                                        */
  97. /*----------------------------------------------------------------------*/
  98. #define _XfeToolItemPart(w) &(((XfeToolItemWidget) w) -> xfe_tool_item)
  99.  
  100. #ifdef __cplusplus                                /* end C++                */
  101. }
  102. #endif
  103.  
  104. #endif                                            /* end ToolItemP.h        */
  105.  
  106.