/*
**   ----------------------------------------------------------------- 
**        Copyright (C) 1990, 1991 Sun Microsystems, Inc
**                   All rights reserved.
**         Notice of copyright on this source code
**         product does not indicate publication.
**   
**   RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by
**   the U.S. Government is subject to restrictions as set forth
**   in subparagraph (c)(1)(ii) of the Rights in Technical Data
**   and Computer Software Clause at DFARS 252.227-7013 (Oct. 1988)
**   and FAR 52.227-19 (c) (June 1987).
**   
**     Sun Microsystems, Inc., 2550 Garcia Avenue,
**     Mountain View, California 94043.
**   ----------------------------------------------------------------- 
*/
/*	Copyright (c) 1990 UNIX System Laboratories, Inc.	*/
/*	Copyright (c) 1988 AT&T	*/
/*	  All Rights Reserved  	*/

/*	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF     	*/
/*	UNIX System Laboratories, Inc.                     	*/
/*	The copyright notice above does not evidence any   	*/
/*	actual or intended publication of such source code.	*/

#ifndef	NOIDENT
#ident	"@(#)notice:include/openlook/NoticeP.h	1.14"
#endif

/* 
 * NoticeP.h - Private definitions for Notice widget
 */

#ifndef _NoticeP_h
#define _NoticeP_h

/*
 * Notice Widget Private Data
 */

#include <X11/ShellP.h>
#include <Xol/Notice.h>

/***********************************************************************
 *
 *	Class structure
 *
 **********************************************************************/

/* New fields for the Notice widget class record */
typedef struct {
    int no_class_fields;	/* make compiler happy */
} NoticeShellClassPart;

/* Full class record declaration */
typedef struct _NoticeShellClassRec {
    CoreClassPart		core_class;
    CompositeClassPart  	composite_class;
    ShellClassPart		shell_class;
    WMShellClassPart            wm_shell_class;
    VendorShellClassPart        vendor_shell_class;
    TransientShellClassPart	transient_shell_class;
    NoticeShellClassPart	notice_shell_class;
} NoticeShellClassRec;

/* Class record variable */
externalref NoticeShellClassRec noticeShellClassRec;

/***********************************************************************
 *
 *	Instance (widget) structure
 *
 **********************************************************************/

/* New fields for the Notice widget record */
typedef struct {
    /* "public" (resource) members */
    Widget	control;	/* control box for buttons */
    Widget	emanate;	/* originating widget */
    Widget	text;		/* notice text widget */
    Boolean	warp_pointer;

    /* private members */
    Boolean	do_unwarp;	/* unwarp only when no motion */
    int		root_x;		/* to restore warped pointer */
    int		root_y;		/* to restore warped pointer */
} NoticeShellPart;

/* Full instance record declaration */
typedef struct _NoticeShellRec {
    CorePart		core;
    CompositePart	composite;
    ShellPart		shell;
    WMShellPart         wm;
    VendorShellPart     vendor;
    TransientShellPart	transient;
    NoticeShellPart	notice_shell;
} NoticeShellRec;

#endif /* _NoticeP_h */
