Mercurial > projects > dwt-mac
diff 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 |
line wrap: on
line diff
--- a/dwt/internal/cocoa/NSButtonCell.d Tue Oct 07 12:56:18 2008 +0200 +++ b/dwt/internal/cocoa/NSButtonCell.d Fri Oct 10 12:29:48 2008 +0200 @@ -29,6 +29,64 @@ import dwt.internal.cocoa.OS; import objc = dwt.internal.objc.runtime; +enum NSBezelStyle : NSUInteger +{ + NSRoundedBezelStyle = 1, + NSRegularSquareBezelStyle = 2, + NSThickSquareBezelStyle = 3, + NSThickerSquareBezelStyle = 4, + NSDisclosureBezelStyle = 5, + NSShadowlessSquareBezelStyle = 6, + NSCircularBezelStyle = 7, + NSTexturedSquareBezelStyle = 8, + NSHelpButtonBezelStyle = 9, + NSSmallSquareBezelStyle = 10, + NSTexturedRoundedBezelStyle = 11, + NSRoundRectBezelStyle = 12, + NSRecessedBezelStyle = 13, + NSRoundedDisclosureBezelStyle = 14, +} + +alias NSBezelStyle.NSRoundedBezelStyle NSRoundedBezelStyle; +alias NSBezelStyle.NSRegularSquareBezelStyle NSRegularSquareBezelStyle; +alias NSBezelStyle.NSThickSquareBezelStyle NSThickSquareBezelStyle; +alias NSBezelStyle.NSThickerSquareBezelStyle NSThickerSquareBezelStyle; +alias NSBezelStyle.NSDisclosureBezelStyle NSDisclosureBezelStyle; +alias NSBezelStyle.NSShadowlessSquareBezelStyle NSShadowlessSquareBezelStyle; +alias NSBezelStyle.NSCircularBezelStyle NSCircularBezelStyle; +alias NSBezelStyle.NSTexturedSquareBezelStyle NSTexturedSquareBezelStyle; +alias NSBezelStyle.NSHelpButtonBezelStyle NSHelpButtonBezelStyle; +alias NSBezelStyle.NSSmallSquareBezelStyle NSSmallSquareBezelStyle; +alias NSBezelStyle.NSTexturedRoundedBezelStyle NSTexturedRoundedBezelStyle; +alias NSBezelStyle.NSRoundRectBezelStyle NSRoundRectBezelStyle; +alias NSBezelStyle.NSRecessedBezelStyle NSRecessedBezelStyle; +alias NSBezelStyle.NSRoundedDisclosureBezelStyle NSRoundedDisclosureBezelStyle; + +enum NSButtonType : NSUInteger +{ + NSMomentaryLightButton = 0, + NSPushOnPushOffButton = 1, + NSToggleButton = 2, + NSSwitchButton = 3, + NSRadioButton = 4, + NSMomentaryChangeButton = 5, + NSOnOffButton = 6, + NSMomentaryPushInButton = 7, + NSMomentaryPushButton = 0, + NSMomentaryLight = 7 +} + +alias NSButtonType.NSMomentaryLightButton NSMomentaryLightButton; +alias NSButtonType.NSPushOnPushOffButton NSPushOnPushOffButton; +alias NSButtonType.NSToggleButton NSToggleButton; +alias NSButtonType.NSSwitchButton NSSwitchButton; +alias NSButtonType.NSRadioButton NSRadioButton; +alias NSButtonType.NSMomentaryChangeButton NSMomentaryChangeButton; +alias NSButtonType.NSOnOffButton NSOnOffButton; +alias NSButtonType.NSMomentaryPushInButton NSMomentaryPushInButton; +alias NSButtonType.NSMomentaryPushButton NSMomentaryPushButton; +alias NSButtonType.NSMomentaryLight NSMomentaryLight; + public class NSButtonCell : NSActionCell {