3 * $Id: SlideCP.h,v 1.4 2005/12/01 14:31:43 tringali 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.
29 #include <X11/IntrinsicP.h>
30 #include <X11/ObjectP.h>
41 #define XmUNSPECIFIED (~0)
44 #ifndef XmUNSPECIFIED_POSITION
45 #define XmUNSPECIFIED_POSITION (-1)
50 } XltSlideContextClassPart
;
52 typedef struct _XltSlideContextClassRec
{
53 ObjectClassPart object_class
;
54 XltSlideContextClassPart slide_class
;
55 } XltSlideContextClassRec
;
57 extern XltSlideContextClassRec xltSlideContextClassRec
;
59 typedef struct _XmSlideContextPart
{
61 XtCallbackList slideFinishCallback
;
62 XtCallbackList slideMotionCallback
;
64 unsigned long interval
;
66 Dimension dest_height
;
69 } XltSlideContextPart
;
71 typedef struct _XltSlideContextRec
{
73 XltSlideContextPart slide
;
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)
90 #endif /* ifndef _SLIDECP_H */