Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSButtonCell.d @ 37:642f460a0908
Fixed a lot of compile errors, a "hello world" app compiles now
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Fri, 10 Oct 2008 12:29:48 +0200 |
parents | f565d3a95c0a |
children | d8635bb48c7c |
comparison
equal
deleted
inserted
replaced
36:db5a898b2119 | 37:642f460a0908 |
---|---|
27 import dwt.internal.cocoa.NSString; | 27 import dwt.internal.cocoa.NSString; |
28 import dwt.internal.cocoa.NSView; | 28 import dwt.internal.cocoa.NSView; |
29 import dwt.internal.cocoa.OS; | 29 import dwt.internal.cocoa.OS; |
30 import objc = dwt.internal.objc.runtime; | 30 import objc = dwt.internal.objc.runtime; |
31 | 31 |
32 enum NSBezelStyle : NSUInteger | |
33 { | |
34 NSRoundedBezelStyle = 1, | |
35 NSRegularSquareBezelStyle = 2, | |
36 NSThickSquareBezelStyle = 3, | |
37 NSThickerSquareBezelStyle = 4, | |
38 NSDisclosureBezelStyle = 5, | |
39 NSShadowlessSquareBezelStyle = 6, | |
40 NSCircularBezelStyle = 7, | |
41 NSTexturedSquareBezelStyle = 8, | |
42 NSHelpButtonBezelStyle = 9, | |
43 NSSmallSquareBezelStyle = 10, | |
44 NSTexturedRoundedBezelStyle = 11, | |
45 NSRoundRectBezelStyle = 12, | |
46 NSRecessedBezelStyle = 13, | |
47 NSRoundedDisclosureBezelStyle = 14, | |
48 } | |
49 | |
50 alias NSBezelStyle.NSRoundedBezelStyle NSRoundedBezelStyle; | |
51 alias NSBezelStyle.NSRegularSquareBezelStyle NSRegularSquareBezelStyle; | |
52 alias NSBezelStyle.NSThickSquareBezelStyle NSThickSquareBezelStyle; | |
53 alias NSBezelStyle.NSThickerSquareBezelStyle NSThickerSquareBezelStyle; | |
54 alias NSBezelStyle.NSDisclosureBezelStyle NSDisclosureBezelStyle; | |
55 alias NSBezelStyle.NSShadowlessSquareBezelStyle NSShadowlessSquareBezelStyle; | |
56 alias NSBezelStyle.NSCircularBezelStyle NSCircularBezelStyle; | |
57 alias NSBezelStyle.NSTexturedSquareBezelStyle NSTexturedSquareBezelStyle; | |
58 alias NSBezelStyle.NSHelpButtonBezelStyle NSHelpButtonBezelStyle; | |
59 alias NSBezelStyle.NSSmallSquareBezelStyle NSSmallSquareBezelStyle; | |
60 alias NSBezelStyle.NSTexturedRoundedBezelStyle NSTexturedRoundedBezelStyle; | |
61 alias NSBezelStyle.NSRoundRectBezelStyle NSRoundRectBezelStyle; | |
62 alias NSBezelStyle.NSRecessedBezelStyle NSRecessedBezelStyle; | |
63 alias NSBezelStyle.NSRoundedDisclosureBezelStyle NSRoundedDisclosureBezelStyle; | |
64 | |
65 enum NSButtonType : NSUInteger | |
66 { | |
67 NSMomentaryLightButton = 0, | |
68 NSPushOnPushOffButton = 1, | |
69 NSToggleButton = 2, | |
70 NSSwitchButton = 3, | |
71 NSRadioButton = 4, | |
72 NSMomentaryChangeButton = 5, | |
73 NSOnOffButton = 6, | |
74 NSMomentaryPushInButton = 7, | |
75 NSMomentaryPushButton = 0, | |
76 NSMomentaryLight = 7 | |
77 } | |
78 | |
79 alias NSButtonType.NSMomentaryLightButton NSMomentaryLightButton; | |
80 alias NSButtonType.NSPushOnPushOffButton NSPushOnPushOffButton; | |
81 alias NSButtonType.NSToggleButton NSToggleButton; | |
82 alias NSButtonType.NSSwitchButton NSSwitchButton; | |
83 alias NSButtonType.NSRadioButton NSRadioButton; | |
84 alias NSButtonType.NSMomentaryChangeButton NSMomentaryChangeButton; | |
85 alias NSButtonType.NSOnOffButton NSOnOffButton; | |
86 alias NSButtonType.NSMomentaryPushInButton NSMomentaryPushInButton; | |
87 alias NSButtonType.NSMomentaryPushButton NSMomentaryPushButton; | |
88 alias NSButtonType.NSMomentaryLight NSMomentaryLight; | |
89 | |
32 public class NSButtonCell : NSActionCell | 90 public class NSButtonCell : NSActionCell |
33 { | 91 { |
34 | 92 |
35 public this () | 93 public this () |
36 { | 94 { |