2020-04-23 23:36:46 +00:00
|
|
|
/* GdkMacosBaseView.h
|
2005-11-22 10:03:32 +00:00
|
|
|
*
|
2020-04-23 23:36:46 +00:00
|
|
|
* Copyright © 2020 Red Hat, Inc.
|
|
|
|
* Copyright © 2005-2007 Imendio AB
|
2005-11-22 10:03:32 +00:00
|
|
|
*
|
|
|
|
* 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/>.
|
2020-04-23 23:36:46 +00:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: LGPL-2.1-or-later
|
2005-11-22 10:03:32 +00:00
|
|
|
*/
|
|
|
|
|
2007-02-18 10:26:49 +00:00
|
|
|
#import <AppKit/AppKit.h>
|
2020-04-23 23:36:46 +00:00
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
#include <gdk/gdk.h>
|
2005-11-22 10:03:32 +00:00
|
|
|
|
2020-04-23 23:36:46 +00:00
|
|
|
#include "gdkmacosdisplay.h"
|
|
|
|
#include "gdkmacossurface.h"
|
2013-05-20 17:48:32 +00:00
|
|
|
|
2020-04-23 23:36:46 +00:00
|
|
|
#define GDK_IS_MACOS_BASE_VIEW(obj) ((obj) && [obj isKindOfClass:[GdkMacosBaseView class]])
|
2013-05-20 17:48:32 +00:00
|
|
|
|
2020-04-23 23:36:46 +00:00
|
|
|
@interface GdkMacosBaseView : NSView <NSTextInputClient>
|
2013-05-20 17:48:32 +00:00
|
|
|
{
|
2020-04-23 23:36:46 +00:00
|
|
|
NSTrackingArea *trackingArea;
|
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
|
|
|
}
|
|
|
|
|
2020-04-23 23:36:46 +00:00
|
|
|
-(GdkMacosSurface *)gdkSurface;
|
|
|
|
-(GdkMacosDisplay *)gdkDisplay;
|
|
|
|
-(void)setNeedsInvalidateShadow: (BOOL)invalidate;
|
|
|
|
-(NSTrackingArea *)trackingArea;
|
|
|
|
-(void)setOpaqueRegion:(cairo_region_t *)region;
|
2022-02-05 01:24:13 +00:00
|
|
|
-(void)setInputArea:(const cairo_rectangle_int_t *)area;
|
2005-11-22 10:03:32 +00:00
|
|
|
|
|
|
|
@end
|