Annotation of researchv9/X11/src/X.V11R1/lib/Xtk/ClockP.h, revision 1.1

1.1     ! root        1: /*
        !             2: * $Header: ClockPrivate.h,v 1.5 87/09/11 21:18:50 haynes Rel $
        !             3: */
        !             4: 
        !             5: /*
        !             6:  * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
        !             7:  * 
        !             8:  *                         All Rights Reserved
        !             9:  * 
        !            10:  * Permission to use, copy, modify, and distribute this software and its 
        !            11:  * documentation for any purpose and without fee is hereby granted, 
        !            12:  * provided that the above copyright notice appear in all copies and that
        !            13:  * both that copyright notice and this permission notice appear in 
        !            14:  * supporting documentation, and that the name of Digital Equipment
        !            15:  * Corporation not be used in advertising or publicity pertaining to
        !            16:  * distribution of the software without specific, written prior permission.  
        !            17:  * 
        !            18:  * 
        !            19:  * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
        !            20:  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
        !            21:  * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
        !            22:  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
        !            23:  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
        !            24:  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
        !            25:  * SOFTWARE.
        !            26:  */
        !            27: #ifndef _XtClockPrivate_h
        !            28: #define _XtClockPrivate_h
        !            29: 
        !            30: #define SEG_BUFF_SIZE          128
        !            31: 
        !            32: /* New fields for the clock widget instance record */
        !            33: typedef struct {
        !            34:         Pixel  fgpixel;        /* color index for text */
        !            35:         Pixel  Hipixel;        /* color index for Highlighting */
        !            36:         Pixel  Hdpixel;        /* color index for hands */
        !            37:         XFontStruct    *font;  /* font for text */
        !            38:         GC     myGC;           /* pointer to GraphicsContext */
        !            39:         GC     EraseGC;        /* eraser GC */
        !            40:         GC     HandGC;         /* Hand GC */
        !            41:         GC     HighGC;         /* Highlighting GC */
        !            42: /* start of graph stuff */
        !            43:         int    update;         /* update frequence */
        !            44:         Dimension radius;              /* radius factor */
        !            45:         Boolean chime;
        !            46:         Boolean beeped;
        !            47:         Boolean analog;
        !            48:         Boolean show_second_hand;
        !            49:         Dimension second_hand_length;
        !            50:         Dimension minute_hand_length;
        !            51:         Dimension hour_hand_length;
        !            52:         Dimension hand_width;
        !            53:         Dimension second_hand_width;
        !            54:         Position centerX;
        !            55:         Position centerY;
        !            56:         int    numseg;
        !            57:         int    padding;
        !            58:         XPoint segbuff[SEG_BUFF_SIZE];
        !            59:         XPoint *segbuffptr;
        !            60:         XPoint *hour, *sec;
        !            61:         struct tm  otm ;
        !            62:         XtIntervalId interval_id;
        !            63:    } ClockPart;
        !            64: 
        !            65: /* Full instance record declaration */
        !            66: typedef struct _ClockRec {
        !            67:    CorePart core;
        !            68:    ClockPart clock;
        !            69:    } ClockRec;
        !            70: 
        !            71: /* New fields for the Clock widget class record */
        !            72: typedef struct {int dummy;} ClockClassPart;
        !            73: 
        !            74: /* Full class record declaration. */
        !            75: typedef struct _ClockClassRec {
        !            76:    CoreClassPart core_class;
        !            77:    ClockClassPart clock_class;
        !            78:    } ClockClassRec;
        !            79: 
        !            80: /* Class pointer. */
        !            81: extern ClockClassRec clockClassRec;
        !            82: 
        !            83: #endif _XtClockPrivate_h

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.