comparison dstep/corefoundation/CFAttributedString.d @ 11:07194b026fa4

Added bindings to a couple of frameworks, new license + some other things
author Jacob Carlborg <doob@me.com>
date Sat, 01 Aug 2009 15:03:28 +0200
parents
children
comparison
equal deleted inserted replaced
10:27e00625790b 11:07194b026fa4
1 /**
2 * Copyright: Copyright (c) 2009 Jacob Carlborg.
3 * Authors: Jacob Carlborg
4 * Version: Initial created: Jul 12, 2009
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
6 */
7 module dstep.corefoundation.CFAttributedString;
8
9 import dstep.corefoundation.CFBase;
10 import dstep.corefoundation.CFDictionary;
11 import dstep.corefoundation.CFString;
12 import dstep.objc.bridge.Bridge;
13 import dstep.objc.objc : id;
14
15 struct __CFAttributedString;
16 alias __CFAttributedString* CFAttributedStringRef;
17 alias __CFAttributedString* CFMutableAttributedStringRef;
18
19 extern (C)
20 {
21 uint CFAttributedStringGetTypeID ();
22 CFAttributedStringRef CFAttributedStringCreate (CFAllocatorRef alloc, CFStringRef str, CFDictionaryRef attributes);
23 CFAttributedStringRef CFAttributedStringCreateWithSubstring (CFAllocatorRef alloc, CFAttributedStringRef aStr, CFRange range);
24 CFAttributedStringRef CFAttributedStringCreateCopy (CFAllocatorRef alloc, CFAttributedStringRef aStr);
25 CFStringRef CFAttributedStringGetString (CFAttributedStringRef aStr);
26 int CFAttributedStringGetLength (CFAttributedStringRef aStr);
27 CFDictionaryRef CFAttributedStringGetAttributes (CFAttributedStringRef aStr, int loc, CFRange* effectiveRange);
28 void* CFAttributedStringGetAttribute (CFAttributedStringRef aStr, int loc, CFStringRef attrName, CFRange* effectiveRange);
29 CFDictionaryRef CFAttributedStringGetAttributesAndLongestEffectiveRange (CFAttributedStringRef aStr, int loc, CFRange inRange, CFRange* longestEffectiveRange);
30 void* CFAttributedStringGetAttributeAndLongestEffectiveRange (CFAttributedStringRef aStr, int loc, CFStringRef attrName, CFRange inRange, CFRange* longestEffectiveRange);
31 CFMutableAttributedStringRef CFAttributedStringCreateMutableCopy (CFAllocatorRef alloc, int maxLength, CFAttributedStringRef aStr);
32 CFMutableAttributedStringRef CFAttributedStringCreateMutable (CFAllocatorRef alloc, int maxLength);
33 void CFAttributedStringReplaceString (CFMutableAttributedStringRef aStr, CFRange range, CFStringRef replacement);
34 CFMutableStringRef CFAttributedStringGetMutableString (CFMutableAttributedStringRef aStr);
35 void CFAttributedStringSetAttributes (CFMutableAttributedStringRef aStr, CFRange range, CFDictionaryRef replacement, ubyte clearOtherAttributes);
36 void CFAttributedStringSetAttribute (CFMutableAttributedStringRef aStr, CFRange range, CFStringRef attrName, void* value);
37 void CFAttributedStringRemoveAttribute (CFMutableAttributedStringRef aStr, CFRange range, CFStringRef attrName);
38 void CFAttributedStringReplaceAttributedString (CFMutableAttributedStringRef aStr, CFRange range, CFAttributedStringRef replacement);
39 void CFAttributedStringBeginEditing (CFMutableAttributedStringRef aStr);
40 void CFAttributedStringEndEditing (CFMutableAttributedStringRef aStr);
41 }