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 #ifndef _BUBBLEBUTTONP_H
26 #define _BUBBLEBUTTONP_H
27
28 #include "BubbleButton.h"
29 #include <Xm/PushBP.h>
30
31 typedef struct {
32 XtIntervalId Timer;
33 int Delay;
34 Widget BubbleLabel;
35 XmString BubbleString;
36 Boolean show_bubble;
37 XmString MouseOverString;
38 Pixmap MouseOverPixmap;
39 XtIntervalId DurationTimer;
40 int Duration;
41 Boolean Swapped;
42 Widget slider;
43 Boolean slidingBubble;
44 Boolean autoParkBubble;
45 } XltBubbleButtonPart;
46
47 #define BubbleButton_Timer(w) (((XltBubbleButtonWidget)w)->bubble_button.Timer)
48 #define BubbleButton_Delay(w) (((XltBubbleButtonWidget)w)->bubble_button.Delay)
49 #define BubbleButton_Label(w) (((XltBubbleButtonWidget)w)->bubble_button.BubbleLabel)
50 #define BubbleButton_BubbleString(w) (((XltBubbleButtonWidget)w)->bubble_button.BubbleString)
51 #define BubbleButton_ShowBubble(w) (((XltBubbleButtonWidget)w)->bubble_button.show_bubble)
52 #define BubbleButton_MouseOverString(w) (((XltBubbleButtonWidget)w)->bubble_button.MouseOverString)
53 #define BubbleButton_MouseOverPixmap(w) (((XltBubbleButtonWidget)w)->bubble_button.MouseOverPixmap)
54 #define BubbleButton_DurationTimer(w) (((XltBubbleButtonWidget)w)->bubble_button.DurationTimer)
55 #define BubbleButton_Duration(w) (((XltBubbleButtonWidget)w)->bubble_button.Duration)
56 #define BubbleButton_Swapped(w) (((XltBubbleButtonWidget)w)->bubble_button.Swapped)
57 #define BubbleButton_Slider(w) (((XltBubbleButtonWidget)w)->bubble_button.slider)
58 #define BubbleButton_SlidingBubble(w) (((XltBubbleButtonWidget)w)->bubble_button.slidingBubble)
59 #define BubbleButton_AutoParkBubble(w) (((XltBubbleButtonWidget)w)->bubble_button.autoParkBubble)
60
61 #define BubbleButtonClass_LeaveTime(w) (((XltBubbleButtonWidgetClass)XtClass(w))->bubble_button_class.leave_time)
62
63 typedef struct _XltBubbleButtonRec {
64 CorePart core;
65 XmPrimitivePart primitive;
66 XmLabelPart label;
67 XmPushButtonPart pushbutton;
68 XltBubbleButtonPart bubble_button;
69 } XltBubbleButtonRec;
70
71 typedef struct {
72 Time leave_time;
73 XtPointer extension;
74 } XltBubbleButtonClassPart;
75
76 typedef struct _XltBubbleButtonClassRec {
77 CoreClassPart core_class;
78 XmPrimitiveClassPart primitive_class;
79 XmLabelClassPart label_class;
80 XmPushButtonClassPart pushbutton_class;
81 XltBubbleButtonClassPart bubble_button_class;
82 } XltBubbleButtonClassRec;
83
84 extern XltBubbleButtonClassRec xrwsBubbleButtonClassRec;
85 #endif
86