Mercurial > projects > dstep
comparison dstep/appkit/NSTextInputClient.d @ 16:19885b43130e
Huge update, the bridge actually works now
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sun, 03 Jan 2010 22:06:11 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
15:7ff919f595d5 | 16:19885b43130e |
---|---|
1 /** | |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Sep 24, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.appkit.NSTextInputClient; | |
8 | |
9 import dstep.applicationservices.coregraphics.CGBase; | |
10 import dstep.foundation.NSArray; | |
11 import dstep.foundation.NSAttributedString; | |
12 import dstep.foundation.NSGeometry; | |
13 import dstep.foundation.NSObjCRuntime; | |
14 import dstep.foundation.NSObject; | |
15 import dstep.foundation.NSRange; | |
16 import dstep.objc.bridge.Bridge; | |
17 import dstep.objc.objc; | |
18 | |
19 interface INSTextInputClient | |
20 { | |
21 void insertText (Object aString, NSRange replacementRange); | |
22 void doCommandBySelector (SEL aSelector); | |
23 void setMarkedText (Object aString, NSRange selectedRange, NSRange replacementRange); | |
24 void unmarkText (); | |
25 NSRange selectedRange (); | |
26 NSRange markedRange (); | |
27 bool hasMarkedText (); | |
28 NSAttributedString attributedSubstringForProposedRange (NSRange aRange, NSRangePointer actualRange); | |
29 NSArray validAttributesForMarkedText (); | |
30 NSRect firstRectForCharacterRange (NSRange aRange, NSRangePointer actualRange); | |
31 NSUInteger characterIndexForPoint (NSPoint aPoint); | |
32 NSAttributedString attributedString (); | |
33 CGFloat fractionOfDistanceThroughGlyphForPoint (NSPoint aPoint); | |
34 CGFloat baselineDeltaForCharacterAtIndex (NSUInteger anIndex); | |
35 NSInteger windowLevel (); | |
36 } | |
37 |