mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-29 20:03:41 +01:00
Add ImAnim bindings
This commit is contained in:
parent
e8485dee25
commit
2b5e2893c5
43 changed files with 4852 additions and 3 deletions
17
imgui/Dalamud.Bindings.ImAnim/Structs/ImAnimDragOpts.cs
Normal file
17
imgui/Dalamud.Bindings.ImAnim/Structs/ImAnimDragOpts.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System.Numerics;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Dalamud.Bindings.ImAnim;
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public unsafe struct ImAnimDragOpts
|
||||
{
|
||||
public Vector2 SnapGrid;
|
||||
public Vector2* SnapPoints;
|
||||
public int SnapPointsCount;
|
||||
public float SnapDuration;
|
||||
public float Overshoot;
|
||||
public ImAnimEaseType EaseType;
|
||||
|
||||
public static ImAnimDragOpts Default() => new() { SnapDuration = 0.2f, EaseType = ImAnimEaseType.OutCubic };
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue