diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/BBControlTuple.cs')
-rw-r--r-- | src/WixToolset.Data/Tuples/BBControlTuple.cs | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/src/WixToolset.Data/Tuples/BBControlTuple.cs b/src/WixToolset.Data/Tuples/BBControlTuple.cs new file mode 100644 index 00000000..dae041d4 --- /dev/null +++ b/src/WixToolset.Data/Tuples/BBControlTuple.cs | |||
@@ -0,0 +1,108 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | namespace WixToolset.Data | ||
4 | { | ||
5 | using WixToolset.Data.Tuples; | ||
6 | |||
7 | public static partial class TupleDefinitions | ||
8 | { | ||
9 | public static readonly IntermediateTupleDefinition BBControl = new IntermediateTupleDefinition( | ||
10 | TupleDefinitionType.BBControl, | ||
11 | new[] | ||
12 | { | ||
13 | new IntermediateFieldDefinition(nameof(BBControlTupleFields.Billboard_), IntermediateFieldType.String), | ||
14 | new IntermediateFieldDefinition(nameof(BBControlTupleFields.BBControl), IntermediateFieldType.String), | ||
15 | new IntermediateFieldDefinition(nameof(BBControlTupleFields.Type), IntermediateFieldType.String), | ||
16 | new IntermediateFieldDefinition(nameof(BBControlTupleFields.X), IntermediateFieldType.Number), | ||
17 | new IntermediateFieldDefinition(nameof(BBControlTupleFields.Y), IntermediateFieldType.Number), | ||
18 | new IntermediateFieldDefinition(nameof(BBControlTupleFields.Width), IntermediateFieldType.Number), | ||
19 | new IntermediateFieldDefinition(nameof(BBControlTupleFields.Height), IntermediateFieldType.Number), | ||
20 | new IntermediateFieldDefinition(nameof(BBControlTupleFields.Attributes), IntermediateFieldType.Number), | ||
21 | new IntermediateFieldDefinition(nameof(BBControlTupleFields.Text), IntermediateFieldType.String), | ||
22 | }, | ||
23 | typeof(BBControlTuple)); | ||
24 | } | ||
25 | } | ||
26 | |||
27 | namespace WixToolset.Data.Tuples | ||
28 | { | ||
29 | public enum BBControlTupleFields | ||
30 | { | ||
31 | Billboard_, | ||
32 | BBControl, | ||
33 | Type, | ||
34 | X, | ||
35 | Y, | ||
36 | Width, | ||
37 | Height, | ||
38 | Attributes, | ||
39 | Text, | ||
40 | } | ||
41 | |||
42 | public class BBControlTuple : IntermediateTuple | ||
43 | { | ||
44 | public BBControlTuple() : base(TupleDefinitions.BBControl, null, null) | ||
45 | { | ||
46 | } | ||
47 | |||
48 | public BBControlTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.BBControl, sourceLineNumber, id) | ||
49 | { | ||
50 | } | ||
51 | |||
52 | public IntermediateField this[BBControlTupleFields index] => this.Fields[(int)index]; | ||
53 | |||
54 | public string Billboard_ | ||
55 | { | ||
56 | get => (string)this.Fields[(int)BBControlTupleFields.Billboard_]?.Value; | ||
57 | set => this.Set((int)BBControlTupleFields.Billboard_, value); | ||
58 | } | ||
59 | |||
60 | public string BBControl | ||
61 | { | ||
62 | get => (string)this.Fields[(int)BBControlTupleFields.BBControl]?.Value; | ||
63 | set => this.Set((int)BBControlTupleFields.BBControl, value); | ||
64 | } | ||
65 | |||
66 | public string Type | ||
67 | { | ||
68 | get => (string)this.Fields[(int)BBControlTupleFields.Type]?.Value; | ||
69 | set => this.Set((int)BBControlTupleFields.Type, value); | ||
70 | } | ||
71 | |||
72 | public int X | ||
73 | { | ||
74 | get => (int)this.Fields[(int)BBControlTupleFields.X]?.Value; | ||
75 | set => this.Set((int)BBControlTupleFields.X, value); | ||
76 | } | ||
77 | |||
78 | public int Y | ||
79 | { | ||
80 | get => (int)this.Fields[(int)BBControlTupleFields.Y]?.Value; | ||
81 | set => this.Set((int)BBControlTupleFields.Y, value); | ||
82 | } | ||
83 | |||
84 | public int Width | ||
85 | { | ||
86 | get => (int)this.Fields[(int)BBControlTupleFields.Width]?.Value; | ||
87 | set => this.Set((int)BBControlTupleFields.Width, value); | ||
88 | } | ||
89 | |||
90 | public int Height | ||
91 | { | ||
92 | get => (int)this.Fields[(int)BBControlTupleFields.Height]?.Value; | ||
93 | set => this.Set((int)BBControlTupleFields.Height, value); | ||
94 | } | ||
95 | |||
96 | public int Attributes | ||
97 | { | ||
98 | get => (int)this.Fields[(int)BBControlTupleFields.Attributes]?.Value; | ||
99 | set => this.Set((int)BBControlTupleFields.Attributes, value); | ||
100 | } | ||
101 | |||
102 | public string Text | ||
103 | { | ||
104 | get => (string)this.Fields[(int)BBControlTupleFields.Text]?.Value; | ||
105 | set => this.Set((int)BBControlTupleFields.Text, value); | ||
106 | } | ||
107 | } | ||
108 | } \ No newline at end of file | ||