| 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 |
FTintPressedPersistent: TCastleColorPersistent; |
| 28 |
function GetTintPressedForPersistent: TCastleColor; |
| 29 |
procedure SetTintPressedForPersistent(const AValue: TCastleColor); |
| 30 |
published |
| 31 |
{ @link(TintPressed) 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(TintPressed) directly. |
| 35 |
|
| 36 |
@seealso TintPressed } |
| 37 |
property TintPressedPersistent: TCastleColorPersistent read FTintPressedPersistent ; |
| 38 |
{$endif read_interface_class} |
| 39 |
|
| 40 |
{$ifdef read_implementation_methods} |
| 41 |
function TCastleButton.GetTintPressedForPersistent: TCastleColor; |
| 42 |
begin |
| 43 |
Result := TintPressed; |
| 44 |
end; |
| 45 |
|
| 46 |
procedure TCastleButton.SetTintPressedForPersistent(const AValue: TCastleColor); |
| 47 |
begin |
| 48 |
TintPressed := AValue; |
| 49 |
end; |
| 50 |
{$endif read_implementation_methods} |
| 51 |
|
| 52 |
{$ifdef read_implementation_constructor} |
| 53 |
FTintPressedPersistent := 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 |
FTintPressedPersistent.SetSubComponent(true); |
| 60 |
FTintPressedPersistent.InternalGetValue := {$ifdef FPC}@{$endif}GetTintPressedForPersistent; |
| 61 |
FTintPressedPersistent.InternalSetValue := {$ifdef FPC}@{$endif}SetTintPressedForPersistent; |
| 62 |
FTintPressedPersistent.InternalDefaultValue := TintPressed; // current value is default |
| 63 |
{$endif read_implementation_constructor} |
| 64 |
|
| 65 |
{$ifdef read_implementation_destructor} |
| 66 |
FreeAndNil(FTintPressedPersistent); |
| 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 |
FTintDisabledPersistent: TCastleColorPersistent; |
| 96 |
function GetTintDisabledForPersistent: TCastleColor; |
| 97 |
procedure SetTintDisabledForPersistent(const AValue: TCastleColor); |
| 98 |
published |
| 99 |
{ @link(TintDisabled) 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(TintDisabled) directly. |
| 103 |
|
| 104 |
@seealso TintDisabled } |
| 105 |
property TintDisabledPersistent: TCastleColorPersistent read FTintDisabledPersistent ; |
| 106 |
{$endif read_interface_class} |
| 107 |
|
| 108 |
{$ifdef read_implementation_methods} |
| 109 |
function TCastleButton.GetTintDisabledForPersistent: TCastleColor; |
| 110 |
begin |
| 111 |
Result := TintDisabled; |
| 112 |
end; |
| 113 |
|
| 114 |
procedure TCastleButton.SetTintDisabledForPersistent(const AValue: TCastleColor); |
| 115 |
begin |
| 116 |
TintDisabled := AValue; |
| 117 |
end; |
| 118 |
{$endif read_implementation_methods} |
| 119 |
|
| 120 |
{$ifdef read_implementation_constructor} |
| 121 |
FTintDisabledPersistent := TCastleColorPersistent.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 |
FTintDisabledPersistent.SetSubComponent(true); |
| 128 |
FTintDisabledPersistent.InternalGetValue := {$ifdef FPC}@{$endif}GetTintDisabledForPersistent; |
| 129 |
FTintDisabledPersistent.InternalSetValue := {$ifdef FPC}@{$endif}SetTintDisabledForPersistent; |
| 130 |
FTintDisabledPersistent.InternalDefaultValue := TintDisabled; // current value is default |
| 131 |
{$endif read_implementation_constructor} |
| 132 |
|
| 133 |
{$ifdef read_implementation_destructor} |
| 134 |
FreeAndNil(FTintDisabledPersistent); |
| 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 |
FTintFocusedPersistent: TCastleColorPersistent; |
| 164 |
function GetTintFocusedForPersistent: TCastleColor; |
| 165 |
procedure SetTintFocusedForPersistent(const AValue: TCastleColor); |
| 166 |
published |
| 167 |
{ @link(TintFocused) 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(TintFocused) directly. |
| 171 |
|
| 172 |
@seealso TintFocused } |
| 173 |
property TintFocusedPersistent: TCastleColorPersistent read FTintFocusedPersistent ; |
| 174 |
{$endif read_interface_class} |
| 175 |
|
| 176 |
{$ifdef read_implementation_methods} |
| 177 |
function TCastleButton.GetTintFocusedForPersistent: TCastleColor; |
| 178 |
begin |
| 179 |
Result := TintFocused; |
| 180 |
end; |
| 181 |
|
| 182 |
procedure TCastleButton.SetTintFocusedForPersistent(const AValue: TCastleColor); |
| 183 |
begin |
| 184 |
TintFocused := AValue; |
| 185 |
end; |
| 186 |
{$endif read_implementation_methods} |
| 187 |
|
| 188 |
{$ifdef read_implementation_constructor} |
| 189 |
FTintFocusedPersistent := TCastleColorPersistent.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 |
FTintFocusedPersistent.SetSubComponent(true); |
| 196 |
FTintFocusedPersistent.InternalGetValue := {$ifdef FPC}@{$endif}GetTintFocusedForPersistent; |
| 197 |
FTintFocusedPersistent.InternalSetValue := {$ifdef FPC}@{$endif}SetTintFocusedForPersistent; |
| 198 |
FTintFocusedPersistent.InternalDefaultValue := TintFocused; // current value is default |
| 199 |
{$endif read_implementation_constructor} |
| 200 |
|
| 201 |
{$ifdef read_implementation_destructor} |
| 202 |
FreeAndNil(FTintFocusedPersistent); |
| 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 |
FTintNormalPersistent: TCastleColorPersistent; |
| 232 |
function GetTintNormalForPersistent: TCastleColor; |
| 233 |
procedure SetTintNormalForPersistent(const AValue: TCastleColor); |
| 234 |
published |
| 235 |
{ @link(TintNormal) 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(TintNormal) directly. |
| 239 |
|
| 240 |
@seealso TintNormal } |
| 241 |
property TintNormalPersistent: TCastleColorPersistent read FTintNormalPersistent ; |
| 242 |
{$endif read_interface_class} |
| 243 |
|
| 244 |
{$ifdef read_implementation_methods} |
| 245 |
function TCastleButton.GetTintNormalForPersistent: TCastleColor; |
| 246 |
begin |
| 247 |
Result := TintNormal; |
| 248 |
end; |
| 249 |
|
| 250 |
procedure TCastleButton.SetTintNormalForPersistent(const AValue: TCastleColor); |
| 251 |
begin |
| 252 |
TintNormal := AValue; |
| 253 |
end; |
| 254 |
{$endif read_implementation_methods} |
| 255 |
|
| 256 |
{$ifdef read_implementation_constructor} |
| 257 |
FTintNormalPersistent := TCastleColorPersistent.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 |
FTintNormalPersistent.SetSubComponent(true); |
| 264 |
FTintNormalPersistent.InternalGetValue := {$ifdef FPC}@{$endif}GetTintNormalForPersistent; |
| 265 |
FTintNormalPersistent.InternalSetValue := {$ifdef FPC}@{$endif}SetTintNormalForPersistent; |
| 266 |
FTintNormalPersistent.InternalDefaultValue := TintNormal; // current value is default |
| 267 |
{$endif read_implementation_constructor} |
| 268 |
|
| 269 |
{$ifdef read_implementation_destructor} |
| 270 |
FreeAndNil(FTintNormalPersistent); |
| 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 |
FCustomTextColorPersistent: TCastleColorPersistent; |
| 300 |
function GetCustomTextColorForPersistent: TCastleColor; |
| 301 |
procedure SetCustomTextColorForPersistent(const AValue: TCastleColor); |
| 302 |
published |
| 303 |
{ @link(CustomTextColor) 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(CustomTextColor) directly. |
| 307 |
|
| 308 |
@seealso CustomTextColor } |
| 309 |
property CustomTextColorPersistent: TCastleColorPersistent read FCustomTextColorPersistent ; |
| 310 |
{$endif read_interface_class} |
| 311 |
|
| 312 |
{$ifdef read_implementation_methods} |
| 313 |
function TCastleButton.GetCustomTextColorForPersistent: TCastleColor; |
| 314 |
begin |
| 315 |
Result := CustomTextColor; |
| 316 |
end; |
| 317 |
|
| 318 |
procedure TCastleButton.SetCustomTextColorForPersistent(const AValue: TCastleColor); |
| 319 |
begin |
| 320 |
CustomTextColor := AValue; |
| 321 |
end; |
| 322 |
{$endif read_implementation_methods} |
| 323 |
|
| 324 |
{$ifdef read_implementation_constructor} |
| 325 |
FCustomTextColorPersistent := 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 |
FCustomTextColorPersistent.SetSubComponent(true); |
| 332 |
FCustomTextColorPersistent.InternalGetValue := {$ifdef FPC}@{$endif}GetCustomTextColorForPersistent; |
| 333 |
FCustomTextColorPersistent.InternalSetValue := {$ifdef FPC}@{$endif}SetCustomTextColorForPersistent; |
| 334 |
FCustomTextColorPersistent.InternalDefaultValue := CustomTextColor; // current value is default |
| 335 |
{$endif read_implementation_constructor} |
| 336 |
|
| 337 |
{$ifdef read_implementation_destructor} |
| 338 |
FreeAndNil(FCustomTextColorPersistent); |
| 339 |
{$endif read_implementation_destructor} |
| 340 |
|
| 341 |
{ -*- buffer-read-only: t -*- |
| 342 |
|
| 343 |
Copyright 2018-2022 Michalis Kamburelis. |
| 344 |
|
| 345 |
This file is part of "Castle Game Engine". |
| 346 |
|
| 347 |
"Castle Game Engine" is free software; see the file COPYING.txt, |
| 348 |
included in this distribution, for details about the copyright. |
| 349 |
|
| 350 |
"Castle Game Engine" is distributed in the hope that it will be useful, |
| 351 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 352 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 353 |
|
| 354 |
---------------------------------------------------------------------------- |
| 355 |
} |
| 356 |
|
| 357 |
{ Automatically generated wrapper to make vectors/colors persistent. |
| 358 |
|
| 359 |
Do not edit this file manually! |
| 360 |
Instead |
| 361 |
- edit tools/internal/generate-persistent-vectors/persistent_vectors_input.txt |
| 362 |
- and run generate-persistent-vectors in that directory. |
| 363 |
} |
| 364 |
|
| 365 |
{$ifdef read_interface_class} |
| 366 |
strict private |
| 367 |
FCustomColorPressedPersistent: TCastleColorPersistent; |
| 368 |
function GetCustomColorPressedForPersistent: TCastleColor; |
| 369 |
procedure SetCustomColorPressedForPersistent(const AValue: TCastleColor); |
| 370 |
published |
| 371 |
{ @link(CustomColorPressed) that can be visually edited in |
| 372 |
Castle Game Engine Editor, Lazarus and Delphi. |
| 373 |
Normal user code does not need to deal with this, |
| 374 |
instead read or write @link(CustomColorPressed) directly. |
| 375 |
|
| 376 |
@seealso CustomColorPressed } |
| 377 |
property CustomColorPressedPersistent: TCastleColorPersistent read FCustomColorPressedPersistent ; |
| 378 |
{$endif read_interface_class} |
| 379 |
|
| 380 |
{$ifdef read_implementation_methods} |
| 381 |
function TCastleButton.GetCustomColorPressedForPersistent: TCastleColor; |
| 382 |
begin |
| 383 |
Result := CustomColorPressed; |
| 384 |
end; |
| 385 |
|
| 386 |
procedure TCastleButton.SetCustomColorPressedForPersistent(const AValue: TCastleColor); |
| 387 |
begin |
| 388 |
CustomColorPressed := AValue; |
| 389 |
end; |
| 390 |
{$endif read_implementation_methods} |
| 391 |
|
| 392 |
{$ifdef read_implementation_constructor} |
| 393 |
FCustomColorPressedPersistent := TCastleColorPersistent.Create(nil); |
| 394 |
{ Note that some classes (like TCastleVector3Persistent) call SetSubComponent(true) |
| 395 |
on themselves, for backward compatibility. But we should not depend on it, |
| 396 |
some classes (like TFloatRectanglePersisten) may not call it. |
| 397 |
The responsibility of calling "SetSubComponent(true)" should be on the owner |
| 398 |
in general (this is more functional, and more standard too). } |
| 399 |
FCustomColorPressedPersistent.SetSubComponent(true); |
| 400 |
FCustomColorPressedPersistent.InternalGetValue := {$ifdef FPC}@{$endif}GetCustomColorPressedForPersistent; |
| 401 |
FCustomColorPressedPersistent.InternalSetValue := {$ifdef FPC}@{$endif}SetCustomColorPressedForPersistent; |
| 402 |
FCustomColorPressedPersistent.InternalDefaultValue := CustomColorPressed; // current value is default |
| 403 |
{$endif read_implementation_constructor} |
| 404 |
|
| 405 |
{$ifdef read_implementation_destructor} |
| 406 |
FreeAndNil(FCustomColorPressedPersistent); |
| 407 |
{$endif read_implementation_destructor} |
| 408 |
|
| 409 |
{ -*- buffer-read-only: t -*- |
| 410 |
|
| 411 |
Copyright 2018-2022 Michalis Kamburelis. |
| 412 |
|
| 413 |
This file is part of "Castle Game Engine". |
| 414 |
|
| 415 |
"Castle Game Engine" is free software; see the file COPYING.txt, |
| 416 |
included in this distribution, for details about the copyright. |
| 417 |
|
| 418 |
"Castle Game Engine" is distributed in the hope that it will be useful, |
| 419 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 420 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 421 |
|
| 422 |
---------------------------------------------------------------------------- |
| 423 |
} |
| 424 |
|
| 425 |
{ Automatically generated wrapper to make vectors/colors persistent. |
| 426 |
|
| 427 |
Do not edit this file manually! |
| 428 |
Instead |
| 429 |
- edit tools/internal/generate-persistent-vectors/persistent_vectors_input.txt |
| 430 |
- and run generate-persistent-vectors in that directory. |
| 431 |
} |
| 432 |
|
| 433 |
{$ifdef read_interface_class} |
| 434 |
strict private |
| 435 |
FCustomColorDisabledPersistent: TCastleColorPersistent; |
| 436 |
function GetCustomColorDisabledForPersistent: TCastleColor; |
| 437 |
procedure SetCustomColorDisabledForPersistent(const AValue: TCastleColor); |
| 438 |
published |
| 439 |
{ @link(CustomColorDisabled) that can be visually edited in |
| 440 |
Castle Game Engine Editor, Lazarus and Delphi. |
| 441 |
Normal user code does not need to deal with this, |
| 442 |
instead read or write @link(CustomColorDisabled) directly. |
| 443 |
|
| 444 |
@seealso CustomColorDisabled } |
| 445 |
property CustomColorDisabledPersistent: TCastleColorPersistent read FCustomColorDisabledPersistent ; |
| 446 |
{$endif read_interface_class} |
| 447 |
|
| 448 |
{$ifdef read_implementation_methods} |
| 449 |
function TCastleButton.GetCustomColorDisabledForPersistent: TCastleColor; |
| 450 |
begin |
| 451 |
Result := CustomColorDisabled; |
| 452 |
end; |
| 453 |
|
| 454 |
procedure TCastleButton.SetCustomColorDisabledForPersistent(const AValue: TCastleColor); |
| 455 |
begin |
| 456 |
CustomColorDisabled := AValue; |
| 457 |
end; |
| 458 |
{$endif read_implementation_methods} |
| 459 |
|
| 460 |
{$ifdef read_implementation_constructor} |
| 461 |
FCustomColorDisabledPersistent := TCastleColorPersistent.Create(nil); |
| 462 |
{ Note that some classes (like TCastleVector3Persistent) call SetSubComponent(true) |
| 463 |
on themselves, for backward compatibility. But we should not depend on it, |
| 464 |
some classes (like TFloatRectanglePersisten) may not call it. |
| 465 |
The responsibility of calling "SetSubComponent(true)" should be on the owner |
| 466 |
in general (this is more functional, and more standard too). } |
| 467 |
FCustomColorDisabledPersistent.SetSubComponent(true); |
| 468 |
FCustomColorDisabledPersistent.InternalGetValue := {$ifdef FPC}@{$endif}GetCustomColorDisabledForPersistent; |
| 469 |
FCustomColorDisabledPersistent.InternalSetValue := {$ifdef FPC}@{$endif}SetCustomColorDisabledForPersistent; |
| 470 |
FCustomColorDisabledPersistent.InternalDefaultValue := CustomColorDisabled; // current value is default |
| 471 |
{$endif read_implementation_constructor} |
| 472 |
|
| 473 |
{$ifdef read_implementation_destructor} |
| 474 |
FreeAndNil(FCustomColorDisabledPersistent); |
| 475 |
{$endif read_implementation_destructor} |
| 476 |
|
| 477 |
{ -*- buffer-read-only: t -*- |
| 478 |
|
| 479 |
Copyright 2018-2022 Michalis Kamburelis. |
| 480 |
|
| 481 |
This file is part of "Castle Game Engine". |
| 482 |
|
| 483 |
"Castle Game Engine" is free software; see the file COPYING.txt, |
| 484 |
included in this distribution, for details about the copyright. |
| 485 |
|
| 486 |
"Castle Game Engine" is distributed in the hope that it will be useful, |
| 487 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 488 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 489 |
|
| 490 |
---------------------------------------------------------------------------- |
| 491 |
} |
| 492 |
|
| 493 |
{ Automatically generated wrapper to make vectors/colors persistent. |
| 494 |
|
| 495 |
Do not edit this file manually! |
| 496 |
Instead |
| 497 |
- edit tools/internal/generate-persistent-vectors/persistent_vectors_input.txt |
| 498 |
- and run generate-persistent-vectors in that directory. |
| 499 |
} |
| 500 |
|
| 501 |
{$ifdef read_interface_class} |
| 502 |
strict private |
| 503 |
FCustomColorFocusedPersistent: TCastleColorPersistent; |
| 504 |
function GetCustomColorFocusedForPersistent: TCastleColor; |
| 505 |
procedure SetCustomColorFocusedForPersistent(const AValue: TCastleColor); |
| 506 |
published |
| 507 |
{ @link(CustomColorFocused) that can be visually edited in |
| 508 |
Castle Game Engine Editor, Lazarus and Delphi. |
| 509 |
Normal user code does not need to deal with this, |
| 510 |
instead read or write @link(CustomColorFocused) directly. |
| 511 |
|
| 512 |
@seealso CustomColorFocused } |
| 513 |
property CustomColorFocusedPersistent: TCastleColorPersistent read FCustomColorFocusedPersistent ; |
| 514 |
{$endif read_interface_class} |
| 515 |
|
| 516 |
{$ifdef read_implementation_methods} |
| 517 |
function TCastleButton.GetCustomColorFocusedForPersistent: TCastleColor; |
| 518 |
begin |
| 519 |
Result := CustomColorFocused; |
| 520 |
end; |
| 521 |
|
| 522 |
procedure TCastleButton.SetCustomColorFocusedForPersistent(const AValue: TCastleColor); |
| 523 |
begin |
| 524 |
CustomColorFocused := AValue; |
| 525 |
end; |
| 526 |
{$endif read_implementation_methods} |
| 527 |
|
| 528 |
{$ifdef read_implementation_constructor} |
| 529 |
FCustomColorFocusedPersistent := TCastleColorPersistent.Create(nil); |
| 530 |
{ Note that some classes (like TCastleVector3Persistent) call SetSubComponent(true) |
| 531 |
on themselves, for backward compatibility. But we should not depend on it, |
| 532 |
some classes (like TFloatRectanglePersisten) may not call it. |
| 533 |
The responsibility of calling "SetSubComponent(true)" should be on the owner |
| 534 |
in general (this is more functional, and more standard too). } |
| 535 |
FCustomColorFocusedPersistent.SetSubComponent(true); |
| 536 |
FCustomColorFocusedPersistent.InternalGetValue := {$ifdef FPC}@{$endif}GetCustomColorFocusedForPersistent; |
| 537 |
FCustomColorFocusedPersistent.InternalSetValue := {$ifdef FPC}@{$endif}SetCustomColorFocusedForPersistent; |
| 538 |
FCustomColorFocusedPersistent.InternalDefaultValue := CustomColorFocused; // current value is default |
| 539 |
{$endif read_implementation_constructor} |
| 540 |
|
| 541 |
{$ifdef read_implementation_destructor} |
| 542 |
FreeAndNil(FCustomColorFocusedPersistent); |
| 543 |
{$endif read_implementation_destructor} |
| 544 |
|
| 545 |
{ -*- buffer-read-only: t -*- |
| 546 |
|
| 547 |
Copyright 2018-2022 Michalis Kamburelis. |
| 548 |
|
| 549 |
This file is part of "Castle Game Engine". |
| 550 |
|
| 551 |
"Castle Game Engine" is free software; see the file COPYING.txt, |
| 552 |
included in this distribution, for details about the copyright. |
| 553 |
|
| 554 |
"Castle Game Engine" is distributed in the hope that it will be useful, |
| 555 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 556 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 557 |
|
| 558 |
---------------------------------------------------------------------------- |
| 559 |
} |
| 560 |
|
| 561 |
{ Automatically generated wrapper to make vectors/colors persistent. |
| 562 |
|
| 563 |
Do not edit this file manually! |
| 564 |
Instead |
| 565 |
- edit tools/internal/generate-persistent-vectors/persistent_vectors_input.txt |
| 566 |
- and run generate-persistent-vectors in that directory. |
| 567 |
} |
| 568 |
|
| 569 |
{$ifdef read_interface_class} |
| 570 |
strict private |
| 571 |
FCustomColorNormalPersistent: TCastleColorPersistent; |
| 572 |
function GetCustomColorNormalForPersistent: TCastleColor; |
| 573 |
procedure SetCustomColorNormalForPersistent(const AValue: TCastleColor); |
| 574 |
published |
| 575 |
{ @link(CustomColorNormal) that can be visually edited in |
| 576 |
Castle Game Engine Editor, Lazarus and Delphi. |
| 577 |
Normal user code does not need to deal with this, |
| 578 |
instead read or write @link(CustomColorNormal) directly. |
| 579 |
|
| 580 |
@seealso CustomColorNormal } |
| 581 |
property CustomColorNormalPersistent: TCastleColorPersistent read FCustomColorNormalPersistent ; |
| 582 |
{$endif read_interface_class} |
| 583 |
|
| 584 |
{$ifdef read_implementation_methods} |
| 585 |
function TCastleButton.GetCustomColorNormalForPersistent: TCastleColor; |
| 586 |
begin |
| 587 |
Result := CustomColorNormal; |
| 588 |
end; |
| 589 |
|
| 590 |
procedure TCastleButton.SetCustomColorNormalForPersistent(const AValue: TCastleColor); |
| 591 |
begin |
| 592 |
CustomColorNormal := AValue; |
| 593 |
end; |
| 594 |
{$endif read_implementation_methods} |
| 595 |
|
| 596 |
{$ifdef read_implementation_constructor} |
| 597 |
FCustomColorNormalPersistent := TCastleColorPersistent.Create(nil); |
| 598 |
{ Note that some classes (like TCastleVector3Persistent) call SetSubComponent(true) |
| 599 |
on themselves, for backward compatibility. But we should not depend on it, |
| 600 |
some classes (like TFloatRectanglePersisten) may not call it. |
| 601 |
The responsibility of calling "SetSubComponent(true)" should be on the owner |
| 602 |
in general (this is more functional, and more standard too). } |
| 603 |
FCustomColorNormalPersistent.SetSubComponent(true); |
| 604 |
FCustomColorNormalPersistent.InternalGetValue := {$ifdef FPC}@{$endif}GetCustomColorNormalForPersistent; |
| 605 |
FCustomColorNormalPersistent.InternalSetValue := {$ifdef FPC}@{$endif}SetCustomColorNormalForPersistent; |
| 606 |
FCustomColorNormalPersistent.InternalDefaultValue := CustomColorNormal; // current value is default |
| 607 |
{$endif read_implementation_constructor} |
| 608 |
|
| 609 |
{$ifdef read_implementation_destructor} |
| 610 |
FreeAndNil(FCustomColorNormalPersistent); |
| 611 |
{$endif read_implementation_destructor} |
| 612 |
|