using Avalonia;

namespace AtomUI.Desktop.Controls.DialogPositioning;

public record CustomDialogPlacement
{
    public DialogHorizontalAnchor HorizontalAnchor { get; set; }
    public DialogVerticalAnchor VerticalAnchor { get; set; }
    public double HorizontalOffset { get; set; }
    public double VerticalOffset { get; set; }
    
    public Size DialogSize { get; }
    public Visual Target { get; }
    internal DialogPositionerConstraintAdjustment ConstraintAdjustment { get; set; }
    public Rect AnchorRectangle { get; set; }
    
    internal CustomDialogPlacement(Size size, Visual target)
    {
        DialogSize = size;
        Target     = target;
    }
}