Merge branch 'master' into xcircuit-3.10
[xcircuit.git] / Xw / CascadeP.h
blob388a91bab807eef2c78744c3412ff6a51d42a662
1 /*************************************<+>*************************************
2 *****************************************************************************
3 **
4 ** File: CascadeP.h
5 **
6 ** Project: X Widgets
7 **
8 ** Description: Private include file for Cascading menupane class widgets
9 **
10 *****************************************************************************
11 **
12 ** Copyright (c) 1988 by Hewlett-Packard Company
13 ** Copyright (c) 1988 by the Massachusetts Institute of Technology
14 **
15 ** Permission to use, copy, modify, and distribute this software
16 ** and its documentation for any purpose and without fee is hereby
17 ** granted, provided that the above copyright notice appear in all
18 ** copies and that both that copyright notice and this permission
19 ** notice appear in supporting documentation, and that the names of
20 ** Hewlett-Packard or M.I.T. not be used in advertising or publicity
21 ** pertaining to distribution of the software without specific, written
22 ** prior permission.
23 **
24 *****************************************************************************
25 *************************************<+>*************************************/
28 /***********************************************************************
30 * Cascading MenuPane Widget Private Data
32 ***********************************************************************/
34 /* New fields for the Cascade widget class record */
35 typedef struct {
36 int mumble; /* No new procedures */
37 } XwCascadeClassPart;
39 /* Full class record declaration */
40 typedef struct _XwCascadeClassRec {
41 CoreClassPart core_class;
42 CompositeClassPart composite_class;
43 ConstraintClassPart constraint_class;
44 XwManagerClassPart manager_class;
45 XwMenuPaneClassPart menu_pane_class;
46 XwCascadeClassPart cascade_class;
47 } XwCascadeClassRec;
49 extern XwCascadeClassRec XwcascadeClassRec;
51 /* New fields for the Cascade widget record */
52 typedef struct {
53 /* Internal fields */
54 Position title_x;
55 Position top_title_y;
56 Position bottom_title_y;
57 Dimension title_height;
58 Dimension title_width;
59 Position button_starting_loc;
60 Dimension idealWidth;
61 Dimension idealHeight;
62 Dimension largestButtonWidth;
63 Widget georeqWidget;
64 Dimension georeqWidth;
66 /* User settable fields */
67 int titlePosition;
68 } XwCascadePart;
71 /****************************************************************
73 * Full instance record declaration
75 ****************************************************************/
77 typedef struct _XwCascadeRec {
78 CorePart core;
79 CompositePart composite;
80 ConstraintPart constraint;
81 XwManagerPart manager;
82 XwMenuPanePart menu_pane;
83 XwCascadePart cascade;
84 } XwCascadeRec;