File: Core\CSharp\System\Windows\Media\IntersectionDetail.cs
Project: wpf\src\PresentationCore.csproj (PresentationCore)
//---------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation.  All rights reserved.
//
// File: IntersectionDetail.cs
//
// Description: This file contains the intersection details for hit testing.
//
// History:
//  10/31/2003 : ericvan - Created it.
//
//---------------------------------------------------------------------------
 
using System.Runtime.InteropServices;
 
using System;
 
namespace System.Windows.Media 
{
    /// <summary>
    /// IntersectionDetail - Indicates detailed information on the nature
    /// of a geometry intersection operation.  This result is based on the
    /// intersection of the hit geometry and the target geometry (or visual.)
    ///
    /// For example:
    ///     GeometryHitTestResult result = VisualTreeHelper.HitTest(visual, hit_geometry))
    /// or
    ///     IntersectionDetail detail = target.DoesContainWithDetail(hit_geometry)
    ///
    /// </summary>
    public enum IntersectionDetail
    {
        /// <summary>
        /// NotCalculated - No intersection testing has been performed.
        /// </summary>
        NotCalculated = 0,
 
        /// <summary>
        /// Empty- There is no intersection between the hit geometry and the
        /// target geometry or visual.
        /// </summary>
        Empty = 1,
 
        /// <summary>
        /// FullyInside - The target geometry or visual is fully inside the
        /// hit geometry.
        /// </summary>
        FullyInside = 2,
 
        /// <summary>
        /// FullyContains - The target geometry or visual fully contains the
        /// hit geometry.
        /// </summary>
        FullyContains = 3,
 
        /// <summary>
        /// Intersects - The target geometry or visual overlap the hit geometry
        /// and is neither one contains the other.
        /// </summary>
        Intersects = 4
    }
}