| 1 |
{ -*- buffer-read-only: t -*- |
| 2 |
|
| 3 |
Copyright 2015-2024 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 node properties. |
| 18 |
|
| 19 |
Do not edit this file manually! |
| 20 |
To add new properties: |
| 21 |
- add them to the text files in tools/internal/x3d-nodes-to-pascal/nodes-specification/ , |
| 22 |
- and regenerate include files by running x3d-nodes-to-pascal } |
| 23 |
|
| 24 |
{$ifdef read_interface} |
| 25 |
|
| 26 |
public |
| 27 |
{ Create node fields and events. } |
| 28 |
procedure CreateNode; override; |
| 29 |
class function ClassX3DType: String; override; |
| 30 |
|
| 31 |
strict private FFdAlign: TMFString; |
| 32 |
{ Internal wrapper for property @code(Align). This wrapper API may change, we advise to access simpler @code(Align) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 33 |
public property FdAlign: TMFString read FFdAlign; |
| 34 |
{ } |
| 35 |
procedure SetAlign(const Value: array of string); overload; |
| 36 |
{ } |
| 37 |
procedure SetAlign(const Value: TCastleStringList); overload; |
| 38 |
|
| 39 |
strict private FFdOffset: TMFFloat; |
| 40 |
{ Internal wrapper for property @code(Offset). This wrapper API may change, we advise to access simpler @code(Offset) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 41 |
public property FdOffset: TMFFloat read FFdOffset; |
| 42 |
{ } |
| 43 |
procedure SetOffset(const Value: array of Single); overload; |
| 44 |
{ } |
| 45 |
procedure SetOffset(const Value: TSingleList); overload; |
| 46 |
|
| 47 |
strict private FFdOffsetUnits: TMFString; |
| 48 |
{ Internal wrapper for property @code(OffsetUnits). This wrapper API may change, we advise to access simpler @code(OffsetUnits) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 49 |
public property FdOffsetUnits: TMFString read FFdOffsetUnits; |
| 50 |
{ } |
| 51 |
procedure SetOffsetUnits(const Value: array of string); overload; |
| 52 |
{ } |
| 53 |
procedure SetOffsetUnits(const Value: TCastleStringList); overload; |
| 54 |
|
| 55 |
strict private FFdScaleMode: TMFString; |
| 56 |
{ Internal wrapper for property @code(ScaleMode). This wrapper API may change, we advise to access simpler @code(ScaleMode) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 57 |
public property FdScaleMode: TMFString read FFdScaleMode; |
| 58 |
{ } |
| 59 |
procedure SetScaleMode(const Value: array of string); overload; |
| 60 |
{ } |
| 61 |
procedure SetScaleMode(const Value: TCastleStringList); overload; |
| 62 |
|
| 63 |
strict private FFdSize: TMFFloat; |
| 64 |
{ Internal wrapper for property @code(Size). This wrapper API may change, we advise to access simpler @code(Size) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 65 |
public property FdSize: TMFFloat read FFdSize; |
| 66 |
{ } |
| 67 |
procedure SetSize(const Value: array of Single); overload; |
| 68 |
{ } |
| 69 |
procedure SetSize(const Value: TSingleList); overload; |
| 70 |
|
| 71 |
strict private FFdSizeUnits: TMFString; |
| 72 |
{ Internal wrapper for property @code(SizeUnits). This wrapper API may change, we advise to access simpler @code(SizeUnits) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 73 |
public property FdSizeUnits: TMFString read FFdSizeUnits; |
| 74 |
{ } |
| 75 |
procedure SetSizeUnits(const Value: array of string); overload; |
| 76 |
{ } |
| 77 |
procedure SetSizeUnits(const Value: TCastleStringList); overload; |
| 78 |
|
| 79 |
{$endif read_interface} |
| 80 |
|
| 81 |
{$ifdef read_implementation} |
| 82 |
|
| 83 |
{ TLayoutNode ----------------------------------------------- } |
| 84 |
|
| 85 |
procedure TLayoutNode.SetAlign(const Value: array of string); |
| 86 |
begin |
| 87 |
FdAlign.Send(Value); |
| 88 |
end; |
| 89 |
|
| 90 |
procedure TLayoutNode.SetAlign(const Value: TCastleStringList); |
| 91 |
begin |
| 92 |
FdAlign.Send(Value); |
| 93 |
end; |
| 94 |
|
| 95 |
procedure TLayoutNode.SetOffset(const Value: array of Single); |
| 96 |
begin |
| 97 |
FdOffset.Send(Value); |
| 98 |
end; |
| 99 |
|
| 100 |
procedure TLayoutNode.SetOffset(const Value: TSingleList); |
| 101 |
begin |
| 102 |
FdOffset.Send(Value); |
| 103 |
end; |
| 104 |
|
| 105 |
procedure TLayoutNode.SetOffsetUnits(const Value: array of string); |
| 106 |
begin |
| 107 |
FdOffsetUnits.Send(Value); |
| 108 |
end; |
| 109 |
|
| 110 |
procedure TLayoutNode.SetOffsetUnits(const Value: TCastleStringList); |
| 111 |
begin |
| 112 |
FdOffsetUnits.Send(Value); |
| 113 |
end; |
| 114 |
|
| 115 |
procedure TLayoutNode.SetScaleMode(const Value: array of string); |
| 116 |
begin |
| 117 |
FdScaleMode.Send(Value); |
| 118 |
end; |
| 119 |
|
| 120 |
procedure TLayoutNode.SetScaleMode(const Value: TCastleStringList); |
| 121 |
begin |
| 122 |
FdScaleMode.Send(Value); |
| 123 |
end; |
| 124 |
|
| 125 |
procedure TLayoutNode.SetSize(const Value: array of Single); |
| 126 |
begin |
| 127 |
FdSize.Send(Value); |
| 128 |
end; |
| 129 |
|
| 130 |
procedure TLayoutNode.SetSize(const Value: TSingleList); |
| 131 |
begin |
| 132 |
FdSize.Send(Value); |
| 133 |
end; |
| 134 |
|
| 135 |
procedure TLayoutNode.SetSizeUnits(const Value: array of string); |
| 136 |
begin |
| 137 |
FdSizeUnits.Send(Value); |
| 138 |
end; |
| 139 |
|
| 140 |
procedure TLayoutNode.SetSizeUnits(const Value: TCastleStringList); |
| 141 |
begin |
| 142 |
FdSizeUnits.Send(Value); |
| 143 |
end; |
| 144 |
|
| 145 |
class function TLayoutNode.ClassX3DType: String; |
| 146 |
begin |
| 147 |
Result := 'Layout'; |
| 148 |
end; |
| 149 |
|
| 150 |
procedure TLayoutNode.CreateNode; |
| 151 |
begin |
| 152 |
inherited; |
| 153 |
|
| 154 |
FFdAlign := TMFString.Create(Self, True, 'align', ['CENTER','CENTER']); |
| 155 |
FdAlign.ChangeAlways := chVisibleNonGeometry; |
| 156 |
AddField(FFdAlign); |
| 157 |
|
| 158 |
FFdOffset := TMFFloat.Create(Self, True, 'offset', [0,0]); |
| 159 |
FdOffset.ChangeAlways := chVisibleNonGeometry; |
| 160 |
AddField(FFdOffset); |
| 161 |
|
| 162 |
FFdOffsetUnits := TMFString.Create(Self, True, 'offsetUnits', ['WORLD','WORLD']); |
| 163 |
FdOffsetUnits.ChangeAlways := chVisibleNonGeometry; |
| 164 |
AddField(FFdOffsetUnits); |
| 165 |
|
| 166 |
FFdScaleMode := TMFString.Create(Self, True, 'scaleMode', ['NONE','NONE']); |
| 167 |
FdScaleMode.ChangeAlways := chVisibleNonGeometry; |
| 168 |
AddField(FFdScaleMode); |
| 169 |
|
| 170 |
FFdSize := TMFFloat.Create(Self, True, 'size', [1,1]); |
| 171 |
FdSize.ChangeAlways := chVisibleNonGeometry; |
| 172 |
AddField(FFdSize); |
| 173 |
|
| 174 |
FFdSizeUnits := TMFString.Create(Self, True, 'sizeUnits', ['WORLD','WORLD']); |
| 175 |
FdSizeUnits.ChangeAlways := chVisibleNonGeometry; |
| 176 |
AddField(FFdSizeUnits); |
| 177 |
end; |
| 178 |
|
| 179 |
{$endif read_implementation} |