UNIXworkcode

1 /** 2 * 3 * $Id: SlideCP.h,v 1.4 2005/12/01 14:31:43 tringali Exp $ 4 * 5 * Copyright (C) 1996 Free Software Foundation, Inc. 6 * Copyright © 1999-2001 by the LessTif developers. 7 * 8 * This file is part of the GNU LessTif Extension Library. 9 * 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. 14 * 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. 19 * 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. 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 /* ifndef _SLIDECP_H */ 91