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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; | 53 OBJC_CLASS NSButtonCell; |
54 OBJC_CLASS NSFont; | 54 OBJC_CLASS NSFont; |
55 OBJC_CLASS NSString; | 55 OBJC_CLASS NSString; |
56 | 56 |
57 extern "C" { | 57 extern "C" { |
58 | 58 |
59 // In alphabetical order. | 59 extern void WKAdvanceDefaultButtonPulseAnimation(NSButtonCell*); |
60 | 60 extern void WKDrawBezeledTextFieldCell(NSRect, BOOL enabled); |
61 extern void (*wkAdvanceDefaultButtonPulseAnimation)(NSButtonCell *); | 61 extern void WKDrawCapsLockIndicator(CGContextRef, CGRect); |
62 extern void (*wkDrawBezeledTextFieldCell)(NSRect, BOOL enabled); | 62 extern void WKDrawBezeledTextArea(NSRect, BOOL enabled); |
63 extern void (*wkDrawCapsLockIndicator)(CGContextRef, CGRect); | 63 extern NSFont* WKGetFontInLanguageForRange(NSFont*, NSString*, NSRange); |
64 extern void (*wkDrawBezeledTextArea)(NSRect, BOOL enabled); | 64 extern NSFont* WKGetFontInLanguageForCharacter(NSFont*, UniChar); |
65 extern NSFont* (*wkGetFontInLanguageForRange)(NSFont*, NSString*, NSRange); | 65 extern BOOL WKGetGlyphTransformedAdvances(CGFontRef, NSFont*, CGAffineTransform*
, ATSGlyphRef*, CGSize* advance); |
66 extern NSFont* (*wkGetFontInLanguageForCharacter)(NSFont*, UniChar); | 66 extern void WKSetUpFontCache(); |
67 extern BOOL (*wkGetGlyphTransformedAdvances)(CGFontRef, NSFont*, CGAffineTransfo
rm*, ATSGlyphRef*, CGSize* advance); | 67 extern void WKGetGlyphsForCharacters(CGFontRef, const UniChar[], CGGlyph[], size
_t); |
68 extern void (*wkSetUpFontCache)(); | 68 extern bool WKGetVerticalGlyphsForCharacters(CTFontRef, const UniChar[], CGGlyph
[], size_t); |
69 extern void (*wkGetGlyphsForCharacters)(CGFontRef, const UniChar[], CGGlyph[], s
ize_t); | 69 extern CTLineRef WKCreateCTLineWithUniCharProvider(const UniChar* (*provide)(CFI
ndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), void
(*dispose)(const UniChar* chars, void*), void*); |
70 extern bool (*wkGetVerticalGlyphsForCharacters)(CTFontRef, const UniChar[], CGGl
yph[], size_t); | |
71 extern CTLineRef (*wkCreateCTLineWithUniCharProvider)(const UniChar* (*provide)(
CFIndex stringIndex, CFIndex* charCount, CFDictionaryRef* attributes, void*), vo
id (*dispose)(const UniChar* chars, void*), void*); | |
72 | 70 |
73 } // extern "C" | 71 } // extern "C" |
74 | 72 |
75 #endif | 73 #endif |
OLD | NEW |