Mercurial > projects > dwt-mac
annotate dwt-cocoa-bindings/bindings.m @ 44:ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Tue, 21 Oct 2008 15:20:04 +0200 |
parents | |
children |
rev | line source |
---|---|
44
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
1 // |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
2 // bindings.m |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
3 // dwt-cocoa-bindings |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
4 // |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
5 // Created by doob on 8/24/08. |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
6 // Copyright 2008 Jacob Carlborg. All rights reserved. |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
7 // |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
8 |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
9 #import "bindings.h" |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
10 |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
11 id DCB_NSDefaultRunLoopMode (void) |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
12 { |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
13 return (id)NSDefaultRunLoopMode; |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
14 } |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
15 |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
16 id DCB_NSDeviceRGBColorSpace(void) |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
17 { |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
18 return (id)NSDeviceRGBColorSpace; |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
19 } |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
20 |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
21 id DCB_NSAccessibilityPositionAttribute (void) |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
22 { |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
23 return (id)NSAccessibilityPositionAttribute; |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
24 } |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
25 |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
26 id DCB_NSAccessibilitySizeAttribute (void) |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
27 { |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
28 return (id)NSAccessibilitySizeAttribute; |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
29 } |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
30 |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
31 id DCB_NSBackgroundColorAttributeName (void) |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
32 { |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
33 return (id)NSBackgroundColorAttributeName; |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
34 } |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
35 |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
36 id DCB_NSBaselineOffsetAttributeName (void) |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
37 { |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
38 return (id)NSBaselineOffsetAttributeName; |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
39 } |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
40 |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
41 id DCB_NSDeviceResolution (void) |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
42 { |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
43 return (id)NSDeviceResolution; |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
44 } |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
45 |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
46 id DCB_NSFontAttributeName (void) |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
47 { |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
48 return (id)NSFontAttributeName; |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
49 } |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
50 |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
51 id DCB_NSForegroundColorAttributeName (void) |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
52 { |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
53 return (id)NSForegroundColorAttributeName; |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
54 } |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
55 |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
56 id DCB_NSLinkAttributeName (void) |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
57 { |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
58 return (id)NSLinkAttributeName; |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
59 } |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
60 |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
61 id DCB_NSParagraphStyleAttributeName (void) |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
62 { |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
63 return (id)NSParagraphStyleAttributeName; |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
64 } |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
65 |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
66 id DCB_NSStrikethroughColorAttributeName (void) |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
67 { |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
68 return (id)NSStrikethroughColorAttributeName; |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
69 } |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
70 |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
71 id DCB_NSStrikethroughStyleAttributeName (void) |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
72 { |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
73 return (id)NSStrikethroughStyleAttributeName; |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
74 } |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
75 |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
76 id DCB_NSUnderlineColorAttributeName (void) |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
77 { |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
78 return (id)NSUnderlineColorAttributeName; |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
79 } |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
80 |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
81 id DCB_NSUnderlineStyleAttributeName (void) |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
82 { |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
83 return (id)NSUnderlineStyleAttributeName; |
ca5e494f2bbf
Add: the sources to libdwt-cocoa-bindings
Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
parents:
diff
changeset
|
84 } |