mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 08:41:23 +00:00
Extract glyph generation code into separate class.
Plus some additional cleanup. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26523 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
50f7974d7c
commit
f59bbe5aa8
8 changed files with 1295 additions and 844 deletions
|
@ -31,6 +31,7 @@
|
|||
#include <Foundation/NSObject.h>
|
||||
#include <Foundation/NSGeometry.h>
|
||||
#include <AppKit/NSFont.h>
|
||||
#include <AppKit/NSGlyphGenerator.h>
|
||||
|
||||
@class GSTypesetter;
|
||||
@class NSTextStorage,NSTextContainer;
|
||||
|
@ -44,10 +45,15 @@ typedef enum
|
|||
NSGlyphInscribeOverBelow = 4
|
||||
} NSGlyphInscription;
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_3, GS_API_LATEST)
|
||||
@interface GSLayoutManager : NSObject <NSGlyphStorage, NSCoding>
|
||||
#else
|
||||
@interface GSLayoutManager : NSObject
|
||||
#endif
|
||||
{
|
||||
@protected
|
||||
NSTextStorage *_textStorage;
|
||||
NSGlyphGenerator *_glyphGenerator;
|
||||
|
||||
id _delegate;
|
||||
|
||||
|
@ -101,6 +107,8 @@ how it's supposed to work. It's functional and correct, but it isn't fast. */
|
|||
- (void) setTextStorage: (NSTextStorage *)aTextStorage;
|
||||
- (void) replaceTextStorage: (NSTextStorage *)newTextStorage;
|
||||
|
||||
- (NSGlyphGenerator *) glyphGenerator;
|
||||
- (void) setGlyphGenerator: (NSGlyphGenerator *)glyphGenerator;
|
||||
|
||||
- (id) delegate;
|
||||
- (void) setDelegate: (id)aDelegate;
|
||||
|
@ -216,9 +224,11 @@ it isn't NULL. */
|
|||
/* These can be used to set arbitrary tags on individual glyphs.
|
||||
Non-negative tags are reserved. You must provide storage yourself (by
|
||||
subclassing). */
|
||||
#if !OS_API_VERSION(MAC_OS_X_VERSION_10_3, GS_API_LATEST)
|
||||
- (void) setIntAttribute: (int)attributeTag
|
||||
value: (int)anInt
|
||||
forGlyphAtIndex: (unsigned int)glyphIndex;
|
||||
#endif
|
||||
- (int) intAttribute: (int)attributeTag
|
||||
forGlyphAtIndex: (unsigned int)glyphIndex;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue