X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FElmSharp%2FElmSharp%2FButton.cs;h=7332e41e191a4fe48128e78efe701e523f0c1016;hb=58283d6a09a7f531af61ae7b27b574603ef244df;hp=3ed6aa8201ec062a94a6065ac144b569d767ace1;hpb=a7e94579483795b6b3344551876cf226266557af;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git
diff --git a/src/ElmSharp/ElmSharp/Button.cs b/src/ElmSharp/ElmSharp/Button.cs
index 3ed6aa8..7332e41 100644
--- 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,40 +67,50 @@ 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
{
- return !Interop.Elementary.elm_button_autorepeat_get(RealHandle);
+ return Interop.Elementary.elm_button_autorepeat_get(RealHandle);
}
set
{
@@ -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
@@ -134,6 +152,11 @@ namespace ElmSharp
}
}
+ ///
+ /// Deletes the object Color class.
+ ///
+ /// The Color class to be deleted.
+ /// preview
[Obsolete("DeleteColorClass is obsolete, please use EdjeObject.DeleteColorClass(string)")]
public void DeleteColorClass(string part)
{
@@ -141,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
@@ -163,15 +188,16 @@ namespace ElmSharp
}
}
+ ///
+ /// Creates a widget handle.
+ ///
+ /// Parent EvasObject.
+ /// Handle IntPtr.
+ /// preview
+ [Obsolete("This has been deprecated in API12")]
protected override IntPtr CreateHandle(EvasObject parent)
{
- IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
- Interop.Elementary.elm_layout_theme_set(handle, "layout", "elm_widget", "default");
-
- RealHandle = Interop.Elementary.elm_button_add(handle);
- Interop.Elementary.elm_object_part_content_set(handle, "elm.swallow.content", RealHandle);
-
- return handle;
+ return Interop.Elementary.elm_button_add(parent.Handle);
}
}
-}
\ No newline at end of file
+}