| 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 |
FColorPersistent: TCastleColorPersistent; |
| 28 |
function GetColorForPersistent: TCastleColor; |
| 29 |
procedure SetColorForPersistent(const AValue: TCastleColor); |
| 30 |
published |
| 31 |
{ @link(Color) 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(Color) directly. |
| 35 |
|
| 36 |
@seealso Color } |
| 37 |
property ColorPersistent: TCastleColorPersistent read FColorPersistent stored false; |
| 38 |
{$endif read_interface_class} |
| 39 |
|
| 40 |
{$ifdef read_implementation_methods} |
| 41 |
function TCastleImageControl.GetColorForPersistent: TCastleColor; |
| 42 |
begin |
| 43 |
Result := Color; |
| 44 |
end; |
| 45 |
|
| 46 |
procedure TCastleImageControl.SetColorForPersistent(const AValue: TCastleColor); |
| 47 |
begin |
| 48 |
Color := AValue; |
| 49 |
end; |
| 50 |
{$endif read_implementation_methods} |
| 51 |
|
| 52 |
{$ifdef read_implementation_constructor} |
| 53 |
FColorPersistent := TCastleColorPersistent.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 |
FColorPersistent.SetSubComponent(true); |
| 60 |
FColorPersistent.InternalGetValue := {$ifdef FPC}@{$endif}GetColorForPersistent; |
| 61 |
FColorPersistent.InternalSetValue := {$ifdef FPC}@{$endif}SetColorForPersistent; |
| 62 |
FColorPersistent.InternalDefaultValue := Color; // current value is default |
| 63 |
{$endif read_implementation_constructor} |
| 64 |
|
| 65 |
{$ifdef read_implementation_destructor} |
| 66 |
FreeAndNil(FColorPersistent); |
| 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 |
FClipLinePersistent: TCastleVector3Persistent; |
| 96 |
function GetClipLineForPersistent: TVector3; |
| 97 |
procedure SetClipLineForPersistent(const AValue: TVector3); |
| 98 |
published |
| 99 |
{ @link(ClipLine) 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(ClipLine) directly. |
| 103 |
|
| 104 |
@seealso ClipLine } |
| 105 |
property ClipLinePersistent: TCastleVector3Persistent read FClipLinePersistent stored false; |
| 106 |
{$endif read_interface_class} |
| 107 |
|
| 108 |
{$ifdef read_implementation_methods} |
| 109 |
function TCastleImageControl.GetClipLineForPersistent: TVector3; |
| 110 |
begin |
| 111 |
Result := ClipLine; |
| 112 |
end; |
| 113 |
|
| 114 |
procedure TCastleImageControl.SetClipLineForPersistent(const AValue: TVector3); |
| 115 |
begin |
| 116 |
ClipLine := AValue; |
| 117 |
end; |
| 118 |
{$endif read_implementation_methods} |
| 119 |
|
| 120 |
{$ifdef read_implementation_constructor} |
| 121 |
FClipLinePersistent := TCastleVector3Persistent.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 |
FClipLinePersistent.SetSubComponent(true); |
| 128 |
FClipLinePersistent.InternalGetValue := {$ifdef FPC}@{$endif}GetClipLineForPersistent; |
| 129 |
FClipLinePersistent.InternalSetValue := {$ifdef FPC}@{$endif}SetClipLineForPersistent; |
| 130 |
FClipLinePersistent.InternalDefaultValue := ClipLine; // current value is default |
| 131 |
{$endif read_implementation_constructor} |
| 132 |
|
| 133 |
{$ifdef read_implementation_destructor} |
| 134 |
FreeAndNil(FClipLinePersistent); |
| 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 |
FRotationCenterPersistent: TCastleVector2Persistent; |
| 164 |
function GetRotationCenterForPersistent: TVector2; |
| 165 |
procedure SetRotationCenterForPersistent(const AValue: TVector2); |
| 166 |
published |
| 167 |
{ @link(RotationCenter) 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(RotationCenter) directly. |
| 171 |
|
| 172 |
@seealso RotationCenter } |
| 173 |
property RotationCenterPersistent: TCastleVector2Persistent read FRotationCenterPersistent stored false; |
| 174 |
{$endif read_interface_class} |
| 175 |
|
| 176 |
{$ifdef read_implementation_methods} |
| 177 |
function TCastleImageControl.GetRotationCenterForPersistent: TVector2; |
| 178 |
begin |
| 179 |
Result := RotationCenter; |
| 180 |
end; |
| 181 |
|
| 182 |
procedure TCastleImageControl.SetRotationCenterForPersistent(const AValue: TVector2); |
| 183 |
begin |
| 184 |
RotationCenter := AValue; |
| 185 |
end; |
| 186 |
{$endif read_implementation_methods} |
| 187 |
|
| 188 |
{$ifdef read_implementation_constructor} |
| 189 |
FRotationCenterPersistent := 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 |
FRotationCenterPersistent.SetSubComponent(true); |
| 196 |
FRotationCenterPersistent.InternalGetValue := {$ifdef FPC}@{$endif}GetRotationCenterForPersistent; |
| 197 |
FRotationCenterPersistent.InternalSetValue := {$ifdef FPC}@{$endif}SetRotationCenterForPersistent; |
| 198 |
FRotationCenterPersistent.InternalDefaultValue := RotationCenter; // current value is default |
| 199 |
{$endif read_implementation_constructor} |
| 200 |
|
| 201 |
{$ifdef read_implementation_destructor} |
| 202 |
FreeAndNil(FRotationCenterPersistent); |
| 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 |
FRegionPersistent: TFloatRectanglePersistent; |
| 232 |
function GetRegionForPersistent: TFloatRectangle; |
| 233 |
procedure SetRegionForPersistent(const AValue: TFloatRectangle); |
| 234 |
published |
| 235 |
{ @link(Region) 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(Region) directly. |
| 239 |
|
| 240 |
@seealso Region } |
| 241 |
property RegionPersistent: TFloatRectanglePersistent read FRegionPersistent stored false; |
| 242 |
{$endif read_interface_class} |
| 243 |
|
| 244 |
{$ifdef read_implementation_methods} |
| 245 |
function TCastleImageControl.GetRegionForPersistent: TFloatRectangle; |
| 246 |
begin |
| 247 |
Result := Region; |
| 248 |
end; |
| 249 |
|
| 250 |
procedure TCastleImageControl.SetRegionForPersistent(const AValue: TFloatRectangle); |
| 251 |
begin |
| 252 |
Region := AValue; |
| 253 |
end; |
| 254 |
{$endif read_implementation_methods} |
| 255 |
|
| 256 |
{$ifdef read_implementation_constructor} |
| 257 |
FRegionPersistent := TFloatRectanglePersistent.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 |
FRegionPersistent.SetSubComponent(true); |
| 264 |
FRegionPersistent.InternalGetValue := {$ifdef FPC}@{$endif}GetRegionForPersistent; |
| 265 |
FRegionPersistent.InternalSetValue := {$ifdef FPC}@{$endif}SetRegionForPersistent; |
| 266 |
FRegionPersistent.InternalDefaultValue := Region; // current value is default |
| 267 |
{$endif read_implementation_constructor} |
| 268 |
|
| 269 |
{$ifdef read_implementation_destructor} |
| 270 |
FreeAndNil(FRegionPersistent); |
| 271 |
{$endif read_implementation_destructor} |
| 272 |
|