-
Notifications
You must be signed in to change notification settings - Fork 246
/
Copy pathcppwinrt.natvis
78 lines (78 loc) · 3.08 KB
/
cppwinrt.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
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<!--Visualize top-level C++/WinRT objects containing ABI pointers-->
<Type Name="winrt::Windows::Foundation::IInspectable">
<CustomVisualizer Condition="m_ptr != 0" VisualizerId="2ec1a02f-997c-4693-840e-88ffa1e21b56"/>
<DisplayString Condition="m_ptr == 0">null</DisplayString>
</Type>
<!--Visualize nested object properties via raw ABI pointers-->
<Type Name="winrt::impl::IInspectable">
<CustomVisualizer Condition="this != 0" VisualizerId="2ec1a02f-997c-4693-840e-88ffa1e21b56"/>
<DisplayString Condition="this == 0">null</DisplayString>
</Type>
<Type Name="winrt::impl::inspectable_abi">
<CustomVisualizer Condition="this != 0" VisualizerId="2ec1a02f-997c-4693-840e-88ffa1e21b56"/>
<DisplayString Condition="this == 0">null</DisplayString>
</Type>
<!-- Visualize C++/WinRT object implementations -->
<Type Name="winrt::impl::producer<*>">
<CustomVisualizer Condition="this != 0" VisualizerId="2ec1a02f-997c-4693-840e-88ffa1e21b56"/>
<DisplayString Condition="this == 0">null</DisplayString>
</Type>
<!--Visualize all raw IInspectable pointers-->
<Type Name="IInspectable">
<CustomVisualizer Condition="this != 0" VisualizerId="2ec1a02f-997c-4693-840e-88ffa1e21b56"/>
<DisplayString Condition="this == 0">null</DisplayString>
</Type>
<!--Primitive type visualizers-->
<Type Name="winrt::Windows::UI::Color">
<DisplayString>#{A,nvoXb}{R,nvoXb}{G,nvoXb}{B,nvoXb}</DisplayString>
</Type>
<Type Name="winrt::array_view<*>">
<DisplayString>{{size = {m_size}, {m_data,[m_size]}}}</DisplayString>
<Expand>
<ArrayItems>
<Size>m_size</Size>
<ValuePointer>m_data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="winrt::com_ptr<*>">
<DisplayString>{m_ptr}</DisplayString>
<Expand>
<ExpandedItem>m_ptr</ExpandedItem>
</Expand>
</Type>
<Type Name="winrt::guid">
<DisplayString>{*((GUID*)this)}</DisplayString>
<StringView>*((GUID*)this)</StringView>
</Type>
<Type Name="winrt::hresult">
<DisplayString>{value,hr}</DisplayString>
</Type>
<Type Name="winrt::hresult_error">
<DisplayString>{m_code}</DisplayString>
</Type>
<Type Name="winrt::hstring">
<DisplayString>{m_handle.m_value,sh}</DisplayString>
<StringView>m_handle.m_value,sh</StringView>
<Expand>
<Item Name="size">WindowsGetStringLen(m_handle.m_value)</Item>
<Item Name="[ptr]">WindowsGetStringRawBuffer(m_handle.m_value, nullptr)</Item>
</Expand>
</Type>
<Type Name="winrt::param::hstring">
<DisplayString>{m_handle,sh}</DisplayString>
<StringView>m_handle,sh</StringView>
<Expand>
<Item Name="size">WindowsGetStringLen(m_handle)</Item>
<Item Name="[ptr]">WindowsGetStringRawBuffer(m_handle, nullptr)</Item>
</Expand>
</Type>
<Type Name="winrt::Windows::Foundation::IUnknown">
<DisplayString>{m_ptr}</DisplayString>
<Expand>
<ExpandedItem>m_ptr</ExpandedItem>
</Expand>
</Type>
</AutoVisualizer>