home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / Xfe / BmCascadeP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  3.9 KB  |  109 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/BmCascadeP.h>                                        */
  21. /* Description:    XfeBmCascade widget private header file.                */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27. #ifndef _XfeBmCascadeP_h_                        /* start BmCascadeP.h    */
  28. #define _XfeBmCascadeP_h_
  29.  
  30. #include <Xfe/PrimitiveP.h>
  31. #include <Xfe/BmCascade.h>
  32. #include <Xm/CascadeBP.h>
  33.  
  34. #ifdef __cplusplus                                /* start C++            */
  35. extern "C" {
  36. #endif
  37.    
  38. /*----------------------------------------------------------------------*/
  39. /*                                                                        */
  40. /* XfeBmCascadeClassRec                                                    */
  41. /*                                                                        */
  42. /*----------------------------------------------------------------------*/
  43. typedef struct
  44. {
  45.     XtPointer        extension;                    /* Extension            */
  46. } XfeBmCascadeClassPart;
  47.  
  48. /*----------------------------------------------------------------------*/
  49. /*                                                                        */
  50. /* XfeBmCascadePart                                                        */
  51. /*                                                                        */
  52. /*----------------------------------------------------------------------*/
  53. typedef struct _XfeBmCascadeClassRec
  54. {
  55.     CoreClassPart                core_class;            /* Core class        */
  56.     XmPrimitiveClassPart        primitive_class;    /* XmPrimitive        */
  57.     XmLabelClassPart            label_class;        /* XmLabel            */
  58.     XmCascadeButtonClassPart    cascade_button_class;/* XmCascadeButton    */
  59.     XfeBmCascadeClassPart        bm_cascade_class;    /* XfeBmCascade        */
  60. } XfeBmCascadeClassRec;
  61.  
  62. externalref XfeBmCascadeClassRec xfeBmCascadeClassRec;
  63.  
  64. /*----------------------------------------------------------------------*/
  65. /*                                                                        */
  66. /* XfeBmCascadeRec                                                        */
  67. /*                                                                        */
  68. /*----------------------------------------------------------------------*/
  69. typedef struct _XfeBmCascadePart
  70. {
  71.     /* Pixmap resources */
  72.     Pixmap                arm_pixmap;                    /* Arm pixmap        */
  73.     Pixmap                arm_pixmap_mask;            /* Arm pixmap mask    */
  74.     Pixmap                label_pixmap_mask;            /* Label pixmap mask*/
  75.     unsigned char        accent_type;                /* Accent type        */
  76.  
  77.     /* Private Data Members */
  78.     GC                    pixmap_GC;                    /* Pixmap gc        */
  79.     Dimension            pixmap_width;
  80.     Dimension            pixmap_height;
  81. } XfeBmCascadePart;
  82.  
  83. /*----------------------------------------------------------------------*/
  84. /*                                                                        */
  85. /* XfeBmCascadePart                                                        */
  86. /*                                                                        */
  87. /*----------------------------------------------------------------------*/
  88. typedef struct _XfeBmCascadeRec
  89. {
  90.     CorePart                core;                /* Core Part            */
  91.     XmPrimitivePart            primitive;            /* XmPrimitive Part        */
  92.     XmLabelPart                label;                /* XmLabel Part            */
  93.     XmCascadeButtonPart        cascade_button;        /* XmCascadeButton Part    */
  94.     XfeBmCascadePart        bm_cascade;            /* XfeBmCascade part    */
  95. } XfeBmCascadeRec;
  96.  
  97. /*----------------------------------------------------------------------*/
  98. /*                                                                        */
  99. /* XfeBmCascadePart Access Macro                                        */
  100. /*                                                                        */
  101. /*----------------------------------------------------------------------*/
  102. #define _XfeBmCascadePart(w) &(((XfeBmCascadeWidget) w) -> bm_cascade)
  103.  
  104. #ifdef __cplusplus                                /* end C++                */
  105. }
  106. #endif
  107.  
  108. #endif                                            /* end BmCascadeP.h        */
  109.