Show More
Commit Description:
Add little ponds and improve water status messages....
Commit Description:
Add little ponds and improve water status messages.
No longer render water cells as "Water Oak." (Oak is the value of the enum when
set to zero.)
References:
File last commit:
Show/Diff file:
Action:
ImGui.NET/Generated/ImGuiViewport.gen.cs
68 lines | 3.5 KiB | text/x-csharp | CSharpLexer
68 lines | 3.5 KiB | text/x-csharp | CSharpLexer
r16 | using System; | |||
using System.Numerics; | ||||
using System.Runtime.CompilerServices; | ||||
using System.Text; | ||||
namespace ImGuiNET | ||||
{ | ||||
public unsafe partial struct ImGuiViewport | ||||
{ | ||||
public uint ID; | ||||
public ImGuiViewportFlags Flags; | ||||
public Vector2 Pos; | ||||
public Vector2 Size; | ||||
r503 | public Vector2 WorkPos; | |||
public Vector2 WorkSize; | ||||
r16 | public float DpiScale; | |||
r503 | public uint ParentViewportId; | |||
r16 | public ImDrawData* DrawData; | |||
public void* RendererUserData; | ||||
public void* PlatformUserData; | ||||
public void* PlatformHandle; | ||||
public void* PlatformHandleRaw; | ||||
public byte PlatformRequestMove; | ||||
public byte PlatformRequestResize; | ||||
public byte PlatformRequestClose; | ||||
} | ||||
public unsafe partial struct ImGuiViewportPtr | ||||
{ | ||||
public ImGuiViewport* NativePtr { get; } | ||||
public ImGuiViewportPtr(ImGuiViewport* nativePtr) => NativePtr = nativePtr; | ||||
public ImGuiViewportPtr(IntPtr nativePtr) => NativePtr = (ImGuiViewport*)nativePtr; | ||||
public static implicit operator ImGuiViewportPtr(ImGuiViewport* nativePtr) => new ImGuiViewportPtr(nativePtr); | ||||
public static implicit operator ImGuiViewport* (ImGuiViewportPtr wrappedPtr) => wrappedPtr.NativePtr; | ||||
public static implicit operator ImGuiViewportPtr(IntPtr nativePtr) => new ImGuiViewportPtr(nativePtr); | ||||
public ref uint ID => ref Unsafe.AsRef<uint>(&NativePtr->ID); | ||||
public ref ImGuiViewportFlags Flags => ref Unsafe.AsRef<ImGuiViewportFlags>(&NativePtr->Flags); | ||||
public ref Vector2 Pos => ref Unsafe.AsRef<Vector2>(&NativePtr->Pos); | ||||
public ref Vector2 Size => ref Unsafe.AsRef<Vector2>(&NativePtr->Size); | ||||
r503 | public ref Vector2 WorkPos => ref Unsafe.AsRef<Vector2>(&NativePtr->WorkPos); | |||
public ref Vector2 WorkSize => ref Unsafe.AsRef<Vector2>(&NativePtr->WorkSize); | ||||
r16 | public ref float DpiScale => ref Unsafe.AsRef<float>(&NativePtr->DpiScale); | |||
r503 | public ref uint ParentViewportId => ref Unsafe.AsRef<uint>(&NativePtr->ParentViewportId); | |||
r16 | public ImDrawDataPtr DrawData => new ImDrawDataPtr(NativePtr->DrawData); | |||
public IntPtr RendererUserData { get => (IntPtr)NativePtr->RendererUserData; set => NativePtr->RendererUserData = (void*)value; } | ||||
public IntPtr PlatformUserData { get => (IntPtr)NativePtr->PlatformUserData; set => NativePtr->PlatformUserData = (void*)value; } | ||||
public IntPtr PlatformHandle { get => (IntPtr)NativePtr->PlatformHandle; set => NativePtr->PlatformHandle = (void*)value; } | ||||
public IntPtr PlatformHandleRaw { get => (IntPtr)NativePtr->PlatformHandleRaw; set => NativePtr->PlatformHandleRaw = (void*)value; } | ||||
public ref bool PlatformRequestMove => ref Unsafe.AsRef<bool>(&NativePtr->PlatformRequestMove); | ||||
public ref bool PlatformRequestResize => ref Unsafe.AsRef<bool>(&NativePtr->PlatformRequestResize); | ||||
public ref bool PlatformRequestClose => ref Unsafe.AsRef<bool>(&NativePtr->PlatformRequestClose); | ||||
public void Destroy() | ||||
{ | ||||
ImGuiNative.ImGuiViewport_destroy((ImGuiViewport*)(NativePtr)); | ||||
} | ||||
public Vector2 GetCenter() | ||||
{ | ||||
Vector2 __retval; | ||||
ImGuiNative.ImGuiViewport_GetCenter(&__retval, (ImGuiViewport*)(NativePtr)); | ||||
return __retval; | ||||
} | ||||
r503 | public Vector2 GetWorkCenter() | |||
r16 | { | |||
Vector2 __retval; | ||||
r503 | ImGuiNative.ImGuiViewport_GetWorkCenter(&__retval, (ImGuiViewport*)(NativePtr)); | |||
r16 | return __retval; | |||
} | ||||
} | ||||
} | ||||