Mercurial > projects > dstep
comparison dstep/appkit/NSStatusBar.d @ 16:19885b43130e
Huge update, the bridge actually works now
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sun, 03 Jan 2010 22:06:11 +0100 |
parents | |
children | b9de51448c6b |
comparison
equal
deleted
inserted
replaced
15:7ff919f595d5 | 16:19885b43130e |
---|---|
1 /** | |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Sep 24, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.appkit.NSStatusBar; | |
8 | |
9 import dstep.appkit.NSColor; | |
10 import dstep.appkit.NSFont; | |
11 import dstep.appkit.NSStatusItem; | |
12 import dstep.applicationservices.coregraphics.CGBase; | |
13 import dstep.foundation.NSGeometry; | |
14 import dstep.foundation.NSObject; | |
15 import dstep.objc.bridge.Bridge; | |
16 import dstep.objc.objc; | |
17 | |
18 class NSStatusBar : NSObject | |
19 { | |
20 mixin (ObjcWrap); | |
21 | |
22 static NSStatusBar systemStatusBar () | |
23 { | |
24 return invokeObjcSelfClass!(NSStatusBar, "systemStatusBar"); | |
25 } | |
26 | |
27 NSStatusItem statusItemWithLength (CGFloat length) | |
28 { | |
29 return invokeObjcSelf!(NSStatusItem, "statusItemWithLength:", CGFloat)(length); | |
30 } | |
31 | |
32 void removeStatusItem (NSStatusItem item) | |
33 { | |
34 return invokeObjcSelf!(void, "removeStatusItem:", NSStatusItem)(item); | |
35 } | |
36 | |
37 bool isVertical () | |
38 { | |
39 return invokeObjcSelf!(bool, "isVertical"); | |
40 } | |
41 | |
42 CGFloat thickness () | |
43 { | |
44 return invokeObjcSelf!(CGFloat, "thickness"); | |
45 } | |
46 } | |
47 |