| 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 |
strict private |
| 27 |
function GetHorizontal: Boolean; |
| 28 |
procedure SetHorizontal(const Value: Boolean); |
| 29 |
{$ifndef CASTLE_SLIM_NODES} |
| 30 |
function GetLanguage: String; |
| 31 |
procedure SetLanguage(const Value: String); |
| 32 |
{$endif not CASTLE_SLIM_NODES} |
| 33 |
{$ifndef CASTLE_SLIM_NODES} |
| 34 |
function GetLeftToRight: Boolean; |
| 35 |
procedure SetLeftToRight(const Value: Boolean); |
| 36 |
{$endif not CASTLE_SLIM_NODES} |
| 37 |
function GetSize: Single; |
| 38 |
procedure SetSize(const Value: Single); |
| 39 |
function GetSpacing: Single; |
| 40 |
procedure SetSpacing(const Value: Single); |
| 41 |
function GetStyle: TX3DFontStyle; |
| 42 |
procedure SetStyle(const Value: TX3DFontStyle); |
| 43 |
{$ifndef CASTLE_SLIM_NODES} |
| 44 |
function GetTopToBottom: Boolean; |
| 45 |
procedure SetTopToBottom(const Value: Boolean); |
| 46 |
{$endif not CASTLE_SLIM_NODES} |
| 47 |
function GetBlending: Boolean; |
| 48 |
procedure SetBlending(const Value: Boolean); |
| 49 |
public |
| 50 |
{ Create node fields and events. } |
| 51 |
procedure CreateNode; override; |
| 52 |
class function ClassX3DType: String; override; |
| 53 |
|
| 54 |
strict private FFdFamily: TMFString; |
| 55 |
{ Internal wrapper for property @code(Family). This wrapper API may change, we advise to access simpler @code(Family) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 56 |
public property FdFamily: TMFString read FFdFamily; |
| 57 |
|
| 58 |
strict private FFdHorizontal: TSFBool; |
| 59 |
{ Internal wrapper for property @code(Horizontal). This wrapper API may change, we advise to access simpler @code(Horizontal) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 60 |
public property FdHorizontal: TSFBool read FFdHorizontal; |
| 61 |
{ } |
| 62 |
property Horizontal: Boolean read GetHorizontal write SetHorizontal; |
| 63 |
|
| 64 |
strict private FFdJustify: TMFString; |
| 65 |
{ Internal wrapper for property @code(Justify). This wrapper API may change, we advise to access simpler @code(Justify) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 66 |
public property FdJustify: TMFString read FFdJustify; |
| 67 |
|
| 68 |
{$ifndef CASTLE_SLIM_NODES} |
| 69 |
strict private FFdLanguage: TSFString; |
| 70 |
{ Internal wrapper for property @code(Language). This wrapper API may change, we advise to access simpler @code(Language) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 71 |
public property FdLanguage: TSFString read FFdLanguage; |
| 72 |
{$endif not CASTLE_SLIM_NODES} |
| 73 |
{$ifndef CASTLE_SLIM_NODES} |
| 74 |
{ } |
| 75 |
property Language: String read GetLanguage write SetLanguage; |
| 76 |
{$endif not CASTLE_SLIM_NODES} |
| 77 |
|
| 78 |
{$ifndef CASTLE_SLIM_NODES} |
| 79 |
strict private FFdLeftToRight: TSFBool; |
| 80 |
{ Internal wrapper for property @code(LeftToRight). This wrapper API may change, we advise to access simpler @code(LeftToRight) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 81 |
public property FdLeftToRight: TSFBool read FFdLeftToRight; |
| 82 |
{$endif not CASTLE_SLIM_NODES} |
| 83 |
{$ifndef CASTLE_SLIM_NODES} |
| 84 |
{ } |
| 85 |
property LeftToRight: Boolean read GetLeftToRight write SetLeftToRight; |
| 86 |
{$endif not CASTLE_SLIM_NODES} |
| 87 |
|
| 88 |
strict private FFdSize: TSFFloat; |
| 89 |
{ 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). } |
| 90 |
public property FdSize: TSFFloat read FFdSize; |
| 91 |
{ } |
| 92 |
property Size: Single read GetSize write SetSize; |
| 93 |
|
| 94 |
strict private FFdSpacing: TSFFloat; |
| 95 |
{ Internal wrapper for property @code(Spacing). This wrapper API may change, we advise to access simpler @code(Spacing) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 96 |
public property FdSpacing: TSFFloat read FFdSpacing; |
| 97 |
{ } |
| 98 |
property Spacing: Single read GetSpacing write SetSpacing; |
| 99 |
|
| 100 |
strict private FFdStyle: TSFStringEnum; |
| 101 |
{ Internal wrapper for property @code(Style). This wrapper API may change, we advise to access simpler @code(Style) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 102 |
public property FdStyle: TSFStringEnum read FFdStyle; |
| 103 |
{ } |
| 104 |
property Style: TX3DFontStyle read GetStyle write SetStyle; |
| 105 |
|
| 106 |
{$ifndef CASTLE_SLIM_NODES} |
| 107 |
strict private FFdTopToBottom: TSFBool; |
| 108 |
{ Internal wrapper for property @code(TopToBottom). This wrapper API may change, we advise to access simpler @code(TopToBottom) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 109 |
public property FdTopToBottom: TSFBool read FFdTopToBottom; |
| 110 |
{$endif not CASTLE_SLIM_NODES} |
| 111 |
{$ifndef CASTLE_SLIM_NODES} |
| 112 |
{ } |
| 113 |
property TopToBottom: Boolean read GetTopToBottom write SetTopToBottom; |
| 114 |
{$endif not CASTLE_SLIM_NODES} |
| 115 |
|
| 116 |
strict private FFdBlending: TSFBool; |
| 117 |
{ Internal wrapper for property @code(Blending). This wrapper API may change, we advise to access simpler @code(Blending) instead, if it is defined (TODO: for now, some field types do not have a simpler counterpart). } |
| 118 |
public property FdBlending: TSFBool read FFdBlending; |
| 119 |
{ } |
| 120 |
property Blending: Boolean read GetBlending write SetBlending; |
| 121 |
|
| 122 |
{$endif read_interface} |
| 123 |
|
| 124 |
{$ifdef read_implementation} |
| 125 |
|
| 126 |
{ TFontStyleNode ----------------------------------------------- } |
| 127 |
|
| 128 |
function TFontStyleNode.GetHorizontal: Boolean; |
| 129 |
begin |
| 130 |
Result := FdHorizontal.Value; |
| 131 |
end; |
| 132 |
|
| 133 |
procedure TFontStyleNode.SetHorizontal(const Value: Boolean); |
| 134 |
begin |
| 135 |
FdHorizontal.Send(Value); |
| 136 |
end; |
| 137 |
|
| 138 |
{$ifndef CASTLE_SLIM_NODES} |
| 139 |
function TFontStyleNode.GetLanguage: String; |
| 140 |
begin |
| 141 |
Result := FdLanguage.Value; |
| 142 |
end; |
| 143 |
|
| 144 |
procedure TFontStyleNode.SetLanguage(const Value: String); |
| 145 |
begin |
| 146 |
FdLanguage.Send(Value); |
| 147 |
end; |
| 148 |
|
| 149 |
{$endif not CASTLE_SLIM_NODES} |
| 150 |
{$ifndef CASTLE_SLIM_NODES} |
| 151 |
function TFontStyleNode.GetLeftToRight: Boolean; |
| 152 |
begin |
| 153 |
Result := FdLeftToRight.Value; |
| 154 |
end; |
| 155 |
|
| 156 |
procedure TFontStyleNode.SetLeftToRight(const Value: Boolean); |
| 157 |
begin |
| 158 |
FdLeftToRight.Send(Value); |
| 159 |
end; |
| 160 |
|
| 161 |
{$endif not CASTLE_SLIM_NODES} |
| 162 |
function TFontStyleNode.GetSize: Single; |
| 163 |
begin |
| 164 |
Result := FdSize.Value; |
| 165 |
end; |
| 166 |
|
| 167 |
procedure TFontStyleNode.SetSize(const Value: Single); |
| 168 |
begin |
| 169 |
FdSize.Send(Value); |
| 170 |
end; |
| 171 |
|
| 172 |
function TFontStyleNode.GetSpacing: Single; |
| 173 |
begin |
| 174 |
Result := FdSpacing.Value; |
| 175 |
end; |
| 176 |
|
| 177 |
procedure TFontStyleNode.SetSpacing(const Value: Single); |
| 178 |
begin |
| 179 |
FdSpacing.Send(Value); |
| 180 |
end; |
| 181 |
|
| 182 |
function TFontStyleNode.GetStyle: TX3DFontStyle; |
| 183 |
begin |
| 184 |
Result := TX3DFontStyle(FdStyle.EnumValue); |
| 185 |
end; |
| 186 |
|
| 187 |
procedure TFontStyleNode.SetStyle(const Value: TX3DFontStyle); |
| 188 |
begin |
| 189 |
FdStyle.SendEnumValue(Ord(Value)); |
| 190 |
end; |
| 191 |
|
| 192 |
{$ifndef CASTLE_SLIM_NODES} |
| 193 |
function TFontStyleNode.GetTopToBottom: Boolean; |
| 194 |
begin |
| 195 |
Result := FdTopToBottom.Value; |
| 196 |
end; |
| 197 |
|
| 198 |
procedure TFontStyleNode.SetTopToBottom(const Value: Boolean); |
| 199 |
begin |
| 200 |
FdTopToBottom.Send(Value); |
| 201 |
end; |
| 202 |
|
| 203 |
{$endif not CASTLE_SLIM_NODES} |
| 204 |
function TFontStyleNode.GetBlending: Boolean; |
| 205 |
begin |
| 206 |
Result := FdBlending.Value; |
| 207 |
end; |
| 208 |
|
| 209 |
procedure TFontStyleNode.SetBlending(const Value: Boolean); |
| 210 |
begin |
| 211 |
FdBlending.Send(Value); |
| 212 |
end; |
| 213 |
|
| 214 |
class function TFontStyleNode.ClassX3DType: String; |
| 215 |
begin |
| 216 |
Result := 'FontStyle'; |
| 217 |
end; |
| 218 |
|
| 219 |
procedure TFontStyleNode.CreateNode; |
| 220 |
begin |
| 221 |
inherited; |
| 222 |
|
| 223 |
FFdFamily := TMFString.Create(Self, False, 'family', ['SERIF']); |
| 224 |
FdFamily.ChangeAlways := chFontStyleFontChanged; |
| 225 |
AddField(FFdFamily); |
| 226 |
|
| 227 |
FFdHorizontal := TSFBool.Create(Self, False, 'horizontal', true); |
| 228 |
FdHorizontal.ChangeAlways := chFontStyle; |
| 229 |
AddField(FFdHorizontal); |
| 230 |
|
| 231 |
FFdJustify := TMFString.Create(Self, False, 'justify', ['BEGIN']); |
| 232 |
FdJustify.ChangeAlways := chFontStyle; |
| 233 |
AddField(FFdJustify); |
| 234 |
|
| 235 |
{$ifndef CASTLE_SLIM_NODES} |
| 236 |
FFdLanguage := TSFString.Create(Self, False, 'language', ''); |
| 237 |
FdLanguage.ChangeAlways := chFontStyle; |
| 238 |
AddField(FFdLanguage); |
| 239 |
{$endif not CASTLE_SLIM_NODES} |
| 240 |
|
| 241 |
{$ifndef CASTLE_SLIM_NODES} |
| 242 |
FFdLeftToRight := TSFBool.Create(Self, False, 'leftToRight', true); |
| 243 |
FdLeftToRight.ChangeAlways := chFontStyle; |
| 244 |
AddField(FFdLeftToRight); |
| 245 |
{$endif not CASTLE_SLIM_NODES} |
| 246 |
|
| 247 |
FFdSize := TSFFloat.Create(Self, False, 'size', 1.0); |
| 248 |
FdSize.ChangeAlways := chFontStyle; |
| 249 |
FdSize.MustBeNonnegative := true; |
| 250 |
AddField(FFdSize); |
| 251 |
|
| 252 |
FFdSpacing := TSFFloat.Create(Self, False, 'spacing', 1.0); |
| 253 |
FdSpacing.ChangeAlways := chFontStyle; |
| 254 |
FdSpacing.MustBeNonnegative := true; |
| 255 |
AddField(FFdSpacing); |
| 256 |
|
| 257 |
FFdStyle := TSFStringEnum.Create(Self, False, 'style', @FontStyleNames, Ord(High(FontStyleNames)) + 1, Ord(fsPlain)); |
| 258 |
FdStyle.ChangeAlways := chFontStyleFontChanged; |
| 259 |
AddField(FFdStyle); |
| 260 |
|
| 261 |
{$ifndef CASTLE_SLIM_NODES} |
| 262 |
FFdTopToBottom := TSFBool.Create(Self, False, 'topToBottom', true); |
| 263 |
FdTopToBottom.ChangeAlways := chFontStyle; |
| 264 |
AddField(FFdTopToBottom); |
| 265 |
{$endif not CASTLE_SLIM_NODES} |
| 266 |
|
| 267 |
FFdBlending := TSFBool.Create(Self, False, 'blending', true); |
| 268 |
FdBlending.ChangeAlways := chVisibleNonGeometry; |
| 269 |
AddField(FFdBlending); |
| 270 |
end; |
| 271 |
|
| 272 |
{$endif read_implementation} |