2 ** $XConsortium: TermPrimSelectP.h /main/1 1996/04/21 19:19:31 drk $
5 * (c) Copyright 1993, 1994 Hewlett-Packard Company *
6 * (c) Copyright 1993, 1994 International Business Machines Corp. *
7 * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
8 * (c) Copyright 1993, 1994 Novell, Inc. *
10 #ifndef _Dt_TermPrimSelectP_h
11 #define _Dt_TermPrimSelectP_h
14 #include "TermPrimSelect.h"
16 typedef enum { scanLeft, scanRight } TermScanDirection;
18 typedef struct _termSelectRec
25 typedef struct _TermSelectPrimary
31 } _TermSelectPrimaryRec;
33 typedef int selectPosition;
35 typedef struct _TermSelectionHint
42 ** Selection specific information.
44 typedef struct _termSelectInfoRec
46 Boolean ownPrimary; /* do we own the primary selection? */
47 Time primaryTime; /* time primary selection acquired */
48 TermSelectType selectType; /* rectanglar selection ? */
50 XmTextScanType *scanArray; /* possible values for scanType */
51 XmTextScanType scanType; /* line, word, character, all */
52 XtIntervalId selectID; /* AppTimeOut ID */
53 short rows; /* rows,cols current buffer useful */
54 short columns; /* for converting position->row,col */
55 XmTextPosition anchor; /* anchor for extending selecions */
56 XmTextPosition begin; /* upper left corner of selection */
57 XmTextPosition end; /* lower right corner of selection */
58 XmTextPosition origBegin; /* upper left corner of selection */
59 XmTextPosition origEnd; /* lower right corner of selection */
60 TermScanDirection extendDir; /* direction to extend selection */
61 TermScanDirection direction; /* select right or left? */
62 Time lastTime; /* time of last button press */
63 Boolean extending; /* true if extending selection */
64 int threshold; /* minimum # of pixels moved */
65 TermSelectionHint hint; /* initial coordinates of selection */
66 TermSelectionHint extend; /* coordinates of extend event */
67 Boolean cancel; /* used to end scroll selection */
68 Boolean isScrollUp; /* scroll selection direction */
69 Boolean sel_start; /* doing selection (True) or drag */
74 #endif /* __cplusplus */
91 XmTextPosition insert_pos;
95 } _DtTermDropTransferRec;
102 _DtTermPrimSelect2ButtonMouse(
110 } /* close scope of 'extern "C"'... */
111 #endif /* __cplusplus */
113 #endif /* _Dt_TermPrimSelectP_h */
114 /* DON'T ADD ANYTHING AFTER THIS #endif... */