mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 12:38:24 +01:00
442 lines
17 KiB
C#
442 lines
17 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Brutal.ImPlotApi
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L566">implot.h:566</see><br/>
|
|
/// <c>struct ImPlotInputMap {</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 48)]
|
|
public partial struct ImPlotInputMap
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// LMB enables panning when held,
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L567">implot.h:567</see><br/>
|
|
/// <c>ImGuiMouseButton Pan</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(0)]
|
|
public ImGuiMouseButton Pan;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// none optional modifier that must be held for panning/fitting
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L568">implot.h:568</see><br/>
|
|
/// <c>int PanMod</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(4)]
|
|
public int PanMod;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// LMB initiates fit when double clicked
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L569">implot.h:569</see><br/>
|
|
/// <c>ImGuiMouseButton Fit</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(8)]
|
|
public ImGuiMouseButton Fit;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// RMB begins box selection when pressed and confirms selection when released
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L570">implot.h:570</see><br/>
|
|
/// <c>ImGuiMouseButton Select</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(12)]
|
|
public ImGuiMouseButton Select;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// LMB cancels active box selection when pressed; cannot be same as Select
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L571">implot.h:571</see><br/>
|
|
/// <c>ImGuiMouseButton SelectCancel</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(16)]
|
|
public ImGuiMouseButton SelectCancel;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// none optional modifier that must be held for box selection
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L572">implot.h:572</see><br/>
|
|
/// <c>int SelectMod</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(20)]
|
|
public int SelectMod;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Alt expands active box selection horizontally to plot edge when held
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L573">implot.h:573</see><br/>
|
|
/// <c>int SelectHorzMod</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(24)]
|
|
public int SelectHorzMod;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Shift expands active box selection vertically to plot edge when held
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L574">implot.h:574</see><br/>
|
|
/// <c>int SelectVertMod</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(28)]
|
|
public int SelectVertMod;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// RMB opens context menus (if enabled) when clicked
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L575">implot.h:575</see><br/>
|
|
/// <c>ImGuiMouseButton Menu</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(32)]
|
|
public ImGuiMouseButton Menu;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Ctrl when held, all input is ignored; used to enable axis/plots as DND sources
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L576">implot.h:576</see><br/>
|
|
/// <c>int OverrideMod</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(36)]
|
|
public int OverrideMod;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// none optional modifier that must be held for scroll wheel zooming
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L577">implot.h:577</see><br/>
|
|
/// <c>int ZoomMod</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(40)]
|
|
public int ZoomMod;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 0.1f zoom rate for scroll (e.g. 0.1f = 10% plot range every scroll click); make negative to invert
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L578">implot.h:578</see><br/>
|
|
/// <c>float ZoomRate</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(44)]
|
|
public float ZoomRate;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L566">implot.h:566</see><br/>
|
|
/// <c>struct ImPlotInputMap {</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
public unsafe partial struct ImPlotInputMapPtr(ImPlotInputMap* ptr) : INullable
|
|
{
|
|
private ImPlotInputMap* _ptr = ptr;
|
|
public ImPlotInputMap* Ptr => _ptr;
|
|
|
|
public bool IsNull() => _ptr is null;
|
|
|
|
public static implicit operator ImPlotInputMapPtr(ImPlotInputMap* ptr) => new(ptr);
|
|
|
|
public static implicit operator ImPlotInputMap*(ImPlotInputMapPtr wrapper) => wrapper.Ptr;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// LMB enables panning when held,
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L567">implot.h:567</see><br/>
|
|
/// <c>ImGuiMouseButton Pan</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref ImGuiMouseButton Pan => ref Unsafe.AsRef<ImGuiMouseButton>(&_ptr->Pan);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// none optional modifier that must be held for panning/fitting
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L568">implot.h:568</see><br/>
|
|
/// <c>int PanMod</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref int PanMod => ref Unsafe.AsRef<int>(&_ptr->PanMod);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// LMB initiates fit when double clicked
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L569">implot.h:569</see><br/>
|
|
/// <c>ImGuiMouseButton Fit</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref ImGuiMouseButton Fit => ref Unsafe.AsRef<ImGuiMouseButton>(&_ptr->Fit);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// RMB begins box selection when pressed and confirms selection when released
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L570">implot.h:570</see><br/>
|
|
/// <c>ImGuiMouseButton Select</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref ImGuiMouseButton Select => ref Unsafe.AsRef<ImGuiMouseButton>(&_ptr->Select);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// LMB cancels active box selection when pressed; cannot be same as Select
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L571">implot.h:571</see><br/>
|
|
/// <c>ImGuiMouseButton SelectCancel</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref ImGuiMouseButton SelectCancel => ref Unsafe.AsRef<ImGuiMouseButton>(&_ptr->SelectCancel);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// none optional modifier that must be held for box selection
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L572">implot.h:572</see><br/>
|
|
/// <c>int SelectMod</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref int SelectMod => ref Unsafe.AsRef<int>(&_ptr->SelectMod);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Alt expands active box selection horizontally to plot edge when held
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L573">implot.h:573</see><br/>
|
|
/// <c>int SelectHorzMod</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref int SelectHorzMod => ref Unsafe.AsRef<int>(&_ptr->SelectHorzMod);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Shift expands active box selection vertically to plot edge when held
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L574">implot.h:574</see><br/>
|
|
/// <c>int SelectVertMod</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref int SelectVertMod => ref Unsafe.AsRef<int>(&_ptr->SelectVertMod);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// RMB opens context menus (if enabled) when clicked
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L575">implot.h:575</see><br/>
|
|
/// <c>ImGuiMouseButton Menu</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref ImGuiMouseButton Menu => ref Unsafe.AsRef<ImGuiMouseButton>(&_ptr->Menu);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Ctrl when held, all input is ignored; used to enable axis/plots as DND sources
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L576">implot.h:576</see><br/>
|
|
/// <c>int OverrideMod</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref int OverrideMod => ref Unsafe.AsRef<int>(&_ptr->OverrideMod);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// none optional modifier that must be held for scroll wheel zooming
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L577">implot.h:577</see><br/>
|
|
/// <c>int ZoomMod</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref int ZoomMod => ref Unsafe.AsRef<int>(&_ptr->ZoomMod);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// 0.1f zoom rate for scroll (e.g. 0.1f = 10% plot range every scroll click); make negative to invert
|
|
/// </para>
|
|
/// <para>
|
|
/// C++: <see href="https://github.com/epezent/implot/blob/3da8bd34/implot.h#L578">implot.h:578</see><br/>
|
|
/// <c>float ZoomRate</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref float ZoomRate => ref Unsafe.AsRef<float>(&_ptr->ZoomRate);
|
|
}
|
|
}
|