//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
///
///
/// Coordinates of a rectangle within a texture.
///
///
/// C++:
/// imgui.h:191
///
struct ImTextureRect
///
///
///
///
/// Forward declarations: ImDrawList, ImFontAtlas layer
///
///
[StructLayout(LayoutKind.Explicit, Size = 8)]
public partial struct ImTextureRect
{
///
///
/// Upper-left coordinates of rectangle to update
///
///
/// C++:
/// imgui.h:3554
///
unsigned short x
///
///
///
///
/// 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.
///
///
[FieldOffset(0)]
public ushort x;
///
///
/// Upper-left coordinates of rectangle to update
///
///
/// C++:
/// imgui.h:3554
///
unsigned short x, y
///
///
///
///
/// 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.
///
///
[FieldOffset(2)]
public ushort y;
///
///
/// Size of rectangle to update (in pixels)
///
///
/// C++:
/// imgui.h:3555
///
unsigned short w
///
///
///
///
/// 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.
///
///
[FieldOffset(4)]
public ushort w;
///
///
/// Size of rectangle to update (in pixels)
///
///
/// C++:
/// imgui.h:3555
///
unsigned short w, h
///
///
///
///
/// 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.
///
///
[FieldOffset(6)]
public ushort h;
}
///
///
/// Coordinates of a rectangle within a texture.
///
///
/// C++:
/// imgui.h:191
///
struct ImTextureRect
///
///
///
///
/// Forward declarations: ImDrawList, ImFontAtlas layer
///
///
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;
///
///
/// Upper-left coordinates of rectangle to update
///
///
/// C++:
/// imgui.h:3554
///
unsigned short x
///
///
///
///
/// 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.
///
///
public ref ushort x => ref Unsafe.AsRef(&_ptr->x);
///
///
/// Upper-left coordinates of rectangle to update
///
///
/// C++:
/// imgui.h:3554
///
unsigned short x, y
///
///
///
///
/// 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.
///
///
public ref ushort y => ref Unsafe.AsRef(&_ptr->y);
///
///
/// Size of rectangle to update (in pixels)
///
///
/// C++:
/// imgui.h:3555
///
unsigned short w
///
///
///
///
/// 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.
///
///
public ref ushort w => ref Unsafe.AsRef(&_ptr->w);
///
///
/// Size of rectangle to update (in pixels)
///
///
/// C++:
/// imgui.h:3555
///
unsigned short w, h
///
///
///
///
/// 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.
///
///
public ref ushort h => ref Unsafe.AsRef(&_ptr->h);
}
}