2005-11-22 10:03:32 +00:00
|
|
|
/* GdkQuartzView.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2005 Imendio AB
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2012-02-27 13:01:10 +00:00
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2005-11-22 10:03:32 +00:00
|
|
|
*/
|
|
|
|
|
2007-02-18 10:26:49 +00:00
|
|
|
#import <AppKit/AppKit.h>
|
2013-05-20 17:48:32 +00:00
|
|
|
#include "gdk/gdk.h"
|
2005-11-22 10:03:32 +00:00
|
|
|
|
2013-05-20 17:48:32 +00:00
|
|
|
/* Text Input Client */
|
|
|
|
#define TIC_MARKED_TEXT "tic-marked-text"
|
|
|
|
#define TIC_SELECTED_POS "tic-selected-pos"
|
|
|
|
#define TIC_SELECTED_LEN "tic-selected-len"
|
|
|
|
#define TIC_INSERT_TEXT "tic-insert-text"
|
2019-01-25 07:10:34 +00:00
|
|
|
#define TIC_INSERT_TEXT_REPLACE_LEN "tic-insert-text-replace-len"
|
2013-08-16 16:54:34 +00:00
|
|
|
#define TIC_IN_KEY_DOWN "tic-in-key-down"
|
2013-05-20 17:48:32 +00:00
|
|
|
|
|
|
|
/* GtkIMContext */
|
|
|
|
#define GIC_CURSOR_RECT "gic-cursor-rect"
|
|
|
|
#define GIC_FILTER_KEY "gic-filter-key"
|
|
|
|
#define GIC_FILTER_PASSTHRU 0
|
|
|
|
#define GIC_FILTER_FILTERED 1
|
|
|
|
|
|
|
|
@interface GdkQuartzView : NSView <NSTextInputClient>
|
|
|
|
{
|
2005-11-22 10:03:32 +00:00
|
|
|
GdkWindow *gdk_window;
|
2007-06-19 22:09:56 +00:00
|
|
|
NSTrackingRectTag trackingRect;
|
2008-02-27 10:49:22 +00:00
|
|
|
BOOL needsInvalidateShadow;
|
2013-05-20 17:48:32 +00:00
|
|
|
NSRange markedRange;
|
|
|
|
NSRange selectedRange;
|
2005-11-22 10:03:32 +00:00
|
|
|
}
|
|
|
|
|
2013-05-20 17:48:32 +00:00
|
|
|
- (void)setGdkWindow: (GdkWindow *)window;
|
|
|
|
- (GdkWindow *)gdkWindow;
|
|
|
|
- (NSTrackingRectTag)trackingRect;
|
|
|
|
- (void)setNeedsInvalidateShadow: (BOOL)invalidate;
|
2005-11-22 10:03:32 +00:00
|
|
|
|
|
|
|
@end
|