comparison dstep/appkit/NSStepper.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.NSStepper;
8
9 import dstep.appkit.NSControl;
10 import dstep.objc.bridge.Bridge;
11 import dstep.objc.objc;
12
13 class NSStepper : NSControl
14 {
15 mixin (ObjcWrap);
16
17 double minValue ()
18 {
19 return invokeObjcSelf!(double, "minValue");
20 }
21
22 void setMinValue (double minValue)
23 {
24 return invokeObjcSelf!(void, "setMinValue:", double)(minValue);
25 }
26
27 double maxValue ()
28 {
29 return invokeObjcSelf!(double, "maxValue");
30 }
31
32 void setMaxValue (double maxValue)
33 {
34 return invokeObjcSelf!(void, "setMaxValue:", double)(maxValue);
35 }
36
37 double increment ()
38 {
39 return invokeObjcSelf!(double, "increment");
40 }
41
42 void setIncrement (double increment)
43 {
44 return invokeObjcSelf!(void, "setIncrement:", double)(increment);
45 }
46
47 bool valueWraps ()
48 {
49 return invokeObjcSelf!(bool, "valueWraps");
50 }
51
52 void setValueWraps (bool valueWraps)
53 {
54 return invokeObjcSelf!(void, "setValueWraps:", bool)(valueWraps);
55 }
56
57 bool autorepeat ()
58 {
59 return invokeObjcSelf!(bool, "autorepeat");
60 }
61
62 void setAutorepeat (bool autorepeat)
63 {
64 return invokeObjcSelf!(void, "setAutorepeat:", bool)(autorepeat);
65 }
66 }
67