BoxP.h revision 7a84e134
17a84e134Smrg/* 27a84e134Smrg* $Xorg: BoxP.h,v 1.4 2001/02/09 02:03:43 xorgcvs Exp $ 37a84e134Smrg*/ 47a84e134Smrg 57a84e134Smrg 67a84e134Smrg/*********************************************************** 77a84e134Smrg 87a84e134SmrgCopyright 1987, 1988, 1994, 1998 The Open Group 97a84e134Smrg 107a84e134SmrgPermission to use, copy, modify, distribute, and sell this software and its 117a84e134Smrgdocumentation for any purpose is hereby granted without fee, provided that 127a84e134Smrgthe above copyright notice appear in all copies and that both that 137a84e134Smrgcopyright notice and this permission notice appear in supporting 147a84e134Smrgdocumentation. 157a84e134Smrg 167a84e134SmrgThe above copyright notice and this permission notice shall be included in 177a84e134Smrgall copies or substantial portions of the Software. 187a84e134Smrg 197a84e134SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 207a84e134SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 217a84e134SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 227a84e134SmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 237a84e134SmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 247a84e134SmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 257a84e134Smrg 267a84e134SmrgExcept as contained in this notice, the name of The Open Group shall not be 277a84e134Smrgused in advertising or otherwise to promote the sale, use or other dealings 287a84e134Smrgin this Software without prior written authorization from The Open Group. 297a84e134Smrg 307a84e134Smrg 317a84e134SmrgCopyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. 327a84e134Smrg 337a84e134Smrg All Rights Reserved 347a84e134Smrg 357a84e134SmrgPermission to use, copy, modify, and distribute this software and its 367a84e134Smrgdocumentation for any purpose and without fee is hereby granted, 377a84e134Smrgprovided that the above copyright notice appear in all copies and that 387a84e134Smrgboth that copyright notice and this permission notice appear in 397a84e134Smrgsupporting documentation, and that the name of Digital not be 407a84e134Smrgused in advertising or publicity pertaining to distribution of the 417a84e134Smrgsoftware without specific, written prior permission. 427a84e134Smrg 437a84e134SmrgDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 447a84e134SmrgALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 457a84e134SmrgDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 467a84e134SmrgANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 477a84e134SmrgWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 487a84e134SmrgARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 497a84e134SmrgSOFTWARE. 507a84e134Smrg 517a84e134Smrg******************************************************************/ 527a84e134Smrg/* $XFree86: xc/lib/Xaw/BoxP.h,v 1.10 2001/01/17 19:42:25 dawes Exp $ */ 537a84e134Smrg 547a84e134Smrg#ifndef _XawBoxP_h 557a84e134Smrg#define _XawBoxP_h 567a84e134Smrg 577a84e134Smrg/* 587a84e134Smrg * Box Widget Private Data 597a84e134Smrg */ 607a84e134Smrg#include <X11/Xaw/Box.h> 617a84e134Smrg#include <X11/Xmu/Converters.h> 627a84e134Smrg#include <X11/Xaw/XawInit.h> 637a84e134Smrg 647a84e134Smrg/* New fields for the Box widget class record */ 657a84e134Smrgtypedef struct { 667a84e134Smrg XtPointer extension; 677a84e134Smrg} BoxClassPart; 687a84e134Smrg 697a84e134Smrg/* Full class record declaration */ 707a84e134Smrgtypedef struct _BoxClassRec { 717a84e134Smrg CoreClassPart core_class; 727a84e134Smrg CompositeClassPart composite_class; 737a84e134Smrg BoxClassPart box_class; 747a84e134Smrg} BoxClassRec; 757a84e134Smrg 767a84e134Smrgextern BoxClassRec boxClassRec; 777a84e134Smrg 787a84e134Smrg/* New fields for the Box widget record */ 797a84e134Smrgtypedef struct { 807a84e134Smrg /* resources */ 817a84e134Smrg Dimension h_space, v_space; 827a84e134Smrg XtOrientation orientation; 837a84e134Smrg 847a84e134Smrg /* private state */ 857a84e134Smrg Dimension preferred_width, preferred_height; 867a84e134Smrg Dimension last_query_width, last_query_height; 877a84e134Smrg XtGeometryMask last_query_mode; 887a84e134Smrg#ifndef OLDXAW 897a84e134Smrg XawDisplayList *display_list; 907a84e134Smrg XtPointer pad[4]; /* for future use and keep binary compatability */ 917a84e134Smrg#endif 927a84e134Smrg} BoxPart; 937a84e134Smrg 947a84e134Smrg/* 957a84e134Smrg * Full instance record declaration 967a84e134Smrg */ 977a84e134Smrgtypedef struct _BoxRec { 987a84e134Smrg CorePart core; 997a84e134Smrg CompositePart composite; 1007a84e134Smrg BoxPart box; 1017a84e134Smrg} BoxRec; 1027a84e134Smrg 1037a84e134Smrg#endif /* _XawBoxP_h */ 104