|
|
researchv9-SUN3(old)
#ifndef lint
static char rcsid[] = "$Header: /var/lib/cvsd/repos/research/researchv9/X11/src/X.V11R1/lib/Xtk/Knob.c,v 1.1.1.1 2018/04/24 17:22:00 root Exp $";
#endif lint
/*
* Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
*
* All Rights Reserved
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted,
* 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 Digital Equipment
* Corporation not be used in advertising or publicity pertaining to
* distribution of the software without specific, written prior permission.
*
*
* DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
* ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
* DIGITAL 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.
*/
/*
* Knob.c - Knob composite Widget (Used by VPane Widget)
*
* Author: Jeanne M. Rich
* Digital Equipment Corporation
* Western Research Laboratory
* Date: Wednesday, September 9 1987
*
*/
#include "/usr/src/x11/include/Xlib.h"
#include "cursorfont.h"
#include "Intrinsic.h"
#include "KnobP.h"
#include "Knob.h"
#include "Atoms.h"
extern void ClassInitialize();
static Resource resources[] = {
{XtNbackground, XtCBackground, XrmRPixel, sizeof(Pixel),
Offset(KnobWidget, core.background_pixel), XtRString, "Black"},
{XtNborderWidth, XtCBorderWidth, XrmRInt, sizeof(int),
Offset(KnobWidget, core.border_width), XtRString, "0"}
};
KnobClassRec knobClassRec = {
{
/* core class fields */
/* superclass */ (WidgetClass) &widgetClassRec,
/* class name */ "Knob",
/* size */ sizeof(KnobRec),
/* class initialize */ ClassInitialize,
/* class_inited */ FALSE,
/* initialize */ NULL,
/* realize */ NULL,
/* actions */ NULL,
/* num_actions */ 0,
/* resourses */ resources,
/* resource_count */ XtNumber(resources),
/* xrm_class */ NULLQUARK,
/* compress_motion */ TRUE,
/* compress_exposure */ TRUE,
/* visible_interest */ FALSE,
/* destroy */ NULL,
/* resize */ NULL,
/* expose */ NULL,
/* set_values */ NULL,
/* accept_focus */ NULL
}, {
/* mumble */ 0 /* make C compiler happy */
}
};
WidgetClass knobWidgetClass = (WidgetClass) &knobClassRec;
static void ClassInitialize()
{
WidgetClass superclass;
KnobWidgetClass myclass;
myclass = (KnobWidgetClass) knobWidgetClass;
superclass = (WidgetClass) myclass->core_class.superclass;
/* Inherit initialize and realize from Core */
myclass->core_class.initialize =
superclass->core_class.initialize;
myclass->core_class.realize =
superclass->core_class.realize;
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.