-
Notifications
You must be signed in to change notification settings - Fork 22
/
juce.natvis
173 lines (148 loc) · 6.99 KB
/
juce.natvis
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<?xml version="1.0" encoding="utf-8"?>
<!-- JUCE Debugging Visualizers - Jim Credland : [email protected] -->
<!--
Install into
%VSINSTALLDIR%\Common7\Packages\Debugger\Visualizers (requires admin access)
OR %USERPROFILE%\Documents\Visual Studio 2022\Visualizers\
One rainy day I'll make this into a Visual Studio Extension for easy installation.
Please submit any suggested changes on github.
See http://github.com/jcredland/juce-toys
-->
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="juce::Array<*>">
<DisplayString Condition="values.numUsed == 0">{{ EMPTY numAllocated={values.numAllocated} }}</DisplayString>
<DisplayString>{{ numUsed={values.numUsed} numAllocated={values.numAllocated} }}</DisplayString>
<Expand>
<Item Name="[numUsed]">values.numUsed</Item>
<ArrayItems>
<Size>values.numUsed</Size>
<ValuePointer>values.elements.data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="juce::OwnedArray<*>">
<DisplayString Condition="values.numUsed == 0">{{ EMPTY numAllocated={values.numAllocated} }}</DisplayString>
<DisplayString>{{ numUsed={values.numUsed} numAllocated={values.numAllocated} }}</DisplayString>
<Expand>
<Item Name="[numUsed]">values.numUsed</Item>
<ArrayItems>
<Size>values.numUsed</Size>
<ValuePointer>values.elements.data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="juce::ReferenceCountedArray<*>">
<DisplayString Condition="values.numUsed == 0">{{ EMPTY numAllocated={values.numAllocated} }}</DisplayString>
<DisplayString>{{ numUsed={values.numUsed} numAllocated={values.numAllocated} }}</DisplayString>
<Expand>
<Item Name="[numUsed]">values.numUsed</Item>
<ArrayItems>
<Size>values.numUsed</Size>
<ValuePointer>values.elements.data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="juce::ValueTree::SharedObject">
<DisplayString>{{ (ValueTree) type={type, sb} }}</DisplayString>
<Expand>
<Synthetic Name="[properties]">
<DisplayString>numProperties={properties.values.values.numUsed}</DisplayString>
<Expand>
<ArrayItems>
<Size>properties.values.values.numUsed</Size>
<ValuePointer>properties.values.values.elements.data</ValuePointer>
</ArrayItems>
</Expand>
</Synthetic>
<Synthetic Name="[children]">
<DisplayString>numChildren={children.values.numUsed}</DisplayString>
<Expand>
<ArrayItems>
<Size>children.values.numUsed</Size>
<ValuePointer>children.values.elements.data</ValuePointer>
</ArrayItems>
</Expand>
</Synthetic>
</Expand>
</Type>
<Type Name="juce::ValueTree">
<DisplayString Condition="object.referencedObject == 0">ValueTree::invalid</DisplayString>
<DisplayString>{{ (ValueTree) type={object.referencedObject->type,sb} }}</DisplayString>
<Expand>
<Synthetic Name="[properties]">
<DisplayString>numProperties={object.referencedObject->properties.values.values.numUsed}</DisplayString>
<Expand>
<ArrayItems>
<Size>object.referencedObject->properties.values.values.numUsed</Size>
<ValuePointer>object.referencedObject->properties.values.values.elements.data</ValuePointer>
</ArrayItems>
</Expand>
</Synthetic>
<Synthetic Name="[children]">
<DisplayString>numChildren={object.referencedObject->children.values.numUsed}</DisplayString>
<Expand>
<ArrayItems>
<Size>object.referencedObject->children.values.numUsed</Size>
<ValuePointer>object.referencedObject->children.values.elements.data</ValuePointer>
</ArrayItems>
</Expand>
</Synthetic>
</Expand>
</Type>
<Type Name="juce::Component">
<DisplayString>{{ {componentName} }}</DisplayString>
<Expand>
<Synthetic Name="[children]">
<DisplayString>numChildren={childComponentList.values.numUsed}</DisplayString>
<Expand>
<ArrayItems>
<Size>childComponentList.values.numUsed</Size>
<ValuePointer>childComponentList.values.elements.data</ValuePointer>
</ArrayItems>
</Expand>
</Synthetic>
</Expand>
</Type>
<Type Name="juce::Colour">
<DisplayString>r: {argb.components.r}, g: {argb.components.g}, b: {argb.components.b}, a: {argb.components.a}</DisplayString>
</Type>
<Type Name="juce::String">
<DisplayString>{text.data,s}</DisplayString>
</Type>
<Type Name="juce::Rectangle<*>">
<DisplayString>{pos.x}, {pos.y}, {w}, {h}</DisplayString>
</Type>
<Type Name="juce::Identifier">
<DisplayString>{{ identifier={name.text.data} }}</DisplayString>
</Type>
<!-- Types of var objects:
class VariantType; friend class VariantType;
class VariantType_Void; friend class VariantType_Void;
class VariantType_Undefined; friend class VariantType_Undefined;
class VariantType_Int; friend class VariantType_Int;
class VariantType_Int64; friend class VariantType_Int64;
class VariantType_Double; friend class VariantType_Double;
class VariantType_Bool; friend class VariantType_Bool;
class VariantType_String; friend class VariantType_String;
class VariantType_Object; friend class VariantType_Object;
class VariantType_Array; friend class VariantType_Array;
class VariantType_Binary; friend class VariantType_Binary;
class VariantType_Method; friend class VariantType_Method;
-->
<Type Name="juce::var">
<DisplayString Condition="type == &juce::var::Instance::attributesVoid">{{ intValue={value.intValue} }}</DisplayString>
<DisplayString Condition="type == &juce::var::Instance::attributesUndefined">{{ intValue={value.intValue} }}</DisplayString>
<DisplayString Condition="type == &juce::var::Instance::attributesInt">{{ intValue={value.intValue} }}</DisplayString>
<DisplayString Condition="type == &juce::var::Instance::attributesInt64">{{ int64Value={value.int64Value} }}</DisplayString>
<DisplayString Condition="type == &juce::var::Instance::attributesBool">{{ boolValue={value.boolValue} }}</DisplayString>
<DisplayString Condition="type == &juce::var::Instance::attributesDouble">{{ doubleValue={value.doubleValue} }}</DisplayString>
<DisplayString Condition="type == &juce::var::Instance::attributesString">{{ stringValue={reinterpret_cast<String*>(value.stringValue)->text.data,sb} }}</DisplayString>
<DisplayString Condition="type == &juce::var::Instance::attributesObject">{{ VariantType_Object }}</DisplayString>
<DisplayString Condition="type == &juce::var::Instance::attributesArray">{{ VariantType_Array }}</DisplayString>
<DisplayString Condition="type == &juce::var::Instance::attributesBinary">{{ VariantType_Binary }}</DisplayString>
<DisplayString Condition="type == &juce::var::Instance::attributesMethod">{{ VariantType_Method }}</DisplayString>
</Type>
<Type Name="juce::NamedValueSet::NamedValue">
<DisplayString>{{ {name,sb} {value}}}</DisplayString>
</Type>
</AutoVisualizer>