comparison dstep/appkit/NSDockTile.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.NSDockTile;
8
9 import dstep.appkit.NSView;
10 import dstep.foundation.NSGeometry;
11 import dstep.foundation.NSObject;
12 import dstep.foundation.NSString;
13 import dstep.objc.bridge.Bridge;
14 import dstep.objc.objc;
15
16 class NSDockTile : NSObject
17 {
18 mixin (ObjcWrap);
19
20 NSSize size ()
21 {
22 return invokeObjcSelf!(NSSize, "size");
23 }
24
25 void setContentView (NSView view)
26 {
27 return invokeObjcSelf!(void, "setContentView:", NSView)(view);
28 }
29
30 NSView contentView ()
31 {
32 return invokeObjcSelf!(NSView, "contentView");
33 }
34
35 void display ()
36 {
37 return invokeObjcSelf!(void, "display");
38 }
39
40 void setShowsApplicationBadge (bool flag)
41 {
42 return invokeObjcSelf!(void, "setShowsApplicationBadge:", bool)(flag);
43 }
44
45 bool showsApplicationBadge ()
46 {
47 return invokeObjcSelf!(bool, "showsApplicationBadge");
48 }
49
50 void setBadgeLabel (NSString string)
51 {
52 return invokeObjcSelf!(void, "setBadgeLabel:", NSString)(string);
53 }
54
55 NSString badgeLabel ()
56 {
57 return invokeObjcSelf!(NSString, "badgeLabel");
58 }
59
60 Object owner ()
61 {
62 return invokeObjcSelf!(Object, "owner");
63 }
64 }
65