rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / x11 / libXaw4 / src / Xaw3_1TextSrcP.h
blob0eba1f1a9371ee9bb9846e2d4ac58fd4f33b5b8d
1 /*
2 * $XConsortium: TextSrcP.h,v 1.17 89/10/04 13:56:16 kit Exp $
3 */
6 /***********************************************************
7 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
8 and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
10 All Rights Reserved
12 Permission to use, copy, modify, and distribute this software and its
13 documentation for any purpose and without fee is hereby granted,
14 provided that the above copyright notice appear in all copies and that
15 both that copyright notice and this permission notice appear in
16 supporting documentation, and that the names of Digital or MIT not be
17 used in advertising or publicity pertaining to distribution of the
18 software without specific, written prior permission.
20 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
21 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
22 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
23 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
24 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
25 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
26 SOFTWARE.
28 ******************************************************************/
30 /*
31 * TextSrcP.h - Private definitions for TextSrc object
35 #ifndef _XawTextSrcP_h
36 #define _XawTextSrcP_h
38 /***********************************************************************
40 * TextSrc Object Private Data
42 ***********************************************************************/
44 #include <X11/ObjectP.h>
45 #include <./Xaw3_1TextSrc.h>
46 #include <./Xaw3_1TextP.h> /* This source works with the Text widget. */
48 /************************************************************
50 * New fields for the TextSrc object class record.
52 ************************************************************/
54 typedef struct _TextSrcClassPart {
55 XawTextPosition (*Read)();
56 int (*Replace)();
57 XawTextPosition (*Scan)();
58 XawTextPosition (*Search)();
59 void (*SetSelection)();
60 Boolean (*ConvertSelection)();
61 } TextSrcClassPart;
63 /* Full class record declaration */
64 typedef struct _TextSrcClassRec {
65 ObjectClassPart object_class;
66 TextSrcClassPart textSrc_class;
67 } TextSrcClassRec;
69 extern TextSrcClassRec textSrcClassRec;
71 /* New fields for the TextSrc object record */
72 typedef struct {
73 /* resources */
74 XawTextEditType edit_mode;
75 } TextSrcPart;
77 /****************************************************************
79 * Full instance record declaration
81 ****************************************************************/
83 typedef struct _TextSrcRec {
84 ObjectPart object;
85 TextSrcPart textSrc;
86 } TextSrcRec;
88 /************************************************************
90 * Private declarations.
92 ************************************************************/
94 typedef Boolean (*_XawBooleanFunc)();
95 typedef int (*_XawIntFunc)();
96 typedef XawTextPosition (*_XawTextPositionFunc)();
97 typedef void (*_XawTextVoidFunc)();
99 #define XtInheritRead ((_XawTextPositionFunc) _XtInherit)
100 #define XtInheritReplace ((_XawIntFunc) _XtInherit)
101 #define XtInheritScan ((_XawTextPositionFunc) _XtInherit)
102 #define XtInheritSearch ((_XawTextPositionFunc) _XtInherit)
103 #define XtInheritSetSelection ((_XawTextVoidFunc) _XtInherit)
104 #define XtInheritConvertSelection ((_XawBooleanFunc) _XtInherit)
106 #endif /* _XawTextSrcP_h */