mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
210 lines
8.5 KiB
C#
210 lines
8.5 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Brutal.ImGuiApi
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Coordinates of a rectangle within a texture.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L191">imgui.h:191</see>
|
|
/// <br/><c>struct ImTextureRect</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 8)]
|
|
public partial struct ImTextureRect
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Upper-left coordinates of rectangle to update
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3554">imgui.h:3554</see>
|
|
/// <br/><c>unsigned short x</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Coordinates of a rectangle within a texture.
|
|
/// When a texture is in ImTextureStatus_WantUpdates state, we provide a list of individual rectangles to copy to the graphics system.
|
|
/// You may use ImTextureData::Updates[] for the list, or ImTextureData::UpdateBox for a single bounding box.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(0)]
|
|
public ushort x;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Upper-left coordinates of rectangle to update
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3554">imgui.h:3554</see>
|
|
/// <br/><c>unsigned short x, y</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Coordinates of a rectangle within a texture.
|
|
/// When a texture is in ImTextureStatus_WantUpdates state, we provide a list of individual rectangles to copy to the graphics system.
|
|
/// You may use ImTextureData::Updates[] for the list, or ImTextureData::UpdateBox for a single bounding box.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(2)]
|
|
public ushort y;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Size of rectangle to update (in pixels)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3555">imgui.h:3555</see>
|
|
/// <br/><c>unsigned short w</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Coordinates of a rectangle within a texture.
|
|
/// When a texture is in ImTextureStatus_WantUpdates state, we provide a list of individual rectangles to copy to the graphics system.
|
|
/// You may use ImTextureData::Updates[] for the list, or ImTextureData::UpdateBox for a single bounding box.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(4)]
|
|
public ushort w;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Size of rectangle to update (in pixels)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3555">imgui.h:3555</see>
|
|
/// <br/><c>unsigned short w, h</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Coordinates of a rectangle within a texture.
|
|
/// When a texture is in ImTextureStatus_WantUpdates state, we provide a list of individual rectangles to copy to the graphics system.
|
|
/// You may use ImTextureData::Updates[] for the list, or ImTextureData::UpdateBox for a single bounding box.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(6)]
|
|
public ushort h;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Coordinates of a rectangle within a texture.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L191">imgui.h:191</see>
|
|
/// <br/><c>struct ImTextureRect</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImDrawList, ImFontAtlas layer
|
|
/// </para>
|
|
/// </remarks>
|
|
public unsafe partial struct ImTextureRectPtr(ImTextureRect* ptr) : INullable
|
|
{
|
|
private ImTextureRect* _ptr = ptr;
|
|
public ImTextureRect* Ptr => _ptr;
|
|
|
|
public bool IsNull() => _ptr is null;
|
|
|
|
public static implicit operator ImTextureRectPtr(ImTextureRect* ptr) => new(ptr);
|
|
|
|
public static implicit operator ImTextureRect*(ImTextureRectPtr wrapper) => wrapper.Ptr;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Upper-left coordinates of rectangle to update
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3554">imgui.h:3554</see>
|
|
/// <br/><c>unsigned short x</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Coordinates of a rectangle within a texture.
|
|
/// When a texture is in ImTextureStatus_WantUpdates state, we provide a list of individual rectangles to copy to the graphics system.
|
|
/// You may use ImTextureData::Updates[] for the list, or ImTextureData::UpdateBox for a single bounding box.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref ushort x => ref Unsafe.AsRef<ushort>(&_ptr->x);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Upper-left coordinates of rectangle to update
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3554">imgui.h:3554</see>
|
|
/// <br/><c>unsigned short x, y</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Coordinates of a rectangle within a texture.
|
|
/// When a texture is in ImTextureStatus_WantUpdates state, we provide a list of individual rectangles to copy to the graphics system.
|
|
/// You may use ImTextureData::Updates[] for the list, or ImTextureData::UpdateBox for a single bounding box.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref ushort y => ref Unsafe.AsRef<ushort>(&_ptr->y);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Size of rectangle to update (in pixels)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3555">imgui.h:3555</see>
|
|
/// <br/><c>unsigned short w</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Coordinates of a rectangle within a texture.
|
|
/// When a texture is in ImTextureStatus_WantUpdates state, we provide a list of individual rectangles to copy to the graphics system.
|
|
/// You may use ImTextureData::Updates[] for the list, or ImTextureData::UpdateBox for a single bounding box.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref ushort w => ref Unsafe.AsRef<ushort>(&_ptr->w);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Size of rectangle to update (in pixels)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L3555">imgui.h:3555</see>
|
|
/// <br/><c>unsigned short w, h</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Coordinates of a rectangle within a texture.
|
|
/// When a texture is in ImTextureStatus_WantUpdates state, we provide a list of individual rectangles to copy to the graphics system.
|
|
/// You may use ImTextureData::Updates[] for the list, or ImTextureData::UpdateBox for a single bounding box.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref ushort h => ref Unsafe.AsRef<ushort>(&_ptr->h);
|
|
}
|
|
}
|