//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImPlotApi
{
///
///
/// C++: implot.h:566
/// struct ImPlotInputMap {
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
[StructLayout(LayoutKind.Explicit, Size = 48)]
public partial struct ImPlotInputMap
{
///
///
/// LMB enables panning when held,
///
///
/// C++: implot.h:567
/// ImGuiMouseButton Pan
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
[FieldOffset(0)]
public ImGuiMouseButton Pan;
///
///
/// none optional modifier that must be held for panning/fitting
///
///
/// C++: implot.h:568
/// int PanMod
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
[FieldOffset(4)]
public int PanMod;
///
///
/// LMB initiates fit when double clicked
///
///
/// C++: implot.h:569
/// ImGuiMouseButton Fit
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
[FieldOffset(8)]
public ImGuiMouseButton Fit;
///
///
/// RMB begins box selection when pressed and confirms selection when released
///
///
/// C++: implot.h:570
/// ImGuiMouseButton Select
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
[FieldOffset(12)]
public ImGuiMouseButton Select;
///
///
/// LMB cancels active box selection when pressed; cannot be same as Select
///
///
/// C++: implot.h:571
/// ImGuiMouseButton SelectCancel
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
[FieldOffset(16)]
public ImGuiMouseButton SelectCancel;
///
///
/// none optional modifier that must be held for box selection
///
///
/// C++: implot.h:572
/// int SelectMod
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
[FieldOffset(20)]
public int SelectMod;
///
///
/// Alt expands active box selection horizontally to plot edge when held
///
///
/// C++: implot.h:573
/// int SelectHorzMod
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
[FieldOffset(24)]
public int SelectHorzMod;
///
///
/// Shift expands active box selection vertically to plot edge when held
///
///
/// C++: implot.h:574
/// int SelectVertMod
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
[FieldOffset(28)]
public int SelectVertMod;
///
///
/// RMB opens context menus (if enabled) when clicked
///
///
/// C++: implot.h:575
/// ImGuiMouseButton Menu
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
[FieldOffset(32)]
public ImGuiMouseButton Menu;
///
///
/// Ctrl when held, all input is ignored; used to enable axis/plots as DND sources
///
///
/// C++: implot.h:576
/// int OverrideMod
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
[FieldOffset(36)]
public int OverrideMod;
///
///
/// none optional modifier that must be held for scroll wheel zooming
///
///
/// C++: implot.h:577
/// int ZoomMod
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
[FieldOffset(40)]
public int ZoomMod;
///
///
/// 0.1f zoom rate for scroll (e.g. 0.1f = 10% plot range every scroll click); make negative to invert
///
///
/// C++: implot.h:578
/// float ZoomRate
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
[FieldOffset(44)]
public float ZoomRate;
}
///
///
/// C++: implot.h:566
/// struct ImPlotInputMap {
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
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;
///
///
/// LMB enables panning when held,
///
///
/// C++: implot.h:567
/// ImGuiMouseButton Pan
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
public ref ImGuiMouseButton Pan => ref Unsafe.AsRef(&_ptr->Pan);
///
///
/// none optional modifier that must be held for panning/fitting
///
///
/// C++: implot.h:568
/// int PanMod
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
public ref int PanMod => ref Unsafe.AsRef(&_ptr->PanMod);
///
///
/// LMB initiates fit when double clicked
///
///
/// C++: implot.h:569
/// ImGuiMouseButton Fit
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
public ref ImGuiMouseButton Fit => ref Unsafe.AsRef(&_ptr->Fit);
///
///
/// RMB begins box selection when pressed and confirms selection when released
///
///
/// C++: implot.h:570
/// ImGuiMouseButton Select
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
public ref ImGuiMouseButton Select => ref Unsafe.AsRef(&_ptr->Select);
///
///
/// LMB cancels active box selection when pressed; cannot be same as Select
///
///
/// C++: implot.h:571
/// ImGuiMouseButton SelectCancel
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
public ref ImGuiMouseButton SelectCancel => ref Unsafe.AsRef(&_ptr->SelectCancel);
///
///
/// none optional modifier that must be held for box selection
///
///
/// C++: implot.h:572
/// int SelectMod
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
public ref int SelectMod => ref Unsafe.AsRef(&_ptr->SelectMod);
///
///
/// Alt expands active box selection horizontally to plot edge when held
///
///
/// C++: implot.h:573
/// int SelectHorzMod
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
public ref int SelectHorzMod => ref Unsafe.AsRef(&_ptr->SelectHorzMod);
///
///
/// Shift expands active box selection vertically to plot edge when held
///
///
/// C++: implot.h:574
/// int SelectVertMod
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
public ref int SelectVertMod => ref Unsafe.AsRef(&_ptr->SelectVertMod);
///
///
/// RMB opens context menus (if enabled) when clicked
///
///
/// C++: implot.h:575
/// ImGuiMouseButton Menu
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
public ref ImGuiMouseButton Menu => ref Unsafe.AsRef(&_ptr->Menu);
///
///
/// Ctrl when held, all input is ignored; used to enable axis/plots as DND sources
///
///
/// C++: implot.h:576
/// int OverrideMod
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
public ref int OverrideMod => ref Unsafe.AsRef(&_ptr->OverrideMod);
///
///
/// none optional modifier that must be held for scroll wheel zooming
///
///
/// C++: implot.h:577
/// int ZoomMod
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
public ref int ZoomMod => ref Unsafe.AsRef(&_ptr->ZoomMod);
///
///
/// 0.1f zoom rate for scroll (e.g. 0.1f = 10% plot range every scroll click); make negative to invert
///
///
/// C++: implot.h:578
/// float ZoomRate
///
///
///
///
/// Input mapping structure. Default values listed. See also MapInputDefault, MapInputReverse.
///
///
public ref float ZoomRate => ref Unsafe.AsRef(&_ptr->ZoomRate);
}
}