mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 18:40:38 +00:00
Implement NSTextFinder protocol on NSTextView.
This commit is contained in:
parent
3030efa9f7
commit
405b9bae2f
4 changed files with 73 additions and 8 deletions
|
@ -115,21 +115,24 @@ APPKIT_EXPORT NSPasteboardTypeTextFinderOptionKey const NSTextFinderMatchingType
|
|||
|
||||
- (NSString *) string;
|
||||
|
||||
- (NSString *)stringAtIndex:(NSUInteger)characterIndex effectiveRange:(NSRangePointer)outRange endsWithSearchBoundary:(BOOL *)outFlag;
|
||||
- (NSUInteger)stringLength;
|
||||
- (NSString *) stringAtIndex: (NSUInteger)characterIndex
|
||||
effectiveRange: (NSRangePointer)outRange
|
||||
endsWithSearchBoundary: (BOOL *)outFlag;
|
||||
|
||||
- (NSUInteger) stringLength;
|
||||
|
||||
- (NSRange) firstSelectedRange;
|
||||
|
||||
- (NSArray *) selectedRanges;
|
||||
- (void) setSelectedRanges: (NSArray *)ranges;
|
||||
- (void)scrollRangeToVisible:(NSRange)range;
|
||||
- (void) scrollRangeToVisible:(NSRange)range;
|
||||
- (BOOL) shouldReplaceCharactersInRanges: (NSArray *)ranges withStrings: (NSArray *)strings;
|
||||
- (void) replaceCharactersInRange: (NSRange)range withString: (NSString *)string;
|
||||
- (void) didReplaceCharacters;
|
||||
- (NSView *) contentViewAtIndex: (NSUInteger)index effectiveCharacterRange: (NSRangePointer)outRange;
|
||||
- (NSArray *) rectsForCharacterRange: (NSRange)range;
|
||||
- (NSArray *) visibleCharacterRanges;
|
||||
- (void)drawCharactersInRange: (NSRange)range forContentView: (NSView *)view;
|
||||
- (void) drawCharactersInRange: (NSRange)range forContentView: (NSView *)view;
|
||||
|
||||
@end
|
||||
|
||||
|
@ -148,8 +151,6 @@ APPKIT_EXPORT NSPasteboardTypeTextFinderOptionKey const NSTextFinderMatchingType
|
|||
|
||||
@end
|
||||
|
||||
|
||||
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue