X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FElmSharp%2FElmSharp%2FWidget.cs;h=7b01d427961a47f20a7fcd58c1963011f643baa4;hb=58283d6a09a7f531af61ae7b27b574603ef244df;hp=0831836d102a562e96acb1384f9f9d9d80839a2d;hpb=710e0888e0fcc8f9a0ab497446d3041d3272a0b9;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/src/ElmSharp/ElmSharp/Widget.cs b/src/ElmSharp/ElmSharp/Widget.cs index 0831836..7b01d42 100644 --- a/src/ElmSharp/ElmSharp/Widget.cs +++ b/src/ElmSharp/ElmSharp/Widget.cs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved + * Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. @@ -24,6 +24,7 @@ namespace ElmSharp /// Enumeration for the focus direction. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum FocusDirection { /// @@ -62,6 +63,7 @@ namespace ElmSharp /// Inherits from . /// /// preview + [Obsolete("This has been deprecated in API12")] public abstract class Widget : AccessibleObject { Dictionary _partContents = new Dictionary(); @@ -76,6 +78,7 @@ namespace ElmSharp /// Creates and initializes a new instance of the Widget class. /// /// preview + [Obsolete("This has been deprecated in API12")] protected Widget() { } @@ -85,6 +88,7 @@ namespace ElmSharp /// /// The parent of the new Widget instance. /// preview + [Obsolete("This has been deprecated in API12")] protected Widget(EvasObject parent) : base(parent) { } @@ -95,6 +99,7 @@ namespace ElmSharp /// The content which is put into the part. /// The updated part. /// preview + [Obsolete("This has been deprecated in API12")] protected void UpdatePartContents(EvasObject content, string part = "__default__") { _partContents[part] = content; @@ -104,18 +109,21 @@ namespace ElmSharp /// Focused will be triggered when the widget is focused. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Focused; /// /// Unfocused will be triggered when the widget is unfocused. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Unfocused; /// /// Sets or gets the state of the widget, which might be enabled or disabled. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual bool IsEnabled { get @@ -132,6 +140,7 @@ namespace ElmSharp /// Sets or gets the style of the widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public string Style { get @@ -148,6 +157,7 @@ namespace ElmSharp /// Gets whether this widget is focused. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsFocused { get @@ -161,6 +171,7 @@ namespace ElmSharp /// /// Widgets which are meant to be interacted with by input events, are created able to be focused by default. /// preview + [Obsolete("This has been deprecated in API12")] public bool IsFocusAllowed { get @@ -174,6 +185,7 @@ namespace ElmSharp /// /// It could be overridden by special child class. /// preview + [Obsolete("This has been deprecated in API12")] public virtual string Text { get @@ -191,6 +203,7 @@ namespace ElmSharp /// /// It could be overridden by special child class. /// preview + [Obsolete("This has been deprecated in API12")] public virtual Color BackgroundColor { get @@ -220,6 +233,7 @@ namespace ElmSharp /// /// It could be overridden by special child class. /// preview + [Obsolete("This has been deprecated in API12")] public virtual int Opacity { get @@ -241,6 +255,7 @@ namespace ElmSharp /// Sets or gets whether a widget and its children are focusable or not. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool AllowTreeFocus { get @@ -257,6 +272,7 @@ namespace ElmSharp /// Sets or gets the widget's mirrored mode. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsMirroredMode { get @@ -274,6 +290,7 @@ namespace ElmSharp /// When widget is set to automatic mode(true), it follows the system mirrored mode. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsAutoMirroredMode { get @@ -291,6 +308,7 @@ namespace ElmSharp /// /// Whether be focused. /// preview + [Obsolete("This has been deprecated in API12")] public void SetFocus(bool isFocus) { if (isFocus) @@ -308,6 +326,7 @@ namespace ElmSharp /// /// true if the object can be focused, false if not(and on errors). /// preview + [Obsolete("This has been deprecated in API12")] public void AllowFocus(bool isAllowFocus) { Interop.Elementary.elm_object_focus_allow_set(RealHandle, isAllowFocus); @@ -318,6 +337,7 @@ namespace ElmSharp /// /// Direction to move the focus. /// preview + [Obsolete("This has been deprecated in API12")] public void FocusNext(FocusDirection direction) { Interop.Elementary.elm_object_focus_next(RealHandle, (int)direction); @@ -329,18 +349,20 @@ namespace ElmSharp /// Focus next widget. /// Focus direction. /// preview + [Obsolete("This has been deprecated in API12")] public void SetNextFocusObject(EvasObject next, FocusDirection direction) { Interop.Elementary.elm_object_focus_next_object_set(RealHandle, next?.RealHandle ?? IntPtr.Zero, (int)direction); } /// - /// Sets content to the particular part of the widget, and the preserve old content will not be unset. + /// Sets content to the particular part of the widget, and the preserve old content will be deleted. /// /// The name of the particular part. /// The content. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual bool SetPartContent(string part, EvasObject content) { return SetPartContent(part, content, false); @@ -351,9 +373,10 @@ namespace ElmSharp /// /// The name of the particular part. /// The content. - /// true, preserve old content will be unset. false, preserve old content will not be unset. + /// true, preserve old content will be unset and not be deleted. false, preserve old content will be deleted. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual bool SetPartContent(string part, EvasObject content, bool preserveOldContent) { if (preserveOldContent) @@ -366,11 +389,12 @@ namespace ElmSharp } /// - /// Sets content to the widget, and the preserve old content will not be unset. + /// Sets content to the widget, and the preserve old content will be deleted. /// /// The content. /// /// preview + [Obsolete("This has been deprecated in API12")] public void SetContent(EvasObject content) { SetContent(content, false); @@ -380,9 +404,10 @@ namespace ElmSharp /// Sets content to the widget. /// /// The content. - /// true, preserve old content will be unset. false, preserve old content will not be unset. + /// true, preserve old content will be unset and not be deleted. false, preserve old content will be deleted. /// /// preview + [Obsolete("This has been deprecated in API12")] public void SetContent(EvasObject content, bool preserveOldContent) { if (preserveOldContent) @@ -400,6 +425,7 @@ namespace ElmSharp /// The name of the particular part. /// The text. /// preview + [Obsolete("This has been deprecated in API12")] public virtual bool SetPartText(string part, string text) { Interop.Elementary.elm_object_part_text_set(RealHandle, part, text); @@ -412,6 +438,7 @@ namespace ElmSharp /// The name of the particular part. /// Text of the particular part of the widget. /// preview + [Obsolete("This has been deprecated in API12")] public virtual string GetPartText(string part) { return Interop.Elementary.elm_object_part_text_get(RealHandle, part); @@ -424,6 +451,7 @@ namespace ElmSharp /// The color to be set to the widget. /// This method is a virtual method, it could be overridden by special child class. /// preview + [Obsolete("This has been deprecated in API12")] public virtual void SetPartColor(string part, Color color) { Interop.Elementary.elm_object_color_class_color_set(RealHandle, part, color.R * color.A / 255, @@ -439,6 +467,7 @@ namespace ElmSharp /// The color of the particular part. /// This method is a virtual method, it could be overridden by special child class. /// preview + [Obsolete("This has been deprecated in API12")] public virtual Color GetPartColor(string part) { int r, g, b, a; @@ -452,6 +481,7 @@ namespace ElmSharp /// The name of the particular part. /// The opacity of the particular part. /// preview + [Obsolete("This has been deprecated in API12")] public void SetPartOpacity(string part, int opacity) { Interop.Elementary.elm_object_color_class_color_set(Handle, part, 255, 255, 255, opacity); @@ -463,6 +493,7 @@ namespace ElmSharp /// The name of the particular part. /// Opacity value of the particular part. /// preview + [Obsolete("This has been deprecated in API12")] public int GetPartOpacity(string part) { int r, g, b, a; @@ -470,12 +501,13 @@ namespace ElmSharp return a; } - /// + /// /// Sends a signal to the edje object of the widget. /// /// The signal's name. /// The signal's source. /// preview + [Obsolete("This has been deprecated in API12")] public void SignalEmit(string emission, string source) { Interop.Elementary.elm_object_signal_emit(Handle, emission, source); @@ -485,6 +517,7 @@ namespace ElmSharp /// The callback of the Realized event. /// /// preview + [Obsolete("This has been deprecated in API12")] protected override void OnRealized() { base.OnRealized(); @@ -500,4 +533,4 @@ namespace ElmSharp return Interop.Elementary.elm_object_part_content_get(RealHandle, part); } } -} \ No newline at end of file +}