Annotation of researchv9/X11/src/X.V11R1/lib/Xtk/Text.h, revision 1.1

1.1     ! root        1: /*
        !             2: * $Header: Text.h,v 1.2 87/09/11 21:24:44 haynes Rel $
        !             3: */
        !             4: 
        !             5: /*
        !             6:  * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
        !             7:  * 
        !             8:  *                         All Rights Reserved
        !             9:  * 
        !            10:  * Permission to use, copy, modify, and distribute this software and its 
        !            11:  * documentation for any purpose and without fee is hereby granted, 
        !            12:  * provided that the above copyright notice appear in all copies and that
        !            13:  * both that copyright notice and this permission notice appear in 
        !            14:  * supporting documentation, and that the name of Digital Equipment
        !            15:  * Corporation not be used in advertising or publicity pertaining to
        !            16:  * distribution of the software without specific, written prior permission.  
        !            17:  * 
        !            18:  * 
        !            19:  * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
        !            20:  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
        !            21:  * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
        !            22:  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
        !            23:  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
        !            24:  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
        !            25:  * SOFTWARE.
        !            26:  */
        !            27: #ifndef _XtText_h
        !            28: #define _XtText_h
        !            29: 
        !            30: /****************************************************************
        !            31:  *
        !            32:  * Text widget
        !            33:  *
        !            34:  ****************************************************************/
        !            35: 
        !            36: #define XtNtextOptions         "textOptions"
        !            37: #define XtNdisplayPosition      "displayPosition"
        !            38: #define XtNinsertPosition      "insertPosition"
        !            39: #define XtNleftMargin          "leftMargin"
        !            40: #define XtNselectionArray      "selectionArray"
        !            41: #define XtNtextSource          "textSource"
        !            42: #define XtNtextSink            "textSink"
        !            43: #define XtNselection           "selection"
        !            44: 
        !            45: #define XtNeditType            "editType"
        !            46: #define XtNfile                        "file"
        !            47: #define XtNstring              "string"
        !            48: #define XtNlength              "length"
        !            49: #define XtNfont                        "font"
        !            50: 
        !            51: /* Class record constants */
        !            52: 
        !            53: extern WidgetClass textWidgetClass;
        !            54: 
        !            55: typedef struct _TextClassRec *TextWidgetClass;
        !            56: typedef struct _TextRec      *TextWidget;
        !            57: 
        !            58: /* other stuff */
        !            59: 
        !            60: typedef long XtTextPosition;
        !            61: 
        !            62: extern Widget XtTextDiskCreate(); /* parent, args, argCount */
        !            63:     /* Widget   parent;     */
        !            64:     /* ArgList  args;    */
        !            65:     /* int      argCount;   */
        !            66: 
        !            67: extern Widget XtTextStringCreate(); /* parent, args, argCount */
        !            68:     /* Widget   parent;     */
        !            69:     /* ArgList  args;    */
        !            70:     /* int      argCount;   */
        !            71: 
        !            72: typedef enum {XttextRead, XttextAppend, XttextEdit} XtEditType;
        !            73: #define wordBreak              0x01
        !            74: #define scrollVertical         0x02
        !            75: #define scrollHorizontal       0x04
        !            76: #define scrollOnOverflow       0x08
        !            77: #define resizeWidth            0x10
        !            78: #define resizeHeight           0x20
        !            79: #define editable               0x40
        !            80: 
        !            81: extern void XtTextDisplay(); /* w */
        !            82:     /* Widget w; */
        !            83: 
        !            84: extern void XtTextSetSelectionArray(); /* w, sarray */
        !            85:     /* Widget        w;                */
        !            86:     /* SelectionType *sarray;   */
        !            87: 
        !            88: extern void XtTextSetLastPos(); /* w, lastPos */
        !            89:     /* Widget        w;                */
        !            90:     /* XtTextPosition lastPos;  */
        !            91: 
        !            92: extern void XtTextGetSelectionPos(); /* dpy, w, left, right */
        !            93:     /* Widget        w;                */
        !            94:     /* XtTextPosition *left, *right;    */
        !            95: 
        !            96: extern void XtTextNewSource(); /* dpy, w, source, startPos */
        !            97:     /* Widget        w;                */
        !            98:     /* XtTextSource   *source;      */
        !            99:     /* XtTextPosition startPos;     */
        !           100: 
        !           101: extern int XtTextReplace(); /* w, startPos, endPos, text */
        !           102:     /* Widget        w;                */
        !           103:     /* XtTextPosition   startPos, endPos; */
        !           104:     /* XtTextBlock      *text; */
        !           105: 
        !           106: extern XtTextPosition XtTextTopPosition(); /* w */
        !           107:     /* Widget        w;                */
        !           108: 
        !           109: extern void XtTextSetInsertionPoint(); /*  w, position */
        !           110:     /* Widget        w;                */
        !           111:     /* XtTextPosition position; */
        !           112: 
        !           113: extern XtTextPosition XtTextGetInsertionPoint(); /* w */
        !           114:     /* Widget        w;                */
        !           115: 
        !           116: extern void XtTextUnsetSelection(); /* w */
        !           117:     /* Widget        w;                */
        !           118: 
        !           119: extern void XtTextChangeOptions(); /* w, options */
        !           120:     /* Widget        w;                */
        !           121:     /* int    options; */
        !           122: 
        !           123: extern int XtTextGetOptions(); /* w */
        !           124:     /* Widget        w;                */
        !           125: 
        !           126: extern void XtTextSetNewSelection(); /* w, left, right */
        !           127:     /* Widget        w;                */
        !           128:     /* XtTextPosition left, right; */
        !           129: 
        !           130: extern void XtTextInvalidate(); /* w, from, to */
        !           131:     /* Widget        w;                */
        !           132:     /* XtTextPosition from, to; */
        !           133: 
        !           134: extern Window XtTextGetInnerWindow(); /* w */
        !           135:     /* Widget        w;                */
        !           136:     /* Window w; */
        !           137: 
        !           138: /*
        !           139:  * Stuff from AsciiSink
        !           140:  */
        !           141: 
        !           142: extern caddr_t XtAsciiSinkCreate(); /* dpy, font, ink, background */
        !           143:     /* Display *dpy; */
        !           144:     /* XFontStruct  *font; */
        !           145:     /* int         ink, background */
        !           146: 
        !           147: extern void XtAsciiSinkDestroy(); /* sink */
        !           148:     /* XtTextSink *sink */
        !           149: 
        !           150: #endif _XtText_h
        !           151: /* DON'T ADD STUFF AFTER THIS #endif */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.