LEDP.h revision 010cdda0
1/* $Xorg: LEDP.h,v 1.3 2000/08/17 19:54:51 cpqbld Exp $ */
2/************************************************************
3 Copyright (c) 1995 by Silicon Graphics Computer Systems, Inc.
4
5 Permission to use, copy, modify, and distribute this
6 software and its documentation for any purpose and without
7 fee is hereby granted, provided that the above copyright
8 notice appear in all copies and that both that copyright
9 notice and this permission notice appear in supporting
10 documentation, and that the name of Silicon Graphics not be
11 used in advertising or publicity pertaining to distribution
12 of the software without specific prior written permission.
13 Silicon Graphics makes no representation about the suitability
14 of this software for any purpose. It is provided "as is"
15 without any express or implied warranty.
16
17 SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
18 SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
19 AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
20 GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
21 DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
22 DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
23 OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION  WITH
24 THE USE OR PERFORMANCE OF THIS SOFTWARE.
25
26 ********************************************************/
27#ifndef _XawLEDP_h
28#define _XawLEDP_h
29
30#include "LED.h"
31#include <X11/Xaw/SimpleP.h>
32
33/* New fields for the Label widget class record */
34
35typedef struct {int foo;} LEDClassPart;
36
37/* Full class record declaration */
38typedef struct _LEDClassRec {
39    CoreClassPart	core_class;
40    SimpleClassPart	simple_class;
41    LEDClassPart	led_class;
42} LEDClassRec;
43
44extern LEDClassRec ledClassRec;
45
46/* New fields for the LED widget record */
47typedef struct {
48    /* resources */
49    Pixel	foreground;
50    Pixel	on_color;
51    Pixel	off_color;
52    Pixel	top_color;
53    Pixel	bottom_color;
54    Dimension	bevel;
55    Dimension	led_width;
56    Dimension	led_height;
57    Boolean	on;
58
59    /* private state */
60    Pixmap	on_pixmap;
61    Pixmap      off_pixmap;
62} LEDPart;
63
64/****************************************************************
65 *
66 * Full instance record declaration
67 *
68 ****************************************************************/
69
70typedef struct _LEDRec {
71    CorePart	core;
72    SimplePart	simple;
73    LEDPart	led;
74} LEDRec;
75
76#endif /* _XawLEDP_h */
77