X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FTizen.NUI.Components%2FControls%2FExtension%2FButtonExtension.cs;h=83a8b1b90742af900602a65d18e3ccc0b2b91705;hb=ae8ac10c663f7dae494e780d428d3e38c1e2b3fd;hp=429b4b9e2931769287819e43f7ef9e296863e2da;hpb=5e3c32834234c86e23b9bdfa94d773842e1970c3;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git
diff --git a/src/Tizen.NUI.Components/Controls/Extension/ButtonExtension.cs b/src/Tizen.NUI.Components/Controls/Extension/ButtonExtension.cs
index 429b4b9..83a8b1b 100644
--- a/src/Tizen.NUI.Components/Controls/Extension/ButtonExtension.cs
+++ b/src/Tizen.NUI.Components/Controls/Extension/ButtonExtension.cs
@@ -26,6 +26,12 @@ namespace Tizen.NUI.Components.Extension
public abstract class ButtonExtension
{
///
+ /// The Touch info to get current touch position.
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected Touch TouchInfo { get; private set; }
+
+ ///
/// Called immediately after the Button creates the text part.
///
/// The Button instance that the extension currently applied to.
@@ -65,10 +71,9 @@ namespace Tizen.NUI.Components.Extension
/// Describes actions on Button's ControlStates changed.
///
/// The Button instance that the extension currently applied to.
- /// The previous contol state of the Button.
- /// The touch information in case the state has changed by touching.
+ /// The control state changed information.
[EditorBrowsable(EditorBrowsableState.Never)]
- public virtual void OnControlStateChanged(Button button, ControlStates previousState, Touch touchInfo)
+ public virtual void OnControlStateChanged(Button button, View.ControlStateChangedEventArgs args)
{
}
@@ -99,5 +104,12 @@ namespace Tizen.NUI.Components.Extension
public virtual void OnDispose(Button button)
{
}
- }
+
+ ///
+ /// Set the Touch Info.
+ ///
+ /// The Touch Info.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetTouchInfo(Touch touch) => TouchInfo = touch;
+ }
}