Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:15:28

0001 /*
0002  * Motif
0003  *
0004  * Copyright (c) 1987-2012, The Open Group. All rights reserved.
0005  *
0006  * These libraries and programs are free software; you can
0007  * redistribute them and/or modify them under the terms of the GNU
0008  * Lesser General Public License as published by the Free Software
0009  * Foundation; either version 2 of the License, or (at your option)
0010  * any later version.
0011  *
0012  * These libraries and programs are distributed in the hope that
0013  * they will be useful, but WITHOUT ANY WARRANTY; without even the
0014  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
0015  * PURPOSE. See the GNU Lesser General Public License for more
0016  * details.
0017  *
0018  * You should have received a copy of the GNU Lesser General Public
0019  * License along with these librararies and programs; if not, write
0020  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
0021  * Floor, Boston, MA 02110-1301 USA
0022 */
0023 
0024 #ifndef _SLIDECP_H
0025 #define _SLIDECP_H
0026 
0027 #include <Xm/SlideC.h>
0028 #include <X11/IntrinsicP.h>
0029 #include <X11/ObjectP.h>
0030 #include <Xm/XmP.h>
0031 
0032 #ifdef __cplusplus
0033 extern "C" {
0034 #endif
0035 
0036 #ifndef XmUNSPECIFIED_POSITION
0037 #define XmUNSPECIFIED_POSITION (-1)
0038 #endif
0039 
0040 typedef struct {
0041     XtPointer extension;
0042 } XmSlideContextClassPart;
0043 
0044 typedef struct _XmSlideContextClassRec {
0045     ObjectClassPart object_class;
0046     XmSlideContextClassPart slide_class;
0047 } XmSlideContextClassRec;
0048 
0049 extern XmSlideContextClassRec xmSlideContextClassRec;
0050 
0051 typedef struct _XmSlideContextPart {
0052     XtIntervalId id;
0053     XtCallbackList slideFinishCallback;
0054     XtCallbackList slideMotionCallback;
0055     Widget slide_widget;
0056     unsigned long interval;
0057     Dimension dest_width;
0058     Dimension dest_height;
0059     Position dest_x;
0060     Position dest_y;
0061 } XmSlideContextPart;
0062 
0063 typedef struct _XmSlideContextRec {
0064     ObjectPart object;
0065     XmSlideContextPart slide;
0066 } XmSlideContextRec;
0067 
0068 #define Slide_Id(w) (((XmSlideContextWidget)w)->slide.id)
0069 #define Slide_Widget(w) (((XmSlideContextWidget)w)->slide.slide_widget)
0070 #define Slide_Interval(w) (((XmSlideContextWidget)w)->slide.interval)
0071 #define Slide_DestWidth(w) (((XmSlideContextWidget)w)->slide.dest_width)
0072 #define Slide_DestHeight(w) (((XmSlideContextWidget)w)->slide.dest_height)
0073 #define Slide_DestX(w) (((XmSlideContextWidget)w)->slide.dest_x)
0074 #define Slide_DestY(w) (((XmSlideContextWidget)w)->slide.dest_y)
0075 #define Slide_FinishCallback(w) (((XmSlideContextWidget)w)->slide.slideFinishCallback)
0076 #define Slide_MotionCallback(w) (((XmSlideContextWidget)w)->slide.slideMotionCallback)
0077 
0078 #ifdef __cplusplus
0079 }
0080 #endif
0081 
0082 #endif