Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / examples / motif / dogs / DogP.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* 
24  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC. 
25  * ALL RIGHTS RESERVED 
26 */ 
27 /* 
28  * Motif Release 1.2
29 */ 
30 /*   $XConsortium: DogP.h /main/3 1995/10/27 10:42:18 rswiston $ */
31
32 /*****************************************************************************
33 *
34 *  DogP.H - widget private header file
35 *  
36 ******************************************************************************/
37
38 #ifndef _DogP_h
39 #define _DogP_h
40
41 #include "Dog.h"
42 #include <Xm/XmP.h>
43 #include <Xm/PrimitiveP.h>
44
45 void _DogDrawPixmap();
46 void _DogPosition();
47
48 #define DogIndex (XmPrimitiveIndex + 1)
49
50 typedef struct _DogClassPart {
51     int reserved;
52 } DogClassPart;
53
54 typedef struct _DogClassRec {
55     CoreClassPart core_class;
56     XmPrimitiveClassPart primitive_class;
57     DogClassPart dog_class;
58 } DogClassRec;
59
60 extern DogClassRec dogClassRec;
61
62 typedef struct _DogPart {
63     int wag_time;
64     int bark_time;
65     XtCallbackList bark_callback;
66
67     Boolean wagging;
68     Boolean barking;
69     GC draw_GC;
70     Pixmap up_pixmap;
71     Pixmap down_pixmap;
72     Pixmap bark_pixmap;
73     Position pixmap_x;
74     Position pixmap_y;
75     Position draw_x;
76     Position draw_y;
77     Dimension draw_width;
78     Dimension draw_height;
79     int curr_px;
80     Pixmap curr_pixmap;
81     Dimension curr_width;
82     Dimension curr_height;
83 } DogPart;
84
85 typedef struct _DogRec {
86     CorePart core;
87     XmPrimitivePart primitive;
88     DogPart dog;
89 } DogRec;
90
91 #define UpPx 0
92 #define DownPx 1
93 #define BarkPx 2
94
95 #endif /* _DogP_h */
96 /* DON'T ADD ANYTHING AFTER THIS #endif */