File: DclockP.h

package info (click to toggle)
dclock 2.1.2-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 204 kB
  • ctags: 199
  • sloc: ansic: 1,770; makefile: 47
file content (62 lines) | stat: -rw-r--r-- 1,819 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
 * 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