mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 14:38:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
5 changed files with 784842 additions and 0 deletions
6
Brutal.ImGui/Manual/Typedefs/ImFontAtlasRectId.cs
Normal file
6
Brutal.ImGui/Manual/Typedefs/ImFontAtlasRectId.cs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
namespace Brutal.ImGuiApi;
|
||||
|
||||
public record struct ImFontAtlasRectId(int Value)
|
||||
{
|
||||
public static readonly ImFontAtlasRectId Invalid = new(-1);
|
||||
}
|
||||
12
Brutal.ImGui/Manual/Typedefs/ImGuiID.cs
Normal file
12
Brutal.ImGui/Manual/Typedefs/ImGuiID.cs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
namespace Brutal.ImGuiApi;
|
||||
|
||||
public record struct ImGuiID(uint Value)
|
||||
{
|
||||
public static implicit operator ImGuiID(uint value) => new(value);
|
||||
|
||||
public static implicit operator ImGuiID(int value) => new((uint)value);
|
||||
|
||||
public static implicit operator uint(ImGuiID value) => value.Value;
|
||||
|
||||
public static implicit operator int(ImGuiID value) => (int)value.Value;
|
||||
}
|
||||
7
Brutal.ImGui/Manual/Typedefs/ImGuiKeyChord.cs
Normal file
7
Brutal.ImGui/Manual/Typedefs/ImGuiKeyChord.cs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
namespace Brutal.ImGuiApi;
|
||||
|
||||
// Just a wrapper for ImGuiKey values, in the expectation that it will be a combination of Mod flags and a key value.
|
||||
public record struct ImGuiKeyChord(ImGuiKey Flags)
|
||||
{
|
||||
public static implicit operator ImGuiKeyChord(ImGuiKey key) => new(key);
|
||||
}
|
||||
11
Brutal.ImGui/Manual/Typedefs/ImTextureID.cs
Normal file
11
Brutal.ImGui/Manual/Typedefs/ImTextureID.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
namespace Brutal.ImGuiApi;
|
||||
|
||||
public record struct ImTextureID(nint Value)
|
||||
{
|
||||
// Special 'invalid' default defined by ImGui
|
||||
public static readonly ImTextureID Invalid = new(0);
|
||||
|
||||
public static implicit operator nint(ImTextureID value) => value.Value;
|
||||
|
||||
public static explicit operator ImTextureID(nint value) => new(value);
|
||||
}
|
||||
31
Brutal.ImGui/Manual/Typedefs/TODO.cs
Normal file
31
Brutal.ImGui/Manual/Typedefs/TODO.cs
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
//typedef ImU32* ImBitArrayPtr
|
||||
global using ImBitArrayPtr = Brutal.Pointers.Ptr<uint>;
|
||||
|
||||
namespace Brutal.ImGuiApi;
|
||||
|
||||
public struct ImSpan<T> { }
|
||||
|
||||
public struct ImStableVector<T> { }
|
||||
|
||||
public struct ImPool<T> { }
|
||||
|
||||
public struct ImStbTexteditState { }
|
||||
|
||||
public struct stbrp_node
|
||||
{
|
||||
#pragma warning disable CS0169 // Field is never used
|
||||
int x,
|
||||
y;
|
||||
nint next;
|
||||
#pragma warning restore CS0169 // Field is never used
|
||||
}
|
||||
|
||||
#region used by ImGuiContext
|
||||
|
||||
public struct ImBitArrayForNamedKeys { }
|
||||
|
||||
public struct ImChunkStream<T> { }
|
||||
|
||||
public struct ImFileHandle { }
|
||||
|
||||
#endregion
|
||||
Loading…
Reference in a new issue