| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
package h; |
| 47 |
|
| 48 |
import smetana.core.CString; |
| 49 |
import smetana.core.HardcodedStruct; |
| 50 |
import smetana.core.UnsupportedStructAndPtr; |
| 51 |
import smetana.core.__ptr__; |
| 52 |
import smetana.core.__struct__; |
| 53 |
import smetana.core.amiga.Area; |
| 54 |
import smetana.core.amiga.StarStruct; |
| 55 |
|
| 56 |
public class ST_port extends UnsupportedStructAndPtr implements HardcodedStruct { |
| 57 |
|
| 58 |
public final ST_pointf p = new ST_pointf(this); |
| 59 |
public double theta; |
| 60 |
public ST_boxf bp; |
| 61 |
public int defined; |
| 62 |
public int constrained; |
| 63 |
public int clip; |
| 64 |
public int dyna; |
| 65 |
public int order; |
| 66 |
public int side; |
| 67 |
public CString name; |
| 68 |
|
| 69 |
public ST_port(StarStruct parent) { |
| 70 |
} |
| 71 |
|
| 72 |
public ST_port() { |
| 73 |
} |
| 74 |
|
| 75 |
@Override |
| 76 |
public void ___(__struct__ other) { |
| 77 |
ST_port other2 = (ST_port) other; |
| 78 |
this.p.___(other2.p); |
| 79 |
this.theta = other2.theta; |
| 80 |
this.bp = other2.bp; |
| 81 |
this.defined = other2.defined; |
| 82 |
this.constrained = other2.constrained; |
| 83 |
this.clip = other2.clip; |
| 84 |
this.dyna = other2.dyna; |
| 85 |
this.order = other2.order; |
| 86 |
this.side = other2.side; |
| 87 |
this.name = other2.name; |
| 88 |
} |
| 89 |
|
| 90 |
@Override |
| 91 |
public void copyDataFrom(__struct__ other) { |
| 92 |
ST_port other2 = (ST_port) other; |
| 93 |
this.p.___(other2.p); |
| 94 |
this.theta = other2.theta; |
| 95 |
this.bp = other2.bp; |
| 96 |
this.defined = other2.defined; |
| 97 |
this.constrained = other2.constrained; |
| 98 |
this.clip = other2.clip; |
| 99 |
this.dyna = other2.dyna; |
| 100 |
this.order = other2.order; |
| 101 |
this.side = other2.side; |
| 102 |
this.name = other2.name; |
| 103 |
} |
| 104 |
|
| 105 |
@Override |
| 106 |
public void memcopyFrom(Area other) { |
| 107 |
ST_port other2 = (ST_port) other; |
| 108 |
this.p.___(other2.p); |
| 109 |
this.theta = other2.theta; |
| 110 |
this.bp = other2.bp; |
| 111 |
this.defined = other2.defined; |
| 112 |
this.constrained = other2.constrained; |
| 113 |
this.clip = other2.clip; |
| 114 |
this.dyna = other2.dyna; |
| 115 |
this.order = other2.order; |
| 116 |
this.side = other2.side; |
| 117 |
this.name = other2.name; |
| 118 |
} |
| 119 |
|
| 120 |
@Override |
| 121 |
public ST_port copy() { |
| 122 |
final ST_port result = new ST_port(); |
| 123 |
result.p.___(this.p); |
| 124 |
result.theta = this.theta; |
| 125 |
result.bp = this.bp; |
| 126 |
result.defined = this.defined; |
| 127 |
result.constrained = this.constrained; |
| 128 |
result.clip = this.clip; |
| 129 |
result.dyna = this.dyna; |
| 130 |
result.order = this.order; |
| 131 |
result.side = this.side; |
| 132 |
result.name = this.name; |
| 133 |
return result; |
| 134 |
} |
| 135 |
|
| 136 |
@Override |
| 137 |
public void setStruct(String fieldName, __struct__ newData) { |
| 138 |
if (fieldName.equals("p")) { |
| 139 |
p.copyDataFrom(newData); |
| 140 |
return; |
| 141 |
} |
| 142 |
super.setStruct(fieldName, newData); |
| 143 |
} |
| 144 |
|
| 145 |
@Override |
| 146 |
public void setInt(String fieldName, int data) { |
| 147 |
if (fieldName.equals("constrained")) { |
| 148 |
constrained = data; |
| 149 |
return; |
| 150 |
} |
| 151 |
super.setInt(fieldName, data); |
| 152 |
} |
| 153 |
|
| 154 |
|
| 155 |
@Override |
| 156 |
public void setDouble(String fieldName, double data) { |
| 157 |
if (fieldName.equals("theta")) { |
| 158 |
this.theta = data; |
| 159 |
return; |
| 160 |
} |
| 161 |
super.setDouble(fieldName, data); |
| 162 |
} |
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
|
| 171 |
|
| 172 |
|
| 173 |
|
| 174 |
|
| 175 |
|
| 176 |
|
| 177 |
|
| 178 |
} |
| 179 |
|
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
|
| 187 |
|
| 188 |
|
| 189 |
|
| 190 |
|
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
|
| 196 |
|