Merge branch 'master' into xcircuit-3.10
[xcircuit.git] / Xw / PButtonP.h
blobd29ecd7dbd47909f44e850d974b6b1917e1c43fb
1 /*************************************<+>*************************************
2 *****************************************************************************
3 **
4 ** File: PButtonP.h
5 **
6 ** Project: X Widgets
7 **
8 ** Description: Private include file for widgets which are
9 ** subclasses of push button or which need to
10 ** access directly the instance and class fields
11 ** of the pushbutton widget.
13 *****************************************************************************
14 **
15 ** Copyright (c) 1988 by Hewlett-Packard Company
16 ** Copyright (c) 1988 by the Massachusetts Institute of Technology
17 **
18 ** Permission to use, copy, modify, and distribute this software
19 ** and its documentation for any purpose and without fee is hereby
20 ** granted, provided that the above copyright notice appear in all
21 ** copies and that both that copyright notice and this permission
22 ** notice appear in supporting documentation, and that the names of
23 ** Hewlett-Packard or M.I.T. not be used in advertising or publicity
24 ** pertaining to distribution of the software without specific, written
25 ** prior permission.
26 **
27 *****************************************************************************
28 *************************************<+>*************************************/
30 /********************************************
32 * No new fields need to be defined
33 * for the PushButton widget class record
35 ********************************************/
37 typedef struct {int foo;} XwPushButtonClassPart;
40 /****************************************************
42 * Full class record declaration for PushButton class
44 ****************************************************/
45 typedef struct _XwPushButtonClassRec {
46 CoreClassPart core_class;
47 XwPrimitiveClassPart primitive_class;
48 XwButtonClassPart button_class;
49 XwPushButtonClassPart pushbutton_class;
50 } XwPushButtonClassRec;
53 extern XwPushButtonClassRec XwpushButtonClassRec;
56 /********************************************
58 * No new fields needed for instance record
60 ********************************************/
62 typedef struct _XwPushButtonPart{
63 Boolean toggle;
64 } XwPushButtonPart;
68 /****************************************************************
70 * Full instance record declaration
72 ****************************************************************/
74 typedef struct _XwPushButtonRec {
75 CorePart core;
76 XwPrimitivePart primitive;
77 XwButtonPart button;
78 XwPushButtonPart pushbutton;
79 } XwPushButtonRec;