Clock.h 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. All Rights Reserved
  39. Permission to use, copy, modify, and distribute this software and its
  40. documentation for any purpose and without fee is hereby granted,
  41. provided that the above copyright notice appear in all copies and that
  42. both that copyright notice and this permission notice appear in
  43. supporting documentation, and that the names of Digital or MIT not be
  44. used in advertising or publicity pertaining to distribution of the
  45. software without specific, written prior permission.
  46. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  47. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  48. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  49. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  50. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  51. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  52. SOFTWARE.
  53. ***
  54. ***
  55. ***-------------------------------------------------------------------*/
  56. #ifndef _DtClock_h
  57. #define _DtClock_h
  58. #include <Xm/Xm.h>
  59. #ifndef DtIsClock
  60. #define DtIsClock(w) XtIsSubclass(w, dtClockGadgetClass)
  61. #endif /* DtIsClock */
  62. /******** Public Function Declarations ********/
  63. extern Widget DtCreateClock(
  64. Widget parent,
  65. String name,
  66. ArgList arglist,
  67. Cardinal argcount) ;
  68. extern WidgetClass dtClockGadgetClass;
  69. typedef struct _DtClockClassRec * DtClockClass;
  70. typedef struct _DtClockRec * DtClockGadget;
  71. #endif /* _DtClock_h */
  72. /* DON'T ADD ANYTHING AFTER THIS #endif */