One more check on valid display which is known to be in the startup
[xcircuit.git] / Xw / SourceP.h
blob007613ed4d117f5775d9c5f40f4d055b538c104a
1 /*************************************<+>*************************************
2 *****************************************************************************
3 **
4 ** File: SourceP.h
5 **
6 ** Project: X Widgets
7 **
8 ** Description: private include file for TextEdit widget sources
9 **
10 *****************************************************************************
11 **
12 ** Copyright (c) 1988 by Hewlett-Packard Company
13 ** Copyright (c) 1987, 1988 by Digital Equipment Corporation, Maynard,
14 ** Massachusetts, and the Massachusetts Institute of Technology,
15 ** Cambridge, Massachusetts
16 **
17 ** Permission to use, copy, modify, and distribute this software
18 ** and its documentation for any purpose and without fee is hereby
19 ** granted, provided that the above copyright notice appear in all
20 ** copies and that both that copyright notice and this permission
21 ** notice appear in supporting documentation, and that the names of
22 ** Hewlett-Packard, Digital or M.I.T. not be used in advertising or
23 ** publicity pertaining to distribution of the software without
24 ** written prior permission.
25 **
26 ** DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
27 ** ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
28 ** DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
29 ** ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
30 ** WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
31 ** ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
32 ** SOFTWARE.
33 **
34 *****************************************************************************
35 *************************************<+>*************************************/
37 #ifndef _XwTextEditSourcePrivate_h
38 #define _XwTextEditSourcePrivate_h
40 #define applySource(method) (*(self->text.source->method))
42 #define XwEstringSrc "stringsrc"
43 #define XwEdiskSrc "disksrc"
45 typedef struct _StringSourceData {
46 XwEditType editMode;
47 unsigned char *buffer;
48 unsigned char *initial_string;
49 XwTextPosition length, /* current data size of buffer */
50 buffer_size, /* storage size of buffer */
51 max_size; /* user specified buffer limit */
52 int max_size_flag; /* flag to test max_size set */
53 } StringSourceData, *StringSourcePtr;
56 #endif
57 /* DON'T ADD STUFF AFTER THIS #endif */