AsciiTextP.h revision 7a84e134
17a84e134Smrg/* 27a84e134Smrg * $Xorg: AsciiTextP.h,v 1.4 2001/02/09 02:03:42 xorgcvs Exp $ 37a84e134Smrg */ 47a84e134Smrg 57a84e134Smrg/*********************************************************** 67a84e134Smrg 77a84e134SmrgCopyright 1987, 1988, 1994, 1998 The Open Group 87a84e134Smrg 97a84e134SmrgPermission to use, copy, modify, distribute, and sell this software and its 107a84e134Smrgdocumentation for any purpose is hereby granted without fee, provided that 117a84e134Smrgthe above copyright notice appear in all copies and that both that 127a84e134Smrgcopyright notice and this permission notice appear in supporting 137a84e134Smrgdocumentation. 147a84e134Smrg 157a84e134SmrgThe above copyright notice and this permission notice shall be included in 167a84e134Smrgall copies or substantial portions of the Software. 177a84e134Smrg 187a84e134SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 197a84e134SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 207a84e134SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 217a84e134SmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 227a84e134SmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 237a84e134SmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 247a84e134Smrg 257a84e134SmrgExcept as contained in this notice, the name of The Open Group shall not be 267a84e134Smrgused in advertising or otherwise to promote the sale, use or other dealings 277a84e134Smrgin this Software without prior written authorization from The Open Group. 287a84e134Smrg 297a84e134Smrg 307a84e134SmrgCopyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. 317a84e134Smrg 327a84e134Smrg All Rights Reserved 337a84e134Smrg 347a84e134SmrgPermission to use, copy, modify, and distribute this software and its 357a84e134Smrgdocumentation for any purpose and without fee is hereby granted, 367a84e134Smrgprovided that the above copyright notice appear in all copies and that 377a84e134Smrgboth that copyright notice and this permission notice appear in 387a84e134Smrgsupporting documentation, and that the name of Digital not be 397a84e134Smrgused in advertising or publicity pertaining to distribution of the 407a84e134Smrgsoftware without specific, written prior permission. 417a84e134Smrg 427a84e134SmrgDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 437a84e134SmrgALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 447a84e134SmrgDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 457a84e134SmrgANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 467a84e134SmrgWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 477a84e134SmrgARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 487a84e134SmrgSOFTWARE. 497a84e134Smrg 507a84e134Smrg******************************************************************/ 517a84e134Smrg/* $XFree86: xc/lib/Xaw/AsciiTextP.h,v 1.8 2001/01/17 19:42:25 dawes Exp $ */ 527a84e134Smrg 537a84e134Smrg/* 547a84e134Smrg * AsciiText.c - Private header file for AsciiText Widget. 557a84e134Smrg * 567a84e134Smrg * This Widget is intended to be used as a simple front end to the 577a84e134Smrg * text widget with an ascii source and ascii sink attached to it. 587a84e134Smrg * 597a84e134Smrg * Date: June 29, 1989 607a84e134Smrg * 617a84e134Smrg * By: Chris D. Peterson 627a84e134Smrg * MIT X Consortium 637a84e134Smrg * kit@expo.lcs.mit.edu 647a84e134Smrg */ 657a84e134Smrg 667a84e134Smrg#ifndef _AsciiTextP_h 677a84e134Smrg#define _AsciiTextP_h 687a84e134Smrg 697a84e134Smrg#include <X11/Xaw/TextP.h> 707a84e134Smrg#include <X11/Xaw/AsciiText.h> 717a84e134Smrg#include <X11/Xaw/AsciiSrc.h> 727a84e134Smrg#include <X11/Xaw/MultiSrc.h> 737a84e134Smrg 747a84e134Smrgtypedef struct { 757a84e134Smrg XtPointer extension; 767a84e134Smrg} AsciiClassPart; 777a84e134Smrg 787a84e134Smrgtypedef struct _AsciiTextClassRec { 797a84e134Smrg CoreClassPart core_class; 807a84e134Smrg SimpleClassPart simple_class; 817a84e134Smrg TextClassPart text_class; 827a84e134Smrg AsciiClassPart ascii_class; 837a84e134Smrg} AsciiTextClassRec; 847a84e134Smrg 857a84e134Smrgextern AsciiTextClassRec asciiTextClassRec; 867a84e134Smrg 877a84e134Smrgtypedef struct { 887a84e134Smrg int resource; 897a84e134Smrg#ifndef OLDXAW 907a84e134Smrg XtPointer pad[4]; /* for future use and keep binary compatability */ 917a84e134Smrg#endif 927a84e134Smrg} AsciiPart; 937a84e134Smrg 947a84e134Smrgtypedef struct _AsciiRec { 957a84e134Smrg CorePart core; 967a84e134Smrg SimplePart simple; 977a84e134Smrg TextPart text; 987a84e134Smrg AsciiPart ascii; 997a84e134Smrg} AsciiRec; 1007a84e134Smrg 1017a84e134Smrg/* 1027a84e134Smrg * Ascii String Emulation widget 1037a84e134Smrg */ 1047a84e134Smrg#ifdef ASCII_STRING 1057a84e134Smrgtypedef struct { 1067a84e134Smrg XtPointer extension; 1077a84e134Smrg} AsciiStringClassPart; 1087a84e134Smrg 1097a84e134Smrgtypedef struct _AsciiStringClassRec { 1107a84e134Smrg CoreClassPart core_class; 1117a84e134Smrg SimpleClassPart simple_class; 1127a84e134Smrg TextClassPart text_class; 1137a84e134Smrg AsciiClassPart ascii_class; 1147a84e134Smrg AsciiStringClassPart string_class; 1157a84e134Smrg} AsciiStringClassRec; 1167a84e134Smrg 1177a84e134Smrgextern AsciiStringClassRec asciiStringClassRec; 1187a84e134Smrg 1197a84e134Smrgtypedef struct { 1207a84e134Smrg int resource; 1217a84e134Smrg#ifndef OLDXAW 1227a84e134Smrg XtPointer pad[4]; /* for future use and keep binary compatability */ 1237a84e134Smrg#endif 1247a84e134Smrg} AsciiStringPart; 1257a84e134Smrg 1267a84e134Smrgtypedef struct _AsciiStringRec { 1277a84e134Smrg CorePart core; 1287a84e134Smrg SimplePart simple; 1297a84e134Smrg TextPart text; 1307a84e134Smrg AsciiPart ascii; 1317a84e134Smrg AsciiStringPart ascii_str; 1327a84e134Smrg} AsciiStringRec; 1337a84e134Smrg#endif /* ASCII_STRING */ 1347a84e134Smrg 1357a84e134Smrg#ifdef ASCII_DISK 1367a84e134Smrg/* 1377a84e134Smrg * Ascii Disk Emulation widget 1387a84e134Smrg */ 1397a84e134Smrgtypedef struct { 1407a84e134Smrg XtPointer extension; 1417a84e134Smrg} AsciiDiskClassPart; 1427a84e134Smrg 1437a84e134Smrgtypedef struct _AsciiDiskClassRec { 1447a84e134Smrg CoreClassPart core_class; 1457a84e134Smrg SimpleClassPart simple_class; 1467a84e134Smrg TextClassPart text_class; 1477a84e134Smrg AsciiClassPart ascii_class; 1487a84e134Smrg AsciiDiskClassPart disk_class; 1497a84e134Smrg} AsciiDiskClassRec; 1507a84e134Smrg 1517a84e134Smrgextern AsciiDiskClassRec asciiDiskClassRec; 1527a84e134Smrg 1537a84e134Smrgtypedef struct { 1547a84e134Smrg char resource; 1557a84e134Smrg#ifndef OLDXAW 1567a84e134Smrg XtPointer pad[4]; /* for future use and keep binary compatability */ 1577a84e134Smrg#endif 1587a84e134Smrg} AsciiDiskPart; 1597a84e134Smrg 1607a84e134Smrgtypedef struct _AsciiDiskRec { 1617a84e134Smrg CorePart core; 1627a84e134Smrg SimplePart simple; 1637a84e134Smrg TextPart text; 1647a84e134Smrg AsciiPart ascii; 1657a84e134Smrg AsciiDiskPart ascii_disk; 1667a84e134Smrg} AsciiDiskRec; 1677a84e134Smrg#endif /* ASCII_DISK */ 1687a84e134Smrg 1697a84e134Smrg#endif /* _AsciiTextP_h */ 170