| 1 |
{ -*- buffer-read-only: t -*- |
| 2 |
|
| 3 |
Copyright 2018-2022 Michalis Kamburelis. |
| 4 |
|
| 5 |
This file is part of "Castle Game Engine". |
| 6 |
|
| 7 |
"Castle Game Engine" is free software; see the file COPYING.txt, |
| 8 |
included in this distribution, for details about the copyright. |
| 9 |
|
| 10 |
"Castle Game Engine" is distributed in the hope that it will be useful, |
| 11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 |
|
| 14 |
---------------------------------------------------------------------------- |
| 15 |
} |
| 16 |
|
| 17 |
{ Automatically generated wrapper to make vectors/colors persistent. |
| 18 |
|
| 19 |
Do not edit this file manually! |
| 20 |
Instead |
| 21 |
- edit tools/internal/generate-persistent-vectors/persistent_vectors_input.txt |
| 22 |
- and run generate-persistent-vectors in that directory. |
| 23 |
} |
| 24 |
|
| 25 |
{$ifdef read_interface_class} |
| 26 |
strict private |
| 27 |
FPivotPersistent: TCastleVector2Persistent; |
| 28 |
function GetPivotForPersistent: TVector2; |
| 29 |
procedure SetPivotForPersistent(const AValue: TVector2); |
| 30 |
published |
| 31 |
{ @link(Pivot) that can be visually edited in |
| 32 |
Castle Game Engine Editor, Lazarus and Delphi. |
| 33 |
Normal user code does not need to deal with this, |
| 34 |
instead read or write @link(Pivot) directly. |
| 35 |
|
| 36 |
@seealso Pivot } |
| 37 |
property PivotPersistent: TCastleVector2Persistent read FPivotPersistent ; |
| 38 |
{$endif read_interface_class} |
| 39 |
|
| 40 |
{$ifdef read_implementation_methods} |
| 41 |
function TCastleImageTransform.GetPivotForPersistent: TVector2; |
| 42 |
begin |
| 43 |
Result := Pivot; |
| 44 |
end; |
| 45 |
|
| 46 |
procedure TCastleImageTransform.SetPivotForPersistent(const AValue: TVector2); |
| 47 |
begin |
| 48 |
Pivot := AValue; |
| 49 |
end; |
| 50 |
{$endif read_implementation_methods} |
| 51 |
|
| 52 |
{$ifdef read_implementation_constructor} |
| 53 |
FPivotPersistent := TCastleVector2Persistent.Create(nil); |
| 54 |
{ Note that some classes (like TCastleVector3Persistent) call SetSubComponent(true) |
| 55 |
on themselves, for backward compatibility. But we should not depend on it, |
| 56 |
some classes (like TFloatRectanglePersisten) may not call it. |
| 57 |
The responsibility of calling "SetSubComponent(true)" should be on the owner |
| 58 |
in general (this is more functional, and more standard too). } |
| 59 |
FPivotPersistent.SetSubComponent(true); |
| 60 |
FPivotPersistent.InternalGetValue := {$ifdef FPC}@{$endif}GetPivotForPersistent; |
| 61 |
FPivotPersistent.InternalSetValue := {$ifdef FPC}@{$endif}SetPivotForPersistent; |
| 62 |
FPivotPersistent.InternalDefaultValue := Pivot; // current value is default |
| 63 |
{$endif read_implementation_constructor} |
| 64 |
|
| 65 |
{$ifdef read_implementation_destructor} |
| 66 |
FreeAndNil(FPivotPersistent); |
| 67 |
{$endif read_implementation_destructor} |
| 68 |
|
| 69 |
{ -*- buffer-read-only: t -*- |
| 70 |
|
| 71 |
Copyright 2018-2022 Michalis Kamburelis. |
| 72 |
|
| 73 |
This file is part of "Castle Game Engine". |
| 74 |
|
| 75 |
"Castle Game Engine" is free software; see the file COPYING.txt, |
| 76 |
included in this distribution, for details about the copyright. |
| 77 |
|
| 78 |
"Castle Game Engine" is distributed in the hope that it will be useful, |
| 79 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 80 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 81 |
|
| 82 |
---------------------------------------------------------------------------- |
| 83 |
} |
| 84 |
|
| 85 |
{ Automatically generated wrapper to make vectors/colors persistent. |
| 86 |
|
| 87 |
Do not edit this file manually! |
| 88 |
Instead |
| 89 |
- edit tools/internal/generate-persistent-vectors/persistent_vectors_input.txt |
| 90 |
- and run generate-persistent-vectors in that directory. |
| 91 |
} |
| 92 |
|
| 93 |
{$ifdef read_interface_class} |
| 94 |
strict private |
| 95 |
FSizePersistent: TCastleVector2Persistent; |
| 96 |
function GetSizeForPersistent: TVector2; |
| 97 |
procedure SetSizeForPersistent(const AValue: TVector2); |
| 98 |
published |
| 99 |
{ @link(Size) that can be visually edited in |
| 100 |
Castle Game Engine Editor, Lazarus and Delphi. |
| 101 |
Normal user code does not need to deal with this, |
| 102 |
instead read or write @link(Size) directly. |
| 103 |
|
| 104 |
@seealso Size } |
| 105 |
property SizePersistent: TCastleVector2Persistent read FSizePersistent ; |
| 106 |
{$endif read_interface_class} |
| 107 |
|
| 108 |
{$ifdef read_implementation_methods} |
| 109 |
function TCastleImageTransform.GetSizeForPersistent: TVector2; |
| 110 |
begin |
| 111 |
Result := Size; |
| 112 |
end; |
| 113 |
|
| 114 |
procedure TCastleImageTransform.SetSizeForPersistent(const AValue: TVector2); |
| 115 |
begin |
| 116 |
Size := AValue; |
| 117 |
end; |
| 118 |
{$endif read_implementation_methods} |
| 119 |
|
| 120 |
{$ifdef read_implementation_constructor} |
| 121 |
FSizePersistent := TCastleVector2Persistent.Create(nil); |
| 122 |
{ Note that some classes (like TCastleVector3Persistent) call SetSubComponent(true) |
| 123 |
on themselves, for backward compatibility. But we should not depend on it, |
| 124 |
some classes (like TFloatRectanglePersisten) may not call it. |
| 125 |
The responsibility of calling "SetSubComponent(true)" should be on the owner |
| 126 |
in general (this is more functional, and more standard too). } |
| 127 |
FSizePersistent.SetSubComponent(true); |
| 128 |
FSizePersistent.InternalGetValue := {$ifdef FPC}@{$endif}GetSizeForPersistent; |
| 129 |
FSizePersistent.InternalSetValue := {$ifdef FPC}@{$endif}SetSizeForPersistent; |
| 130 |
FSizePersistent.InternalDefaultValue := Size; // current value is default |
| 131 |
{$endif read_implementation_constructor} |
| 132 |
|
| 133 |
{$ifdef read_implementation_destructor} |
| 134 |
FreeAndNil(FSizePersistent); |
| 135 |
{$endif read_implementation_destructor} |
| 136 |
|
| 137 |
{ -*- buffer-read-only: t -*- |
| 138 |
|
| 139 |
Copyright 2018-2022 Michalis Kamburelis. |
| 140 |
|
| 141 |
This file is part of "Castle Game Engine". |
| 142 |
|
| 143 |
"Castle Game Engine" is free software; see the file COPYING.txt, |
| 144 |
included in this distribution, for details about the copyright. |
| 145 |
|
| 146 |
"Castle Game Engine" is distributed in the hope that it will be useful, |
| 147 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 148 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 149 |
|
| 150 |
---------------------------------------------------------------------------- |
| 151 |
} |
| 152 |
|
| 153 |
{ Automatically generated wrapper to make vectors/colors persistent. |
| 154 |
|
| 155 |
Do not edit this file manually! |
| 156 |
Instead |
| 157 |
- edit tools/internal/generate-persistent-vectors/persistent_vectors_input.txt |
| 158 |
- and run generate-persistent-vectors in that directory. |
| 159 |
} |
| 160 |
|
| 161 |
{$ifdef read_interface_class} |
| 162 |
strict private |
| 163 |
FRepeatImagePersistent: TCastleVector2Persistent; |
| 164 |
function GetRepeatImageForPersistent: TVector2; |
| 165 |
procedure SetRepeatImageForPersistent(const AValue: TVector2); |
| 166 |
published |
| 167 |
{ @link(RepeatImage) that can be visually edited in |
| 168 |
Castle Game Engine Editor, Lazarus and Delphi. |
| 169 |
Normal user code does not need to deal with this, |
| 170 |
instead read or write @link(RepeatImage) directly. |
| 171 |
|
| 172 |
@seealso RepeatImage } |
| 173 |
property RepeatImagePersistent: TCastleVector2Persistent read FRepeatImagePersistent ; |
| 174 |
{$endif read_interface_class} |
| 175 |
|
| 176 |
{$ifdef read_implementation_methods} |
| 177 |
function TCastleImageTransform.GetRepeatImageForPersistent: TVector2; |
| 178 |
begin |
| 179 |
Result := RepeatImage; |
| 180 |
end; |
| 181 |
|
| 182 |
procedure TCastleImageTransform.SetRepeatImageForPersistent(const AValue: TVector2); |
| 183 |
begin |
| 184 |
RepeatImage := AValue; |
| 185 |
end; |
| 186 |
{$endif read_implementation_methods} |
| 187 |
|
| 188 |
{$ifdef read_implementation_constructor} |
| 189 |
FRepeatImagePersistent := TCastleVector2Persistent.Create(nil); |
| 190 |
{ Note that some classes (like TCastleVector3Persistent) call SetSubComponent(true) |
| 191 |
on themselves, for backward compatibility. But we should not depend on it, |
| 192 |
some classes (like TFloatRectanglePersisten) may not call it. |
| 193 |
The responsibility of calling "SetSubComponent(true)" should be on the owner |
| 194 |
in general (this is more functional, and more standard too). } |
| 195 |
FRepeatImagePersistent.SetSubComponent(true); |
| 196 |
FRepeatImagePersistent.InternalGetValue := {$ifdef FPC}@{$endif}GetRepeatImageForPersistent; |
| 197 |
FRepeatImagePersistent.InternalSetValue := {$ifdef FPC}@{$endif}SetRepeatImageForPersistent; |
| 198 |
FRepeatImagePersistent.InternalDefaultValue := RepeatImage; // current value is default |
| 199 |
{$endif read_implementation_constructor} |
| 200 |
|
| 201 |
{$ifdef read_implementation_destructor} |
| 202 |
FreeAndNil(FRepeatImagePersistent); |
| 203 |
{$endif read_implementation_destructor} |
| 204 |
|
| 205 |
{ -*- buffer-read-only: t -*- |
| 206 |
|
| 207 |
Copyright 2018-2022 Michalis Kamburelis. |
| 208 |
|
| 209 |
This file is part of "Castle Game Engine". |
| 210 |
|
| 211 |
"Castle Game Engine" is free software; see the file COPYING.txt, |
| 212 |
included in this distribution, for details about the copyright. |
| 213 |
|
| 214 |
"Castle Game Engine" is distributed in the hope that it will be useful, |
| 215 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 216 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 217 |
|
| 218 |
---------------------------------------------------------------------------- |
| 219 |
} |
| 220 |
|
| 221 |
{ Automatically generated wrapper to make vectors/colors persistent. |
| 222 |
|
| 223 |
Do not edit this file manually! |
| 224 |
Instead |
| 225 |
- edit tools/internal/generate-persistent-vectors/persistent_vectors_input.txt |
| 226 |
- and run generate-persistent-vectors in that directory. |
| 227 |
} |
| 228 |
|
| 229 |
{$ifdef read_interface_class} |
| 230 |
strict private |
| 231 |
FShiftPersistent: TCastleVector2Persistent; |
| 232 |
function GetShiftForPersistent: TVector2; |
| 233 |
procedure SetShiftForPersistent(const AValue: TVector2); |
| 234 |
published |
| 235 |
{ @link(Shift) that can be visually edited in |
| 236 |
Castle Game Engine Editor, Lazarus and Delphi. |
| 237 |
Normal user code does not need to deal with this, |
| 238 |
instead read or write @link(Shift) directly. |
| 239 |
|
| 240 |
@seealso Shift } |
| 241 |
property ShiftPersistent: TCastleVector2Persistent read FShiftPersistent ; |
| 242 |
{$endif read_interface_class} |
| 243 |
|
| 244 |
{$ifdef read_implementation_methods} |
| 245 |
function TCastleImageTransform.GetShiftForPersistent: TVector2; |
| 246 |
begin |
| 247 |
Result := Shift; |
| 248 |
end; |
| 249 |
|
| 250 |
procedure TCastleImageTransform.SetShiftForPersistent(const AValue: TVector2); |
| 251 |
begin |
| 252 |
Shift := AValue; |
| 253 |
end; |
| 254 |
{$endif read_implementation_methods} |
| 255 |
|
| 256 |
{$ifdef read_implementation_constructor} |
| 257 |
FShiftPersistent := TCastleVector2Persistent.Create(nil); |
| 258 |
{ Note that some classes (like TCastleVector3Persistent) call SetSubComponent(true) |
| 259 |
on themselves, for backward compatibility. But we should not depend on it, |
| 260 |
some classes (like TFloatRectanglePersisten) may not call it. |
| 261 |
The responsibility of calling "SetSubComponent(true)" should be on the owner |
| 262 |
in general (this is more functional, and more standard too). } |
| 263 |
FShiftPersistent.SetSubComponent(true); |
| 264 |
FShiftPersistent.InternalGetValue := {$ifdef FPC}@{$endif}GetShiftForPersistent; |
| 265 |
FShiftPersistent.InternalSetValue := {$ifdef FPC}@{$endif}SetShiftForPersistent; |
| 266 |
FShiftPersistent.InternalDefaultValue := Shift; // current value is default |
| 267 |
{$endif read_implementation_constructor} |
| 268 |
|
| 269 |
{$ifdef read_implementation_destructor} |
| 270 |
FreeAndNil(FShiftPersistent); |
| 271 |
{$endif read_implementation_destructor} |
| 272 |
|
| 273 |
{ -*- buffer-read-only: t -*- |
| 274 |
|
| 275 |
Copyright 2018-2022 Michalis Kamburelis. |
| 276 |
|
| 277 |
This file is part of "Castle Game Engine". |
| 278 |
|
| 279 |
"Castle Game Engine" is free software; see the file COPYING.txt, |
| 280 |
included in this distribution, for details about the copyright. |
| 281 |
|
| 282 |
"Castle Game Engine" is distributed in the hope that it will be useful, |
| 283 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 284 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 285 |
|
| 286 |
---------------------------------------------------------------------------- |
| 287 |
} |
| 288 |
|
| 289 |
{ Automatically generated wrapper to make vectors/colors persistent. |
| 290 |
|
| 291 |
Do not edit this file manually! |
| 292 |
Instead |
| 293 |
- edit tools/internal/generate-persistent-vectors/persistent_vectors_input.txt |
| 294 |
- and run generate-persistent-vectors in that directory. |
| 295 |
} |
| 296 |
|
| 297 |
{$ifdef read_interface_class} |
| 298 |
strict private |
| 299 |
FColorPersistent: TCastleColorPersistent; |
| 300 |
function GetColorForPersistent: TCastleColor; |
| 301 |
procedure SetColorForPersistent(const AValue: TCastleColor); |
| 302 |
published |
| 303 |
{ @link(Color) that can be visually edited in |
| 304 |
Castle Game Engine Editor, Lazarus and Delphi. |
| 305 |
Normal user code does not need to deal with this, |
| 306 |
instead read or write @link(Color) directly. |
| 307 |
|
| 308 |
@seealso Color } |
| 309 |
property ColorPersistent: TCastleColorPersistent read FColorPersistent ; |
| 310 |
{$endif read_interface_class} |
| 311 |
|
| 312 |
{$ifdef read_implementation_methods} |
| 313 |
function TCastleImageTransform.GetColorForPersistent: TCastleColor; |
| 314 |
begin |
| 315 |
Result := Color; |
| 316 |
end; |
| 317 |
|
| 318 |
procedure TCastleImageTransform.SetColorForPersistent(const AValue: TCastleColor); |
| 319 |
begin |
| 320 |
Color := AValue; |
| 321 |
end; |
| 322 |
{$endif read_implementation_methods} |
| 323 |
|
| 324 |
{$ifdef read_implementation_constructor} |
| 325 |
FColorPersistent := TCastleColorPersistent.Create(nil); |
| 326 |
{ Note that some classes (like TCastleVector3Persistent) call SetSubComponent(true) |
| 327 |
on themselves, for backward compatibility. But we should not depend on it, |
| 328 |
some classes (like TFloatRectanglePersisten) may not call it. |
| 329 |
The responsibility of calling "SetSubComponent(true)" should be on the owner |
| 330 |
in general (this is more functional, and more standard too). } |
| 331 |
FColorPersistent.SetSubComponent(true); |
| 332 |
FColorPersistent.InternalGetValue := {$ifdef FPC}@{$endif}GetColorForPersistent; |
| 333 |
FColorPersistent.InternalSetValue := {$ifdef FPC}@{$endif}SetColorForPersistent; |
| 334 |
FColorPersistent.InternalDefaultValue := Color; // current value is default |
| 335 |
{$endif read_implementation_constructor} |
| 336 |
|
| 337 |
{$ifdef read_implementation_destructor} |
| 338 |
FreeAndNil(FColorPersistent); |
| 339 |
{$endif read_implementation_destructor} |
| 340 |
|