2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
24 ** $XConsortium: TermPrimSelectP.h /main/1 1996/04/21 19:19:31 drk $
27 * (c) Copyright 1993, 1994 Hewlett-Packard Company *
28 * (c) Copyright 1993, 1994 International Business Machines Corp. *
29 * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
30 * (c) Copyright 1993, 1994 Novell, Inc. *
32 #ifndef _Dt_TermPrimSelectP_h
33 #define _Dt_TermPrimSelectP_h
36 #include "TermPrimSelect.h"
38 typedef enum { scanLeft, scanRight } TermScanDirection;
40 typedef struct _termSelectRec
47 typedef struct _TermSelectPrimary
53 } _TermSelectPrimaryRec;
55 typedef int selectPosition;
57 typedef struct _TermSelectionHint
64 ** Selection specific information.
66 typedef struct _termSelectInfoRec
68 Boolean ownPrimary; /* do we own the primary selection? */
69 Time primaryTime; /* time primary selection acquired */
70 TermSelectType selectType; /* rectanglar selection ? */
72 XmTextScanType *scanArray; /* possible values for scanType */
73 XmTextScanType scanType; /* line, word, character, all */
74 XtIntervalId selectID; /* AppTimeOut ID */
75 short rows; /* rows,cols current buffer useful */
76 short columns; /* for converting position->row,col */
77 XmTextPosition anchor; /* anchor for extending selecions */
78 XmTextPosition begin; /* upper left corner of selection */
79 XmTextPosition end; /* lower right corner of selection */
80 XmTextPosition origBegin; /* upper left corner of selection */
81 XmTextPosition origEnd; /* lower right corner of selection */
82 TermScanDirection extendDir; /* direction to extend selection */
83 TermScanDirection direction; /* select right or left? */
84 Time lastTime; /* time of last button press */
85 Boolean extending; /* true if extending selection */
86 int threshold; /* minimum # of pixels moved */
87 TermSelectionHint hint; /* initial coordinates of selection */
88 TermSelectionHint extend; /* coordinates of extend event */
89 Boolean cancel; /* used to end scroll selection */
90 Boolean isScrollUp; /* scroll selection direction */
91 Boolean sel_start; /* doing selection (True) or drag */
96 #endif /* __cplusplus */
113 XmTextPosition insert_pos;
117 } _DtTermDropTransferRec;
120 #define _XmConst /**/
124 _DtTermPrimSelect2ButtonMouse(
132 } /* close scope of 'extern "C"'... */
133 #endif /* __cplusplus */
135 #endif /* _Dt_TermPrimSelectP_h */
136 /* DON'T ADD ANYTHING AFTER THIS #endif... */