LEDP.h revision 010cdda0
1010cdda0Smrg/* $Xorg: LEDP.h,v 1.3 2000/08/17 19:54:51 cpqbld Exp $ */ 2010cdda0Smrg/************************************************************ 3010cdda0Smrg Copyright (c) 1995 by Silicon Graphics Computer Systems, Inc. 4010cdda0Smrg 5010cdda0Smrg Permission to use, copy, modify, and distribute this 6010cdda0Smrg software and its documentation for any purpose and without 7010cdda0Smrg fee is hereby granted, provided that the above copyright 8010cdda0Smrg notice appear in all copies and that both that copyright 9010cdda0Smrg notice and this permission notice appear in supporting 10010cdda0Smrg documentation, and that the name of Silicon Graphics not be 11010cdda0Smrg used in advertising or publicity pertaining to distribution 12010cdda0Smrg of the software without specific prior written permission. 13010cdda0Smrg Silicon Graphics makes no representation about the suitability 14010cdda0Smrg of this software for any purpose. It is provided "as is" 15010cdda0Smrg without any express or implied warranty. 16010cdda0Smrg 17010cdda0Smrg SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS 18010cdda0Smrg SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 19010cdda0Smrg AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON 20010cdda0Smrg GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL 21010cdda0Smrg DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 22010cdda0Smrg DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 23010cdda0Smrg OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH 24010cdda0Smrg THE USE OR PERFORMANCE OF THIS SOFTWARE. 25010cdda0Smrg 26010cdda0Smrg ********************************************************/ 27010cdda0Smrg#ifndef _XawLEDP_h 28010cdda0Smrg#define _XawLEDP_h 29010cdda0Smrg 30010cdda0Smrg#include "LED.h" 31010cdda0Smrg#include <X11/Xaw/SimpleP.h> 32010cdda0Smrg 33010cdda0Smrg/* New fields for the Label widget class record */ 34010cdda0Smrg 35010cdda0Smrgtypedef struct {int foo;} LEDClassPart; 36010cdda0Smrg 37010cdda0Smrg/* Full class record declaration */ 38010cdda0Smrgtypedef struct _LEDClassRec { 39010cdda0Smrg CoreClassPart core_class; 40010cdda0Smrg SimpleClassPart simple_class; 41010cdda0Smrg LEDClassPart led_class; 42010cdda0Smrg} LEDClassRec; 43010cdda0Smrg 44010cdda0Smrgextern LEDClassRec ledClassRec; 45010cdda0Smrg 46010cdda0Smrg/* New fields for the LED widget record */ 47010cdda0Smrgtypedef struct { 48010cdda0Smrg /* resources */ 49010cdda0Smrg Pixel foreground; 50010cdda0Smrg Pixel on_color; 51010cdda0Smrg Pixel off_color; 52010cdda0Smrg Pixel top_color; 53010cdda0Smrg Pixel bottom_color; 54010cdda0Smrg Dimension bevel; 55010cdda0Smrg Dimension led_width; 56010cdda0Smrg Dimension led_height; 57010cdda0Smrg Boolean on; 58010cdda0Smrg 59010cdda0Smrg /* private state */ 60010cdda0Smrg Pixmap on_pixmap; 61010cdda0Smrg Pixmap off_pixmap; 62010cdda0Smrg} LEDPart; 63010cdda0Smrg 64010cdda0Smrg/**************************************************************** 65010cdda0Smrg * 66010cdda0Smrg * Full instance record declaration 67010cdda0Smrg * 68010cdda0Smrg ****************************************************************/ 69010cdda0Smrg 70010cdda0Smrgtypedef struct _LEDRec { 71010cdda0Smrg CorePart core; 72010cdda0Smrg SimplePart simple; 73010cdda0Smrg LEDPart led; 74010cdda0Smrg} LEDRec; 75010cdda0Smrg 76010cdda0Smrg#endif /* _XawLEDP_h */ 77