1 /* GdkQuartzView.h
2  *
3  * Copyright (C) 2005 Imendio AB
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #import <AppKit/AppKit.h>
20 #include "gdk/gdk.h"
21 
22 /* Text Input Client */
23 #define TIC_MARKED_TEXT "tic-marked-text"
24 #define TIC_SELECTED_POS  "tic-selected-pos"
25 #define TIC_SELECTED_LEN  "tic-selected-len"
26 #define TIC_INSERT_TEXT "tic-insert-text"
27 #define TIC_INSERT_TEXT_REPLACE_LEN "tic-insert-text-replace-len"
28 #define TIC_IN_KEY_DOWN "tic-in-key-down"
29 
30 /* GtkIMContext */
31 #define GIC_CURSOR_RECT  "gic-cursor-rect"
32 #define GIC_FILTER_KEY   "gic-filter-key"
33 #define GIC_FILTER_PASSTHRU	0
34 #define GIC_FILTER_FILTERED	1
35 
36 @interface GdkQuartzView : NSView <NSTextInputClient>
37 {
38   GdkWindow *gdk_window;
39   NSTrackingRectTag trackingRect;
40   BOOL needsInvalidateShadow;
41   NSRange markedRange;
42   NSRange selectedRange;
43 }
44 
45 - (void)setGdkWindow: (GdkWindow *)window;
46 - (GdkWindow *)gdkWindow;
47 - (NSTrackingRectTag)trackingRect;
48 - (void)setNeedsInvalidateShadow: (BOOL)invalidate;
49 
50 @end
51