| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 typedef struct CGContext *CGContextRef; | 35 typedef struct CGContext *CGContextRef; |
| 36 typedef struct CGFont *CGFontRef; | 36 typedef struct CGFont *CGFontRef; |
| 37 typedef unsigned short CGGlyph; | 37 typedef unsigned short CGGlyph; |
| 38 | 38 |
| 39 typedef const struct __CTFont * CTFontRef; | 39 typedef const struct __CTFont * CTFontRef; |
| 40 typedef const struct __CTLine * CTLineRef; | 40 typedef const struct __CTLine * CTLineRef; |
| 41 typedef struct _NSRange NSRange; | 41 typedef struct _NSRange NSRange; |
| 42 | 42 |
| 43 typedef UInt16 ATSGlyphRef; | 43 typedef UInt16 ATSGlyphRef; |
| 44 | 44 |
| 45 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES | |
| 46 typedef struct CGPoint NSPoint; | |
| 47 typedef struct CGRect NSRect; | |
| 48 #else | |
| 49 typedef struct _NSPoint NSPoint; | |
| 50 typedef struct _NSRect NSRect; | |
| 51 #endif | |
| 52 | |
| 53 OBJC_CLASS NSFont; | 45 OBJC_CLASS NSFont; |
| 54 OBJC_CLASS NSString; | 46 OBJC_CLASS NSString; |
| 55 | 47 |
| 56 extern "C" { | 48 extern "C" { |
| 57 | 49 |
| 58 extern void WKDrawBezeledTextFieldCell(NSRect, BOOL enabled); | |
| 59 extern void WKDrawCapsLockIndicator(CGContextRef, CGRect); | 50 extern void WKDrawCapsLockIndicator(CGContextRef, CGRect); |
| 60 extern void WKDrawBezeledTextArea(NSRect, BOOL enabled); | |
| 61 extern NSFont* WKGetFontInLanguageForRange(NSFont*, NSString*, NSRange); | 51 extern NSFont* WKGetFontInLanguageForRange(NSFont*, NSString*, NSRange); |
| 62 extern NSFont* WKGetFontInLanguageForCharacter(NSFont*, UniChar); | 52 extern NSFont* WKGetFontInLanguageForCharacter(NSFont*, UniChar); |
| 63 extern BOOL WKGetGlyphTransformedAdvances(CGFontRef, NSFont*, CGAffineTransform*
, ATSGlyphRef*, CGSize* advance); | 53 extern BOOL WKGetGlyphTransformedAdvances(CGFontRef, NSFont*, CGAffineTransform*
, ATSGlyphRef*, CGSize* advance); |
| 64 extern void WKSetUpFontCache(); | |
| 65 extern void WKGetGlyphsForCharacters(CGFontRef, const UniChar[], CGGlyph[], size
_t); | |
| 66 extern bool WKGetVerticalGlyphsForCharacters(CTFontRef, const UniChar[], CGGlyph
[], size_t); | 54 extern bool WKGetVerticalGlyphsForCharacters(CTFontRef, const UniChar[], CGGlyph
[], size_t); |
| 67 extern CTLineRef WKCreateCTLineWithUniCharProvider(const UniChar* (*provide)(CFI
ndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void
(*dispose)(const UniChar* chars, void*), void*); | 55 extern CTLineRef WKCreateCTLineWithUniCharProvider(const UniChar* (*provide)(CFI
ndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void
(*dispose)(const UniChar* chars, void*), void*); |
| 68 | 56 |
| 69 } // extern "C" | 57 } // extern "C" |
| 70 | 58 |
| 71 #endif | 59 #endif |
| OLD | NEW |