Mercurial > projects > dstep
comparison dstep/appkit/NSLevelIndicator.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.NSLevelIndicator; | |
8 | |
9 import dstep.appkit.NSControl; | |
10 import dstep.appkit.NSLevelIndicatorCell; | |
11 import dstep.foundation.NSGeometry; | |
12 import dstep.foundation.NSObjCRuntime; | |
13 import dstep.objc.bridge.Bridge; | |
14 import dstep.objc.objc; | |
15 | |
16 class NSLevelIndicator : NSControl | |
17 { | |
18 mixin (ObjcWrap); | |
19 | |
20 double minValue () | |
21 { | |
22 return invokeObjcSelf!(double, "minValue"); | |
23 } | |
24 | |
25 void setMinValue (double minValue) | |
26 { | |
27 return invokeObjcSelf!(void, "setMinValue:", double)(minValue); | |
28 } | |
29 | |
30 double maxValue () | |
31 { | |
32 return invokeObjcSelf!(double, "maxValue"); | |
33 } | |
34 | |
35 void setMaxValue (double maxValue) | |
36 { | |
37 return invokeObjcSelf!(void, "setMaxValue:", double)(maxValue); | |
38 } | |
39 | |
40 double warningValue () | |
41 { | |
42 return invokeObjcSelf!(double, "warningValue"); | |
43 } | |
44 | |
45 void setWarningValue (double warningValue) | |
46 { | |
47 return invokeObjcSelf!(void, "setWarningValue:", double)(warningValue); | |
48 } | |
49 | |
50 double criticalValue () | |
51 { | |
52 return invokeObjcSelf!(double, "criticalValue"); | |
53 } | |
54 | |
55 void setCriticalValue (double criticalValue) | |
56 { | |
57 return invokeObjcSelf!(void, "setCriticalValue:", double)(criticalValue); | |
58 } | |
59 | |
60 uint tickMarkPosition () | |
61 { | |
62 return invokeObjcSelf!(uint, "tickMarkPosition"); | |
63 } | |
64 | |
65 void setTickMarkPosition (uint position) | |
66 { | |
67 return invokeObjcSelf!(void, "setTickMarkPosition:", uint)(position); | |
68 } | |
69 | |
70 NSInteger numberOfTickMarks () | |
71 { | |
72 return invokeObjcSelf!(NSInteger, "numberOfTickMarks"); | |
73 } | |
74 | |
75 void setNumberOfTickMarks (NSInteger count) | |
76 { | |
77 return invokeObjcSelf!(void, "setNumberOfTickMarks:", NSInteger)(count); | |
78 } | |
79 | |
80 NSInteger numberOfMajorTickMarks () | |
81 { | |
82 return invokeObjcSelf!(NSInteger, "numberOfMajorTickMarks"); | |
83 } | |
84 | |
85 void setNumberOfMajorTickMarks (NSInteger count) | |
86 { | |
87 return invokeObjcSelf!(void, "setNumberOfMajorTickMarks:", NSInteger)(count); | |
88 } | |
89 | |
90 double tickMarkValueAtIndex (NSInteger index) | |
91 { | |
92 return invokeObjcSelf!(double, "tickMarkValueAtIndex:", NSInteger)(index); | |
93 } | |
94 | |
95 NSRect rectOfTickMarkAtIndex (NSInteger index) | |
96 { | |
97 return invokeObjcSelf!(NSRect, "rectOfTickMarkAtIndex:", NSInteger)(index); | |
98 } | |
99 } | |
100 |