mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Add back ImGui.ArrowButton
This commit is contained in:
parent
afe58dae76
commit
0ce4f6d598
1 changed files with 10 additions and 0 deletions
|
|
@ -6,6 +6,16 @@ namespace Dalamud.Bindings.ImGui;
|
||||||
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
[SuppressMessage("ReSharper", "InconsistentNaming")]
|
||||||
public static unsafe partial class ImGui
|
public static unsafe partial class ImGui
|
||||||
{
|
{
|
||||||
|
public static bool ArrowButton(ImU8String strId, ImGuiDir dir)
|
||||||
|
{
|
||||||
|
fixed (byte* strIdPtr = &strId.GetPinnableNullTerminatedReference())
|
||||||
|
{
|
||||||
|
var r = ImGuiNative.ArrowButton(strIdPtr, dir) != 0;
|
||||||
|
strId.Recycle();
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static bool Begin(ImU8String name, ref bool open, ImGuiWindowFlags flags = ImGuiWindowFlags.None)
|
public static bool Begin(ImU8String name, ref bool open, ImGuiWindowFlags flags = ImGuiWindowFlags.None)
|
||||||
{
|
{
|
||||||
fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference())
|
fixed (byte* namePtr = &name.GetPinnableNullTerminatedReference())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue