| 1 |
/* |
| 2 |
* Motif |
| 3 |
* |
| 4 |
* Copyright (c) 1987-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 |
* HISTORY |
| 25 |
*/ |
| 26 |
/* $XConsortium: DogP.h /main/5 1995/07/14 10:06:06 drk $ */ |
| 27 |
|
| 28 |
/***************************************************************************** |
| 29 |
* |
| 30 |
* DogP.H - widget private header file |
| 31 |
* |
| 32 |
******************************************************************************/ |
| 33 |
|
| 34 |
#ifndef _DogP_h |
| 35 |
#define _DogP_h |
| 36 |
|
| 37 |
#include <Xm/PrimitiveP.h> |
| 38 |
#include "Dog.h" |
| 39 |
|
| 40 |
void _DogDrawPixmap(); |
| 41 |
void _DogPosition(); |
| 42 |
|
| 43 |
#define DogIndex (XmPrimitiveIndex + 1) |
| 44 |
|
| 45 |
typedef struct _DogClassPart { |
| 46 |
XtPointer reserved; |
| 47 |
} DogClassPart; |
| 48 |
|
| 49 |
typedef struct _DogClassRec { |
| 50 |
CoreClassPart core_class; |
| 51 |
XmPrimitiveClassPart primitive_class; |
| 52 |
DogClassPart dog_class; |
| 53 |
} DogClassRec; |
| 54 |
|
| 55 |
extern DogClassRec dogClassRec; |
| 56 |
|
| 57 |
typedef struct _DogPart { |
| 58 |
int wag_time; |
| 59 |
int bark_time; |
| 60 |
XtCallbackList bark_callback; |
| 61 |
|
| 62 |
Boolean wagging; |
| 63 |
Boolean barking; |
| 64 |
GC draw_GC; |
| 65 |
Pixmap up_pixmap; |
| 66 |
Pixmap down_pixmap; |
| 67 |
Pixmap bark_pixmap; |
| 68 |
Position pixmap_x; |
| 69 |
Position pixmap_y; |
| 70 |
Position draw_x; |
| 71 |
Position draw_y; |
| 72 |
Dimension draw_width; |
| 73 |
Dimension draw_height; |
| 74 |
int curr_px; |
| 75 |
Pixmap curr_pixmap; |
| 76 |
Dimension curr_width; |
| 77 |
Dimension curr_height; |
| 78 |
XtIntervalId wagId; |
| 79 |
XtIntervalId barkId; |
| 80 |
} DogPart; |
| 81 |
|
| 82 |
typedef struct _DogRec { |
| 83 |
CorePart core; |
| 84 |
XmPrimitivePart primitive; |
| 85 |
DogPart dog; |
| 86 |
} DogRec; |
| 87 |
|
| 88 |
#define UpPx 0 |
| 89 |
#define DownPx 1 |
| 90 |
#define BarkPx 2 |
| 91 |
|
| 92 |
#endif /* _DogP_h */ |
| 93 |
/* DON'T ADD ANYTHING AFTER THIS #endif */ |