-
Notifications
You must be signed in to change notification settings - Fork 0
/
SmeCascadeP.h
executable file
·93 lines (78 loc) · 2.64 KB
/
SmeCascadeP.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*
* FIG : Facility for Interactive Generation of figures
* Copyright (c) 1989-2003 by Brian V. Smith
*
* Any party obtaining a copy of these files is granted, free of charge, a
* full and unrestricted irrevocable, world-wide, paid up, royalty-free,
* nonexclusive right and license to deal in this software and
* documentation files (the "Software"), including without limitation the
* rights to use, copy, modify, merge, publish and/or distribute copies of
* the Software, and to permit persons who receive copies from any such
* party to do so, with the only requirement being that this copyright
* notice remain intact.
*
*/
/* This subclasses the SmeBSB object to make a cascade menu */
/* Private definitions for SmeCascade object */
#ifndef _XawSmeCascadeP_h
#define _XawSmeCascadeP_h
/***********************************************************************
*
* Sme Cascade Object Private Data
*
***********************************************************************/
#ifdef XAW3D
#include <X11/Xaw3d/SmeThreeDP.h>
#else
#include <X11/Xaw/SmeP.h>
#endif
#include "SmeBSBP.h"
#include "SmeCascade.h"
/************************************************************
*
* New fields for the Sme Cascade Object class record.
*
************************************************************/
typedef struct _SmeCascadeClassPart {
XtPointer extension;
} SmeCascadeClassPart;
/* Full class record declaration */
typedef struct _SmeCascadeClassRec {
RectObjClassPart rect_class;
SmeClassPart sme_class;
#ifdef XAW3D
SmeThreeDClassPart sme_threeD_class;
#endif /* XAW3D */
SmeBSBClassPart sme_bsb_class;
SmeCascadeClassPart sme_cascade_class;
} SmeCascadeClassRec;
extern SmeCascadeClassRec smeCascadeClassRec;
/* New fields for the Sme Cascade Object record */
typedef struct {
/* resources */
Widget subMenu; /* sub-menu that I post */
Boolean selectCascade; /* whether or not to make this cascade selectable (Notify) */
Boolean highlighted; /* holds the state of the entry */
/* private fields */
} SmeCascadePart;
/****************************************************************
*
* Full instance record declaration
*
****************************************************************/
typedef struct _SmeCascadeRec {
ObjectPart object;
RectObjPart rectangle;
SmePart sme;
#ifdef XAW3D
SmeThreeDPart sme_threeD;
#endif /* XAW3D */
SmeBSBPart sme_bsb;
SmeCascadePart sme_cascade;
} SmeCascadeRec;
/************************************************************
*
* Private declarations.
*
************************************************************/
#endif /* _XawSmeCascadeP_h */