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 #ifndef _SLIDECP_H
27 #define _SLIDECP_H
28
29 #include <X11/IntrinsicP.h>
30 #include <X11/ObjectP.h>
31 #include <Xm/XmP.h>
32 #include "SlideC.h"
33
34
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38
39
40 #ifndef XmUNSPECIFIED
41 #define XmUNSPECIFIED (~
0)
42 #endif
43
44 #ifndef XmUNSPECIFIED_POSITION
45 #define XmUNSPECIFIED_POSITION (-
1)
46 #endif
47
48 typedef struct {
49 XtPointer extension;
50 } XltSlideContextClassPart;
51
52 typedef struct _XltSlideContextClassRec {
53 ObjectClassPart object_class;
54 XltSlideContextClassPart slide_class;
55 } XltSlideContextClassRec;
56
57 extern XltSlideContextClassRec xltSlideContextClassRec;
58
59 typedef struct _XmSlideContextPart {
60 XtIntervalId id;
61 XtCallbackList slideFinishCallback;
62 XtCallbackList slideMotionCallback;
63 Widget slide_widget;
64 unsigned long interval;
65 Dimension dest_width;
66 Dimension dest_height;
67 Position dest_x;
68 Position dest_y;
69 } XltSlideContextPart;
70
71 typedef struct _XltSlideContextRec {
72 ObjectPart object;
73 XltSlideContextPart slide;
74 } XltSlideContextRec;
75
76 #define Slide_Id(w) (((XltSlideContextWidget)w)->slide.id)
77 #define Slide_Widget(w) (((XltSlideContextWidget)w)->slide.slide_widget)
78 #define Slide_Interval(w) (((XltSlideContextWidget)w)->slide.interval)
79 #define Slide_DestWidth(w) (((XltSlideContextWidget)w)->slide.dest_width)
80 #define Slide_DestHeight(w) (((XltSlideContextWidget)w)->slide.dest_height)
81 #define Slide_DestX(w) (((XltSlideContextWidget)w)->slide.dest_x)
82 #define Slide_DestY(w) (((XltSlideContextWidget)w)->slide.dest_y)
83 #define Slide_FinishCallback(w) (((XltSlideContextWidget)w)->slide.slideFinishCallback)
84 #define Slide_MotionCallback(w) (((XltSlideContextWidget)w)->slide.slideMotionCallback)
85
86 #ifdef __cplusplus
87 }
88 #endif
89
90 #endif
91