33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
using System;
|
|
|
|
namespace Rive.Components
|
|
{
|
|
/// <summary>
|
|
/// The hit test behavior of a RiveWidget in relation to other elements.
|
|
/// </summary>
|
|
public enum HitTestBehavior
|
|
{
|
|
|
|
/// <summary>
|
|
/// The bounds of the RiveWidget will consume all hits, even if there is no listener (hit area) at the target point. Content behind the RiveWidget will not receive hits.
|
|
/// </summary>
|
|
Opaque = 0,
|
|
|
|
/// <summary>
|
|
/// The RiveWidget will only consume hits where there is a listener (hit area) at the target point. Content behind the RiveWidget will only receive hits if no listener was hit.
|
|
/// </summary>
|
|
Translucent = 1,
|
|
|
|
|
|
/// <summary>
|
|
/// All hits will pass through the RiveWidget, regardless of whether a Rive listener was hit. Rive listeners will still receive hits.
|
|
/// </summary>
|
|
[Obsolete("Transparent hit testing is deprecated, please use Translucent instead.")]
|
|
Transparent = 2,
|
|
|
|
/// <summary>
|
|
/// No hit testing will be performed on the RiveWidget.
|
|
/// </summary>
|
|
None = 3
|
|
}
|
|
} |