X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FElmSharp%2FElmSharp%2FButton.cs;h=7332e41e191a4fe48128e78efe701e523f0c1016;hb=58283d6a09a7f531af61ae7b27b574603ef244df;hp=6fe2ae5ccf18324f716cd519b50c2f320c6e2517;hpb=0ea0440501bac2e53b1e9aba97416ace842ada2f;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/src/ElmSharp/ElmSharp/Button.cs b/src/ElmSharp/ElmSharp/Button.cs old mode 100755 new mode 100644 index 6fe2ae5..7332e41 --- a/src/ElmSharp/ElmSharp/Button.cs +++ b/src/ElmSharp/ElmSharp/Button.cs @@ -19,8 +19,10 @@ using System; namespace ElmSharp { /// - /// The Button is a widget works as a clickable input element to trigger events. + /// The Button is a widget that works as a clickable input element to trigger events. /// + /// preview + [Obsolete("This has been deprecated in API12")] public class Button : Layout { private SmartEvent _clicked; @@ -34,6 +36,8 @@ namespace ElmSharp /// /// The EvasObject to which the new Button will be attached as a child. /// + /// preview + [Obsolete("This has been deprecated in API12")] public Button(EvasObject parent) : base(parent) { _clicked = new SmartEvent(this, this.RealHandle, "clicked"); @@ -63,35 +67,45 @@ namespace ElmSharp } /// - /// Clicked will be triggered when Button is clicked. + /// Clicked will be triggered when the button is clicked. /// + /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Clicked; /// - /// Repeated will be triggered when Button is pressed without releasing it. + /// Repeated will be triggered when the button is pressed without releasing it. /// + /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Repeated; /// - /// Pressed will be triggered when the Button is pressed. + /// Pressed will be triggered when the button is pressed. /// + /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Pressed; /// - /// Released will be triggered when the Button is released after being pressed. + /// Released will be triggered when the button is released after being pressed. /// + /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Released; /// - /// Sets or gets the autorepeat feature of a given Button. + /// Sets or gets the autorepeat feature of a given Bbutton. /// /// - /// Autorepeat feature means autorepeat event generated when the button is kept pressed. - /// When set AutoRepeat to false, no autorepeat is performed and buttons will trigger Clicked event when they are clicked. - /// When set to true, keeping a button pressed continuously trigger Repeated event until the button is released. - /// The time it takes until it starts triggering Repeated is given by AutoRepeatInitialTime, + /// Autorepeat feature means the autorepeat event is generated when the button is kept pressed. + /// When set to false, no autorepeat is performed and the buttons will trigger the Clicked event when they are clicked. + /// When set to true, keeping a button pressed continuously will trigger the Repeated event until the button is released. + /// The time it takes until it starts triggering, repeated is given by AutoRepeatInitialTime, /// and the time between each new emission is given by AutoRepeatGapTimeout. /// + /// preview + [Obsolete("This has been deprecated in API12")] public bool AutoRepeat { get @@ -107,6 +121,8 @@ namespace ElmSharp /// /// Sets or gets the initial timeout before the Repeat event is generated. /// + /// preview + [Obsolete("This has been deprecated in API12")] public double AutoRepeatInitialTime { get @@ -122,6 +138,8 @@ namespace ElmSharp /// /// Sets or gets the interval between each generated Repeat event. /// + /// preview + [Obsolete("This has been deprecated in API12")] public double AutoRepeatGapTimeout { get @@ -135,9 +153,10 @@ namespace ElmSharp } /// - /// Delete the object color class. + /// Deletes the object Color class. /// - /// The color class to be deleted. + /// The Color class to be deleted. + /// preview [Obsolete("DeleteColorClass is obsolete, please use EdjeObject.DeleteColorClass(string)")] public void DeleteColorClass(string part) { @@ -145,8 +164,10 @@ namespace ElmSharp } /// - /// Sets or gets the BackgroundColor of a given Button in normal and pressed status. + /// Sets or gets the BackgroundColor of a given button in the normal and pressed status. /// + /// preview + [Obsolete("This has been deprecated in API12")] public override Color BackgroundColor { set @@ -170,8 +191,10 @@ namespace ElmSharp /// /// Creates a widget handle. /// - /// Parent EvasObject - /// Handle IntPtr + /// Parent EvasObject. + /// Handle IntPtr. + /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { return Interop.Elementary.elm_button_add(parent.Handle);