home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / Xfe / TabP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  4.8 KB  |  130 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/TabP.h>                                            */
  21. /* Description:    XfeTab widget private header file.                        */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27. #ifndef _XfeTabP_h_                                /* start TabP.h            */
  28. #define _XfeTabP_h_
  29.  
  30. #include <Xfe/Tab.h>
  31. #include <Xfe/ButtonP.h>
  32.  
  33. #ifdef __cplusplus                                /* start C++            */
  34. extern "C" {
  35. #endif
  36.    
  37. /*----------------------------------------------------------------------*/
  38. /*                                                                        */
  39. /* XfeTabClassPart                                                        */
  40. /*                                                                        */
  41. /*----------------------------------------------------------------------*/
  42. typedef struct
  43. {
  44.     XtPointer        extension;                    /* Extension            */
  45. } XfeTabClassPart;
  46.  
  47. /*----------------------------------------------------------------------*/
  48. /*                                                                        */
  49. /* XfeTabClassRec                                                        */
  50. /*                                                                        */
  51. /*----------------------------------------------------------------------*/
  52. typedef struct _XfeTabClassRec
  53. {
  54.     CoreClassPart                core_class;
  55.     XmPrimitiveClassPart        primitive_class;
  56.     XfePrimitiveClassPart        xfe_primitive_class;
  57.     XfeLabelClassPart            xfe_label_class;
  58.     XfeButtonClassPart            xfe_button_class;
  59.     XfeTabClassPart                xfe_tab_class;
  60. } XfeTabClassRec;
  61.  
  62. externalref XfeTabClassRec xfeTabClassRec;
  63.  
  64. /*----------------------------------------------------------------------*/
  65. /*                                                                        */
  66. /* XfeTabPart                                                            */
  67. /*                                                                        */
  68. /*----------------------------------------------------------------------*/
  69. typedef struct _XfeTabPart
  70. {
  71.     /* Resources */
  72.     Pixmap                bottom_pixmap;            /* Bottom pixmap        */
  73.     Pixmap                horizontal_pixmap;        /* Horizontal pixmap    */
  74.     Pixmap                left_pixmap;            /* Left pixmap            */
  75.     Pixmap                right_pixmap;            /* Right pixmap            */
  76.     Pixmap                top_pixmap;                /* Top pixmap            */
  77.     Pixmap                vertical_pixmap;        /* Vertical pixmap        */
  78.     Pixmap                bottom_raised_pixmap;    /* Bottom Raised pixmap    */
  79.     Pixmap                horizontal_raised_pixmap;/* Hor Raised pixmap    */
  80.     Pixmap                left_raised_pixmap;        /* Left Raised pixmap    */
  81.     Pixmap                right_raised_pixmap;    /* Right Raised pixmap    */
  82.     Pixmap                top_raised_pixmap;        /* Top Raised pixmap    */
  83.     Pixmap                vertical_raised_pixmap;    /* Ver Raised pixmap    */
  84.  
  85.     unsigned char        orientation;            /* Orientation            */
  86.  
  87.     /* Private Data Members */
  88.     Dimension            bottom_width;            /* Bottom width            */
  89.     Dimension            bottom_height;            /* Bottom height        */
  90.     Dimension            horizontal_width;        /* Horizontal width        */
  91.     Dimension            horizontal_height;        /* Horizontal height    */
  92.     Dimension            left_width;                /* Left width            */
  93.     Dimension            left_height;            /* Left height            */
  94.     Dimension            right_width;            /* Right width            */
  95.     Dimension            right_height;            /* Right height            */
  96.     Dimension            top_width;                /* Top width            */
  97.     Dimension            top_height;                /* Top height            */
  98.     Dimension            vertical_width;            /* Vertical width        */
  99.     Dimension            vertical_height;        /* Vertical height        */
  100.  
  101. } XfeTabPart;
  102.  
  103. /*----------------------------------------------------------------------*/
  104. /*                                                                        */
  105. /* XfeTabRec                                                            */
  106. /*                                                                        */
  107. /*----------------------------------------------------------------------*/
  108. typedef struct _XfeTabRec
  109. {
  110.     CorePart                core;                /* Core Part            */
  111.     XmPrimitivePart            primitive;            /* XmPrimitive Part        */
  112.     XfePrimitivePart        xfe_primitive;        /* XfePrimitive Part    */
  113.     XfeLabelPart            xfe_label;            /* XfeLabel Part        */
  114.     XfeButtonPart            xfe_button;            /* XfeButton Part        */
  115.     XfeTabPart                xfe_tab;            /* XfeTab Part            */
  116. } XfeTabRec;
  117.  
  118. /*----------------------------------------------------------------------*/
  119. /*                                                                        */
  120. /* XfeTabPart Access Macro                                                */
  121. /*                                                                        */
  122. /*----------------------------------------------------------------------*/
  123. #define _XfeTabPart(w) &(((XfeTabWidget) w)->xfe_tab)
  124.  
  125. #ifdef __cplusplus                                /* end C++                */
  126. }
  127. #endif
  128.  
  129. #endif                                            /* end TabP.h        */
  130.