home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / include / Xm / MainWP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-30  |  2.4 KB  |  109 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992, 1993 OPEN SOFTWARE FOUNDATION, INC. 
  3.  * ALL RIGHTS RESERVED 
  4. */ 
  5. /* 
  6.  * Motif Release 1.2.3
  7. */ 
  8. /*   $RCSfile: MainWP.h,v $ $Revision: 10.1 $ $Date: 1994/02/03 15:43:28 $ */
  9. /*
  10. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  11. #ifndef _XmMainWindowP_h
  12. #define _XmMainWindowP_h
  13.  
  14. #include <Xm/MainW.h>
  15. #include <Xm/ScrolledWP.h>
  16. #include <Xm/SeparatoG.h>
  17.  
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21.  
  22.  
  23. #define DEFAULT_HEIGHT 20
  24. #define DEFAULT_WIDTH 20
  25.  
  26. /* Constraint part record for MainWindow widget */
  27.  
  28. typedef struct _XmMainWindowConstraintPart
  29. {
  30.    char unused;
  31. } XmMainWindowConstraintPart, * XmMainWindowConstraint;
  32.  
  33.  
  34. /* New fields for the MainWindow widget class record */
  35. typedef struct {
  36.    XtPointer extension;   /* Pointer to extension record */
  37. } XmMainWindowClassPart;
  38.  
  39. /****************
  40.  *
  41.  * Class record declaration
  42.  *
  43.  ****************/
  44. typedef struct _XmMainWindowClassRec {
  45.     CoreClassPart    core_class;
  46.     CompositeClassPart  composite_class;
  47.     ConstraintClassPart constraint_class;
  48.     XmManagerClassPart  manager_class;
  49.     XmScrolledWindowClassPart    swindow_class;
  50.     XmMainWindowClassPart    mwindow_class;
  51. } XmMainWindowClassRec;
  52.  
  53. externalref XmMainWindowClassRec xmMainWindowClassRec;
  54.  
  55. /****************
  56.  *
  57.  * Main Window instance structure.
  58.  *
  59.  ****************/
  60. typedef struct {
  61.  
  62.  
  63.    Dimension    AreaWidth,AreaHeight;
  64.    Dimension    margin_width,margin_height;
  65.    Widget       CommandWindow;
  66.    Widget       MenuBar;
  67.    Widget       Message;
  68.    unsigned char CommandLoc;
  69.    XmSeparatorGadget       Sep1,Sep2,Sep3;
  70.    Boolean    ManagingSep;
  71.    Boolean    ShowSep;
  72.    
  73. } XmMainWindowPart;
  74.  
  75.  
  76. /************************************************************************
  77.  *                                    *
  78.  * Full instance record declaration                    *
  79.  *                                    *
  80.  ************************************************************************/
  81.  
  82. typedef struct _XmMainWindowRec {
  83.     CorePart        core;
  84.     CompositePart   composite;
  85.     ConstraintPart constraint;
  86.     XmManagerPart   manager;
  87.     XmScrolledWindowPart   swindow;
  88.     XmMainWindowPart   mwindow;
  89. } XmMainWindowRec;
  90.  
  91.  
  92. /********    Private Function Declarations    ********/
  93. #ifdef _NO_PROTO
  94.  
  95.  
  96. #else
  97.  
  98.  
  99. #endif /* _NO_PROTO */
  100. /********    End Private Function Declarations    ********/
  101.  
  102.  
  103. #ifdef __cplusplus
  104. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  105. #endif
  106.  
  107. #endif /* _XmMainWindowP_h */
  108. /* DON'T ADD STUFF AFTER THIS #endif */
  109.