SmeBSBP.h revision 749
103N/A/*
943N/A * $XConsortium: SmeBSBP.h,v 1.8 94/04/17 21:44:11 rws Exp $
103N/A *
103N/ACopyright (c) 1989, 1994 X Consortium
919N/A
919N/APermission is hereby granted, free of charge, to any person obtaining a copy
919N/Aof this software and associated documentation files (the "Software"), to deal
919N/Ain the Software without restriction, including without limitation the rights
919N/Ato use, copy, modify, merge, publish, distribute, sublicense, and/or sell
919N/Acopies of the Software, and to permit persons to whom the Software is
919N/Afurnished to do so, subject to the following conditions:
919N/A
919N/AThe above copyright notice and this permission notice shall be included in
919N/Aall copies or substantial portions of the Software.
919N/A
919N/ATHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
919N/AIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
919N/AFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
919N/AX CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
919N/AAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
919N/ACONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
103N/A
103N/AExcept as contained in this notice, the name of the X Consortium shall not be
103N/Aused in advertising or otherwise to promote the sale, use or other dealings
103N/Ain this Software without prior written authorization from the X Consortium.
103N/A *
103N/A * Author: Chris D. Peterson, MIT X Consortium
103N/A */
103N/A
103N/A/*
103N/A * SmeP.h - Private definitions for Sme object
103N/A *
103N/A */
103N/A
103N/A#ifndef _XawSmeBSBP_h
103N/A#define _XawSmeBSBP_h
103N/A
103N/A/***********************************************************************
103N/A *
103N/A * Sme Object Private Data
103N/A *
103N/A ***********************************************************************/
103N/A
103N/A#include <X11/Xaw/SmeP.h>
103N/A#include <X11/Xaw/SmeBSB.h>
103N/A
103N/A/************************************************************
103N/A *
103N/A * New fields for the Sme Object class record.
103N/A *
103N/A ************************************************************/
103N/A
103N/Atypedef struct _SmeBSBClassPart {
103N/A XtPointer extension;
103N/A} SmeBSBClassPart;
103N/A
103N/A/* Full class record declaration */
103N/Atypedef struct _SmeBSBClassRec {
103N/A RectObjClassPart rect_class;
103N/A SmeClassPart sme_class;
103N/A SmeBSBClassPart sme_bsb_class;
103N/A} SmeBSBClassRec;
103N/A
103N/Aextern SmeBSBClassRec smeBSBClassRec;
103N/A
103N/A/* New fields for the Sme Object record */
103N/Atypedef struct {
103N/A /* resources */
103N/A String label; /* The entry label. */
103N/A int vert_space; /* extra vert space to leave, as a percentage
103N/A of the font height of the label. */
103N/A Pixmap left_bitmap, right_bitmap; /* bitmaps to show. */
103N/A Dimension left_margin, right_margin; /* left and right margins. */
103N/A Pixel foreground; /* foreground color. */
103N/A XFontStruct * font; /* The font to show label in. */
103N/A XFontSet fontset; /* or fontset*/
103N/A XtJustify justify; /* Justification for the label. */
103N/A
103N/A/* private resources. */
103N/A
103N/A Boolean set_values_area_cleared; /* Remember if we need to unhighlight. */
103N/A GC norm_gc; /* noral color gc. */
103N/A GC rev_gc; /* reverse color gc. */
103N/A GC norm_gray_gc; /* Normal color (grayed out) gc. */
103N/A GC invert_gc; /* gc for flipping colors. */
103N/A
103N/A Dimension left_bitmap_width; /* size of each bitmap. */
103N/A Dimension left_bitmap_height;
103N/A Dimension right_bitmap_width;
103N/A Dimension right_bitmap_height;
103N/A
103N/A} SmeBSBPart;
103N/A
103N/A/****************************************************************
103N/A *
103N/A * Full instance record declaration
103N/A *
103N/A ****************************************************************/
103N/A
103N/Atypedef struct _SmeBSBRec {
103N/A ObjectPart object;
103N/A RectObjPart rectangle;
103N/A SmePart sme;
103N/A SmeBSBPart sme_bsb;
103N/A} SmeBSBRec;
103N/A
103N/A/************************************************************
*
* Private declarations.
*
************************************************************/
#endif /* _XawSmeBSBP_h */