home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre3.z / postgre3 / src / lib / H / tmp / TreeP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-27  |  3.3 KB  |  104 lines

  1. /**********************************************************************************
  2.  * $Header: /private/postgres/src/lib/H/tmp/RCS/TreeP.h,v 1.2 1991/02/02 15:13:06 sp Exp $
  3.  * TreeP.h: Private header file for the Tree widget
  4.   *         From:
  5.   *                   The X Window System, 
  6.   *            Programming and Applications with Xt
  7.   *                   OSF/Motif Edition
  8.   *         by
  9.   *                Douglas Young
  10.   *              Prentice Hall, 1990
  11.   *
  12.   *                 Example described on pages: 397-419
  13.   *
  14.   *
  15.   *  Copyright 1989 by Prentice Hall
  16.   *  All Rights Reserved
  17.   *
  18.   * This code is based on the OSF/Motif widget set and the X Window System
  19.   *
  20.   * Permission to use, copy, modify, and distribute this software for 
  21.   * any purpose and without fee is hereby granted, provided that the above
  22.   * copyright notice appear in all copies and that both the copyright notice
  23.   * and this permission notice appear in supporting documentation.
  24.   *
  25.   * Prentice Hall and the author disclaim all warranties with regard to 
  26.   * this software, including all implied warranties of merchantability and fitness.
  27.   * In no event shall Prentice Hall or the author be liable for any special,
  28.   * indirect or cosequential damages or any damages whatsoever resulting from 
  29.   * loss of use, data or profits, whether in an action of contract, negligence 
  30.   * or other tortious action, arising out of or in connection with the use 
  31.   * or performance of this software.
  32.   *
  33.   * Open Software Foundation is a trademark of The Open Software Foundation, Inc.
  34.   * OSF is a trademark of Open Software Foundation, Inc.
  35.   * OSF/Motif is a trademark of Open Software Foundation, Inc.
  36.   * Motif is a trademark of Open Software Foundation, Inc.
  37.   * DEC is a registered trademark of Digital Equipment Corporation
  38.   * HP is a registered trademark of the Hewlett Packard Company
  39.   * DIGITAL is a registered trademark of Digital Equipment Corporation
  40.   * X Window System is a trademark of the Massachusetts Institute of Technology
  41.   **********************************************************************************/
  42.  
  43.  
  44. #ifndef TREEP_H
  45. #define TREEP_H
  46. typedef struct _XsTreeClassPart {
  47.     int         ignore;
  48. } XsTreeClassPart;
  49.  
  50. typedef struct _XsTreeClassRec {
  51.     CoreClassPart       core_class;
  52.     CompositeClassPart  composite_class;
  53.     ConstraintClassPart constraint_class;
  54.     XsTreeClassPart     tree_class;
  55. } XsTreeClassRec;
  56.  
  57. extern XsTreeClassRec XstreeClassRec;
  58.  
  59. typedef struct {
  60.     Dimension  *array;
  61.     int         size;
  62.   }  TreeOffset, *TreeOffsetPtr;
  63.  
  64. typedef struct {
  65.     Dimension      h_min_space;
  66.     Dimension      v_min_space;
  67.     Pixel          foreground;
  68.     GC             gc;
  69.     TreeOffsetPtr  horizontal;
  70.     TreeOffsetPtr  vertical;
  71.     Widget         tree_root;
  72. } XsTreePart;
  73.  
  74.  
  75. typedef struct _XsTreeRec {
  76.     CorePart        core;
  77.     CompositePart   composite;
  78.     ConstraintPart  constraint;
  79.     XsTreePart      tree;
  80. }  XsTreeRec;
  81.  
  82.  
  83.  
  84. typedef struct _TreeConstraintsPart {
  85.   Widget        super_node;
  86.   WidgetList    sub_nodes;
  87.   long          n_sub_nodes;
  88.   long          max_sub_nodes;
  89.   Position      x, y;
  90. } TreeConstraintsPart;
  91.  
  92. typedef struct _TreeConstraintsRec {
  93.    TreeConstraintsPart tree;
  94. } TreeConstraintsRec, *TreeConstraints;
  95.  
  96.  
  97. #define TREE_CONSTRAINT(w) \
  98.                    ((TreeConstraints)((w)->core.constraints))
  99.  
  100. #endif TREEP_H
  101.  
  102.  
  103.  
  104.