comparison dwt/graphics/Transform.d @ 36:db5a898b2119

Fixed a lot of compile errors
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Tue, 07 Oct 2008 12:56:18 +0200
parents 5123b17c98ef
children d8635bb48c7c
comparison
equal deleted inserted replaced
35:7d135fe0caf2 36:db5a898b2119
40 * </p> 40 * </p>
41 * 41 *
42 * @since 3.1 42 * @since 3.1
43 */ 43 */
44 public class Transform : Resource { 44 public class Transform : Resource {
45
46 alias Resource.init_ init_;
47
45 /** 48 /**
46 * the OS resource for the Transform 49 * the OS resource for the Transform
47 * (Warning: This field is platform dependent) 50 * (Warning: This field is platform dependent)
48 * <p> 51 * <p>
49 * <b>IMPORTANT:</b> This field is <em>not</em> part of the DWT 52 * <b>IMPORTANT:</b> This field is <em>not</em> part of the DWT
142 super(device); 145 super(device);
143 handle = NSAffineTransform.transform(); 146 handle = NSAffineTransform.transform();
144 if (handle is null) DWT.error(DWT.ERROR_NO_HANDLES); 147 if (handle is null) DWT.error(DWT.ERROR_NO_HANDLES);
145 handle.retain(); 148 handle.retain();
146 setElements(m11, m12, m21, m22, dx, dy); 149 setElements(m11, m12, m21, m22, dx, dy);
147 init(); 150 init_();
148 } 151 }
149 152
150 static float[] checkTransform(float[] elements) { 153 static float[] checkTransform(float[] elements) {
151 if (elements is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); 154 if (elements is null) DWT.error(DWT.ERROR_NULL_ARGUMENT);
152 if (elements.length < 6) DWT.error(DWT.ERROR_INVALID_ARGUMENT); 155 if (elements.length < 6) DWT.error(DWT.ERROR_INVALID_ARGUMENT);