mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 02:50:48 +00:00
Added new ivar and methods from MacOSX to handle writing directions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16550 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f12f062604
commit
7507911543
1 changed files with 15 additions and 1 deletions
|
@ -46,6 +46,12 @@ typedef enum _NSLineBreakMode { /* What to do with long lines */
|
||||||
NSLineBreakByTruncatingMiddle /* Truncate middle of line: "ab...yz" */
|
NSLineBreakByTruncatingMiddle /* Truncate middle of line: "ab...yz" */
|
||||||
} NSLineBreakMode;
|
} NSLineBreakMode;
|
||||||
|
|
||||||
|
typedef enum _NSWritingDirection {
|
||||||
|
NSWritingDirectionNaturalDirection,
|
||||||
|
NSWritingDirectionLeftToRight,
|
||||||
|
NSWritingDirectionRightToLeft
|
||||||
|
} NSWritingDirection;
|
||||||
|
|
||||||
@interface NSTextTab : NSObject <NSCopying>
|
@interface NSTextTab : NSObject <NSCopying>
|
||||||
{
|
{
|
||||||
NSTextTabType _tabStopType;
|
NSTextTabType _tabStopType;
|
||||||
|
@ -68,6 +74,7 @@ typedef enum _NSLineBreakMode { /* What to do with long lines */
|
||||||
NSMutableArray *_tabStops;
|
NSMutableArray *_tabStops;
|
||||||
NSTextAlignment _alignment;
|
NSTextAlignment _alignment;
|
||||||
NSLineBreakMode _lineBreakMode;
|
NSLineBreakMode _lineBreakMode;
|
||||||
|
NSWritingDirection _baseDirection;
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSParagraphStyle*) defaultParagraphStyle;
|
+ (NSParagraphStyle*) defaultParagraphStyle;
|
||||||
|
@ -124,9 +131,13 @@ typedef enum _NSLineBreakMode { /* What to do with long lines */
|
||||||
* 0 implies no maximum.
|
* 0 implies no maximum.
|
||||||
*/
|
*/
|
||||||
- (float) maximumLineHeight;
|
- (float) maximumLineHeight;
|
||||||
|
|
||||||
- (NSLineBreakMode) lineBreakMode;
|
- (NSLineBreakMode) lineBreakMode;
|
||||||
|
|
||||||
|
#ifndef STRICT_OPENSTEP
|
||||||
|
+ (NSWritingDirection) defaultWritingDirectionForLanguage: (NSString*) language;
|
||||||
|
- (NSWritingDirection) baseWritingDirection;
|
||||||
|
#endif
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@interface NSMutableParagraphStyle : NSParagraphStyle
|
@interface NSMutableParagraphStyle : NSParagraphStyle
|
||||||
|
@ -147,4 +158,7 @@ typedef enum _NSLineBreakMode { /* What to do with long lines */
|
||||||
- (void) setTabStops: (NSArray*)array;
|
- (void) setTabStops: (NSArray*)array;
|
||||||
- (void) setParagraphStyle: (NSParagraphStyle*)obj;
|
- (void) setParagraphStyle: (NSParagraphStyle*)obj;
|
||||||
|
|
||||||
|
#ifndef STRICT_OPENSTEP
|
||||||
|
- (void) setBaseWritingDirection: (NSWritingDirection)direction;
|
||||||
|
#endif
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue