Fix for replace dialog buttons not being updated when switching tabs,
[nedit.git] / Xlt / SlideCP.h
blob937406f1128c8b7b5d787cd011098b484f6cc487
1 /**
3 * $Id: SlideCP.h,v 1.1 2003/12/23 08:34:36 tksoh Exp $
5 * Copyright (C) 1996 Free Software Foundation, Inc.
6 * Copyright © 1999-2001 by the LessTif developers.
8 * This file is part of the GNU LessTif Extension Library.
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Library General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Library General Public License for more details.
20 * You should have received a copy of the GNU Library General Public
21 * License along with this library; if not, write to the Free
22 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 **/
26 #ifndef _SLIDECP_H
27 #define _SLIDECP_H
29 #include <X11/IntrinsicP.h>
30 #include <X11/ObjectP.h>
31 #include <Xm/XmP.h>
32 #include <SlideC.h>
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
40 #ifndef XmUNSPECIFIED
41 #define XmUNSPECIFIED (~0)
42 #endif
44 #ifndef XmUNSPECIFIED_POSITION
45 #define XmUNSPECIFIED_POSITION (-1)
46 #endif
48 typedef struct {
49 XtPointer extension;
50 } XltSlideContextClassPart;
52 typedef struct _XltSlideContextClassRec {
53 ObjectClassPart object_class;
54 XltSlideContextClassPart slide_class;
55 } XltSlideContextClassRec;
57 extern XltSlideContextClassRec xltSlideContextClassRec;
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;
71 typedef struct _XltSlideContextRec {
72 ObjectPart object;
73 XltSlideContextPart slide;
74 } XltSlideContextRec;
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)
86 #ifdef __cplusplus
88 #endif
90 #endif /* ifndef _SLIDECP_H */