Logo Search packages:      
Sourcecode: dclock version File versions  Download package


 * Dclock.c -- a digital clock widget.
 * Copyright (c) 1988 Dan Heller <argv@sun.com>
#ifndef _XtDclockP_h
#define _XtDclockP_h

#include <X11/CoreP.h>
#include "Dclock.h"

typedef struct {
    Pixel               foreground;
    Pixel               led_off;
    Pixel               background;
    Boolean       tails;            /* put tails on 6 & 9 */
    Boolean       scroll;
    Boolean       fade;
    int                 fade_rate;  /* millisec. betw. fade steps */
    float         angle;            /* rise over run */
    float         width_factor;   /* ratio of digit to segment width */
    float         small_ratio;      /* ratio of small to large digits */
    float         sec_gap;    /* gap between normal digits and
                                 seconds, as ratio to digit width */
    float         space_factor;   /* ratio of digit width to border sp.*/
    Boolean       seconds;
    Boolean       blink;            /* colon blinks the seconds */
    Boolean       bell;
    Boolean       miltime;
    Boolean       display_time;     /* when false, display alarm time */
    Boolean       alarm;            /* alarm goes off at alarm time */
    String        alarm_time; /* time alarm goes off "14:30:00" */
    String        date_fmt;
    Boolean       dateup;
    String        alarmfile;  /* audio file to play for alarm */
    String        bellfile;   /* audio file to play for hour bell */
    String        audioplay;  /* executable to use to play bell */
    XFontStruct         *font;

    /* non-resources (e.g. user can't set) */
    XtIntervalId  interval_id;
    GC                  foreGC, backGC;
    float         digit_w, digit_h;
    Pixmap        digits[11];
    Pixmap        tiny_digits[10];
    Pixmap        colon[2];
} DclockPart;

typedef struct _DclockRec {
    CorePart      core;
    DclockPart    dclock;
} DclockRec;

typedef struct {int dummy;} DclockClassPart;

typedef struct _DclockClassRec {
    CoreClassPart core_class;
    DclockClassPart     dclock_class;
} DclockClassRec;

extern DclockClassRec dclockClassRec;

#endif _XtDclockP_h

Generated by  Doxygen 1.6.0   Back to index