[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Actor_Property_CAPTURE_ALL_TOUCH_AFTER_START_get")]
public static extern int CaptureAllTouchAfterStartGet();
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Actor_Property_ALLOW_ONLY_OWN_TOUCH_get")]
+ public static extern int AllowOnlyOwnTouchGet();
+
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Actor_Property_BLEND_EQUATION_get")]
public static extern int BlendEquationGet();
private static HashSet<BindableProperty> sizePropertyGroup = new HashSet<BindableProperty>();
private static HashSet<BindableProperty> scalePropertyGroup = new HashSet<BindableProperty>();
private static bool defaultGrabTouchAfterLeave = false;
+ private static bool defaultAllowOnlyOwnTouch = false;
internal BackgroundExtraData backgroundExtraData;
}
GrabTouchAfterLeave = defaultGrabTouchAfterLeave;
+ AllowOnlyOwnTouch = defaultAllowOnlyOwnTouch;
}
internal View(ViewImpl implementation, bool shown = true) : this(Interop.View.NewViewInternal(ViewImpl.getCPtr(implementation)), true)
}
/// <summary>
+ /// If set to true, the <see cref="AllowOnlyOwnTouch"/> property value is set to true when all Views are created.
+ /// </summary>
+ /// <param name="enable">Sets value of AllowOnlyOwnTouch property</param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static void SetDefaultAllowOnlyOwnTouch(bool enable)
+ {
+ defaultAllowOnlyOwnTouch = enable;
+ }
+
+ /// <summary>
/// Deprecate. Do not use this.
/// The style instance applied to this view.
/// Note that do not modify the ViewStyle.
}
/// <summary>
+ /// Whether the view will only receive own touch.
+ /// </summary>
+ /// <returns>true, if it only receives touches that started from itself.</returns>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool AllowOnlyOwnTouch
+ {
+ get
+ {
+ return (bool)GetValue(AllowOnlyOwnTouchProperty);
+ }
+ set
+ {
+ SetValue(AllowOnlyOwnTouchProperty, value);
+ }
+ }
+
+ private bool InternalAllowOnlyOwnTouch
+ {
+ get
+ {
+ bool temp = false;
+ var pValue = GetProperty(View.Property.AllowOnlyOwnTouch);
+ pValue.Get(out temp);
+ pValue.Dispose();
+ return temp;
+ }
+ set
+ {
+ var temp = new Tizen.NUI.PropertyValue(value);
+ SetProperty(View.Property.AllowOnlyOwnTouch, temp);
+ temp.Dispose();
+ NotifyPropertyChanged();
+ }
+ }
+
+ /// <summary>
/// Determines which blend equation will be used to render renderers of this actor.
/// </summary>
/// <returns>blend equation enum currently assigned</returns>
});
/// <summary>
+ /// AllowOnlyOwnTouchProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly BindableProperty AllowOnlyOwnTouchProperty = BindableProperty.Create(nameof(AllowOnlyOwnTouch), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
+ {
+ var instance = (Tizen.NUI.BaseComponents.View)bindable;
+ if (newValue != null)
+ {
+ instance.InternalAllowOnlyOwnTouch = (bool)newValue;
+ }
+ },
+ defaultValueCreator: (bindable) =>
+ {
+ var instance = (Tizen.NUI.BaseComponents.View)bindable;
+ return instance.InternalAllowOnlyOwnTouch;
+ });
+
+
+ /// <summary>
/// BlendEquationProperty
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
internal static readonly int PADDING = Interop.ViewProperty.PaddingGet();
internal static readonly int SHADOW = Interop.ViewProperty.ShadowGet();
internal static readonly int CaptureAllTouchAfterStart = Interop.ActorProperty.CaptureAllTouchAfterStartGet();
+ internal static readonly int AllowOnlyOwnTouch = Interop.ActorProperty.AllowOnlyOwnTouchGet();
internal static readonly int BlendEquation = Interop.ActorProperty.BlendEquationGet();
internal static readonly int Culled = Interop.ActorProperty.CulledGet();
internal static readonly int AccessibilityName = Interop.ViewProperty.AccessibilityNameGet();