Class ButtonExtension
Definition
- Namespace:
- Tizen.NUI.Components.Extension
- Assembly:
- Tizen.NUI.Components.dll
The ButtonExtension class allows developers to access the Button's components and extend their behavior in various states.
public abstract class ButtonExtension
- Inheritance
-
objectButtonExtension
- Derived
Properties
View SourceTouchInfo
The Touch info to get current touch position.
Declaration
protected Touch TouchInfo { get; }
Property Value
Type | Description |
---|---|
Touch |
Methods
View SourceOnClicked(Button, ClickedEventArgs)
Called when the Button is Clicked by a user
Declaration
public virtual void OnClicked(Button button, ClickedEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
Button | button | The Button instance that the extension currently applied to. |
ClickedEventArgs | eventArgs | The click event information. |
OnControlStateChanged(Button, ControlStateChangedEventArgs)
Describes actions on Button's ControlStates changed.
Declaration
public virtual void OnControlStateChanged(Button button, View.ControlStateChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
Button | button | The Button instance that the extension currently applied to. |
View.ControlStateChangedEventArgs | args | The control state changed information. |
OnDispose(Button)
Called when the attached Button is explicitly disposing.
Declaration
public virtual void OnDispose(Button button)
Parameters
Type | Name | Description |
---|---|---|
Button | button | The Button instance that the extension currently applied to. |
OnRelayout(Button)
Called after the size negotiation has been finished for the attached Control.
Declaration
public virtual void OnRelayout(Button button)
Parameters
Type | Name | Description |
---|---|---|
Button | button | The Button instance that the extension currently applied to. |
ProcessIcon(Button, ref ImageView)
Perform further processing of the button icon.
Declaration
public virtual bool ProcessIcon(Button button, ref ImageView icon)
Parameters
Type | Name | Description |
---|---|---|
Button | button | The button instance that the extension currently applied to. |
ImageView | icon | The reference of the button icon. |
Returns
Type | Description |
---|---|
bool |
ProcessOverlayImage(Button, ref ImageView)
Perform further processing of the button overlay image.
Declaration
public virtual bool ProcessOverlayImage(Button button, ref ImageView overlayImage)
Parameters
Type | Name | Description |
---|---|---|
Button | button | The button instance that the extension currently applied to. |
ImageView | overlayImage | The reference of the button overlay image. |
Returns
Type | Description |
---|---|
bool |
ProcessText(Button, ref TextLabel)
Perform further processing of the button text.
Declaration
public virtual bool ProcessText(Button button, ref TextLabel text)
Parameters
Type | Name | Description |
---|---|---|
Button | button | The button instance that the extension currently applied to. |
TextLabel | text | The reference of the button text. |
Returns
Type | Description |
---|---|
bool |
SetTouchInfo(Touch)
Set the Touch Info.
Declaration
public void SetTouchInfo(Touch touch)
Parameters
Type | Name | Description |
---|---|---|
Touch | touch | The Touch Info. |