dtwm: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtwm / Clock.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 libraries 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 ***     
25 ***     file:           Clock.h
26 ***
27 ***     project:        MotifPlus Widgets
28 ***
29 ***     description:    Public include file for DtClock class.
30 ***                     Portions adapted from the Xaw Clock widget.
31 ***     
32 ***     
33 ***                     (c) Copyright 1990 by Hewlett-Packard Company.
34 ***
35 ***
36 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
37 and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
38
39                         All Rights Reserved
40
41 Permission to use, copy, modify, and distribute this software and its 
42 documentation for any purpose and without fee is hereby granted, 
43 provided that the above copyright notice appear in all copies and that
44 both that copyright notice and this permission notice appear in 
45 supporting documentation, and that the names of Digital or MIT not be
46 used in advertising or publicity pertaining to distribution of the
47 software without specific, written prior permission.  
48
49 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
50 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
51 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
52 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
53 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
54 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
55 SOFTWARE.
56 ***
57 ***
58 ***-------------------------------------------------------------------*/
59
60 #ifndef _DtClock_h
61 #define _DtClock_h
62
63 #include <Xm/Xm.h>
64
65 #ifndef DtIsClock
66 #define DtIsClock(w) XtIsSubclass(w, dtClockGadgetClass)
67 #endif /* DtIsClock */
68
69 /********    Public Function Declarations    ********/
70
71 extern Widget DtCreateClock( 
72                         Widget parent,
73                         String name,
74                         ArgList arglist,
75                         Cardinal argcount) ;
76
77 extern WidgetClass dtClockGadgetClass;
78
79 typedef struct _DtClockClassRec * DtClockClass;
80 typedef struct _DtClockRec      * DtClockGadget;
81
82 #endif /* _DtClock_h */
83 /* DON'T ADD ANYTHING AFTER THIS #endif */