|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T d
Length: 2707 (0xa93)
Types: TextFile
Names: »data.h«
└─⟦8648bda34⟧ Bits:30007244 EUUGD5_II: X11R5
└─⟦87c3ac0e0⟧ »./contrib-3/contrib-3.00«
└─⟦de8ce1454⟧
└─⟦this⟧ »contrib/lib/iv/src/bin/dclock/data.h«
/*
* Copyright (c) 1987, 1988, 1989 Stanford University
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided
* that the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the name of Stanford not be used in advertising or
* publicity pertaining to distribution of the software without specific,
* written prior permission. Stanford makes no representations about
* the suitability of this software for any purpose. It is provided "as is"
* without express or implied warranty.
*
* STANFORD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
* IN NO EVENT SHALL STANFORD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/*
* various data for dclock
*/
#ifndef data_h
#define data_h
static const int QKEY = 193;
enum TMode { CIVIL, MIL };
enum CMode { SWEPT, PLACED, DEFINED };
extern int Width; // default width and height of view
extern int Height;
extern int XPos; // default position of view
extern int YPos;
extern TMode TimeMode; // CIVIL=12 hour, MIL=24 hour
extern CMode CreateMode;
extern boolean JohnsFlag; // tail on 9
extern boolean ShowDate; // date at top
extern boolean ShowBorder; // visibility of border between date and time
extern boolean ShowTime; // visibility of time portion
extern int SlantPC; // 100% = "45 degrees"
extern int ThickPC; // segment thickness in % of digit size
extern int FadeRate; // 0 = flash .. 4 = slow fade
extern int FadeStep; // number of patterns to step when fading
extern boolean SegCode[11][7]; // digit "10" is blank
extern float HTx; // digit horizontal positions
extern float HUx;
extern float MTx;
extern float MUx;
extern float ALLy; // digit vertical positions
extern float DigitWidth;
extern float DigitHeight;
struct SegLayout {
int count;
float x[6];
float y[6];
};
struct CharLayout {
int count;
float x[12];
float y[12];
};
struct SegPoints {
int count;
Coord x[6];
Coord y[6];
};
extern SegLayout SegData[7]; // normalized segment positions
extern SegLayout ColonData[2]; // normalized colon positions
extern CharLayout AData; // character position data
extern CharLayout PData;
extern CharLayout MData;
extern void InitData();
#endif