Option Strict On
Option Explicit On

Imports Nexamas.UI.Rendering
Imports SkiaSharp

Namespace Nexamas.UI.Components

    Friend NotInheritable Class TopBarItem

        Friend Property Title As String = "Nexamas UI"

        Friend Property BarRectPx As SKRect = SKRect.Empty
        Friend Property DragRectPx As SKRect = SKRect.Empty
        Friend Property TitleRectPx As SKRect = SKRect.Empty

        Friend Property Enabled As Boolean = True
        Friend Property IsHoveringDragZone As Boolean = False
        Friend Property LogoRectPx As SKRect = SKRect.Empty
        Friend Property ShowLogo As Boolean = False
        Friend Property SurfaceMaterialKey As String = MASSurfaceMaterialIds.Auto
        Friend Function HitTestDragZone(ptPx As SKPoint) As Boolean
            Return Not DragRectPx.IsEmpty AndAlso DragRectPx.Contains(ptPx.X, ptPx.Y)
        End Function

    End Class

End Namespace