mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 09:11:03 +00:00
Moved ivar _textContainer from NSTextView to here.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7670 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
583d66fe10
commit
c037346069
1 changed files with 9 additions and 4 deletions
|
@ -44,6 +44,7 @@
|
|||
@class NSFont;
|
||||
@class NSTextStorage;
|
||||
@class NSTextContainer;
|
||||
@class NSLayoutManager;
|
||||
|
||||
typedef enum _NSTextAlignment {
|
||||
NSLeftTextAlignment = 0,
|
||||
|
@ -93,11 +94,15 @@ typedef enum _NSSelectionAffinity {
|
|||
} NSSelectionAffinity;
|
||||
#endif
|
||||
|
||||
@interface NSText : NSView <NSChangeSpelling,NSIgnoreMisspelledWords,NSCoding>
|
||||
@interface NSText : NSView <NSChangeSpelling,NSIgnoreMisspelledWords>
|
||||
{
|
||||
id _delegate;
|
||||
// content
|
||||
NSTextStorage *_textStorage;
|
||||
NSTextContainer *_textContainer;
|
||||
|
||||
// contains layout information
|
||||
NSLayoutManager *_layoutManager;
|
||||
|
||||
// Attributes
|
||||
struct GSTextFlagsType {
|
||||
|
@ -126,9 +131,6 @@ typedef enum _NSSelectionAffinity {
|
|||
|
||||
// column-stable cursor up/down
|
||||
NSPoint _currentCursor;
|
||||
|
||||
// contains private _GNULineLayoutInfo objects
|
||||
id _layoutManager;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -297,8 +299,11 @@ typedef enum _NSSelectionAffinity {
|
|||
|
||||
@interface NSText(NSTextView)
|
||||
// Methods that should be declared on NSTextView, but are usable for NSText
|
||||
- (id)initWithFrame:(NSRect)frameRect textContainer:(NSTextContainer *)container;
|
||||
- (void)setTextContainer:(NSTextContainer*) container;
|
||||
- (NSTextContainer *)textContainer;
|
||||
- (NSPoint)textContainerOrigin;
|
||||
- (NSSize) textContainerInset;
|
||||
- (void) setRulerVisible: (BOOL)flag;
|
||||
|
||||
- (NSRange)rangeForUserTextChange;
|
||||
|
|
Loading…
Reference in a new issue