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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 typedef UInt16 ATSGlyphRef; | 43 typedef UInt16 ATSGlyphRef; |
44 | 44 |
45 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES | 45 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES |
46 typedef struct CGPoint NSPoint; | 46 typedef struct CGPoint NSPoint; |
47 typedef struct CGRect NSRect; | 47 typedef struct CGRect NSRect; |
48 #else | 48 #else |
49 typedef struct _NSPoint NSPoint; | 49 typedef struct _NSPoint NSPoint; |
50 typedef struct _NSRect NSRect; | 50 typedef struct _NSRect NSRect; |
51 #endif | 51 #endif |
52 | 52 |
53 OBJC_CLASS NSButtonCell; | |
54 OBJC_CLASS NSFont; | 53 OBJC_CLASS NSFont; |
55 OBJC_CLASS NSString; | 54 OBJC_CLASS NSString; |
56 | 55 |
57 extern "C" { | 56 extern "C" { |
58 | 57 |
59 extern void WKAdvanceDefaultButtonPulseAnimation(NSButtonCell*); | |
60 extern void WKDrawBezeledTextFieldCell(NSRect, BOOL enabled); | 58 extern void WKDrawBezeledTextFieldCell(NSRect, BOOL enabled); |
61 extern void WKDrawCapsLockIndicator(CGContextRef, CGRect); | 59 extern void WKDrawCapsLockIndicator(CGContextRef, CGRect); |
62 extern void WKDrawBezeledTextArea(NSRect, BOOL enabled); | 60 extern void WKDrawBezeledTextArea(NSRect, BOOL enabled); |
63 extern NSFont* WKGetFontInLanguageForRange(NSFont*, NSString*, NSRange); | 61 extern NSFont* WKGetFontInLanguageForRange(NSFont*, NSString*, NSRange); |
64 extern NSFont* WKGetFontInLanguageForCharacter(NSFont*, UniChar); | 62 extern NSFont* WKGetFontInLanguageForCharacter(NSFont*, UniChar); |
65 extern BOOL WKGetGlyphTransformedAdvances(CGFontRef, NSFont*, CGAffineTransform*
, ATSGlyphRef*, CGSize* advance); | 63 extern BOOL WKGetGlyphTransformedAdvances(CGFontRef, NSFont*, CGAffineTransform*
, ATSGlyphRef*, CGSize* advance); |
66 extern void WKSetUpFontCache(); | 64 extern void WKSetUpFontCache(); |
67 extern void WKGetGlyphsForCharacters(CGFontRef, const UniChar[], CGGlyph[], size
_t); | 65 extern void WKGetGlyphsForCharacters(CGFontRef, const UniChar[], CGGlyph[], size
_t); |
68 extern bool WKGetVerticalGlyphsForCharacters(CTFontRef, const UniChar[], CGGlyph
[], size_t); | 66 extern bool WKGetVerticalGlyphsForCharacters(CTFontRef, const UniChar[], CGGlyph
[], size_t); |
69 extern CTLineRef WKCreateCTLineWithUniCharProvider(const UniChar* (*provide)(CFI
ndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void
(*dispose)(const UniChar* chars, void*), void*); | 67 extern CTLineRef WKCreateCTLineWithUniCharProvider(const UniChar* (*provide)(CFI
ndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void
(*dispose)(const UniChar* chars, void*), void*); |
70 | 68 |
71 } // extern "C" | 69 } // extern "C" |
72 | 70 |
73 #endif | 71 #endif |
OLD | NEW |