mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-23 08:17:47 +01:00
restructure
This commit is contained in:
parent
3381ac1c7d
commit
b53a97408b
263 changed files with 2221 additions and 1191 deletions
|
|
@ -8,8 +8,8 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public static unsafe partial class ImGui
|
||||
{
|
||||
public static bool InputSByte(
|
||||
Utf8Buffer label, scoped ref sbyte data, sbyte step = 0, sbyte stepFast = 0,
|
||||
Utf8Buffer format = default, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar(
|
||||
ImU8String label, scoped ref sbyte data, sbyte step = 0, sbyte stepFast = 0,
|
||||
ImU8String format = default, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar(
|
||||
label,
|
||||
ImGuiDataType.S8,
|
||||
ref data,
|
||||
|
|
@ -19,7 +19,7 @@ public static unsafe partial class ImGui
|
|||
flags);
|
||||
|
||||
public static bool InputSByte(
|
||||
Utf8Buffer label, Span<sbyte> data, sbyte step = 0, sbyte stepFast = 0, Utf8Buffer format = default,
|
||||
ImU8String label, Span<sbyte> data, sbyte step = 0, sbyte stepFast = 0, ImU8String format = default,
|
||||
ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar(
|
||||
label,
|
||||
ImGuiDataType.S8,
|
||||
|
|
@ -30,7 +30,7 @@ public static unsafe partial class ImGui
|
|||
flags);
|
||||
|
||||
public static bool InputByte(
|
||||
Utf8Buffer label, scoped ref byte data, byte step = 0, byte stepFast = 0, Utf8Buffer format = default,
|
||||
ImU8String label, scoped ref byte data, byte step = 0, byte stepFast = 0, ImU8String format = default,
|
||||
ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar(
|
||||
label,
|
||||
ImGuiDataType.U8,
|
||||
|
|
@ -41,7 +41,7 @@ public static unsafe partial class ImGui
|
|||
flags);
|
||||
|
||||
public static bool InputByte(
|
||||
Utf8Buffer label, Span<byte> data, byte step = 0, byte stepFast = 0, Utf8Buffer format = default,
|
||||
ImU8String label, Span<byte> data, byte step = 0, byte stepFast = 0, ImU8String format = default,
|
||||
ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar(
|
||||
label,
|
||||
ImGuiDataType.U8,
|
||||
|
|
@ -52,8 +52,8 @@ public static unsafe partial class ImGui
|
|||
flags);
|
||||
|
||||
public static bool InputShort(
|
||||
Utf8Buffer label, scoped ref short data, short step = 0, short stepFast = 0,
|
||||
Utf8Buffer format = default, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar(
|
||||
ImU8String label, scoped ref short data, short step = 0, short stepFast = 0,
|
||||
ImU8String format = default, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar(
|
||||
label,
|
||||
ImGuiDataType.S16,
|
||||
ref data,
|
||||
|
|
@ -63,7 +63,7 @@ public static unsafe partial class ImGui
|
|||
flags);
|
||||
|
||||
public static bool InputShort(
|
||||
Utf8Buffer label, Span<short> data, short step = 0, short stepFast = 0, Utf8Buffer format = default,
|
||||
ImU8String label, Span<short> data, short step = 0, short stepFast = 0, ImU8String format = default,
|
||||
ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar(
|
||||
label,
|
||||
ImGuiDataType.S16,
|
||||
|
|
@ -74,8 +74,8 @@ public static unsafe partial class ImGui
|
|||
flags);
|
||||
|
||||
public static bool InputUShort(
|
||||
Utf8Buffer label, scoped ref ushort data, ushort step = 0, ushort stepFast = 0,
|
||||
Utf8Buffer format = default, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar(
|
||||
ImU8String label, scoped ref ushort data, ushort step = 0, ushort stepFast = 0,
|
||||
ImU8String format = default, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar(
|
||||
label,
|
||||
ImGuiDataType.U16,
|
||||
ref data,
|
||||
|
|
@ -85,7 +85,7 @@ public static unsafe partial class ImGui
|
|||
flags);
|
||||
|
||||
public static bool InputUShort(
|
||||
Utf8Buffer label, Span<ushort> data, ushort step = 0, ushort stepFast = 0, Utf8Buffer format = default,
|
||||
ImU8String label, Span<ushort> data, ushort step = 0, ushort stepFast = 0, ImU8String format = default,
|
||||
ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar(
|
||||
label,
|
||||
ImGuiDataType.U16,
|
||||
|
|
@ -96,7 +96,7 @@ public static unsafe partial class ImGui
|
|||
flags);
|
||||
|
||||
public static bool InputInt(
|
||||
Utf8Buffer label, scoped ref int data, int step = 0, int stepFast = 0, Utf8Buffer format = default,
|
||||
ImU8String label, scoped ref int data, int step = 0, int stepFast = 0, ImU8String format = default,
|
||||
ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar(
|
||||
label,
|
||||
ImGuiDataType.S32,
|
||||
|
|
@ -107,7 +107,7 @@ public static unsafe partial class ImGui
|
|||
flags);
|
||||
|
||||
public static bool InputInt(
|
||||
Utf8Buffer label, Span<int> data, int step = 0, int stepFast = 0, Utf8Buffer format = default,
|
||||
ImU8String label, Span<int> data, int step = 0, int stepFast = 0, ImU8String format = default,
|
||||
ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar(
|
||||
label,
|
||||
ImGuiDataType.S32,
|
||||
|
|
@ -118,7 +118,7 @@ public static unsafe partial class ImGui
|
|||
flags);
|
||||
|
||||
public static bool InputUInt(
|
||||
Utf8Buffer label, scoped ref uint data, uint step = 0, uint stepFast = 0, Utf8Buffer format = default,
|
||||
ImU8String label, scoped ref uint data, uint step = 0, uint stepFast = 0, ImU8String format = default,
|
||||
ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar(
|
||||
label,
|
||||
ImGuiDataType.U32,
|
||||
|
|
@ -129,7 +129,7 @@ public static unsafe partial class ImGui
|
|||
flags);
|
||||
|
||||
public static bool InputUInt(
|
||||
Utf8Buffer label, Span<uint> data, uint step = 0, uint stepFast = 0, Utf8Buffer format = default,
|
||||
ImU8String label, Span<uint> data, uint step = 0, uint stepFast = 0, ImU8String format = default,
|
||||
ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar(
|
||||
label,
|
||||
ImGuiDataType.U32,
|
||||
|
|
@ -140,7 +140,7 @@ public static unsafe partial class ImGui
|
|||
flags);
|
||||
|
||||
public static bool InputLong(
|
||||
Utf8Buffer label, scoped ref long data, long step = 0, long stepFast = 0, Utf8Buffer format = default,
|
||||
ImU8String label, scoped ref long data, long step = 0, long stepFast = 0, ImU8String format = default,
|
||||
ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar(
|
||||
label,
|
||||
ImGuiDataType.S64,
|
||||
|
|
@ -151,7 +151,7 @@ public static unsafe partial class ImGui
|
|||
flags);
|
||||
|
||||
public static bool InputLong(
|
||||
Utf8Buffer label, Span<long> data, long step = 0, long stepFast = 0, Utf8Buffer format = default,
|
||||
ImU8String label, Span<long> data, long step = 0, long stepFast = 0, ImU8String format = default,
|
||||
ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar(
|
||||
label,
|
||||
ImGuiDataType.S64,
|
||||
|
|
@ -162,8 +162,8 @@ public static unsafe partial class ImGui
|
|||
flags);
|
||||
|
||||
public static bool InputULong(
|
||||
Utf8Buffer label, scoped ref ulong data, ulong step = 0, ulong stepFast = 0,
|
||||
Utf8Buffer format = default, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar(
|
||||
ImU8String label, scoped ref ulong data, ulong step = 0, ulong stepFast = 0,
|
||||
ImU8String format = default, ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar(
|
||||
label,
|
||||
ImGuiDataType.U64,
|
||||
ref data,
|
||||
|
|
@ -173,7 +173,7 @@ public static unsafe partial class ImGui
|
|||
flags);
|
||||
|
||||
public static bool InputULong(
|
||||
Utf8Buffer label, Span<ulong> data, ulong step = 0, ulong stepFast = 0, Utf8Buffer format = default,
|
||||
ImU8String label, Span<ulong> data, ulong step = 0, ulong stepFast = 0, ImU8String format = default,
|
||||
ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) => InputScalar(
|
||||
label,
|
||||
ImGuiDataType.U64,
|
||||
|
|
@ -184,23 +184,23 @@ public static unsafe partial class ImGui
|
|||
flags);
|
||||
|
||||
public static bool InputFloat(
|
||||
Utf8Buffer label, scoped ref float data, float step = 0.0f,
|
||||
ImU8String label, scoped ref float data, float step = 0.0f,
|
||||
float stepFast = 0.0f,
|
||||
Utf8Buffer format = default,
|
||||
ImU8String format = default,
|
||||
ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) =>
|
||||
InputScalar(label, ImGuiDataType.Float, ref data, step, stepFast, format.MoveOrDefault("%.3f"u8), flags);
|
||||
|
||||
public static bool InputFloat(
|
||||
Utf8Buffer label, Span<float> data, float step = 0.0f,
|
||||
ImU8String label, Span<float> data, float step = 0.0f,
|
||||
float stepFast = 0.0f,
|
||||
Utf8Buffer format = default,
|
||||
ImU8String format = default,
|
||||
ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) =>
|
||||
InputScalar(label, ImGuiDataType.Float, data, step, stepFast, format.MoveOrDefault("%.3f"u8), flags);
|
||||
|
||||
public static bool InputFloat2(
|
||||
Utf8Buffer label, scoped ref Vector2 data, float step = 0.0f,
|
||||
ImU8String label, scoped ref Vector2 data, float step = 0.0f,
|
||||
float stepFast = 0.0f,
|
||||
Utf8Buffer format = default,
|
||||
ImU8String format = default,
|
||||
ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) =>
|
||||
InputScalar(
|
||||
label,
|
||||
|
|
@ -212,9 +212,9 @@ public static unsafe partial class ImGui
|
|||
flags);
|
||||
|
||||
public static bool InputFloat3(
|
||||
Utf8Buffer label, scoped ref Vector3 data, float step = 0.0f,
|
||||
ImU8String label, scoped ref Vector3 data, float step = 0.0f,
|
||||
float stepFast = 0.0f,
|
||||
Utf8Buffer format = default,
|
||||
ImU8String format = default,
|
||||
ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) =>
|
||||
InputScalar(
|
||||
label,
|
||||
|
|
@ -226,9 +226,9 @@ public static unsafe partial class ImGui
|
|||
flags);
|
||||
|
||||
public static bool InputFloat4(
|
||||
Utf8Buffer label, scoped ref Vector4 data, float step = 0.0f,
|
||||
ImU8String label, scoped ref Vector4 data, float step = 0.0f,
|
||||
float stepFast = 0.0f,
|
||||
Utf8Buffer format = default,
|
||||
ImU8String format = default,
|
||||
ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) =>
|
||||
InputScalar(
|
||||
label,
|
||||
|
|
@ -240,23 +240,23 @@ public static unsafe partial class ImGui
|
|||
flags);
|
||||
|
||||
public static bool InputDouble(
|
||||
Utf8Buffer label, scoped ref double data, double step = 0.0f,
|
||||
ImU8String label, scoped ref double data, double step = 0.0f,
|
||||
double stepFast = 0.0f,
|
||||
Utf8Buffer format = default,
|
||||
ImU8String format = default,
|
||||
ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) =>
|
||||
InputScalar(label, ImGuiDataType.Double, ref data, step, stepFast, format.MoveOrDefault("%.3f"u8), flags);
|
||||
|
||||
public static bool InputDouble(
|
||||
Utf8Buffer label, Span<double> data, double step = 0.0f,
|
||||
ImU8String label, Span<double> data, double step = 0.0f,
|
||||
double stepFast = 0.0f,
|
||||
Utf8Buffer format = default,
|
||||
ImU8String format = default,
|
||||
ImGuiInputTextFlags flags = ImGuiInputTextFlags.None) =>
|
||||
InputScalar(label, ImGuiDataType.Double, data, step, stepFast, format.MoveOrDefault("%.3f"u8), flags);
|
||||
|
||||
public static bool InputScalar<T>(
|
||||
Utf8Buffer label, ImGuiDataType dataType, scoped ref T data,
|
||||
ImU8String label, ImGuiDataType dataType, scoped ref T data,
|
||||
scoped in T step, scoped in T stepFast,
|
||||
Utf8Buffer format = default,
|
||||
ImU8String format = default,
|
||||
ImGuiInputTextFlags flags = ImGuiInputTextFlags.None)
|
||||
where T : unmanaged, IBinaryNumber<T>
|
||||
{
|
||||
|
|
@ -281,9 +281,9 @@ public static unsafe partial class ImGui
|
|||
}
|
||||
|
||||
public static bool InputScalar<T>(
|
||||
Utf8Buffer label, ImGuiDataType dataType, Span<T> data,
|
||||
ImU8String label, ImGuiDataType dataType, Span<T> data,
|
||||
scoped in T step, scoped in T stepFast,
|
||||
Utf8Buffer format = default,
|
||||
ImU8String format = default,
|
||||
ImGuiInputTextFlags flags = ImGuiInputTextFlags.None)
|
||||
where T : unmanaged, INumber<T>, IBinaryNumber<T>
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue