Option Strict On
Option Explicit On

Imports System
Imports System.Collections.Generic
Imports System.Collections.ObjectModel
Imports System.Windows.Forms
Imports Nexamas.UI.Architecture
Imports Nexamas.UI.Composition
Imports Nexamas.UI.Controls
Imports Nexamas.UI.General
Imports Nexamas.UI.Icons
Imports Nexamas.UI.Layout
Imports Nexamas.UI.Rendering
Imports Nexamas.UI.TextRendering
Imports Nexamas.UI.Theming
Imports Nexamas.UI.Values
Imports SkiaSharp

Namespace Nexamas.UI.Components

    Partial Public NotInheritable Class MASFileDropZone

#Region "Geometry / Hit Testing"
        Private Function HitTestRemoveIndex(point As SKPoint) As Integer
            If _rowHits.Count = 0 Then Return -1
            For Each hit As FileDropRowHit In _rowHits
                If hit Is Nothing OrElse hit.FileIndex < 0 Then Continue For
                If hit.CloseRect.Contains(point.X, point.Y) Then Return hit.FileIndex
            Next
            Return -1
        End Function
#End Region

    End Class

End Namespace
