-
Notifications
You must be signed in to change notification settings - Fork 0
/
SmeCascade.h
executable file
·71 lines (58 loc) · 2.28 KB
/
SmeCascade.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
/*
* 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 */
/* Public definitions for SmeCascade object */
#ifndef _SmeCascade_h
#define _SmeCascade_h
#include <X11/Xmu/Converters.h>
#ifdef XAW3D
#include <X11/Xaw3d/Sme.h>
#else
#include <X11/Xaw/Sme.h>
#endif
#include "SmeBSB.h"
/****************************************************************
*
* SmeCascade object
*
****************************************************************/
/* Cascade Menu Entry Resources:
Name Class RepType Default Value
---- ----- ------- -------------
font Font XFontStruct * XtDefaultFont
foreground Foreground Pixel XtDefaultForeground
height Height Dimension 0
label Label String Name of entry
leftBitmap LeftBitmap Pixmap None
leftMargin HorizontalMargins Dimension 4
rightBitmap RightBitmap Pixmap None
rightMargin HorizontalMargins Dimension 4
sensitive Sensitive Boolean True
vertSpace VertSpace int 25
width Width Dimension 0
x Position Position 0n
y Position Position 0
subMenu SubMenu Widget NULL
selectCascade SelectCascade Boolean False
*/
typedef struct _SmeCascadeClassRec *SmeCascadeObjectClass;
typedef struct _SmeCascadeRec *SmeCascadeObject;
extern WidgetClass smeCascadeObjectClass;
void popdown_subs(void);
#define XtNsubMenu "subMenu"
#define XtCSubMenu "SubMenu"
#define XtNselectCascade "selectCascade"
#define XtCSelectCascade "SelectCascade"
#endif /* _SmeBSB_h */