2018-01-24 18:40:54 +01:00
<?xml version="1.0" encoding="utf-8"?>
2021-03-11 16:21:46 +01:00
<!--
2021-03-11 13:17:00 +01:00
.natvis file for Visual Studio debugger.
Purpose: provide nicer views on data types used by Dear ImGui.
2021-03-11 16:21:46 +01:00
2021-03-11 13:17:00 +01:00
To enable:
* include file in your VS project (most recommended: not intrusive and always kept up to date!)
* or copy in %USERPROFILE%\Documents\Visual Studio XXXX\Visualizers (current user)
* or copy in %VsInstallDirectory%\Common7\Packages\Debugger\Visualizers (all users)
2021-03-11 16:21:46 +01:00
2021-03-11 13:17:00 +01:00
More information at: https://docs.microsoft.com/en-us/visualstudio/debugger/create-custom-views-of-native-objects?view=vs-2019
2021-03-11 16:21:46 +01:00
-->
2018-01-24 18:40:54 +01:00
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="ImVector<*>">
<DisplayString>{{Size={Size} Capacity={Capacity}}}</DisplayString>
<Expand>
<ArrayItems>
<Size>Size</Size>
<ValuePointer>Data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
2021-03-11 16:21:46 +01:00
2020-03-18 12:20:53 +01:00
<Type Name="ImSpan<*>">
<DisplayString>{{Size={DataEnd-Data} }}</DisplayString>
<Expand>
<ArrayItems>
<Size>DataEnd-Data</Size>
<ValuePointer>Data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
2018-01-24 18:40:54 +01:00
<Type Name="ImVec2">
<DisplayString>{{x={x,g} y={y,g}}}</DisplayString>
</Type>
<Type Name="ImVec4">
<DisplayString>{{x={x,g} y={y,g} z={z,g} w={w,g}}}</DisplayString>
</Type>
<Type Name="ImRect">
<DisplayString>{{Min=({Min.x,g} {Min.y,g}) Max=({Max.x,g} {Max.y,g}) Size=({Max.x-Min.x,g} {Max.y-Min.y,g})}}</DisplayString>
<Expand>
<Item Name="Min">Min</Item>
<Item Name="Max">Max</Item>
<Item Name="[Width]">Max.x - Min.x</Item>
2018-01-24 19:10:09 +01:00
<Item Name="[Height]">Max.y - Min.y</Item>
2018-01-24 18:40:54 +01:00
</Expand>
</Type>
2018-01-24 18:52:26 +01:00
<Type Name="ImGuiWindow">
2019-01-03 18:38:20 +01:00
<DisplayString>{{Name {Name,s} Active {(Active||WasActive)?1:0,d} Child {(Flags & 0x01000000)?1:0,d} Popup {(Flags & 0x04000000)?1:0,d} Hidden {(Hidden)?1:0,d}}</DisplayString>
2018-01-24 18:52:26 +01:00
</Type>
2019-07-16 20:45:52 +02:00
<Type Name="ImGuiDockNode">
<DisplayString>{{ID {ID,x} Pos=({Pos.x,g} {Pos.y,g}) Size=({Size.x,g} {Size.y,g}) Parent {(ParentNode==0)?0:ParentNode->ID,x} Childs {(ChildNodes[0] != 0)+(ChildNodes[1] != 0)} Windows {Windows.Size} }</DisplayString>
</Type>
2021-03-11 16:31:29 +01:00
2021-03-11 16:21:46 +01:00
</AutoVisualizer>