home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / Xfe / TempTwoP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  5.6 KB  |  163 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/TempTwoP.h>                                        */
  21. /* Description:    XfeTempTwo widget private header file.                    */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27. #ifndef _XfeTempTwoP_h_                            /* start TempTwoP.h        */
  28. #define _XfeTempTwoP_h_
  29.  
  30. #include <Xfe/TempTwo.h>
  31. #include <Xfe/ManagerP.h>
  32.  
  33. #ifdef __cplusplus                                /* start C++            */
  34. extern "C" {
  35. #endif
  36.     
  37. /*----------------------------------------------------------------------*/
  38. /*                                                                        */
  39. /* XfeTempTwoClassPart                                                    */
  40. /*                                                                        */
  41. /*----------------------------------------------------------------------*/
  42. typedef struct
  43. {
  44.     XtWidgetProc        layout_string;                /* layout_label        */
  45.     XfeExposeProc        draw_string;                /* draw_string        */
  46.     XtPointer            extension;                    /* extension        */ 
  47. } XfeTempTwoClassPart;
  48.  
  49. /*----------------------------------------------------------------------*/
  50. /*                                                                        */
  51. /* XfeTempTwoClassRec                                                    */
  52. /*                                                                        */
  53. /*----------------------------------------------------------------------*/
  54. typedef struct _XfeTempTwoClassRec
  55. {
  56.     CoreClassPart                core_class;
  57.     CompositeClassPart            composite_class;
  58.     ConstraintClassPart            constraint_class;
  59.     XmManagerClassPart            manager_class;
  60.     XfeManagerClassPart            xfe_manager_class;
  61.     XfeTempTwoClassPart            xfe_temp_two_class;
  62. } XfeTempTwoClassRec;
  63.  
  64. externalref XfeTempTwoClassRec xfeTempTwoClassRec;
  65.  
  66. /*----------------------------------------------------------------------*/
  67. /*                                                                        */
  68. /* XfeTempTwoPart                                                        */
  69. /*                                                                        */
  70. /*----------------------------------------------------------------------*/
  71. typedef struct _XfeTempTwoPart
  72. {
  73.     /* Cursor resources */
  74.     Cursor                vertical_cursor;        /* Vertical cursor        */
  75.     Cursor                horizontal_cursor;        /* Horizontal cursor    */
  76.  
  77.     /* Color resources */
  78.     Pixel                sash_color;                /* Sash color            */
  79.  
  80.     /* Resource Data Members */
  81.  
  82.     Dimension            spacing;                /* Spacing                */
  83.  
  84.     int                    separator_thickness;    /* Separator thickness    */
  85.     unsigned char        separator_type;            /* Separator type        */
  86.  
  87.     unsigned char        orientation;            /* Orientation            */
  88.     unsigned char        button_layout;            /* Button layout        */
  89.  
  90.     Dimension            raise_border_thickness;    /* Raise border thickness*/
  91.     Boolean                raised;                    /* Raised ?                */
  92.  
  93.     Boolean                child_use_pref_width;    /* child use pref width    */
  94.     Boolean                child_use_pref_height;    /* child use pref height*/
  95.  
  96.     /* Private data -- Dont even look past this comment -- */
  97.     GC                    temp_GC;                /* Temp GC                */
  98.     XRectangle            temp_rect;                /* Temp rect            */
  99.  
  100. } XfeTempTwoPart;
  101.  
  102. /*----------------------------------------------------------------------*/
  103. /*                                                                        */
  104. /* XfeTempTwoRec                                                        */
  105. /*                                                                        */
  106. /*----------------------------------------------------------------------*/
  107. typedef struct _XfeTempTwoRec
  108. {
  109.     CorePart            core;
  110.     CompositePart        composite;
  111.     ConstraintPart        constraint;
  112.     XmManagerPart        manager;
  113.     XfeManagerPart        xfe_manager;
  114.     XfeTempTwoPart        xfe_temp_two;
  115. } XfeTempTwoRec;
  116.  
  117. /*----------------------------------------------------------------------*/
  118. /*                                                                        */
  119. /* XfeTempTwoConstraintPart                                                */
  120. /*                                                                        */
  121. /*----------------------------------------------------------------------*/
  122. typedef struct _XfeTempTwoConstraintPart
  123. {
  124.     Dimension            min_width;
  125.     Dimension            min_height;
  126.     Dimension            max_width;
  127.     Dimension            max_height;
  128. } XfeTempTwoConstraintPart;
  129.  
  130. /*----------------------------------------------------------------------*/
  131. /*                                                                        */
  132. /* XfeTempTwoConstraintRec                                                */
  133. /*                                                                        */
  134. /*----------------------------------------------------------------------*/
  135. typedef struct _XfeTempTwoConstraintRec
  136. {
  137.     XmManagerConstraintPart            manager;
  138.     XfeManagerConstraintPart        xfe_manager;
  139.     XfeTempTwoConstraintPart        xfe_temp_two;
  140. } XfeTempTwoConstraintRec;
  141.  
  142. /*----------------------------------------------------------------------*/
  143. /*                                                                        */
  144. /* XfeTempTwoPart Access Macro                                            */
  145. /*                                                                        */
  146. /*----------------------------------------------------------------------*/
  147. #define _XfeTempTwoPart(w) &(((XfeTempTwoWidget) w) -> xfe_temp_two)
  148.  
  149. /*----------------------------------------------------------------------*/
  150. /*                                                                        */
  151. /* XfeTempTwoPart child constraint part access macro                    */
  152. /*                                                                        */
  153. /*----------------------------------------------------------------------*/
  154. #define _XfeTempTwoConstraintPart(w) \
  155. (&(((XfeTempTwoConstraintRec *) _XfeConstraints(w)) -> xfe_temp_two))
  156.  
  157. #ifdef __cplusplus                                /* end C++                */
  158. }
  159. #endif
  160.  
  161. #endif                                            /* end TempTwoP.h        */
  162.  
  163.