From 58283d6a09a7f531af61ae7b27b574603ef244df Mon Sep 17 00:00:00 2001 From: "dongsug.song" Date: Mon, 11 Dec 2023 21:07:14 +0900 Subject: [PATCH] [ACR-564] deprecate unused API --- .../ElmSharp.Wearable/CircleDatetimeSelector.cs | 8 ++- .../ElmSharp.Wearable/CircleGenList.cs | 13 ++++ .../ElmSharp.Wearable/CircleProgressBar.cs | 21 ++++++ .../ElmSharp.Wearable/CircleScroller.cs | 20 ++++++ .../ElmSharp.Wearable/CircleSlider.cs | 24 +++++++ .../ElmSharp.Wearable/CircleSpinner.cs | 14 ++-- .../ElmSharp.Wearable/CircleSurface.cs | 9 ++- .../ElmSharp.Wearable/ICircleWidget.cs | 4 ++ .../ElmSharp.Wearable/MoreOption.cs | 11 +++ .../ElmSharp.Wearable/MoreOptionItem.cs | 6 ++ .../ElmSharp.Wearable/MoreOptionItemEventArgs.cs | 2 + .../ElmSharp.Wearable/RotaryEventManager.cs | 13 ++++ .../ElmSharp.Wearable/RotarySelector.cs | 8 +++ .../ElmSharp.Wearable/RotarySelectorItem.cs | 19 +++++ .../RotarySelectorItemEventArgs.cs | 2 + src/ElmSharp/ElmSharp/AccessRole.cs | 2 + src/ElmSharp/ElmSharp/AccessibleObject.cs | 6 ++ src/ElmSharp/ElmSharp/AccessibleRelation.cs | 58 +++++++++++++++ src/ElmSharp/ElmSharp/AccessibleUtil.cs | 5 +- src/ElmSharp/ElmSharp/AnimationView.cs | 31 ++++++++ src/ElmSharp/ElmSharp/Background.cs | 8 +++ src/ElmSharp/ElmSharp/Box.cs | 18 +++++ src/ElmSharp/ElmSharp/Button.cs | 11 +++ src/ElmSharp/ElmSharp/Calendar.cs | 29 +++++++- src/ElmSharp/ElmSharp/Check.cs | 5 ++ .../ElmSharp/CheckStateChangedEventArgs.cs | 4 ++ src/ElmSharp/ElmSharp/Color.cs | 37 ++++++++++ src/ElmSharp/ElmSharp/ColorChangedEventArgs.cs | 4 ++ src/ElmSharp/ElmSharp/ColorSelector.cs | 11 +++ src/ElmSharp/ElmSharp/ColorSelectorItem.cs | 2 + src/ElmSharp/ElmSharp/Conformant.cs | 3 + src/ElmSharp/ElmSharp/Container.cs | 8 +++ src/ElmSharp/ElmSharp/ContextPopup.cs | 16 +++++ src/ElmSharp/ElmSharp/ContextPopupItem.cs | 4 ++ src/ElmSharp/ElmSharp/DateChangedEventArgs.cs | 4 ++ src/ElmSharp/ElmSharp/DateTimeSelector.cs | 14 ++++ .../ElmSharp/DisplayedMonthChangedEventArgs.cs | 4 ++ src/ElmSharp/ElmSharp/EcoreAnimator.cs | 4 ++ src/ElmSharp/ElmSharp/EcoreEvent.cs | 20 ++++++ src/ElmSharp/ElmSharp/EcoreKeyEventArgs.cs | 6 +- src/ElmSharp/ElmSharp/EcoreMainloop.cs | 9 +++ .../ElmSharp/EcoreSynchronizationContext.cs | 6 ++ src/ElmSharp/ElmSharp/EcoreTimelineAnimator.cs | 10 +++ src/ElmSharp/ElmSharp/EdjeObject.cs | 24 ++++++- src/ElmSharp/ElmSharp/EffectBase.cs | 2 + src/ElmSharp/ElmSharp/Elementary.cs | 33 +++++++++ src/ElmSharp/ElmSharp/ElmScrollConfig.cs | 2 + src/ElmSharp/ElmSharp/Entry.cs | 77 ++++++++++++++++++++ src/ElmSharp/ElmSharp/EvasCanvas.cs | 9 +++ src/ElmSharp/ElmSharp/EvasImage.cs | 20 ++++++ src/ElmSharp/ElmSharp/EvasKeyEventArgs.cs | 10 ++- src/ElmSharp/ElmSharp/EvasMap.cs | 11 +++ src/ElmSharp/ElmSharp/EvasObject.cs | 82 +++++++++++++++++++++- src/ElmSharp/ElmSharp/EvasObjectEvent.cs | 19 +++++ src/ElmSharp/ElmSharp/FlipSelector.cs | 15 ++++ src/ElmSharp/ElmSharp/FlipSelectorItem.cs | 5 ++ src/ElmSharp/ElmSharp/FloatingButton.cs | 10 +++ src/ElmSharp/ElmSharp/GenGrid.cs | 42 +++++++++++ src/ElmSharp/ElmSharp/GenGridItem.cs | 13 ++++ src/ElmSharp/ElmSharp/GenItem.cs | 17 +++++ src/ElmSharp/ElmSharp/GenItemClass.cs | 29 +++++++- src/ElmSharp/ElmSharp/GenList.cs | 57 +++++++++++++++ src/ElmSharp/ElmSharp/GenListItem.cs | 22 ++++++ src/ElmSharp/ElmSharp/GestureLayer.cs | 80 +++++++++++++++++++-- src/ElmSharp/ElmSharp/Hoversel.cs | 17 +++++ src/ElmSharp/ElmSharp/HoverselItem.cs | 3 + src/ElmSharp/ElmSharp/IAccessibleObject.cs | 15 ++++ src/ElmSharp/ElmSharp/IAnimatorMotionMapper.cs | 37 ++++++++++ src/ElmSharp/ElmSharp/Icon.cs | 7 ++ src/ElmSharp/ElmSharp/Image.cs | 38 +++++++++- src/ElmSharp/ElmSharp/Index.cs | 18 +++++ src/ElmSharp/ElmSharp/IndexItem.cs | 6 ++ src/ElmSharp/ElmSharp/InputGenerator.cs | 11 +++ src/ElmSharp/ElmSharp/ItemObject.cs | 25 ++++++- src/ElmSharp/ElmSharp/ItemObjectExtension.cs | 3 + src/ElmSharp/ElmSharp/Label.cs | 15 +++- src/ElmSharp/ElmSharp/Layout.cs | 29 ++++++++ src/ElmSharp/ElmSharp/List.cs | 19 +++++ src/ElmSharp/ElmSharp/ListItem.cs | 6 +- src/ElmSharp/ElmSharp/MultiButtonEntry.cs | 29 ++++++++ src/ElmSharp/ElmSharp/MultiButtonEntryItem.cs | 6 ++ src/ElmSharp/ElmSharp/NamedHint.cs | 5 ++ src/ElmSharp/ElmSharp/NaviItem.cs | 7 ++ src/ElmSharp/ElmSharp/Naviframe.cs | 20 ++++++ src/ElmSharp/ElmSharp/Panel.cs | 11 +++ src/ElmSharp/ElmSharp/Panes.cs | 12 ++++ src/ElmSharp/ElmSharp/Point.cs | 9 +++ src/ElmSharp/ElmSharp/Point3D.cs | 10 +++ src/ElmSharp/ElmSharp/Polygon.cs | 6 ++ src/ElmSharp/ElmSharp/Popup.cs | 18 +++++ src/ElmSharp/ElmSharp/PopupItem.cs | 3 + src/ElmSharp/ElmSharp/ProgressBar.cs | 15 ++++ src/ElmSharp/ElmSharp/Radio.cs | 7 ++ src/ElmSharp/ElmSharp/ReadingInfoType.cs | 1 + src/ElmSharp/ElmSharp/Rect.cs | 18 +++++ src/ElmSharp/ElmSharp/Rectangle.cs | 3 + src/ElmSharp/ElmSharp/Scroller.cs | 48 +++++++++++++ src/ElmSharp/ElmSharp/Size.cs | 10 +++ src/ElmSharp/ElmSharp/Slider.cs | 19 +++++ src/ElmSharp/ElmSharp/SmartEvent.cs | 16 +++++ src/ElmSharp/ElmSharp/Spinner.cs | 20 ++++++ src/ElmSharp/ElmSharp/Table.cs | 11 +++ src/ElmSharp/ElmSharp/Toolbar.cs | 29 ++++++++ src/ElmSharp/ElmSharp/ToolbarItem.cs | 8 +++ src/ElmSharp/ElmSharp/Transit.cs | 21 ++++++ src/ElmSharp/ElmSharp/TransitEffect.cs | 37 ++++++++++ src/ElmSharp/ElmSharp/Utility.cs | 19 ++++- src/ElmSharp/ElmSharp/Widget.cs | 35 ++++++++- src/ElmSharp/ElmSharp/Window.cs | 72 +++++++++++++++++++ src/ElmSharp/ElmSharp/WrapType.cs | 1 + .../src/public/CircularPagination.cs | 34 ++++----- .../src/public/CircularProgress.cs | 15 ++++ .../src/public/CircularScrollbar.cs | 18 +++++ .../src/public/CircularSlider.cs | 18 +++++ .../src/public/NUIWatchApplication.cs | 33 +++++++++ src/Tizen.NUI.Wearable/src/public/Popup.cs | 25 +++++++ .../RecyclerView/GridRecycleLayoutManager.cs | 15 ++-- .../RecyclerView/LinearRecycleLayoutManager.cs | 11 +-- .../src/public/RecyclerView/RecycleAdapter.cs | 12 ++-- .../src/public/RecyclerView/RecycleItem.cs | 5 +- .../public/RecyclerView/RecycleLayoutManager.cs | 30 ++++---- .../src/public/RecyclerView/RecyclerView.cs | 16 +++-- src/Tizen.NUI.Wearable/src/public/Title.cs | 14 ++-- src/Tizen.NUI.Wearable/src/public/WatchView.cs | 5 ++ src/Tizen.NUI.Wearable/src/public/WearableList.cs | 10 +-- .../WearableStyle/CircularPaginationStyle.cs | 13 ++-- .../public/WearableStyle/CircularProgressStyle.cs | 12 ++++ .../public/WearableStyle/CircularScrollbarStyle.cs | 8 +++ .../public/WearableStyle/CircularSliderStyle.cs | 13 ++++ .../src/public/WearableStyle/PopupStyle.cs | 5 ++ 130 files changed, 2076 insertions(+), 103 deletions(-) diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleDatetimeSelector.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleDatetimeSelector.cs index ea8841f..acec17c 100755 --- a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleDatetimeSelector.cs +++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleDatetimeSelector.cs @@ -25,6 +25,7 @@ namespace ElmSharp.Wearable /// Inherits . /// /// preview + [Obsolete("This has been deprecated in API12")] public class CircleDateTimeSelector : DateTimeSelector, IRotaryActionWidget { IntPtr _circleHandle; @@ -36,6 +37,7 @@ namespace ElmSharp.Wearable /// The parent of the new Circle DateTime instance. /// The surface for drawing circle features for this widget. /// preview + [Obsolete("This has been deprecated in API12")] public CircleDateTimeSelector(EvasObject parent, CircleSurface surface) : base() { Debug.Assert(parent == null || surface == null || parent.IsRealized); @@ -59,12 +61,14 @@ namespace ElmSharp.Wearable /// Gets the handle for the Circle widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual IntPtr CircleHandle => _circleHandle; /// /// Gets the handle for the circle surface used in this widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual CircleSurface CircleSurface => _surface; /// @@ -83,6 +87,7 @@ namespace ElmSharp.Wearable /// Sets or gets the state of the widget, which might be enabled or disabled. /// /// preview + [Obsolete("This has been deprecated in API12")] public override bool IsEnabled { get @@ -163,11 +168,12 @@ namespace ElmSharp.Wearable /// Parent EvasObject. /// Handle IntPtr. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { var handle = base.CreateHandle(parent); - _circleHandle = Interop.Eext.eext_circle_object_datetime_add(RealHandle == IntPtr.Zero ? handle : RealHandle , CircleSurface.Handle); + _circleHandle = Interop.Eext.eext_circle_object_datetime_add(RealHandle == IntPtr.Zero ? handle : RealHandle, CircleSurface.Handle); return handle; } diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleGenList.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleGenList.cs index 77f84e4..6c4c975 100644 --- a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleGenList.cs +++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleGenList.cs @@ -25,6 +25,7 @@ namespace ElmSharp.Wearable /// Inherits . /// /// preview + [Obsolete("This has been deprecated in API12")] public class CircleGenList : GenList, IRotaryActionWidget { IntPtr _circleHandle; @@ -36,6 +37,7 @@ namespace ElmSharp.Wearable /// The parent of the new Circle GenList instance. /// The surface for drawing the circle features for this widget. /// preview + [Obsolete("This has been deprecated in API12")] public CircleGenList(EvasObject parent, CircleSurface surface) : base() { Debug.Assert(parent == null || surface == null || parent.IsRealized); @@ -59,12 +61,14 @@ namespace ElmSharp.Wearable /// Gets the handle for the Circle widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual IntPtr CircleHandle => _circleHandle; /// /// Gets the handle for the circle surface used in this widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual CircleSurface CircleSurface => _surface; /// @@ -83,6 +87,7 @@ namespace ElmSharp.Wearable /// Sets or gets the state of the widget, which might be enabled or disabled. /// /// preview + [Obsolete("This has been deprecated in API12")] public override bool IsEnabled { get @@ -99,6 +104,7 @@ namespace ElmSharp.Wearable /// Sets or gets the color of the scroll background. /// /// preview + [Obsolete("This has been deprecated in API12")] public Color VerticalScrollBackgroundColor { get @@ -117,6 +123,7 @@ namespace ElmSharp.Wearable /// Sets or gets the line width of the scroll background. /// /// preview + [Obsolete("This has been deprecated in API12")] public int VerticalScrollBackgroundLineWidth { get @@ -133,6 +140,7 @@ namespace ElmSharp.Wearable /// Sets or gets the radius of the scroll background. /// /// preview + [Obsolete("This has been deprecated in API12")] public double VerticalScrollBackgroundRadius { get @@ -149,6 +157,7 @@ namespace ElmSharp.Wearable /// Sets or gets the color of the scrollbar. /// /// preview + [Obsolete("This has been deprecated in API12")] public Color VerticalScrollBarColor { get @@ -167,6 +176,7 @@ namespace ElmSharp.Wearable /// Sets or gets the line width of the scrollbar. /// /// preview + [Obsolete("This has been deprecated in API12")] public int VerticalScrollBarLineWidth { get @@ -183,6 +193,7 @@ namespace ElmSharp.Wearable /// Sets or gets the radius of the scrollbar. /// /// preview + [Obsolete("This has been deprecated in API12")] public double VerticalScrollBarRadius { get @@ -203,6 +214,7 @@ namespace ElmSharp.Wearable /// ScrollBarVisiblePolicy.Visible turns it on all the time, and ScrollBarVisiblePolicy.Invisible always keeps it off. /// /// preview + [Obsolete("This has been deprecated in API12")] public new ScrollBarVisiblePolicy VerticalScrollBarVisiblePolicy { get @@ -225,6 +237,7 @@ namespace ElmSharp.Wearable /// Parent EvasObject. /// Handle IntPtr. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { var handle = base.CreateHandle(parent); diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleProgressBar.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleProgressBar.cs index 7d8f4aa..24f8e04 100644 --- a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleProgressBar.cs +++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleProgressBar.cs @@ -25,6 +25,7 @@ namespace ElmSharp.Wearable /// The Circle ProgressBar is a widget for visually representing the progress status of a given job or task with the circular design. /// /// preview + [Obsolete("This has been deprecated in API12")] public class CircleProgressBar : Widget, ICircleWidget { CircleSurface _surface; @@ -35,6 +36,7 @@ namespace ElmSharp.Wearable /// The parent of the new Circle Progressbar instance. /// The surface for drawing circle features for this widget. /// preview + [Obsolete("This has been deprecated in API12")] public CircleProgressBar(EvasObject parent, CircleSurface surface) : base() { Debug.Assert(parent == null || surface == null || parent.IsRealized); @@ -57,12 +59,14 @@ namespace ElmSharp.Wearable /// Gets the handle for the Circle widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual IntPtr CircleHandle => Handle; /// /// Gets the handle for the circle surface used in this widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual CircleSurface CircleSurface => _surface; /// @@ -81,6 +85,7 @@ namespace ElmSharp.Wearable /// Sets or gets the state of the widget, which might be enabled or disabled. /// /// preview + [Obsolete("This has been deprecated in API12")] public override bool IsEnabled { get @@ -97,6 +102,7 @@ namespace ElmSharp.Wearable /// Sets or gets the value of the ProgressBar. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Value { get @@ -113,6 +119,7 @@ namespace ElmSharp.Wearable /// Sets or gets the maximum value of the ProgressBar. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Maximum { get @@ -133,6 +140,7 @@ namespace ElmSharp.Wearable /// Sets or gets the minimum value of the ProgressBar. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Minimum { get @@ -153,6 +161,7 @@ namespace ElmSharp.Wearable /// Sets or gets the angle value of the ProgressBar. /// /// preview + [Obsolete("This has been deprecated in API12")] public double BarAngle { get @@ -169,6 +178,7 @@ namespace ElmSharp.Wearable /// Sets or gets the angle value of the Background ProgressBar. /// /// preview + [Obsolete("This has been deprecated in API12")] public double BackgroundAngle { get @@ -185,6 +195,7 @@ namespace ElmSharp.Wearable /// Sets or gets the angle offset value of the ProgressBar. /// /// preview + [Obsolete("This has been deprecated in API12")] public double BarAngleOffset { get @@ -201,6 +212,7 @@ namespace ElmSharp.Wearable /// Sets or gets the angle offset value of the Background ProgressBar. /// /// preview + [Obsolete("This has been deprecated in API12")] public double BackgroundAngleOffset { get @@ -217,6 +229,7 @@ namespace ElmSharp.Wearable /// Sets or gets the maximum angle value of the ProgressBar. /// /// preview + [Obsolete("This has been deprecated in API12")] public double BarAngleMaximum { get @@ -237,6 +250,7 @@ namespace ElmSharp.Wearable /// Sets or gets the minimum angle value of the ProgressBar. /// /// preview + [Obsolete("This has been deprecated in API12")] public double BarAngleMinimum { get @@ -257,6 +271,7 @@ namespace ElmSharp.Wearable /// Sets or gets the color of the ProgressBar. /// /// preview + [Obsolete("This has been deprecated in API12")] public Color BarColor { get @@ -278,6 +293,7 @@ namespace ElmSharp.Wearable /// Sets or gets the color of the Background ProgressBar. /// /// preview + [Obsolete("This has been deprecated in API12")] public override Color BackgroundColor { get @@ -299,6 +315,7 @@ namespace ElmSharp.Wearable /// Sets or gets the line width of the ProgressBar. /// /// preview + [Obsolete("This has been deprecated in API12")] public int BarLineWidth { get @@ -315,6 +332,7 @@ namespace ElmSharp.Wearable /// Sets or gets the line width of the Background ProgressBar. /// /// preview + [Obsolete("This has been deprecated in API12")] public int BackgroundLineWidth { get @@ -331,6 +349,7 @@ namespace ElmSharp.Wearable /// Sets or gets the radius of the ProgressBar. /// /// preview + [Obsolete("This has been deprecated in API12")] public double BarRadius { get @@ -347,6 +366,7 @@ namespace ElmSharp.Wearable /// Sets or gets the radius of the Background ProgressBar. /// /// preview + [Obsolete("This has been deprecated in API12")] public double BackgroundRadius { get @@ -365,6 +385,7 @@ namespace ElmSharp.Wearable /// Parent EvasObject. /// Handle IntPtr. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { return Interop.Eext.eext_circle_object_progressbar_add(parent, CircleSurface.Handle); diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleScroller.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleScroller.cs index fe1c44f..513732a 100644 --- a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleScroller.cs +++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleScroller.cs @@ -24,6 +24,7 @@ namespace ElmSharp.Wearable /// Circle scroller provides the scrollbar with a circular movement, and is scrolled by the Rotary event. /// /// preview + [Obsolete("This has been deprecated in API12")] public class CircleScroller : Scroller, IRotaryActionWidget { IntPtr _circleHandle; @@ -35,6 +36,7 @@ namespace ElmSharp.Wearable /// The to which the new CircleScroller will be attached as a child. /// The surface for drawing circle features for this widget. /// preview + [Obsolete("This has been deprecated in API12")] public CircleScroller(EvasObject parent, CircleSurface surface) : base() { Debug.Assert(parent == null || surface == null || parent.IsRealized); @@ -58,12 +60,14 @@ namespace ElmSharp.Wearable /// Gets the handle for the Circle widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual IntPtr CircleHandle => _circleHandle; /// /// Gets the handle for the circle surface used in this widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual CircleSurface CircleSurface => _surface; /// @@ -82,6 +86,7 @@ namespace ElmSharp.Wearable /// Sets or gets the state of the widget, which might be enabled or disabled. /// /// preview + [Obsolete("This has been deprecated in API12")] public override bool IsEnabled { get @@ -102,6 +107,7 @@ namespace ElmSharp.Wearable /// ScrollBarVisiblePolicy.Visible turns it on all the time, and ScrollBarVisiblePolicy.Invisible always keeps it off. /// /// preview + [Obsolete("This has been deprecated in API12")] public override ScrollBarVisiblePolicy HorizontalScrollBarVisiblePolicy { get @@ -125,6 +131,7 @@ namespace ElmSharp.Wearable /// ScrollBarVisiblePolicy.Visible turns it on all the time, and ScrollBarVisiblePolicy.Invisible always keeps it off. /// /// preview + [Obsolete("This has been deprecated in API12")] public override ScrollBarVisiblePolicy VerticalScrollBarVisiblePolicy { get @@ -144,6 +151,7 @@ namespace ElmSharp.Wearable /// Sets or gets the color of the vertical scroll bar. /// /// preview + [Obsolete("This has been deprecated in API12")] public Color VerticalScrollBarColor { get @@ -165,6 +173,7 @@ namespace ElmSharp.Wearable /// Sets or gets the color of the horizontal scroll bar. /// /// preview + [Obsolete("This has been deprecated in API12")] public Color HorizontalScrollBarColor { get @@ -186,6 +195,7 @@ namespace ElmSharp.Wearable /// Sets or gets the color of the vertical scroll background. /// /// preview + [Obsolete("This has been deprecated in API12")] public Color VerticalScrollBackgroundColor { get @@ -207,6 +217,7 @@ namespace ElmSharp.Wearable /// Sets or gets the color of the horizontal scroll background. /// /// preview + [Obsolete("This has been deprecated in API12")] public Color HorizontalScrollBackgroundColor { get @@ -228,6 +239,7 @@ namespace ElmSharp.Wearable /// Sets or gets the line width of the vertical scroll bar. /// /// preview + [Obsolete("This has been deprecated in API12")] public int VerticalScrollBarLineWidth { get @@ -244,6 +256,7 @@ namespace ElmSharp.Wearable /// Sets or gets the line width of the horizontal scroll bar. /// /// preview + [Obsolete("This has been deprecated in API12")] public int HorizontalScrollBarLineWidth { get @@ -260,6 +273,7 @@ namespace ElmSharp.Wearable /// Sets or gets the line width of the vertical scroll background. /// /// preview + [Obsolete("This has been deprecated in API12")] public int VerticalScrollBackgroundLineWidth { get @@ -276,6 +290,7 @@ namespace ElmSharp.Wearable /// Sets or gets the line width of the horizontal scroll background. /// /// preview + [Obsolete("This has been deprecated in API12")] public int HorizontalScrollBackgroundLineWidth { get @@ -292,6 +307,7 @@ namespace ElmSharp.Wearable /// Sets or gets the radius of the vertical scroll bar. /// /// preview + [Obsolete("This has been deprecated in API12")] public double VerticalScrollBarRadius { get @@ -308,6 +324,7 @@ namespace ElmSharp.Wearable /// Sets or gets the radius of the horizontal scroll bar. /// /// preview + [Obsolete("This has been deprecated in API12")] public double HorizontalScrollBarRadius { get @@ -324,6 +341,7 @@ namespace ElmSharp.Wearable /// Sets or gets the radius of the vertical scroll background. /// /// preview + [Obsolete("This has been deprecated in API12")] public double VerticalScrollBackgroundRadius { get @@ -340,6 +358,7 @@ namespace ElmSharp.Wearable /// Sets or gets the radius of the horizontal scroll background. /// /// preview + [Obsolete("This has been deprecated in API12")] public double HorizontalScrollBackgroundRadius { get @@ -358,6 +377,7 @@ namespace ElmSharp.Wearable /// Parent EvasObject. /// Handle IntPtr. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { IntPtr handle = base.CreateHandle(parent); diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSlider.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSlider.cs index 7a071dd..9a6b623 100644 --- a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSlider.cs +++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSlider.cs @@ -24,6 +24,7 @@ namespace ElmSharp.Wearable /// Circle slider is a circular designed widget used to select a value in a range by the Rotary event. /// /// preview + [Obsolete("This has been deprecated in API12")] public class CircleSlider : Widget, IRotaryActionWidget { SmartEvent _changedEvent; @@ -35,6 +36,7 @@ namespace ElmSharp.Wearable /// The EvasObject to which the new CircleSlider will be attached as a child. /// The surface for drawing the circle features for this widget. /// preview + [Obsolete("This has been deprecated in API12")] public CircleSlider(EvasObject parent, CircleSurface surface) : base() { Debug.Assert(parent == null || surface == null || parent.IsRealized); @@ -58,18 +60,21 @@ namespace ElmSharp.Wearable /// Changed will be triggered when the circle slider value changes. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ValueChanged; /// /// Gets the handle for the Circle widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual IntPtr CircleHandle => RealHandle; /// /// Gets the handle for the circle surface used in this widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual CircleSurface CircleSurface => _surface; /// @@ -80,6 +85,7 @@ namespace ElmSharp.Wearable /// The value of the slider is increased/decreased by the step value. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Step { get @@ -108,6 +114,7 @@ namespace ElmSharp.Wearable /// Sets or gets the state of the widget, which might be enabled or disabled. /// /// preview + [Obsolete("This has been deprecated in API12")] public override bool IsEnabled { get @@ -124,6 +131,7 @@ namespace ElmSharp.Wearable /// Sets or gets the color of the circle slider bar. /// /// preview + [Obsolete("This has been deprecated in API12")] public Color BarColor { get @@ -145,6 +153,7 @@ namespace ElmSharp.Wearable /// Sets or gets the color of the circle slider background. /// /// preview + [Obsolete("This has been deprecated in API12")] public override Color BackgroundColor { get @@ -166,6 +175,7 @@ namespace ElmSharp.Wearable /// Sets or gets the line width of the circle slider bar. /// /// preview + [Obsolete("This has been deprecated in API12")] public int BarLineWidth { get @@ -182,6 +192,7 @@ namespace ElmSharp.Wearable /// Sets or gets the line width of the circle slider background. /// /// preview + [Obsolete("This has been deprecated in API12")] public int BackgroundLineWidth { get @@ -198,6 +209,7 @@ namespace ElmSharp.Wearable /// Sets or gets the angle in degree of the circle slider bar. /// /// preview + [Obsolete("This has been deprecated in API12")] public double BarAngle { get @@ -214,6 +226,7 @@ namespace ElmSharp.Wearable /// Sets or gets the angle in degree of the circle slider background. /// /// preview + [Obsolete("This has been deprecated in API12")] public double BackgroundAngle { get @@ -231,6 +244,7 @@ namespace ElmSharp.Wearable /// Offset value means start position of the slider bar. /// /// preview + [Obsolete("This has been deprecated in API12")] public double BarAngleOffset { get @@ -248,6 +262,7 @@ namespace ElmSharp.Wearable /// Offset value means start position of the slider background. /// /// preview + [Obsolete("This has been deprecated in API12")] public double BackgroundAngleOffset { get @@ -264,6 +279,7 @@ namespace ElmSharp.Wearable /// Sets or gets the minimum angle of the circle slider bar. /// /// preview + [Obsolete("This has been deprecated in API12")] public double BarAngleMinimum { get @@ -284,6 +300,7 @@ namespace ElmSharp.Wearable /// Sets or gets the maximum angle of the circle slider bar. /// /// preview + [Obsolete("This has been deprecated in API12")] public double BarAngleMaximum { get @@ -309,6 +326,7 @@ namespace ElmSharp.Wearable /// Actual value can be obtained with Value. By default, minimum value is equal to 0.0. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Minimum { get @@ -335,6 +353,7 @@ namespace ElmSharp.Wearable /// Maximum must be greater than minimum, otherwise the behavior is undefined. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Maximum { get @@ -358,6 +377,7 @@ namespace ElmSharp.Wearable /// The value must be between minimum and maximum. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Value { get @@ -374,6 +394,7 @@ namespace ElmSharp.Wearable /// Gets or sets the radius value for the circle slider bar. /// /// preview + [Obsolete("This has been deprecated in API12")] public double BarRadius { get @@ -390,6 +411,7 @@ namespace ElmSharp.Wearable /// Gets or sets the radius value for the circle slider background. /// /// preview + [Obsolete("This has been deprecated in API12")] public double BackgroundRadius { get @@ -406,6 +428,7 @@ namespace ElmSharp.Wearable /// The callback of the Realized event. /// /// preview + [Obsolete("This has been deprecated in API12")] protected override void OnRealized() { base.OnRealized(); @@ -419,6 +442,7 @@ namespace ElmSharp.Wearable /// Parent EvasObject /// Handle IntPtr. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { return Interop.Eext.eext_circle_object_slider_add(parent, CircleSurface.Handle); diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSpinner.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSpinner.cs index ac11082..295b2d3 100755 --- a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSpinner.cs +++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSpinner.cs @@ -26,6 +26,7 @@ namespace ElmSharp.Wearable /// Inherits . /// /// preview + [Obsolete("This has been deprecated in API12")] public class CircleSpinner : Spinner, IRotaryActionWidget { IntPtr _circleHandle; @@ -38,6 +39,7 @@ namespace ElmSharp.Wearable /// The parent of the new Circle Spinner instance. /// The surface for drawing circle features for this widget. /// preview + [Obsolete("This has been deprecated in API12")] public CircleSpinner(EvasObject parent, CircleSurface surface) : base() { Debug.Assert(parent == null || surface == null || parent.IsRealized); @@ -61,12 +63,14 @@ namespace ElmSharp.Wearable /// Gets the handle for Circle widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual IntPtr CircleHandle => _circleHandle; /// /// Gets the handle for the circle surface used in this widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual CircleSurface CircleSurface => _surface; /// @@ -79,15 +83,15 @@ namespace ElmSharp.Wearable { get { - if(_angleRatio <= 0) + if (_angleRatio <= 0) { - if(Maximum == Minimum) + if (Maximum == Minimum) { return 0.0; } else { - return 360/(Maximum - Minimum); + return 360 / (Maximum - Minimum); } } @@ -95,7 +99,7 @@ namespace ElmSharp.Wearable } set { - if(value > 0) + if (value > 0) { if (_angleRatio == value) return; @@ -122,6 +126,7 @@ namespace ElmSharp.Wearable /// Sets or gets the state of the widget, which might be enabled or disabled. /// /// preview + [Obsolete("This has been deprecated in API12")] public override bool IsEnabled { get @@ -202,6 +207,7 @@ namespace ElmSharp.Wearable /// Parent EvasObject. /// Handle IntPtr. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { IntPtr handle = base.CreateHandle(parent); diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSurface.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSurface.cs index e610108..3d61f5f 100644 --- a/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSurface.cs +++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/CircleSurface.cs @@ -8,6 +8,7 @@ namespace ElmSharp.Wearable /// The CircleSurface presents a surface for drawing the circular feature of circle widgets. /// /// preview + [Obsolete("This has been deprecated in API12")] public class CircleSurface { IntPtr _handle; @@ -17,6 +18,7 @@ namespace ElmSharp.Wearable /// /// The Conformant widget to create a surface. /// preview + [Obsolete("This has been deprecated in API12")] public CircleSurface(Conformant conformant) { _handle = Interop.Eext.eext_circle_surface_conformant_add(conformant); @@ -27,6 +29,7 @@ namespace ElmSharp.Wearable /// /// The Layout widget to create a surface. /// preview + [Obsolete("This has been deprecated in API12")] public CircleSurface(Layout layout) { _handle = Interop.Eext.eext_circle_surface_layout_add(layout); @@ -37,6 +40,7 @@ namespace ElmSharp.Wearable /// /// The Naviframe widget to create a surface. /// preview + [Obsolete("This has been deprecated in API12")] public CircleSurface(Naviframe naviframe) { _handle = Interop.Eext.eext_circle_surface_naviframe_add(naviframe.RealHandle); @@ -46,6 +50,7 @@ namespace ElmSharp.Wearable /// Creates and initializes a new instance of the CircleSurface class with no surface. /// /// preview + [Obsolete("This has been deprecated in API12")] public CircleSurface() { _handle = IntPtr.Zero; @@ -55,12 +60,14 @@ namespace ElmSharp.Wearable /// Gets the handle for CircleSurface. /// /// preview + [Obsolete("This has been deprecated in API12")] public IntPtr Handle => _handle; /// /// Deletes the given CircleSurface. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Delete() { if (Handle != IntPtr.Zero) @@ -70,7 +77,7 @@ namespace ElmSharp.Wearable } } - internal static CircleSurface CreateCircleSurface(EvasObject obj) + internal static CircleSurface CreateCircleSurface(EvasObject obj) { if (obj is Conformant) return new CircleSurface(obj as Conformant); else if (obj is Naviframe) return new CircleSurface(obj as Naviframe); diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/ICircleWidget.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/ICircleWidget.cs index 8cf64dc..ed3b03a 100644 --- a/src/ElmSharp.Wearable/ElmSharp.Wearable/ICircleWidget.cs +++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/ICircleWidget.cs @@ -8,18 +8,21 @@ namespace ElmSharp.Wearable /// The ICircleWidget is the interface for a widget to display and handle with the CircleSurface. /// /// preview + [Obsolete("This has been deprecated in API12")] public interface ICircleWidget { /// /// Gets the handle for the Circle widget. /// /// preview + [Obsolete("This has been deprecated in API12")] IntPtr CircleHandle { get; } /// /// Gets the CircleSurface used in this widget. /// /// preview + [Obsolete("This has been deprecated in API12")] CircleSurface CircleSurface { get; } } @@ -27,6 +30,7 @@ namespace ElmSharp.Wearable /// The IRotaryActionWidget is the interface for a widget that has action by the Rotary event. /// /// preview + [Obsolete("This has been deprecated in API12")] public interface IRotaryActionWidget : ICircleWidget { } diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOption.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOption.cs index f49e526..75ace70 100644 --- a/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOption.cs +++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOption.cs @@ -25,33 +25,39 @@ namespace ElmSharp.Wearable /// Inherits Layout /// /// preview + [Obsolete("This has been deprecated in API12")] public class MoreOption : Layout { /// /// Sets or gets the list of the more option item. /// /// preview + [Obsolete("This has been deprecated in API12")] public IList Items { get; private set; } /// /// Selected will be triggered when the user selects an item. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Selected; /// /// Clicked will be triggered when the user selects the already selected item again or selects a selector. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Clicked; /// /// Opened will be triggered when the more option view is shown. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Opened; /// /// Closed will be triggered when the more option view is hidden. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Closed; SmartEvent _selectedEvent; @@ -64,6 +70,7 @@ namespace ElmSharp.Wearable /// /// The parent is a given container, which will be attached by the MoreOption as a child. It's type. /// preview + [Obsolete("This has been deprecated in API12")] public MoreOption(EvasObject parent) : base(parent) { Items = new MoreOptionList(this); @@ -96,6 +103,7 @@ namespace ElmSharp.Wearable /// Parent EvasObject. /// Handle IntPtr. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { return Interop.Eext.eext_more_option_add(parent); @@ -105,6 +113,7 @@ namespace ElmSharp.Wearable /// Sets or gets the direction of more option. /// /// preview + [Obsolete("This has been deprecated in API12")] public MoreOptionDirection Direction { get @@ -123,6 +132,7 @@ namespace ElmSharp.Wearable /// Sets or gets the visibility of the more option view. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsOpened { get @@ -141,6 +151,7 @@ namespace ElmSharp.Wearable /// Enumeration for the more option direction types. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum MoreOptionDirection { /// diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItem.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItem.cs index 44a43be..1babac8 100644 --- a/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItem.cs +++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItem.cs @@ -24,6 +24,7 @@ namespace ElmSharp.Wearable /// The MoreOptionItem is an item of the MoreOption widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public class MoreOptionItem { const string MainTextPartName = "selector,main_text"; @@ -39,6 +40,7 @@ namespace ElmSharp.Wearable /// Sets or gets the more option item handle. /// /// preview + [Obsolete("This has been deprecated in API12")] public IntPtr Handle { get @@ -62,6 +64,7 @@ namespace ElmSharp.Wearable /// Creates and initializes a new instance of the MoreOptionItem class. /// /// preview + [Obsolete("This has been deprecated in API12")] public MoreOptionItem() { _icon = null; @@ -71,6 +74,7 @@ namespace ElmSharp.Wearable /// Sets or gets the main text of the more option object. /// /// preview + [Obsolete("This has been deprecated in API12")] public string MainText { set @@ -93,6 +97,7 @@ namespace ElmSharp.Wearable /// Sets or gets the subtext of the more option object. /// /// preview + [Obsolete("This has been deprecated in API12")] public string SubText { set @@ -115,6 +120,7 @@ namespace ElmSharp.Wearable /// Sets or gets the icon image. /// /// preview + [Obsolete("This has been deprecated in API12")] public Image Icon { set diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItemEventArgs.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItemEventArgs.cs index 0f826e2..c4f1ae1 100644 --- a/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItemEventArgs.cs +++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/MoreOptionItemEventArgs.cs @@ -23,12 +23,14 @@ namespace ElmSharp.Wearable /// Inherits EventArgs /// /// preview + [Obsolete("This has been deprecated in API12")] public class MoreOptionItemEventArgs : EventArgs { /// /// Sets or gets the more option item. /// /// preview + [Obsolete("This has been deprecated in API12")] public MoreOptionItem Item { get; set; } } } diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/RotaryEventManager.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/RotaryEventManager.cs index 691a58a..42949a7 100644 --- a/src/ElmSharp.Wearable/ElmSharp.Wearable/RotaryEventManager.cs +++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/RotaryEventManager.cs @@ -25,6 +25,7 @@ namespace ElmSharp.Wearable /// The RotaryEventManager serves functions for the global Rotary event like Galaxy Gear. /// /// preview + [Obsolete("This has been deprecated in API12")] public static class RotaryEventManager { static Dictionary s_rotaryEventHandlers = new Dictionary(); @@ -33,6 +34,7 @@ namespace ElmSharp.Wearable /// Rotated will be triggered when the rotatable device like the Galaxy Gear Bezel is rotated. /// /// preview + [Obsolete("This has been deprecated in API12")] public static event RotaryEventHandler Rotated { add @@ -70,6 +72,7 @@ namespace ElmSharp.Wearable /// The RotaryEventManager serves extension functions for the Rotary event to EvasObject on a device like Galaxy Gear. /// /// preview + [Obsolete("This has been deprecated in API12")] public static class RotaryEventExtensions { static Dictionary s_rotaryObjectEventHandlers = new Dictionary(); @@ -81,6 +84,7 @@ namespace ElmSharp.Wearable /// Target EvasObject. /// Event handler for the Rotary event. /// preview + [Obsolete("This has been deprecated in API12")] public static void AddRotaryEventHandler(this EvasObject obj, RotaryEventHandler handler) { EnableRotaryEventHandler(obj); @@ -101,6 +105,7 @@ namespace ElmSharp.Wearable /// Target EvasObject. /// Event handler for Rotary event. /// preview + [Obsolete("This has been deprecated in API12")] public static void RemoveRotaryEventHandler(this EvasObject obj, RotaryEventHandler handler) { if (s_rotaryObjectEventHandlers.ContainsKey(obj)) @@ -119,6 +124,7 @@ namespace ElmSharp.Wearable /// /// Target the Circle widget. /// preview + [Obsolete("This has been deprecated in API12")] public static void Activate(this IRotaryActionWidget widget) { Interop.Eext.eext_rotary_object_event_activated_set(widget.CircleHandle, true); @@ -129,6 +135,7 @@ namespace ElmSharp.Wearable /// /// Target the Circle widget. /// preview + [Obsolete("This has been deprecated in API12")] public static void Deactivate(this IRotaryActionWidget widget) { Interop.Eext.eext_rotary_object_event_activated_set(widget.CircleHandle, false); @@ -139,6 +146,7 @@ namespace ElmSharp.Wearable /// /// Target object. /// preview + [Obsolete("This has been deprecated in API12")] public static void Activate(this EvasObject obj) { Interop.Eext.eext_rotary_object_event_activated_set(obj, true); @@ -149,6 +157,7 @@ namespace ElmSharp.Wearable /// /// Target object. /// preview + [Obsolete("This has been deprecated in API12")] public static void Deactivate(this EvasObject obj) { Interop.Eext.eext_rotary_object_event_activated_set(obj, false); @@ -198,24 +207,28 @@ namespace ElmSharp.Wearable /// /// The Rotary event information. /// preview + [Obsolete("This has been deprecated in API12")] public delegate void RotaryEventHandler(RotaryEventArgs args); /// /// The RotaryEventArgs serves information for the triggered Rotary event. /// /// preview + [Obsolete("This has been deprecated in API12")] public class RotaryEventArgs : EventArgs { /// /// IsClockwise is true when the Rotary device rotated in the clockwise direction, or false on counter clockwise. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsClockwise { get; set; } /// /// Timestamp of the Rotary event. /// /// preview + [Obsolete("This has been deprecated in API12")] public uint Timestamp { get; set; } } } diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelector.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelector.cs index 4cd7b36..2c115d0 100644 --- a/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelector.cs +++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelector.cs @@ -27,6 +27,7 @@ namespace ElmSharp.Wearable /// Inherits . /// /// preview + [Obsolete("This has been deprecated in API12")] public class RotarySelector : Layout { const string IconPartName = "selector,icon"; @@ -40,12 +41,14 @@ namespace ElmSharp.Wearable /// Selected will be triggered when selecting an item. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Selected; /// /// Clicked will be triggered when selecting again the already selected item or selecting a selector. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Clicked; SmartEvent _selectedEvent; @@ -56,6 +59,7 @@ namespace ElmSharp.Wearable /// Gets the rotary selector item list of a rotary selector object. /// /// preview + [Obsolete("This has been deprecated in API12")] public IList Items { get; private set; } /// @@ -63,6 +67,7 @@ namespace ElmSharp.Wearable /// /// The parent of the new Rotary Selector instance. /// preview + [Obsolete("This has been deprecated in API12")] public RotarySelector(EvasObject parent) : base(parent) { Items = new RotarySelectorList(this); @@ -86,6 +91,7 @@ namespace ElmSharp.Wearable /// Sets or gets the selected item of a rotary selector object. /// /// preview + [Obsolete("This has been deprecated in API12")] public RotarySelectorItem SelectedItem { get @@ -125,6 +131,7 @@ namespace ElmSharp.Wearable /// Sets or gets the background image of a rotary selector object. /// /// preview + [Obsolete("This has been deprecated in API12")] public Image BackgroundImage { set => setPart(ref _normalBgImage, BgPartName, State.Normal, value); get => _normalBgImage; } /// @@ -133,6 +140,7 @@ namespace ElmSharp.Wearable /// Parent EvasObject. /// Handle IntPtr. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { IntPtr ptr = Interop.Eext.eext_rotary_selector_add(parent); diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItem.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItem.cs index 3b40325..ae2c4cc 100644 --- a/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItem.cs +++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItem.cs @@ -24,6 +24,7 @@ namespace ElmSharp.Wearable /// An instance to the Rotary Selector item is added. An item can be selected by the Rotary event or user item click. /// /// preview + [Obsolete("This has been deprecated in API12")] public class RotarySelectorItem { const string MainTextPartName = "selector,main_text"; @@ -61,6 +62,7 @@ namespace ElmSharp.Wearable /// Sets or gets the handle of a rotary selector item object. /// /// preview + [Obsolete("This has been deprecated in API12")] public IntPtr Handle { set @@ -156,102 +158,119 @@ namespace ElmSharp.Wearable /// Sets or gets the main text of a rotary selector item object. /// /// preview + [Obsolete("This has been deprecated in API12")] public string MainText { set => setPart(ref _mainText, MainTextPartName, value); get => _mainText; } /// /// Sets or gets the subtext of a rotary selector item object. /// /// preview + [Obsolete("This has been deprecated in API12")] public string SubText { set => setPart(ref _subText, SubTextPartName, value); get => _subText; } /// /// Sets or gets the subtext color of a rotary selector item object. /// /// preview + [Obsolete("This has been deprecated in API12")] public Color MainTextColor { set => setPart(ref _mainTextColor, MainTextPartName, ItemState.Normal, value); get => _mainTextColor; } /// /// Sets or gets the subtext color of a rotary selector item object. /// /// preview + [Obsolete("This has been deprecated in API12")] public Color SubTextColor { set => setPart(ref _subTextColor, SubTextPartName, ItemState.Normal, value); get => _subTextColor; } /// /// Sets or gets the normal icon image of a rotary selector item object. /// /// preview + [Obsolete("This has been deprecated in API12")] public Image NormalIconImage { set => setPart(ref _normalIconImage, IconPartName, ItemState.Normal, value); get => _normalIconImage; } /// /// Sets or gets the pressed icon image of a rotary selector item object. /// /// preview + [Obsolete("This has been deprecated in API12")] public Image PressedIconImage { set => setPart(ref _pressedIconImage, IconPartName, ItemState.Pressed, value); get => _pressedIconImage; } /// /// Sets or gets the disabled icon image of a rotary selector item object. /// /// preview + [Obsolete("This has been deprecated in API12")] public Image DisabledIconImage { set => setPart(ref _disabledIconImage, IconPartName, ItemState.Disabled, value); get => _disabledIconImage; } /// /// Sets or gets the selected icon image of a rotary selector item object. /// /// preview + [Obsolete("This has been deprecated in API12")] public Image SelectedIconImage { set => setPart(ref _selectedIconImage, IconPartName, ItemState.Selected, value); get => _selectedIconImage; } /// /// Sets or gets the normal background image of a rotary selector item object. /// /// preview + [Obsolete("This has been deprecated in API12")] public Image NormalBackgroundImage { set => setPart(ref _normalBgImage, BgPartName, ItemState.Normal, value); get => _normalBgImage; } /// /// Sets or gets the pressed background image of a rotary selector item object. /// /// preview + [Obsolete("This has been deprecated in API12")] public Image PressedBackgroundImage { set => setPart(ref _pressedBgImage, BgPartName, ItemState.Pressed, value); get => _pressedBgImage; } /// /// Sets or gets the disabled background image of a rotary selector item object. /// /// preview + [Obsolete("This has been deprecated in API12")] public Image DisabledBackgroundImage { set => setPart(ref _disabledBgImage, BgPartName, ItemState.Disabled, value); get => _disabledBgImage; } /// /// Sets or gets the selected background image of a rotary selector item object. /// /// preview + [Obsolete("This has been deprecated in API12")] public Image SelectedBackgroundImage { set => setPart(ref _selectedBgImage, BgPartName, ItemState.Selected, value); get => _selectedBgImage; } /// /// Sets or gets the normal background color of a rotary selector item object. /// /// preview + [Obsolete("This has been deprecated in API12")] public Color NormalBackgroundColor { set => setPart(ref _normalBgColor, BgPartName, ItemState.Normal, value); get => _normalBgColor; } /// /// Sets or gets the pressed background color of a rotary selector item object. /// /// preview + [Obsolete("This has been deprecated in API12")] public Color PressedBackgroundColor { set => setPart(ref _pressedBgColor, BgPartName, ItemState.Pressed, value); get => _pressedBgColor; } /// /// Sets or gets the disabled background color of a rotary selector item object. /// /// preview + [Obsolete("This has been deprecated in API12")] public Color DisabledBackgroundColor { set => setPart(ref _disabledBgColor, BgPartName, ItemState.Disabled, value); get => _disabledBgColor; } /// /// Sets or gets the selected background color of a rotary selector item object. /// /// preview + [Obsolete("This has been deprecated in API12")] public Color SelectedBackgroundColor { set => setPart(ref _selectedBgColor, BgPartName, ItemState.Selected, value); get => _selectedBgColor; } /// /// Sets or gets the selector icon image of a rotary selector item object. /// /// preview + [Obsolete("This has been deprecated in API12")] public Image SelectorIconImage { set => setPart(ref _selectorIconImage, SelectorIconPartName, ItemState.Normal, value); get => _selectorIconImage; } internal enum ItemState diff --git a/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItemEventArgs.cs b/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItemEventArgs.cs index a975cb0..6893d46 100644 --- a/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItemEventArgs.cs +++ b/src/ElmSharp.Wearable/ElmSharp.Wearable/RotarySelectorItemEventArgs.cs @@ -25,12 +25,14 @@ namespace ElmSharp.Wearable /// Inherits . /// /// preview + [Obsolete("This has been deprecated in API12")] public class RotarySelectorItemEventArgs : EventArgs { /// /// Sets or gets the rotary selector item. /// /// preview + [Obsolete("This has been deprecated in API12")] public RotarySelectorItem Item { get; set; } } } diff --git a/src/ElmSharp/ElmSharp/AccessRole.cs b/src/ElmSharp/ElmSharp/AccessRole.cs index fdc8b49..1f8aa0f 100644 --- a/src/ElmSharp/ElmSharp/AccessRole.cs +++ b/src/ElmSharp/ElmSharp/AccessRole.cs @@ -14,6 +14,7 @@ * limitations under the License. */ +using System; namespace ElmSharp.Accessible { @@ -21,6 +22,7 @@ namespace ElmSharp.Accessible /// Enumeration for the AccessRole. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum AccessRole { /// diff --git a/src/ElmSharp/ElmSharp/AccessibleObject.cs b/src/ElmSharp/ElmSharp/AccessibleObject.cs index 1415f0c..19e9f41 100644 --- a/src/ElmSharp/ElmSharp/AccessibleObject.cs +++ b/src/ElmSharp/ElmSharp/AccessibleObject.cs @@ -24,6 +24,7 @@ namespace ElmSharp.Accessible /// The sender obj. /// Return information for name or description. /// preview + [Obsolete("This has been deprecated in API12")] public delegate string AccessibleInfoProvider (AccessibleObject obj); /// @@ -32,6 +33,7 @@ namespace ElmSharp.Accessible /// There are many relationships between two accessible objects, like , , , , etc. /// /// preview + [Obsolete("This has been deprecated in API12")] public abstract class AccessibleObject : EvasObject, IAccessibleObject { @@ -199,6 +201,7 @@ namespace ElmSharp.Accessible /// /// Parent EvasObject class. /// preview + [Obsolete("This has been deprecated in API12")] protected AccessibleObject(EvasObject parent) : base(parent) { } @@ -207,6 +210,7 @@ namespace ElmSharp.Accessible /// Creates and initializes a new instance of the AccessibleObject class. /// /// preview + [Obsolete("This has been deprecated in API12")] protected AccessibleObject() { } @@ -237,6 +241,7 @@ namespace ElmSharp.Accessible /// Highlights the accessible widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Highlight() { Interop.Elementary.elm_atspi_component_highlight_grab(RealHandle); @@ -246,6 +251,7 @@ namespace ElmSharp.Accessible /// Clears the highlight of the accessible widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Unhighlight() { Interop.Elementary.elm_atspi_component_highlight_clear(RealHandle); diff --git a/src/ElmSharp/ElmSharp/AccessibleRelation.cs b/src/ElmSharp/ElmSharp/AccessibleRelation.cs index 0db85c8..cdd5b03 100644 --- a/src/ElmSharp/ElmSharp/AccessibleRelation.cs +++ b/src/ElmSharp/ElmSharp/AccessibleRelation.cs @@ -14,6 +14,7 @@ * limitations under the License. */ +using System; namespace ElmSharp.Accessible { @@ -21,6 +22,7 @@ namespace ElmSharp.Accessible /// IAccessibleRelation is an interface, which defines the relationship between two accessible objects. /// /// preview + [Obsolete("This has been deprecated in API12")] public interface IAccessibleRelation { @@ -28,12 +30,14 @@ namespace ElmSharp.Accessible /// Gets or sets the target object. /// /// preview + [Obsolete("This has been deprecated in API12")] AccessibleObject Target { get; set; } /// /// Gets the type. /// /// preview + [Obsolete("This has been deprecated in API12")] int Type { get; } } @@ -41,18 +45,21 @@ namespace ElmSharp.Accessible /// To define the label info for an accessible object. /// /// preview + [Obsolete("This has been deprecated in API12")] public class LabelledBy : IAccessibleRelation { /// /// Gets or sets the target object, which is LabelledBy. /// /// preview + [Obsolete("This has been deprecated in API12")] public AccessibleObject Target { get; set; } /// /// Gets the LabelledBy type. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_LABELLED_BY; } @@ -63,18 +70,21 @@ namespace ElmSharp.Accessible /// To define the label info for an accessible object. /// /// preview + [Obsolete("This has been deprecated in API12")] public class LabelFor : IAccessibleRelation { /// /// Gets or sets the target object which is LabelFor. /// /// preview + [Obsolete("This has been deprecated in API12")] public AccessibleObject Target { get; set; } /// /// Gets the LabelFor type. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_LABEL_FOR; } @@ -85,18 +95,21 @@ namespace ElmSharp.Accessible /// To define the control relationship for an accessible object. /// /// preview + [Obsolete("This has been deprecated in API12")] public class ControllerFor : IAccessibleRelation { /// /// Gets or sets the target object, which is ControllerFor. /// /// preview + [Obsolete("This has been deprecated in API12")] public AccessibleObject Target { get; set; } /// /// Gets the ControllerFor type. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_CONTROLLER_FOR; } @@ -107,18 +120,21 @@ namespace ElmSharp.Accessible /// To define the control relationship for an accessible object. /// /// preview + [Obsolete("This has been deprecated in API12")] public class ControlledBy : IAccessibleRelation { /// /// Gets or sets the target object, which is ControlledBy. /// /// preview + [Obsolete("This has been deprecated in API12")] public AccessibleObject Target { get; set; } /// /// Gets the ControlledBy type. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_CONTROLLED_BY; } @@ -129,18 +145,21 @@ namespace ElmSharp.Accessible /// To define the member relationship for an accessible object. /// /// preview + [Obsolete("This has been deprecated in API12")] public class MemberOf : IAccessibleRelation { /// /// Gets or sets the target object, which is MemberOf. /// /// preview + [Obsolete("This has been deprecated in API12")] public AccessibleObject Target { get; set; } /// /// Gets the MemberOf type. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_MEMBER_OF; } @@ -151,18 +170,21 @@ namespace ElmSharp.Accessible /// To define the tooltip for an accessible object. /// /// preview + [Obsolete("This has been deprecated in API12")] public class TooltipFor : IAccessibleRelation { /// /// Gets or sets the target object, which is TooltipFor. /// /// preview + [Obsolete("This has been deprecated in API12")] public AccessibleObject Target { get; set; } /// /// Gets the TooltipFor type. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_TOOLTIP_FOR; } @@ -173,18 +195,21 @@ namespace ElmSharp.Accessible /// To define the child for an accessible object. /// /// preview + [Obsolete("This has been deprecated in API12")] public class ChildOf : IAccessibleRelation { /// /// Gets or sets the target object, which is ChildOf. /// /// preview + [Obsolete("This has been deprecated in API12")] public AccessibleObject Target { get; set; } /// /// Gets the ChildOf type. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_NODE_CHILD_OF; } @@ -195,18 +220,21 @@ namespace ElmSharp.Accessible /// To define the parent for an accessible object. /// /// preview + [Obsolete("This has been deprecated in API12")] public class ParentOf : IAccessibleRelation { /// /// Gets or sets the target object, which is ParentOf. /// /// preview + [Obsolete("This has been deprecated in API12")] public AccessibleObject Target { get; set; } /// /// Gets the ParentOf type. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_NODE_PARENT_OF; } @@ -217,18 +245,21 @@ namespace ElmSharp.Accessible /// To define the extend for an accessible object. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Extended : IAccessibleRelation { /// /// Gets or sets the target object, which is Extended. /// /// preview + [Obsolete("This has been deprecated in API12")] public AccessibleObject Target { get; set; } /// /// Gets the extended type. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_EXTENDED; } @@ -239,18 +270,21 @@ namespace ElmSharp.Accessible /// To define the custom reading order. /// /// preview + [Obsolete("This has been deprecated in API12")] public class FlowsTo : IAccessibleRelation { /// /// Gets or sets the target object, which is FlowsTo. /// /// preview + [Obsolete("This has been deprecated in API12")] public AccessibleObject Target { get; set; } /// /// Gets the FlowsTo type. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_FLOWS_TO; } @@ -261,18 +295,21 @@ namespace ElmSharp.Accessible /// To define the custom reading order. /// /// preview + [Obsolete("This has been deprecated in API12")] public class FlowsFrom : IAccessibleRelation { /// /// Gets or sets the target object, which is FlowsFrom. /// /// preview + [Obsolete("This has been deprecated in API12")] public AccessibleObject Target { get; set; } /// /// Gets the FlowsFrom type. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_FLOWS_FROM; } @@ -283,18 +320,21 @@ namespace ElmSharp.Accessible /// To define the subwindow for an accessible object. /// /// preview + [Obsolete("This has been deprecated in API12")] public class SubwindowOf : IAccessibleRelation { /// /// Gets or sets the target object, which is SubwindowOf. /// /// preview + [Obsolete("This has been deprecated in API12")] public AccessibleObject Target { get; set; } /// /// Gets the SubwindowOf type. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_SUBWINDOW_OF; } @@ -305,18 +345,21 @@ namespace ElmSharp.Accessible /// To define the embed for an accessible object. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Embeds : IAccessibleRelation { /// /// Gets or sets the target object ,which is Embeds. /// /// preview + [Obsolete("This has been deprecated in API12")] public AccessibleObject Target { get; set; } /// /// Gets the Embeds type. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_EMBEDS; } @@ -327,18 +370,21 @@ namespace ElmSharp.Accessible /// To define the embed for an accessible object. /// /// preview + [Obsolete("This has been deprecated in API12")] public class EmbeddedBy : IAccessibleRelation { /// /// Gets or sets the target object, which is EmbeddedBy. /// /// preview + [Obsolete("This has been deprecated in API12")] public AccessibleObject Target { get; set; } /// /// Gets the EmbeddedBy type. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_EMBEDDED_BY; } @@ -349,18 +395,21 @@ namespace ElmSharp.Accessible /// To define the popup for an accessible object. /// /// preview + [Obsolete("This has been deprecated in API12")] public class PopupFor : IAccessibleRelation { /// /// Gets or sets the target object, which is PopupFor. /// /// preview + [Obsolete("This has been deprecated in API12")] public AccessibleObject Target { get; set; } /// /// Gets the PopupFor type. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_POPUP_FOR; } @@ -371,18 +420,21 @@ namespace ElmSharp.Accessible /// To define the parent window for an accessible object. /// /// preview + [Obsolete("This has been deprecated in API12")] public class ParentWindowOf : IAccessibleRelation { /// /// Gets or sets the target object, which is ParentWindowOf. /// /// preview + [Obsolete("This has been deprecated in API12")] public AccessibleObject Target { get; set; } /// /// Gets the ParentWindowOf type. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_PARENT_WINDOW_OF; } @@ -393,18 +445,21 @@ namespace ElmSharp.Accessible /// To define the description for an accessible object. /// /// preview + [Obsolete("This has been deprecated in API12")] public class DescriptionFor : IAccessibleRelation { /// /// Gets or sets the target object, which is DescriptionFor. /// /// preview + [Obsolete("This has been deprecated in API12")] public AccessibleObject Target { get; set; } /// /// Gets the DescriptionFor type. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_DESCRIPTION_FOR; } @@ -415,18 +470,21 @@ namespace ElmSharp.Accessible /// To define the description for an accessible object. /// /// preview + [Obsolete("This has been deprecated in API12")] public class DescribedBy : IAccessibleRelation { /// /// Gets or sets the target object, which is DescribedBy. /// /// preview + [Obsolete("This has been deprecated in API12")] public AccessibleObject Target { get; set; } /// /// Gets the DescribedBy type. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Type { get { return (int)Interop.Elementary.Elm_Atspi_Relation_Type.ELM_ATSPI_RELATION_DESCRIBED_BY; } diff --git a/src/ElmSharp/ElmSharp/AccessibleUtil.cs b/src/ElmSharp/ElmSharp/AccessibleUtil.cs index eb82a71..b2c6cb6 100644 --- a/src/ElmSharp/ElmSharp/AccessibleUtil.cs +++ b/src/ElmSharp/ElmSharp/AccessibleUtil.cs @@ -24,6 +24,7 @@ namespace ElmSharp.Accessible /// Enumeration for the ReadingStatus. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum ReadingStatus { /// @@ -48,13 +49,14 @@ namespace ElmSharp.Accessible /// AccessibleUtil provides a method to set the reading information. /// /// preview + [Obsolete("This has been deprecated in API12")] public static class AccessibleUtil { static void AtspiSignalCallback(IntPtr data, string say_signal) { GCHandle gch = GCHandle.FromIntPtr(data); - TaskCompletionSource tcs = (TaskCompletionSource) gch.Target; + TaskCompletionSource tcs = (TaskCompletionSource)gch.Target; if (say_signal.Equals("ReadingCancelled")) { tcs.SetResult(ReadingStatus.Cancelled); @@ -82,6 +84,7 @@ namespace ElmSharp.Accessible /// If true, reading can be discarded by subsequent reading requests. If false, reading must be finished before the next reading request can be started. /// Return a task with the reading status. /// preview + [Obsolete("This has been deprecated in API12")] public static Task Say(string text, bool discardable) { var tcs = new TaskCompletionSource(); diff --git a/src/ElmSharp/ElmSharp/AnimationView.cs b/src/ElmSharp/ElmSharp/AnimationView.cs index c644b15..d3255e8 100644 --- a/src/ElmSharp/ElmSharp/AnimationView.cs +++ b/src/ElmSharp/ElmSharp/AnimationView.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// Enumeration for the AnimationView state /// /// preview + [Obsolete("This has been deprecated in API12")] public enum AnimationViewState { /// @@ -55,6 +56,7 @@ namespace ElmSharp /// Currently ElmSharp AnimationView is supporting only json format (known for Lottie file as well). /// /// preview + [Obsolete("This has been deprecated in API12")] public class AnimationView : EvasObject { private SmartEvent _started; @@ -70,6 +72,7 @@ namespace ElmSharp /// /// The parent is a given container, which will be attached by AnimationView as a child. It's type. /// preview + [Obsolete("This has been deprecated in API12")] public AnimationView(EvasObject parent) : base(parent) { _started = new SmartEvent(this, this.Handle, "play,start"); @@ -120,42 +123,49 @@ namespace ElmSharp /// It occurs when the animation is just started. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Started; /// /// It occurs when the animation is just repeated. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Repeated; /// /// It occurs when the animation is just finished. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Finished; /// /// It occurs when the animation is just paused. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Paused; /// /// It occurs when the animation is just resumed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Resumed; /// /// It occurs when the animation is just stopped. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Stopped; /// /// It occurs when the animation is updated to the next frame. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Updated; /// @@ -168,6 +178,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public bool AutoPlay { get @@ -188,6 +199,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public bool AutoRepeat { get @@ -210,6 +222,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public double Speed { get @@ -230,6 +243,7 @@ namespace ElmSharp /// If current animation source isn't animatable, it returns zero. /// /// preview + [Obsolete("This has been deprecated in API12")] public double DurationTime { get @@ -247,6 +261,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public double Progress { get @@ -266,6 +281,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public int Frame { get @@ -282,6 +298,7 @@ namespace ElmSharp /// Get the default view size that specified from vector resource. /// /// preview + [Obsolete("This has been deprecated in API12")] public Size DefaultSize { get @@ -295,6 +312,7 @@ namespace ElmSharp /// Get current animation view state. /// /// preview + [Obsolete("This has been deprecated in API12")] public AnimationViewState State { get @@ -310,6 +328,7 @@ namespace ElmSharp /// If AnimationView is not on playing, it will return False. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsReversedPlaying { get @@ -325,6 +344,7 @@ namespace ElmSharp /// Frame number starts with 0. /// /// preview + [Obsolete("This has been deprecated in API12")] public int FrameCount { get @@ -340,6 +360,7 @@ namespace ElmSharp /// Default value is 0. /// /// preview + [Obsolete("This has been deprecated in API12")] public double MinProgress { get @@ -359,6 +380,7 @@ namespace ElmSharp /// Default value is 1. /// /// preview + [Obsolete("This has been deprecated in API12")] public double MaxProgress { get @@ -378,6 +400,7 @@ namespace ElmSharp /// Default value is 0. /// /// preview + [Obsolete("This has been deprecated in API12")] public int MinFrame { get @@ -397,6 +420,7 @@ namespace ElmSharp /// Default value is FrameCount -1. /// /// preview + [Obsolete("This has been deprecated in API12")] public int MaxFrame { get @@ -414,6 +438,7 @@ namespace ElmSharp /// /// The animation file path. /// preview + [Obsolete("This has been deprecated in API12")] public void SetAnimation(string file) { Interop.Elementary.elm_animation_view_file_set(Handle, file, null); @@ -427,6 +452,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public void Play() { Interop.Elementary.elm_animation_view_play(Handle); @@ -442,6 +468,7 @@ namespace ElmSharp /// /// Whether the animation play or reverse play. /// preview + [Obsolete("This has been deprecated in API12")] public void Play(bool isReverse) { if (!isReverse) @@ -462,6 +489,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public void Pause() { Interop.Elementary.elm_animation_view_pause(Handle); @@ -474,6 +502,7 @@ namespace ElmSharp /// This resume must be called on animation paused status. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Resume() { Interop.Elementary.elm_animation_view_resume(Handle); @@ -488,6 +517,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public void Stop() { Interop.Elementary.elm_animation_view_stop(Handle); @@ -499,6 +529,7 @@ namespace ElmSharp /// Parent EvasObject. /// Handle IntPtr. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { return Interop.Elementary.elm_animation_view_add(parent.Handle); diff --git a/src/ElmSharp/ElmSharp/Background.cs b/src/ElmSharp/ElmSharp/Background.cs index 2089fb0..045629c 100644 --- a/src/ElmSharp/ElmSharp/Background.cs +++ b/src/ElmSharp/ElmSharp/Background.cs @@ -23,6 +23,7 @@ namespace ElmSharp /// or to any container object. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Background : Layout { /// @@ -30,6 +31,7 @@ namespace ElmSharp /// /// The EvasObject to which the new background will be attached as a child. /// preview + [Obsolete("This has been deprecated in API12")] public Background(EvasObject parent) : base(parent) { Style = "transparent"; @@ -39,6 +41,7 @@ namespace ElmSharp /// Sets or gets the color to the background. /// /// preview + [Obsolete("This has been deprecated in API12")] public override Color Color { get @@ -55,6 +58,7 @@ namespace ElmSharp /// Sets or gets the image to the background. /// /// preview + [Obsolete("This has been deprecated in API12")] public string File { get @@ -76,6 +80,7 @@ namespace ElmSharp /// The image can be display tiled, scaled, centered, or stretched. Scaled by default. /// /// preview + [Obsolete("This has been deprecated in API12")] public BackgroundOptions BackgroundOption { get @@ -97,6 +102,7 @@ namespace ElmSharp /// The new width of the image pixmap representation. /// The new height of the image pixmap representation. /// preview + [Obsolete("This has been deprecated in API12")] public void SetFileLoadSize(int w, int h) { if (File != null) @@ -115,6 +121,7 @@ namespace ElmSharp /// Parent EvasObject. /// Handle IntPtr. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { return Interop.Elementary.elm_bg_add(parent.Handle); @@ -125,6 +132,7 @@ namespace ElmSharp /// Enumeration for the background types. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum BackgroundOptions { /// diff --git a/src/ElmSharp/ElmSharp/Box.cs b/src/ElmSharp/ElmSharp/Box.cs index 1f86354..2dbd31a 100644 --- a/src/ElmSharp/ElmSharp/Box.cs +++ b/src/ElmSharp/ElmSharp/Box.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// The Box is a container that is used to arrange UI components in a linear order. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Box : Container { private Interop.Elementary.BoxLayoutCallback _layoutCallback; @@ -31,6 +32,7 @@ namespace ElmSharp /// /// The EvasObject to which the new Box will be attached as a child. /// preview + [Obsolete("This has been deprecated in API12")] public Box(EvasObject parent) : base(parent) { } @@ -39,6 +41,7 @@ namespace ElmSharp /// Sets or gets the IsHorizontal value, which describe the pack direction. Vertical is default. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsHorizontal { get @@ -55,6 +58,7 @@ namespace ElmSharp /// Sets or gets whether the box has to arrange its children homogeneously. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsHomogeneous { get @@ -78,6 +82,7 @@ namespace ElmSharp /// /// The oject to be packed. /// preview + [Obsolete("This has been deprecated in API12")] public void PackEnd(EvasObject content) { Interop.Elementary.elm_box_pack_end(RealHandle, content); @@ -95,6 +100,7 @@ namespace ElmSharp /// /// The object to be packed. /// preview + [Obsolete("This has been deprecated in API12")] public void PackStart(EvasObject content) { Interop.Elementary.elm_box_pack_start(RealHandle, content); @@ -112,6 +118,7 @@ namespace ElmSharp /// The object will be added in the box. /// The object has been added in the box. /// preview + [Obsolete("This has been deprecated in API12")] public void PackAfter(EvasObject content, EvasObject after) { Interop.Elementary.elm_box_pack_after(RealHandle, content, after); @@ -129,6 +136,7 @@ namespace ElmSharp /// The object will be added in the box. /// The object has been added in the box. /// preview + [Obsolete("This has been deprecated in API12")] public void PackBefore(EvasObject content, EvasObject before) { Interop.Elementary.elm_box_pack_before(RealHandle, content, before); @@ -140,6 +148,7 @@ namespace ElmSharp /// /// The object to unpack. /// preview + [Obsolete("This has been deprecated in API12")] public void UnPack(EvasObject content) { Interop.Elementary.elm_box_unpack(RealHandle, content); @@ -150,6 +159,7 @@ namespace ElmSharp /// Removes all the objects from the Box container. /// /// preview + [Obsolete("This has been deprecated in API12")] public void UnPackAll() { Interop.Elementary.elm_box_unpack_all(RealHandle); @@ -162,6 +172,7 @@ namespace ElmSharp /// /// The callback function used for layout. /// preview + [Obsolete("This has been deprecated in API12")] public void SetLayoutCallback(Action action) { _layoutCallback = (obj, priv, data) => @@ -177,6 +188,7 @@ namespace ElmSharp /// The name of part class, it could be 'bg', 'elm.swllow.content'. /// The color value. /// preview + [Obsolete("This has been deprecated in API12")] public override void SetPartColor(string part, Color color) { Interop.Elementary.elm_object_color_class_color_set(Handle, part, color.R * color.A / 255, @@ -191,6 +203,7 @@ namespace ElmSharp /// The name of part class, it could be 'bg', 'elm.swllow.content'. /// /// preview + [Obsolete("This has been deprecated in API12")] public override Color GetPartColor(string part) { int r, g, b, a; @@ -204,6 +217,7 @@ namespace ElmSharp /// While this is great as it would save lots of recalculation, whenever you need to get the position of a just added item, you must force recalculate before doing so. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Recalculate() { Interop.Elementary.elm_box_recalculate(RealHandle); @@ -214,6 +228,7 @@ namespace ElmSharp /// Remove all the elements contained by the box, deleting the respective objects. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Clear() { Interop.Elementary.elm_box_clear(RealHandle); @@ -226,6 +241,7 @@ namespace ElmSharp /// Horizontal alignment. /// Vertical alignment. /// preview + [Obsolete("This has been deprecated in API12")] public void SetBoxAlignment(double horizontal, double vertical) { Interop.Elementary.elm_box_align_set(RealHandle, horizontal, vertical); @@ -237,6 +253,7 @@ namespace ElmSharp /// Horizontal padding. /// Vertical padding. /// preview + [Obsolete("This has been deprecated in API12")] public void SetPadding(int horizontal, int vertical) { Interop.Elementary.elm_box_padding_set(RealHandle, horizontal, vertical); @@ -248,6 +265,7 @@ namespace ElmSharp /// 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); diff --git a/src/ElmSharp/ElmSharp/Button.cs b/src/ElmSharp/ElmSharp/Button.cs index ae72206..7332e41 100644 --- a/src/ElmSharp/ElmSharp/Button.cs +++ b/src/ElmSharp/ElmSharp/Button.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// 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; @@ -36,6 +37,7 @@ 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"); @@ -68,24 +70,28 @@ namespace ElmSharp /// 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 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. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler 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; /// @@ -99,6 +105,7 @@ namespace ElmSharp /// and the time between each new emission is given by AutoRepeatGapTimeout. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool AutoRepeat { get @@ -115,6 +122,7 @@ 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 @@ -131,6 +139,7 @@ namespace ElmSharp /// Sets or gets the interval between each generated Repeat event. /// /// preview + [Obsolete("This has been deprecated in API12")] public double AutoRepeatGapTimeout { get @@ -158,6 +167,7 @@ namespace ElmSharp /// 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 @@ -184,6 +194,7 @@ namespace ElmSharp /// 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); diff --git a/src/ElmSharp/ElmSharp/Calendar.cs b/src/ElmSharp/ElmSharp/Calendar.cs index 12f5f0b..f64427a 100644 --- a/src/ElmSharp/ElmSharp/Calendar.cs +++ b/src/ElmSharp/ElmSharp/Calendar.cs @@ -19,13 +19,13 @@ using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; - namespace ElmSharp { /// /// Enumeration for event periodicity, used to define if a mark should be repeated beyond the event's day. It's set when a mark is added. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum CalendarMarkRepeatType { /// @@ -63,6 +63,7 @@ namespace ElmSharp /// Enumeration for the mode, which determines how a user could select a day. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum CalendarSelectMode { /// @@ -90,6 +91,7 @@ namespace ElmSharp /// Enumeration for defining which fields of a tm struct will be taken into account. /// /// preview + [Obsolete("This has been deprecated in API12")] [Flags] public enum CalendarSelectable { @@ -115,6 +117,7 @@ namespace ElmSharp /// The CalendarMark is an item for marking a Calendar's type, date, and repeat type. /// /// preview + [Obsolete("This has been deprecated in API12")] public class CalendarMark { internal IntPtr Handle; @@ -123,18 +126,21 @@ namespace ElmSharp /// A string used to define the type of mark. /// /// preview + [Obsolete("This has been deprecated in API12")] public string Type; /// /// A time struct to represent the date of inclusion of the mark. /// /// preview + [Obsolete("This has been deprecated in API12")] public DateTime Date; /// /// Repeats the event following this periodicity. /// /// preview + [Obsolete("This has been deprecated in API12")] public CalendarMarkRepeatType Repeat; /// @@ -144,6 +150,7 @@ namespace ElmSharp /// Date of inclusion of the mark. /// Repeat type. /// preview + [Obsolete("This has been deprecated in API12")] public CalendarMark(string type, DateTime date, CalendarMarkRepeatType repeat) { Handle = IntPtr.Zero; @@ -157,6 +164,7 @@ namespace ElmSharp /// The Calendar is a widget that helps applications to flexibly display a calender with day of the week, date, year, and month. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Calendar : Layout { SmartEvent _changed; @@ -174,6 +182,7 @@ namespace ElmSharp /// The EvasObject to which the new calendar will be attached as a child. /// /// preview + [Obsolete("This has been deprecated in API12")] public Calendar(EvasObject parent) : base(parent) { _changed = new SmartEvent(this, this.RealHandle, "changed"); @@ -199,12 +208,14 @@ namespace ElmSharp /// DateChanged will be triggered when the date in the calendar is changed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler DateChanged; /// /// DisplayedMonthChanged will be triggered when the current month displayed in the calendar is changed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler DisplayedMonthChanged; /// @@ -213,12 +224,14 @@ namespace ElmSharp /// DateTime /// /// preview + [Obsolete("This has been deprecated in API12")] public delegate string DateFormatDelegate(DateTime time); /// /// Sets or gets the minimum for year. /// /// preview + [Obsolete("This has been deprecated in API12")] public int MinimumYear { get @@ -245,6 +258,7 @@ namespace ElmSharp /// Sets or gets the maximum for the year. /// /// preview + [Obsolete("This has been deprecated in API12")] public int MaximumYear { get @@ -267,6 +281,7 @@ namespace ElmSharp /// Sets or gets the first day of the week, which is used on the calendar. /// /// preview + [Obsolete("This has been deprecated in API12")] public DateTime DisplayedTime { get @@ -292,6 +307,7 @@ namespace ElmSharp /// Sets or gets the first day of the week, which is used on the calendar. /// /// preview + [Obsolete("This has been deprecated in API12")] public DayOfWeek FirstDayOfWeek { get @@ -313,6 +329,7 @@ namespace ElmSharp /// Calendar.WeekDayNames = weekDayNames; /// /// preview + [Obsolete("This has been deprecated in API12")] public IReadOnlyList WeekDayNames { get @@ -338,6 +355,7 @@ namespace ElmSharp /// The selected date changes when the user goes to the next/previous month or selects a day pressing over it on the calendar. /// /// preview + [Obsolete("This has been deprecated in API12")] public DateTime SelectedDate { get @@ -363,6 +381,7 @@ namespace ElmSharp /// hold, on the calendar widgets' month/year selection. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Interval { get @@ -379,6 +398,7 @@ namespace ElmSharp /// Gets or sets the select day mode used. /// /// preview + [Obsolete("This has been deprecated in API12")] public CalendarSelectMode SelectMode { get @@ -395,6 +415,7 @@ namespace ElmSharp /// Gets or sets the fields of a datetime that will be taken into account, when SelectedDate set is invoked. /// /// preview + [Obsolete("This has been deprecated in API12")] public CalendarSelectable Selectable { get @@ -411,6 +432,7 @@ namespace ElmSharp /// Gets or sets the date format of the string that will be used to display month and year. /// /// preview + [Obsolete("This has been deprecated in API12")] public DateFormatDelegate DateFormat { get @@ -439,6 +461,7 @@ namespace ElmSharp /// Repeat the event following this periodicity. Can be a unique mark (that doesn't repeat), daily, weekly, monthly, or annually. /// Item for a calendar mark. /// preview + [Obsolete("This has been deprecated in API12")] public CalendarMark AddMark(string type, DateTime date, CalendarMarkRepeatType repeat) { CalendarMark mark = new CalendarMark(type, date, repeat); @@ -454,6 +477,7 @@ namespace ElmSharp /// /// Item for a calendar mark. /// preview + [Obsolete("This has been deprecated in API12")] public void DeleteMark(CalendarMark mark) { Interop.Elementary.elm_calendar_mark_del(mark.Handle); @@ -463,6 +487,7 @@ namespace ElmSharp /// Draws the calendar marks. /// /// preview + [Obsolete("This has been deprecated in API12")] public void DrawMarks() { Interop.Elementary.elm_calendar_marks_draw(RealHandle); @@ -472,6 +497,7 @@ namespace ElmSharp /// Removes all the calendar's marks. /// /// preview + [Obsolete("This has been deprecated in API12")] public void ClearMarks() { Interop.Elementary.elm_calendar_marks_clear(RealHandle); @@ -483,6 +509,7 @@ namespace ElmSharp /// 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); diff --git a/src/ElmSharp/ElmSharp/Check.cs b/src/ElmSharp/ElmSharp/Check.cs index 92dbfd0..98f396c 100644 --- a/src/ElmSharp/ElmSharp/Check.cs +++ b/src/ElmSharp/ElmSharp/Check.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// The Check is a widget that allows for toggling a value between true and false. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Check : Layout { private SmartEvent _changed; @@ -34,6 +35,7 @@ namespace ElmSharp /// The EvasObject to which the new check will be attached as a child. /// /// preview + [Obsolete("This has been deprecated in API12")] public Check(EvasObject parent) : base(parent) { _changed = new SmartEvent(this, this.RealHandle, "changed"); @@ -47,6 +49,7 @@ namespace ElmSharp /// StateChanged will be triggered when the IsChecked in the check is changed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler StateChanged; /// @@ -56,6 +59,7 @@ namespace ElmSharp /// When an object is checked, the value will be set to true. Conversely, will be set to false. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsChecked { get @@ -75,6 +79,7 @@ namespace ElmSharp /// 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); diff --git a/src/ElmSharp/ElmSharp/CheckStateChangedEventArgs.cs b/src/ElmSharp/ElmSharp/CheckStateChangedEventArgs.cs index a687642..ac95ea9 100644 --- a/src/ElmSharp/ElmSharp/CheckStateChangedEventArgs.cs +++ b/src/ElmSharp/ElmSharp/CheckStateChangedEventArgs.cs @@ -24,18 +24,21 @@ namespace ElmSharp /// Include the old state and the new state. /// /// preview + [Obsolete("This has been deprecated in API12")] public class CheckStateChangedEventArgs : EventArgs { /// /// Gets the OldState property. The return type is bool. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool OldState { get; private set; } /// /// Gets the NewState property. The return type is bool. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool NewState { get; private set; } /// @@ -44,6 +47,7 @@ namespace ElmSharp /// Old state of check to use this CheckStateChangedEventArgs. /// New state of check to use this CheckStateChangedEventArgs. /// preview + [Obsolete("This has been deprecated in API12")] public CheckStateChangedEventArgs(bool oldState, bool newState) { this.OldState = oldState; diff --git a/src/ElmSharp/ElmSharp/Color.cs b/src/ElmSharp/ElmSharp/Color.cs index 279e15d..85186ac 100644 --- a/src/ElmSharp/ElmSharp/Color.cs +++ b/src/ElmSharp/ElmSharp/Color.cs @@ -23,6 +23,7 @@ namespace ElmSharp /// The Color is a struct to record the check's state. /// /// preview + [Obsolete("This has been deprecated in API12")] public struct Color { readonly int _a; @@ -45,6 +46,7 @@ namespace ElmSharp /// In the default Color instance, the mode type is default with RGBA all set as -1. /// /// preview + [Obsolete("This has been deprecated in API12")] public static Color Default { get { return new Color(-1, -1, -1, -1, Mode.Default); } @@ -55,6 +57,7 @@ namespace ElmSharp /// The return type is bool. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsDefault { get { return _mode == Mode.Default; } @@ -65,6 +68,7 @@ namespace ElmSharp /// A means the Alpha in color. /// /// preview + [Obsolete("This has been deprecated in API12")] public int A { get { return _a; } @@ -75,6 +79,7 @@ namespace ElmSharp /// R means the Red in color. /// /// preview + [Obsolete("This has been deprecated in API12")] public int R { get { return _r; } @@ -85,6 +90,7 @@ namespace ElmSharp /// G means the Green in color. /// /// preview + [Obsolete("This has been deprecated in API12")] public int G { get { return _g; } @@ -95,6 +101,7 @@ namespace ElmSharp /// B means the Blue in color. /// /// preview + [Obsolete("This has been deprecated in API12")] public int B { get { return _b; } @@ -108,6 +115,7 @@ namespace ElmSharp /// Green of RGB. /// Blue of RGB. /// preview + [Obsolete("This has been deprecated in API12")] public Color(int r, int g, int b) : this(r, g, b, 255) { } @@ -121,6 +129,7 @@ namespace ElmSharp /// Blue of RGBA. /// Alpha of RGBA. /// preview + [Obsolete("This has been deprecated in API12")] public Color(int r, int g, int b, int a) : this(r, g, b, a, Mode.Rgb) { } @@ -146,6 +155,7 @@ namespace ElmSharp /// /// A 32-bit signed integer hash code. /// preview + [Obsolete("This has been deprecated in API12")] public override int GetHashCode() { int hashcode = _r.GetHashCode(); @@ -164,6 +174,7 @@ namespace ElmSharp /// otherwise, false. /// /// preview + [Obsolete("This has been deprecated in API12")] public override bool Equals(object obj) { if (obj is Color) @@ -182,6 +193,7 @@ namespace ElmSharp /// Return type is bool. If they are same, return true. /// /// preview + [Obsolete("This has been deprecated in API12")] public static bool operator ==(Color a, Color b) { return EqualsInner(a, b); @@ -196,6 +208,7 @@ namespace ElmSharp /// Return type is bool. If they are different, return true. /// /// preview + [Obsolete("This has been deprecated in API12")] public static bool operator !=(Color a, Color b) { return !(a == b); @@ -213,6 +226,7 @@ namespace ElmSharp /// /// The fully qualified type name. /// preview + [Obsolete("This has been deprecated in API12")] public override string ToString() { return string.Format(CultureInfo.InvariantCulture, "[Color: R={0}, G={1}, B={2}, A={3}]", R, G, B, A); @@ -224,6 +238,7 @@ namespace ElmSharp /// Hexadecimal string. /// New instance of the Color struct. /// preview + [Obsolete("This has been deprecated in API12")] public static Color FromHex(string hex) { string ret = hex.Replace("#", ""); @@ -248,6 +263,7 @@ namespace ElmSharp /// Unsigned integer indicates RGBA. /// New instance of the Color struct. /// preview + [Obsolete("This has been deprecated in API12")] public static Color FromUint(uint argb) { return FromRgba((byte)((argb & 0x00ff0000) >> 0x10), (byte)((argb & 0x0000ff00) >> 0x8), (byte)(argb & 0x000000ff), (byte)((argb & 0xff000000) >> 0x18)); @@ -262,6 +278,7 @@ namespace ElmSharp /// Alpha of RGBA. /// New instance of the Color struct. /// preview + [Obsolete("This has been deprecated in API12")] public static Color FromRgba(int r, int g, int b, int a) { return new Color(r, g, b, a); @@ -275,6 +292,7 @@ namespace ElmSharp /// Blue of RGB. /// New instance of the Color struct. /// preview + [Obsolete("This has been deprecated in API12")] public static Color FromRgb(int r, int g, int b) { return FromRgba(r, g, b, 255); @@ -290,96 +308,115 @@ namespace ElmSharp /// The Tansparent is a predefined Color instance. It's RGBA value is (0, 0, 0, 0). /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly Color Transparent = FromRgba(0, 0, 0, 0); /// /// The Aqua is a predefined Color instance. It's RGB value is (0, 255, 255). /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly Color Aqua = FromRgb(0, 255, 255); /// /// The Black is a predefined Color instance. It's RGB value is (0, 0, 0). /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly Color Black = FromRgb(0, 0, 0); /// /// The Blue is a predefined Color instance. It's RGB value is (0, 0, 255). /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly Color Blue = FromRgb(0, 0, 255); /// /// The Fuchsia is a predefined Color instance. It's RGB value is (255, 0, 255). /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly Color Fuchsia = FromRgb(255, 0, 255); /// /// The Gray is a predefined Color instance. It's RGB value is (128, 128, 128). /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly Color Gray = FromRgb(128, 128, 128); /// /// The Green is a predefined Color instance. It's RGB value is (0, 128, 0). /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly Color Green = FromRgb(0, 128, 0); /// /// The Lime is a predefined Color instance. It's RGB value is (0, 255, 0). /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly Color Lime = FromRgb(0, 255, 0); /// /// The Maroon is a predefined Color instance. It's RGB value is (128, 0, 0). /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly Color Maroon = FromRgb(128, 0, 0); /// /// The Navy is a predefined Color instance. It's RGB value is (0, 0, 128). /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly Color Navy = FromRgb(0, 0, 128); /// /// The Olive is a predefined Color instance. It's RGB value is (128, 128, 0). /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly Color Olive = FromRgb(128, 128, 0); /// /// The Orange is a predefined Color instance. It's RGB value is (255, 165, 0). /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly Color Orange = FromRgb(255, 165, 0); /// /// The Purple is a predefined Color instance. It's RGB value is (128, 0, 128). /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly Color Purple = FromRgb(128, 0, 128); /// /// The Pink is a predefined Color instance. It's RGB value is (255, 102, 255). /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly Color Pink = FromRgb(255, 102, 255); /// /// The Red is a predefined Color instance. It's RGB value is (255, 0, 0). /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly Color Red = FromRgb(255, 0, 0); /// /// The Silver is a predefined Color instance. It's RGB value is (192, 192, 192). /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly Color Silver = FromRgb(192, 192, 192); /// /// The Teal is a predefined Color instance. It's RGB value is (0, 128, 128). /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly Color Teal = FromRgb(0, 128, 128); /// /// The White is a predefined Color instance. It's RGB value is (255, 255, 255). /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly Color White = FromRgb(255, 255, 255); /// /// The Yellow is a predefined Color instance. It's RGB value is (255, 255, 0). /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly Color Yellow = FromRgb(255, 255, 0); #endregion } diff --git a/src/ElmSharp/ElmSharp/ColorChangedEventArgs.cs b/src/ElmSharp/ElmSharp/ColorChangedEventArgs.cs index 7c91069..86d76ef 100644 --- a/src/ElmSharp/ElmSharp/ColorChangedEventArgs.cs +++ b/src/ElmSharp/ElmSharp/ColorChangedEventArgs.cs @@ -24,18 +24,21 @@ namespace ElmSharp /// Refer to type. /// /// preview + [Obsolete("This has been deprecated in API12")] public class ColorChangedEventArgs : EventArgs { /// /// Gets an old color in the color changed event. /// /// preview + [Obsolete("This has been deprecated in API12")] public Color OldColor { get; private set; } /// /// Gets a new color in the color changed event. /// /// preview + [Obsolete("This has been deprecated in API12")] public Color NewColor { get; private set; } /// @@ -44,6 +47,7 @@ namespace ElmSharp /// Old color. /// New color. /// preview + [Obsolete("This has been deprecated in API12")] public ColorChangedEventArgs(Color oldColor, Color newColor) { this.OldColor = oldColor; diff --git a/src/ElmSharp/ElmSharp/ColorSelector.cs b/src/ElmSharp/ElmSharp/ColorSelector.cs index ce86f75..dc717e5 100644 --- a/src/ElmSharp/ElmSharp/ColorSelector.cs +++ b/src/ElmSharp/ElmSharp/ColorSelector.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// Enumeration for the modes of ColorSelector. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum ColorSelectorMode { /// @@ -70,6 +71,7 @@ namespace ElmSharp /// color items on the palette, or by selecting it from the selector. /// /// preview + [Obsolete("This has been deprecated in API12")] public class ColorSelector : Layout { private readonly SmartEvent _changed; @@ -80,6 +82,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public ColorSelector(EvasObject parent) : base(parent) { _changed = new SmartEvent(this, "changed", (data, obj, info) => @@ -92,6 +95,7 @@ namespace ElmSharp /// ColorChanged will be triggered when the SelectedColor is changed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ColorChanged { add { _changed.On += value; } @@ -102,6 +106,7 @@ namespace ElmSharp /// Gets or sets the color of colorselector. /// /// preview + [Obsolete("This has been deprecated in API12")] public Color SelectedColor { get @@ -122,6 +127,7 @@ namespace ElmSharp /// Gets the Alpha of a default Color class (value is -1). /// /// preview + [Obsolete("This has been deprecated in API12")] public override int Opacity { get @@ -138,6 +144,7 @@ namespace ElmSharp /// Gets or sets the Colorselector's mode. /// /// preview + [Obsolete("This has been deprecated in API12")] public ColorSelectorMode Mode { get @@ -157,6 +164,7 @@ namespace ElmSharp /// Gets or sets the current palette's name. /// /// preview + [Obsolete("This has been deprecated in API12")] public string PaletteName { get @@ -175,6 +183,7 @@ namespace ElmSharp /// The color item to add. /// A new color palette Item. /// preview + [Obsolete("This has been deprecated in API12")] public ColorSelectorItem AddPaletteColor(Color color) { ColorSelectorItem item = new ColorSelectorItem(this); @@ -186,6 +195,7 @@ namespace ElmSharp /// Clears the palette items. /// /// preview + [Obsolete("This has been deprecated in API12")] public void ClearPalette() { Interop.Elementary.elm_colorselector_palette_clear(Handle); @@ -197,6 +207,7 @@ namespace ElmSharp /// Parent EvasObject. /// Handle IntPtr. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { return Interop.Elementary.elm_colorselector_add(parent.Handle); diff --git a/src/ElmSharp/ElmSharp/ColorSelectorItem.cs b/src/ElmSharp/ElmSharp/ColorSelectorItem.cs index 87cd28a..59e5cac 100644 --- a/src/ElmSharp/ElmSharp/ColorSelectorItem.cs +++ b/src/ElmSharp/ElmSharp/ColorSelectorItem.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// An instance to the ColorSelector item gets added. /// /// preview + [Obsolete("This has been deprecated in API12")] public class ColorSelectorItem : ItemObject { internal ColorSelectorItem() : base(IntPtr.Zero) @@ -36,6 +37,7 @@ namespace ElmSharp /// Gets or sets the palette item's color. /// /// preview + [Obsolete("This has been deprecated in API12")] public Color Color { get diff --git a/src/ElmSharp/ElmSharp/Conformant.cs b/src/ElmSharp/ElmSharp/Conformant.cs index e717b4c..657ca13 100644 --- a/src/ElmSharp/ElmSharp/Conformant.cs +++ b/src/ElmSharp/ElmSharp/Conformant.cs @@ -24,6 +24,7 @@ namespace ElmSharp /// virtual keypad & softkey windows when running the illume2 module of E17. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Conformant : Widget { /// @@ -32,6 +33,7 @@ namespace ElmSharp /// The parent is a given container, which will be attached by Conformant /// as a child. It's type. /// preview + [Obsolete("This has been deprecated in API12")] public Conformant(Window parent) : base(parent) { Interop.Evas.evas_object_size_hint_weight_set(Handle, 1.0, 1.0); @@ -45,6 +47,7 @@ namespace ElmSharp /// Parent EvasObject. /// Handle IntPtr. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { return Interop.Elementary.elm_conformant_add(parent.Handle); diff --git a/src/ElmSharp/ElmSharp/Container.cs b/src/ElmSharp/ElmSharp/Container.cs index 2d1971c..5693ed0 100644 --- a/src/ElmSharp/ElmSharp/Container.cs +++ b/src/ElmSharp/ElmSharp/Container.cs @@ -26,6 +26,7 @@ namespace ElmSharp /// its widgets in a nice layout. /// /// preview + [Obsolete("This has been deprecated in API12")] public abstract class Container : Widget { HashSet _children = new HashSet(); @@ -36,6 +37,7 @@ namespace ElmSharp /// The parent is a given object, which will be attached by the Container /// as a child. It's type. /// preview + [Obsolete("This has been deprecated in API12")] protected Container(EvasObject parent) : base(parent) { } @@ -44,6 +46,7 @@ namespace ElmSharp /// Creates and initializes a new instance of the Container class. /// /// preview + [Obsolete("This has been deprecated in API12")] protected Container() { } @@ -52,6 +55,7 @@ namespace ElmSharp /// Sets the background color of a given Container. /// /// preview + [Obsolete("This has been deprecated in API12")] public override Color BackgroundColor { set @@ -72,6 +76,7 @@ namespace ElmSharp /// Gets the collection of a child EvasObject of the Container. /// /// preview + [Obsolete("This has been deprecated in API12")] protected IEnumerable Children => _children; /// @@ -79,6 +84,7 @@ namespace ElmSharp /// /// The EvasObject object to be added. /// preview + [Obsolete("This has been deprecated in API12")] protected void AddChild(EvasObject obj) { _children.Add(obj); @@ -90,6 +96,7 @@ namespace ElmSharp /// /// The EvasObject object to be removed. /// preview + [Obsolete("This has been deprecated in API12")] protected void RemoveChild(EvasObject obj) { _children.Remove(obj); @@ -99,6 +106,7 @@ namespace ElmSharp /// Clears all the children of the Container. /// /// preview + [Obsolete("This has been deprecated in API12")] protected void ClearChildren() { _children.Clear(); diff --git a/src/ElmSharp/ElmSharp/ContextPopup.cs b/src/ElmSharp/ElmSharp/ContextPopup.cs index 4d7e48d..51c61f5 100644 --- a/src/ElmSharp/ElmSharp/ContextPopup.cs +++ b/src/ElmSharp/ElmSharp/ContextPopup.cs @@ -23,6 +23,7 @@ namespace ElmSharp /// Enumeration for the ContextPopup direction types. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum ContextPopupDirection { /// @@ -52,6 +53,7 @@ namespace ElmSharp /// The ContextPopup is a widget that when shown, pops up a list of items. /// /// preview + [Obsolete("This has been deprecated in API12")] public class ContextPopup : Layout { HashSet _children = new HashSet(); @@ -64,6 +66,7 @@ namespace ElmSharp /// The parent is a given container, which will be attached by ContextPopup /// as a child. It's type. /// preview + [Obsolete("This has been deprecated in API12")] public ContextPopup(EvasObject parent) : base(parent) { _dismissed = new SmartEvent(this, this.RealHandle, "dismissed"); @@ -85,6 +88,7 @@ namespace ElmSharp /// Outside of ContextPopup is clicked or it's parent area is changed or the language is changed, and then ContextPopup is dismissed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Dismissed; /// @@ -94,6 +98,7 @@ namespace ElmSharp /// Once the ContextPopup shows up, the direction would be determined. /// /// preview + [Obsolete("This has been deprecated in API12")] public ContextPopupDirection Direction { get @@ -107,6 +112,7 @@ namespace ElmSharp /// True for horizontal mode, False for vertical mode (or errors). /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsHorizontal { get @@ -127,6 +133,7 @@ namespace ElmSharp /// Default value of AutoHide is False. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool AutoHide { get @@ -143,6 +150,7 @@ namespace ElmSharp /// Clears all the items in a given ContextPopup object. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Clear() { Interop.Elementary.elm_ctxpopup_clear(Handle); @@ -156,6 +164,7 @@ namespace ElmSharp /// 3th priority of the direction. /// 4th priority of the direction. /// preview + [Obsolete("This has been deprecated in API12")] public void SetDirectionPriorty(ContextPopupDirection first, ContextPopupDirection second, ContextPopupDirection third, ContextPopupDirection fourth) { Interop.Elementary.elm_ctxpopup_direction_priority_set(RealHandle, (int)first, (int)second, (int)third, (int)fourth); @@ -169,6 +178,7 @@ namespace ElmSharp /// 2nd priority of the direction to be returned. /// 4th priority of the direction to be returned. /// preview + [Obsolete("This has been deprecated in API12")] public void GetDirectionPriority(out ContextPopupDirection first, out ContextPopupDirection second, out ContextPopupDirection third, out ContextPopupDirection fourth) { int firstOut, secondOut, thirdOut, fourthOut; @@ -187,6 +197,7 @@ namespace ElmSharp /// A ContextPopupItem added, or null on errors. /// /// preview + [Obsolete("This has been deprecated in API12")] public ContextPopupItem Append(string label) { return Append(label, null); @@ -199,6 +210,7 @@ namespace ElmSharp /// Icon to be set on the new item. /// A ContextPopupItem added, or null on errors. /// preview + [Obsolete("This has been deprecated in API12")] public ContextPopupItem Append(string label, EvasObject icon) { ContextPopupItem item = new ContextPopupItem(label, icon, this); @@ -211,6 +223,7 @@ namespace ElmSharp /// Dismisses a ContextPopup object. The ContextPopup will be hidden and the "clicked" signal will be emitted. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Dismiss() { Interop.Elementary.elm_ctxpopup_dismiss(RealHandle); @@ -224,6 +237,7 @@ namespace ElmSharp /// Get false if you cannot put it in the direction. Get true if it's possible. /// /// preview + [Obsolete("This has been deprecated in API12")] /// [Obsolete("IsAvailableDirection is obsolete as of API6 and is no longer supported.")] public bool IsAvailableDirection(ContextPopupDirection direction) { @@ -235,6 +249,7 @@ namespace ElmSharp /// Gets the Alpha of a default Color class. /// /// preview + [Obsolete("This has been deprecated in API12")] public override int Opacity { get @@ -254,6 +269,7 @@ namespace ElmSharp /// Parent EvasObject. /// Handle IntPtr. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { return Interop.Elementary.elm_ctxpopup_add(parent.Handle); diff --git a/src/ElmSharp/ElmSharp/ContextPopupItem.cs b/src/ElmSharp/ElmSharp/ContextPopupItem.cs index 0478f05..6c4bc51 100644 --- a/src/ElmSharp/ElmSharp/ContextPopupItem.cs +++ b/src/ElmSharp/ElmSharp/ContextPopupItem.cs @@ -23,6 +23,7 @@ namespace ElmSharp /// An instance to the ContextPopup item is added. /// /// preview + [Obsolete("This has been deprecated in API12")] public class ContextPopupItem : ItemObject { internal ContextPopupItem(string text, EvasObject icon) : base(IntPtr.Zero) @@ -41,18 +42,21 @@ namespace ElmSharp /// Gets the Text property of the given ContextPopupItem. /// /// preview + [Obsolete("This has been deprecated in API12")] public string Text { get; internal set; } /// /// Gets the Icon (type is ) property of the given ContextPopupItem. /// /// preview + [Obsolete("This has been deprecated in API12")] public EvasObject Icon { get; internal set; } /// /// Selected will be triggered when the ContextPopupItem is selected. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Selected; internal void SendSelected() diff --git a/src/ElmSharp/ElmSharp/DateChangedEventArgs.cs b/src/ElmSharp/ElmSharp/DateChangedEventArgs.cs index 85d9913..4a4adae 100644 --- a/src/ElmSharp/ElmSharp/DateChangedEventArgs.cs +++ b/src/ElmSharp/ElmSharp/DateChangedEventArgs.cs @@ -24,18 +24,21 @@ namespace ElmSharp /// contain the DateChangedEventArgs as a parameter. /// /// preview + [Obsolete("This has been deprecated in API12")] public class DateChangedEventArgs : EventArgs { /// /// Gets the OldDate property of the given DateChangedEventArgs. /// /// preview + [Obsolete("This has been deprecated in API12")] public DateTime OldDate { get; private set; } /// /// Gets the NewDate property of the given DateChangedEventArgs. /// /// preview + [Obsolete("This has been deprecated in API12")] public DateTime NewDate { get; private set; } /// @@ -48,6 +51,7 @@ namespace ElmSharp /// New date when the DateChanged event or DateTimeChanged event triggered. /// /// preview + [Obsolete("This has been deprecated in API12")] public DateChangedEventArgs(DateTime oldDate, DateTime newDate) { this.OldDate = oldDate; diff --git a/src/ElmSharp/ElmSharp/DateTimeSelector.cs b/src/ElmSharp/ElmSharp/DateTimeSelector.cs index 4ba39ca..b164c47 100644 --- a/src/ElmSharp/ElmSharp/DateTimeSelector.cs +++ b/src/ElmSharp/ElmSharp/DateTimeSelector.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// Enumeration for the datetime field types for DateTimeSelector. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum DateTimeFieldType { /// @@ -57,6 +58,7 @@ namespace ElmSharp /// (Date includes Day, Month & Year) along with the defined separators and time including hour, minute & AM/PM fields. Separator for the AM/PM field is ignored. /// /// preview + [Obsolete("This has been deprecated in API12")] public class DateTimeSelector : Layout { SmartEvent _changed; @@ -68,6 +70,7 @@ namespace ElmSharp /// The parent is a given container, which will be attached by the DateTimeSelector /// as a child. It's type. /// preview + [Obsolete("This has been deprecated in API12")] public DateTimeSelector(EvasObject parent) : base(parent) { } @@ -76,6 +79,7 @@ namespace ElmSharp /// Creates and initializes a new instance of the DateTimeSelector class. /// /// preview + [Obsolete("This has been deprecated in API12")] protected DateTimeSelector() : base() { } @@ -84,6 +88,7 @@ namespace ElmSharp /// ItemSelected is raised when the DateTime field value is changed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler DateTimeChanged; /// @@ -93,6 +98,7 @@ namespace ElmSharp /// Format is a combination of the allowed LIBC date format specifiers like: "%b %d, %Y %I : %M %p". /// /// preview + [Obsolete("This has been deprecated in API12")] public string Format { get @@ -109,6 +115,7 @@ namespace ElmSharp /// Gets or sets the upper boundary of the DateTime field. /// /// preview + [Obsolete("This has been deprecated in API12")] public DateTime MaximumDateTime { get @@ -128,6 +135,7 @@ namespace ElmSharp /// Gets or sets the lower boundary of the DateTime field. /// /// preview + [Obsolete("This has been deprecated in API12")] public DateTime MinimumDateTime { get @@ -147,6 +155,7 @@ namespace ElmSharp /// Gets or sets the current value of the DateTime field. /// /// preview + [Obsolete("This has been deprecated in API12")] public DateTime DateTime { get @@ -172,6 +181,7 @@ namespace ElmSharp /// Type is bool. If visible, return true. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsFieldVisible(DateTimeFieldType type) { return Interop.Elementary.elm_datetime_field_visible_get(RealHandle, (int)type); @@ -184,6 +194,7 @@ namespace ElmSharp /// The minimum limit. /// The maximum limit. /// preview + [Obsolete("This has been deprecated in API12")] public void SetFieldLimit(DateTimeFieldType type, int minimum, int maximum) { Interop.Elementary.elm_datetime_field_limit_set(RealHandle, (int)type, minimum, maximum); @@ -195,6 +206,7 @@ namespace ElmSharp /// Enumeration for . /// When set as true, the field type is visible. /// preview + [Obsolete("This has been deprecated in API12")] public void SetFieldVisible(DateTimeFieldType type, bool visible) { Interop.Elementary.elm_datetime_field_visible_set(RealHandle, (int)type, visible); @@ -204,6 +216,7 @@ namespace ElmSharp /// The callback of the Realized event. /// /// preview + [Obsolete("This has been deprecated in API12")] protected override void OnRealized() { base.OnRealized(); @@ -222,6 +235,7 @@ namespace ElmSharp /// 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); diff --git a/src/ElmSharp/ElmSharp/DisplayedMonthChangedEventArgs.cs b/src/ElmSharp/ElmSharp/DisplayedMonthChangedEventArgs.cs index d113221..cd8893d 100644 --- a/src/ElmSharp/ElmSharp/DisplayedMonthChangedEventArgs.cs +++ b/src/ElmSharp/ElmSharp/DisplayedMonthChangedEventArgs.cs @@ -24,18 +24,21 @@ namespace ElmSharp /// DisplayedMonthChangedEventArgs as a parameter. /// /// preview + [Obsolete("This has been deprecated in API12")] public class DisplayedMonthChangedEventArgs : EventArgs { /// /// Gets the OldMonth property of the given DisplayedMonthChangedEventArgs. /// /// preview + [Obsolete("This has been deprecated in API12")] public int OldMonth { get; private set; } /// /// Gets the NewMonth property of the given DisplayedMonthChangedEventArgs. /// /// preview + [Obsolete("This has been deprecated in API12")] public int NewMonth { get; private set; } /// @@ -48,6 +51,7 @@ namespace ElmSharp /// New month of the date when the DisplayedMonthChangedEvent triggered. /// /// preview + [Obsolete("This has been deprecated in API12")] public DisplayedMonthChangedEventArgs(int oldMonth, int newMonth) { this.OldMonth = oldMonth; diff --git a/src/ElmSharp/ElmSharp/EcoreAnimator.cs b/src/ElmSharp/ElmSharp/EcoreAnimator.cs index cf0b8dc..bcd23f9 100644 --- a/src/ElmSharp/ElmSharp/EcoreAnimator.cs +++ b/src/ElmSharp/ElmSharp/EcoreAnimator.cs @@ -23,6 +23,7 @@ namespace ElmSharp /// EcoreAnimator is a helper class. It provides the functions to manage animations. /// /// preview + [Obsolete("This has been deprecated in API12")] public static class EcoreAnimator { static readonly Dictionary> _taskMap = new Dictionary>(); @@ -41,6 +42,7 @@ namespace ElmSharp /// /// Current system time /// preview + [Obsolete("This has been deprecated in API12")] public static double GetCurrentTime() { return Interop.Ecore.ecore_time_get(); @@ -52,6 +54,7 @@ namespace ElmSharp /// The function to call when it ticks off. /// A handle to the new animator. /// preview + [Obsolete("This has been deprecated in API12")] public static IntPtr AddAnimator(Func handler) { int id = RegistHandler(handler); @@ -63,6 +66,7 @@ namespace ElmSharp /// /// The specified animator handle. /// preview + [Obsolete("This has been deprecated in API12")] public static void RemoveAnimator(IntPtr anim) { int taskId = (int)Interop.Ecore.ecore_animator_del(anim); diff --git a/src/ElmSharp/ElmSharp/EcoreEvent.cs b/src/ElmSharp/ElmSharp/EcoreEvent.cs index 7dfb3d3..a96c3bb 100644 --- a/src/ElmSharp/ElmSharp/EcoreEvent.cs +++ b/src/ElmSharp/ElmSharp/EcoreEvent.cs @@ -26,52 +26,62 @@ namespace ElmSharp /// It includes some predefined instance. /// /// preview + [Obsolete("This has been deprecated in API12")] public class EcoreEventType { /// /// Key down Ecore event type. /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly EcoreEventType KeyDown = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_KEY_DOWN"); /// /// Key Up Ecore event type. /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly EcoreEventType KeyUp = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_KEY_UP"); /// /// Mouse Button Down Ecore event type. /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly EcoreEventType MouseButtonDown = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_MOUSE_BUTTON_DOWN"); /// /// Mouse Button Up Ecore event type. /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly EcoreEventType MouseButtonUp = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_MOUSE_BUTTON_UP"); /// /// Mouse Button Cancel Ecore event type. /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly EcoreEventType MouseButtonCancel = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_MOUSE_BUTTON_CANCEL"); /// /// Mouse Move Ecore event type. /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly EcoreEventType MouseMove = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_MOUSE_MOVE"); /// /// Mouse Wheel Ecore event type. /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly EcoreEventType MouseWheel = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_MOUSE_WHEEL"); /// /// Mouse In Ecore event type. /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly EcoreEventType MouseIn = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_MOUSE_IN"); /// /// Mouse Out Ecore event type. /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly EcoreEventType MouseOut = new EcoreEventType(Interop.Libraries.EcoreInput, "ECORE_EVENT_MOUSE_OUT"); private string _lib; @@ -90,6 +100,7 @@ namespace ElmSharp /// /// The value of type. /// preview + [Obsolete("This has been deprecated in API12")] public int GetValue() { if (_typeValue < 0) @@ -114,6 +125,7 @@ namespace ElmSharp /// /// Kinds of EventArgs. /// preview + [Obsolete("This has been deprecated in API12")] public class EcoreEvent : IDisposable where TEventArgs : EventArgs { /// @@ -124,6 +136,7 @@ namespace ElmSharp /// IntPtr /// /// preview + [Obsolete("This has been deprecated in API12")] public delegate TEventArgs EventInfoParser(IntPtr data, EcoreEventType type, IntPtr info); private bool _disposed = false; @@ -136,6 +149,7 @@ namespace ElmSharp /// /// EcoreEventType /// preview + [Obsolete("This has been deprecated in API12")] public EcoreEvent(EcoreEventType type) : this(type, null) { } @@ -146,6 +160,7 @@ namespace ElmSharp /// EcoreEventType /// EventInfoParser /// preview + [Obsolete("This has been deprecated in API12")] public EcoreEvent(EcoreEventType type, EventInfoParser parser) { _eventType = type; @@ -171,6 +186,7 @@ namespace ElmSharp /// On Event Handler of the EcoreEvent. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler On { add @@ -205,6 +221,7 @@ namespace ElmSharp /// otherwise false. /// /// preview + [Obsolete("This has been deprecated in API12")] protected virtual void Dispose(bool disposing) { if (!_disposed) @@ -226,6 +243,7 @@ namespace ElmSharp /// Destroys the current object. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Dispose() { Dispose(true); @@ -237,6 +255,7 @@ namespace ElmSharp /// The event class for EcoreEvent. /// /// preview + [Obsolete("This has been deprecated in API12")] public class EcoreEvent : EcoreEvent { /// @@ -244,6 +263,7 @@ namespace ElmSharp /// /// EcoreEventType /// preview + [Obsolete("This has been deprecated in API12")] public EcoreEvent(EcoreEventType type) : base(type) { } diff --git a/src/ElmSharp/ElmSharp/EcoreKeyEventArgs.cs b/src/ElmSharp/ElmSharp/EcoreKeyEventArgs.cs index 7088ca5..30bc4d5 100644 --- a/src/ElmSharp/ElmSharp/EcoreKeyEventArgs.cs +++ b/src/ElmSharp/ElmSharp/EcoreKeyEventArgs.cs @@ -26,17 +26,20 @@ namespace ElmSharp /// The EcoreKeyEventArgs is an EventArgs to record the Ecore event's key name and key code. /// /// preview + [Obsolete("This has been deprecated in API12")] public class EcoreKeyEventArgs : EventArgs { /// /// Gets the KeyName property. The return type is string. /// /// preview + [Obsolete("This has been deprecated in API12")] public string KeyName { get; private set; } /// /// Gets the KeyCode property. The return type is int. /// /// preview + [Obsolete("This has been deprecated in API12")] public int KeyCode { get; private set; } /// @@ -47,13 +50,14 @@ namespace ElmSharp /// information /// New instance of the EcoreKeyEventArgs class. /// preview + [Obsolete("This has been deprecated in API12")] public static EcoreKeyEventArgs Create(IntPtr data, EcoreEventType type, IntPtr info) { var evt = Marshal.PtrToStructure(info); return new EcoreKeyEventArgs { KeyName = evt.keyname, KeyCode = (int)evt.keycode }; } - [NativeStruct("Ecore_Event_Key", Include="Elementary.h" , PkgConfig="elementary")] + [NativeStruct("Ecore_Event_Key", Include = "Elementary.h", PkgConfig = "elementary")] [StructLayout(LayoutKind.Sequential)] struct EcoreEventKey { diff --git a/src/ElmSharp/ElmSharp/EcoreMainloop.cs b/src/ElmSharp/ElmSharp/EcoreMainloop.cs index e37ab30..6f1be47 100644 --- a/src/ElmSharp/ElmSharp/EcoreMainloop.cs +++ b/src/ElmSharp/ElmSharp/EcoreMainloop.cs @@ -23,6 +23,7 @@ namespace ElmSharp /// EcoreMainloop is a helper class, which provides the functions relative to Ecore's main loop. /// /// preview + [Obsolete("This has been deprecated in API12")] public static class EcoreMainloop { @@ -44,12 +45,14 @@ namespace ElmSharp /// /// True if the calling function is the same thread, false otherwise. /// preview + [Obsolete("This has been deprecated in API12")] public static bool IsMainThread => Interop.Eina.eina_main_loop_is(); /// /// Runs the application main loop. /// /// preview + [Obsolete("This has been deprecated in API12")] public static void Begin() { Interop.Ecore.ecore_main_loop_begin(); @@ -59,6 +62,7 @@ namespace ElmSharp /// Quits the main loop, once all the events currently on the queue have been processed. /// /// preview + [Obsolete("This has been deprecated in API12")] public static void Quit() { Interop.Ecore.ecore_main_loop_quit(); @@ -69,6 +73,7 @@ namespace ElmSharp /// /// The action to call when idle. /// preview + [Obsolete("This has been deprecated in API12")] public static void Post(Action task) { int id = RegistHandler(() => { task(); return false; }); @@ -80,6 +85,7 @@ namespace ElmSharp /// /// The action wanted to be called. /// preview + [Obsolete("This has been deprecated in API12")] public static void PostAndWakeUp(Action task) { if (IsMainThread) @@ -98,6 +104,7 @@ namespace ElmSharp /// /// The action wanted to be called. /// preview + [Obsolete("This has been deprecated in API12")] public static void Send(Action task) { int id = RegistHandler(() => { task(); return false; }); @@ -111,6 +118,7 @@ namespace ElmSharp /// The given function. /// A timer object handler on success, or null on failure. /// preview + [Obsolete("This has been deprecated in API12")] public static IntPtr AddTimer(double interval, Func handler) { int id = RegistHandler(handler); @@ -122,6 +130,7 @@ namespace ElmSharp /// /// The specified timer handler /// preview + [Obsolete("This has been deprecated in API12")] public static void RemoveTimer(IntPtr id) { int taskId = (int)Interop.Ecore.ecore_timer_del(id); diff --git a/src/ElmSharp/ElmSharp/EcoreSynchronizationContext.cs b/src/ElmSharp/ElmSharp/EcoreSynchronizationContext.cs index c0e966f..e160486 100644 --- a/src/ElmSharp/ElmSharp/EcoreSynchronizationContext.cs +++ b/src/ElmSharp/ElmSharp/EcoreSynchronizationContext.cs @@ -14,6 +14,7 @@ * limitations under the License. */ +using System; using System.Threading; namespace ElmSharp @@ -23,12 +24,14 @@ namespace ElmSharp /// Provides a synchronization context for the EFL application. /// /// preview + [Obsolete("This has been deprecated in API12")] public class EcoreSynchronizationContext : SynchronizationContext { /// /// Initializes a new instance of the EcoreSynchronizationContext class. /// /// preview + [Obsolete("This has been deprecated in API12")] public EcoreSynchronizationContext() { } @@ -43,6 +46,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public static void Initialize() { SetSynchronizationContext(new EcoreSynchronizationContext()); @@ -55,6 +59,7 @@ namespace ElmSharp /// The object passed to the delegate. /// The Post method starts an asynchronous request to post a message. /// preview + [Obsolete("This has been deprecated in API12")] public override void Post(SendOrPostCallback d, object state) { EcoreMainloop.PostAndWakeUp(() => @@ -71,6 +76,7 @@ namespace ElmSharp /// /// The Send method starts a synchronous request to send a message. /// preview + [Obsolete("This has been deprecated in API12")] public override void Send(SendOrPostCallback d, object state) { EcoreMainloop.Send(() => diff --git a/src/ElmSharp/ElmSharp/EcoreTimelineAnimator.cs b/src/ElmSharp/ElmSharp/EcoreTimelineAnimator.cs index c0e3b2b..d1a59f1 100644 --- a/src/ElmSharp/ElmSharp/EcoreTimelineAnimator.cs +++ b/src/ElmSharp/ElmSharp/EcoreTimelineAnimator.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// EcoreTimelineAnimator is a helper class, which provides the functions to manage animations. /// /// preview + [Obsolete("This has been deprecated in API12")] public class EcoreTimelineAnimator { double _runtime; @@ -34,6 +35,7 @@ namespace ElmSharp /// It occurs when the animator is complete. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Finished; /// @@ -42,6 +44,7 @@ namespace ElmSharp /// The time to run in seconds. /// Functions called at each time line. /// preview + [Obsolete("This has been deprecated in API12")] public EcoreTimelineAnimator(double runtime, Action timelineCallback) { _runtime = runtime; @@ -54,18 +57,21 @@ namespace ElmSharp /// Gets whether the animation is running. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsRunning { get; private set; } /// /// Gets the current position of the animation. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Position => _position; /// /// Starts an animator that runs for a limited time. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Start() { IsRunning = true; @@ -76,6 +82,7 @@ namespace ElmSharp /// Stops an animator that is running. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Stop() { IsRunning = false; @@ -86,6 +93,7 @@ namespace ElmSharp /// Suspends the specified animator. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Freeze() { Interop.Ecore.ecore_animator_freeze(_animator); @@ -95,6 +103,7 @@ namespace ElmSharp /// Restores execution of the specified animator. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Thaw() { Interop.Ecore.ecore_animator_thaw(_animator); @@ -104,6 +113,7 @@ namespace ElmSharp /// Callback is called when it ticks off. /// /// preview + [Obsolete("This has been deprecated in API12")] protected void OnTimeline() { _timelineCallback(); diff --git a/src/ElmSharp/ElmSharp/EdjeObject.cs b/src/ElmSharp/ElmSharp/EdjeObject.cs index 2a771aa..952826c 100644 --- a/src/ElmSharp/ElmSharp/EdjeObject.cs +++ b/src/ElmSharp/ElmSharp/EdjeObject.cs @@ -24,6 +24,7 @@ namespace ElmSharp /// The EdjeObject is a class that the evas object exists in. /// /// preview + [Obsolete("This has been deprecated in API12")] public class EdjeObject { IntPtr _edjeHandle; @@ -42,6 +43,7 @@ namespace ElmSharp /// The part's name to check for existence in object's group. /// TRUE, if the edje part exists in the object's group, otherwise FALSE. /// preview + [Obsolete("This has been deprecated in API12")] public EdjeTextPartObject this[string part] { get @@ -60,6 +62,7 @@ namespace ElmSharp /// The signal's "emission" string /// The signal's "source" string /// preview + [Obsolete("This has been deprecated in API12")] public void EmitSignal(string emission, string source) { Interop.Elementary.edje_object_signal_emit(_edjeHandle, emission, source); @@ -72,6 +75,7 @@ namespace ElmSharp /// Deleting the Color class defined in the theme file. /// The Color class to be deleted. /// preview + [Obsolete("This has been deprecated in API12")] public void DeleteColorClass(string part) { Interop.Elementary.edje_object_color_class_del(_edjeHandle, part); @@ -95,8 +99,9 @@ namespace ElmSharp /// The shadow alpha value. /// True if succeeds, otherwise False. /// preview + [Obsolete("This has been deprecated in API12")] public bool SetColorClass(string colorClass, int red, int green, int blue, int alpha, int outlineRed, int outlineGreen, int outlineBlue, int outlineAlpha, - int shadowRed, int shadowGreen, int shadowBlue, int shadowAlpha) + int shadowRed, int shadowGreen, int shadowBlue, int shadowAlpha) { return Interop.Elementary.edje_object_color_class_set(_edjeHandle, colorClass, red, green, blue, alpha, outlineRed, outlineGreen, outlineBlue, outlineAlpha, shadowRed, shadowGreen, shadowBlue, shadowAlpha); @@ -120,8 +125,9 @@ namespace ElmSharp /// The shadow alpha value. /// True if succeeds, otherwise False. /// preview + [Obsolete("This has been deprecated in API12")] public bool GetColorClass(string colorClass, out int red, out int green, out int blue, out int alpha, out int outlineRed, out int outlineGreen, out int outlineBlue, out int outlineAlpha, - out int shadowRed, out int shadowGreen, out int shadowBlue, out int shadowAlpha) + out int shadowRed, out int shadowGreen, out int shadowBlue, out int shadowAlpha) { return Interop.Elementary.edje_object_color_class_get(_edjeHandle, colorClass, out red, out green, out blue, out alpha, out outlineRed, out outlineGreen, out outlineBlue, out outlineAlpha, out shadowRed, out shadowGreen, out shadowBlue, out shadowAlpha); @@ -135,6 +141,7 @@ namespace ElmSharp /// Font size. /// True if succeeds, otherwise False. /// preview + [Obsolete("This has been deprecated in API12")] public bool SetTextClass(string textClass, string font, int fontSize) { return Interop.Elementary.edje_object_text_class_set(_edjeHandle, textClass, font, fontSize); @@ -148,6 +155,7 @@ namespace ElmSharp /// Font size. /// True if succeeds, otherwise False. /// preview + [Obsolete("This has been deprecated in API12")] public bool GetTextClass(string textClass, out string font, out int fontSize) { return Interop.Elementary.edje_object_text_class_get(_edjeHandle, textClass, out font, out fontSize); @@ -160,6 +168,7 @@ namespace ElmSharp /// The signal's "source" string. /// The action to be executed when the signal is emitted. /// preview + [Obsolete("This has been deprecated in API12")] public void AddSignalAction(string emission, string source, Action action) { if (emission != null && source != null && action != null) @@ -185,6 +194,7 @@ namespace ElmSharp /// The signal's "source" string. /// The action to be executed when the signal is emitted. /// preview + [Obsolete("This has been deprecated in API12")] public void DeleteSignalAction(string emission, string source, Action action) { if (emission != null && source != null && action != null) @@ -221,7 +231,8 @@ namespace ElmSharp return Equals(other as SignalData); } - public bool Equals(SignalData other) { + public bool Equals(SignalData other) + { if (other == null) { return false; @@ -243,6 +254,7 @@ namespace ElmSharp /// The EdjeTextPartObject is a class dealing with parts of type text. /// /// preview + [Obsolete("This has been deprecated in API12")] public class EdjeTextPartObject { string _part; @@ -258,12 +270,14 @@ namespace ElmSharp /// Gets the name of the EdjeTextPartObject. /// /// preview + [Obsolete("This has been deprecated in API12")] public string Name { get { return _part; } } /// /// Gets or sets the text for an object part. /// /// preview + [Obsolete("This has been deprecated in API12")] public string Text { get @@ -280,6 +294,7 @@ namespace ElmSharp /// Sets or gets the style of the object part. /// /// preview + [Obsolete("This has been deprecated in API12")] public string TextStyle { get @@ -303,6 +318,7 @@ namespace ElmSharp /// Gets the geometry of a given edje part, in a given edje object's group definition, relative to the object's area. /// /// preview + [Obsolete("This has been deprecated in API12")] public Rect Geometry { get @@ -317,6 +333,7 @@ namespace ElmSharp /// Gets the native width and height. /// /// preview + [Obsolete("This has been deprecated in API12")] public Size TextBlockNativeSize { get @@ -333,6 +350,7 @@ namespace ElmSharp /// Gets the formatted width and height. /// /// preview + [Obsolete("This has been deprecated in API12")] public Size TextBlockFormattedSize { get diff --git a/src/ElmSharp/ElmSharp/EffectBase.cs b/src/ElmSharp/ElmSharp/EffectBase.cs index 8194aec..68db7fc 100644 --- a/src/ElmSharp/ElmSharp/EffectBase.cs +++ b/src/ElmSharp/ElmSharp/EffectBase.cs @@ -22,12 +22,14 @@ namespace ElmSharp /// The EffectBase class for TransitEffect. /// /// preview + [Obsolete("This has been deprecated in API12")] public abstract class EffectBase { /// /// EffectEnded event will be triggered when the effect has ended. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler EffectEnded; internal abstract IntPtr CreateEffect(IntPtr transit); diff --git a/src/ElmSharp/ElmSharp/Elementary.cs b/src/ElmSharp/ElmSharp/Elementary.cs index 5f8faf5..7f0de15 100644 --- a/src/ElmSharp/ElmSharp/Elementary.cs +++ b/src/ElmSharp/ElmSharp/Elementary.cs @@ -24,6 +24,7 @@ namespace ElmSharp /// Focus Autoscroll mode. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum FocusAutoScrollMode { /// @@ -46,6 +47,7 @@ namespace ElmSharp /// The Elementary is a general elementary, a VERY SIMPLE toolkit. /// /// preview + [Obsolete("This has been deprecated in API12")] public static class Elementary { private const string _themeFilePath = "/usr/share/elm-sharp/elm-sharp-theme.edj"; @@ -55,12 +57,14 @@ namespace ElmSharp /// EvasObjectRealized will be triggered when the EvasObject is realized. /// /// preview + [Obsolete("This has been deprecated in API12")] public static event EventHandler EvasObjectRealized; /// /// ItemObjectRealized will be triggered when the ItemObject is realized. /// /// preview + [Obsolete("This has been deprecated in API12")] public static event EventHandler ItemObjectRealized; internal static void SendEvasObjectRealized(EvasObject obj) @@ -77,6 +81,7 @@ namespace ElmSharp /// Gets or sets the configured finger size. /// /// preview + [Obsolete("This has been deprecated in API12")] public static int FingerSize { get @@ -93,6 +98,7 @@ namespace ElmSharp /// Gets or sets the enable status of the focus highlight animation. /// /// preview + [Obsolete("This has been deprecated in API12")] public static bool IsFocusHighlightAnimation { get @@ -110,6 +116,7 @@ namespace ElmSharp /// This determines the default mirrored mode of widgets. /// /// preview + [Obsolete("This has been deprecated in API12")] public static bool IsMirrored { get @@ -126,6 +133,7 @@ namespace ElmSharp /// Gets or sets the enable status of the focus highlight. /// /// preview + [Obsolete("This has been deprecated in API12")] public static bool CanFocusHighlight { get @@ -142,6 +150,7 @@ namespace ElmSharp /// Gets or sets the base scale of the application. /// /// preview + [Obsolete("This has been deprecated in API12")] public static double AppBaseScale { get @@ -158,6 +167,7 @@ namespace ElmSharp /// Gets or sets the global scaling factor. /// /// preview + [Obsolete("This has been deprecated in API12")] public static double Scale { get @@ -174,6 +184,7 @@ namespace ElmSharp /// Gets or sets the amount of inertia, a scroller imposes during a region to bring animations. /// /// preview + [Obsolete("This has been deprecated in API12")] public static double BringInScrollFriction { get @@ -190,6 +201,7 @@ namespace ElmSharp /// Gets or sets the focus on autoscroll mode. /// /// preview + [Obsolete("This has been deprecated in API12")] public static FocusAutoScrollMode FocusAutoScrollMode { get @@ -206,6 +218,7 @@ namespace ElmSharp /// Initializes Elementary. /// /// preview + [Obsolete("This has been deprecated in API12")] public static void Initialize() { if (!Window.IsPreloaded) @@ -216,6 +229,7 @@ namespace ElmSharp /// Shuts down Elementary. /// /// preview + [Obsolete("This has been deprecated in API12")] public static void Shutdown() { Interop.Elementary.elm_shutdown(); @@ -225,6 +239,7 @@ namespace ElmSharp /// Runs the elementary's main loop. /// /// preview + [Obsolete("This has been deprecated in API12")] public static void Run() { Interop.Elementary.elm_run(); @@ -234,6 +249,7 @@ namespace ElmSharp /// Prepends a theme overlay to the list of overlays. /// /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public static void ThemeOverlay() { @@ -252,6 +268,7 @@ namespace ElmSharp /// /// The edje file path to be used. /// preview + [Obsolete("This has been deprecated in API12")] public static void AddThemeOverlay(string filePath) { Interop.Elementary.elm_theme_overlay_add(IntPtr.Zero, filePath); @@ -262,6 +279,7 @@ namespace ElmSharp /// /// The name of the theme overlay. /// preview + [Obsolete("This has been deprecated in API12")] public static void DeleteThemeOverlay(string filePath) { Interop.Elementary.elm_theme_overlay_del(IntPtr.Zero, filePath); @@ -271,6 +289,7 @@ namespace ElmSharp /// Frees a theme. /// /// preview + [Obsolete("This has been deprecated in API12")] public static void FreeTheme() { Interop.Elementary.elm_theme_free(IntPtr.Zero); @@ -282,6 +301,7 @@ namespace ElmSharp /// Theme search string. /// This sets the search string for the theme in path-notation from the first theme to search, to last, delimited by the : character. For example, "shiny:/path/to/file.edj:default". /// preview + [Obsolete("This has been deprecated in API12")] public static void SetTheme(string theme) { Interop.Elementary.elm_theme_set(IntPtr.Zero, theme); @@ -291,6 +311,7 @@ namespace ElmSharp /// Flushes the current theme. /// /// preview + [Obsolete("This has been deprecated in API12")] public static void FlushTheme() { Interop.Elementary.elm_theme_flush(IntPtr.Zero); @@ -300,6 +321,7 @@ namespace ElmSharp /// This flushes all the themes (default and specific ones). /// /// preview + [Obsolete("This has been deprecated in API12")] public static void FlushAllThemes() { Interop.Elementary.elm_theme_full_flush(); @@ -310,6 +332,7 @@ namespace ElmSharp /// /// The name of the theme extension. /// preview + [Obsolete("This has been deprecated in API12")] public static void DeleteThemeExtention(string item) { Interop.Elementary.elm_theme_extension_del(IntPtr.Zero, item); @@ -319,6 +342,7 @@ namespace ElmSharp /// Gets the amount of inertia that a scroller imposes during region to bring animations. /// /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public static double GetSystemScrollFriction() { @@ -329,6 +353,7 @@ namespace ElmSharp /// Sets the amount of inertia that a scroller imposes during the region bring animations. /// /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public static void SetSystemScrollFriction(double timeSet) @@ -340,6 +365,7 @@ namespace ElmSharp /// Gets the elementary's profile in use. /// /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public static string GetProfile() { @@ -350,6 +376,7 @@ namespace ElmSharp /// Sets the global scaling factor. /// /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public static void SetScale(double scale) { @@ -360,6 +387,7 @@ namespace ElmSharp /// Gets the global scaling factor. /// /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public static double GetScale() { @@ -381,6 +409,7 @@ namespace ElmSharp /// Frees all data that was in cache and is not currently being used, to reduce memory usage. This frees Edje's, Evas', and Eet's cache. /// /// preview + [Obsolete("This has been deprecated in API12")] public static void FlushAllCache() { Interop.Elementary.elm_cache_all_flush(); @@ -391,6 +420,7 @@ namespace ElmSharp /// /// The language to set must be the full name of the locale. /// preview + [Obsolete("This has been deprecated in API12")] public static void SetLanguage(string language) { Interop.Elementary.elm_language_set(language); @@ -403,6 +433,7 @@ namespace ElmSharp /// The policy value, which depends on the identifier. /// /// preview + [Obsolete("This has been deprecated in API12")] public static bool SetPolicy(uint policy, int value) { return Interop.Elementary.elm_policy_set(policy, value); @@ -412,6 +443,7 @@ namespace ElmSharp /// Reloads the elementary's configuration, bounded to the current selected profile. /// /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public static void ReloadConfig() { @@ -422,6 +454,7 @@ namespace ElmSharp /// Flushes all the configuration settings, and then applies those settings to all applications using elementary on the current display. /// /// preview + [Obsolete("This has been deprecated in API12")] public static void FlushAllConfig() { Interop.Elementary.elm_config_all_flush(); diff --git a/src/ElmSharp/ElmSharp/ElmScrollConfig.cs b/src/ElmSharp/ElmSharp/ElmScrollConfig.cs index e8e7c45..9db5ba9 100644 --- a/src/ElmSharp/ElmSharp/ElmScrollConfig.cs +++ b/src/ElmSharp/ElmSharp/ElmScrollConfig.cs @@ -23,12 +23,14 @@ namespace ElmSharp /// The ElmScrollConfig is a scrollable views's configuration. /// /// preview + [Obsolete("This has been deprecated in API12")] public static class ElmScrollConfig { /// /// Gets or sets the amount of inertia that a scroller imposes during the region to bring animations. /// /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public static double BringInScrollFriction { diff --git a/src/ElmSharp/ElmSharp/Entry.cs b/src/ElmSharp/ElmSharp/Entry.cs index 02abd36..1114ce5 100644 --- a/src/ElmSharp/ElmSharp/Entry.cs +++ b/src/ElmSharp/ElmSharp/Entry.cs @@ -24,6 +24,7 @@ namespace ElmSharp /// Enumeration for describing the InputPanel layout types. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum InputPanelLayout { /// @@ -101,6 +102,7 @@ namespace ElmSharp /// Enumeration for defining the "Return" key types on the input panel (virtual keyboard). /// /// preview + [Obsolete("This has been deprecated in API12")] public enum InputPanelReturnKeyType { /// @@ -153,6 +155,7 @@ namespace ElmSharp /// Enumeration for defining the autocapitalization types. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum AutoCapital { /// @@ -180,6 +183,7 @@ namespace ElmSharp /// Enumeration for defining the entry's copy and paste policy. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum CopyAndPasteMode { /// @@ -202,6 +206,7 @@ namespace ElmSharp /// Enumeration for the text format types. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum TextFormat { /// @@ -219,6 +224,7 @@ namespace ElmSharp /// Enumeration that defines the types of Input Hints. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum InputHints { /// @@ -241,6 +247,7 @@ namespace ElmSharp /// Enumeration for defining the input panel (virtual keyboard) language modes. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum InputPanelLanguage { /// @@ -258,6 +265,7 @@ namespace ElmSharp /// The Entry is a convenience widget that shows a box in which the user can enter text. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Entry : Layout { SmartEvent _clicked; @@ -273,6 +281,7 @@ namespace ElmSharp /// /// The EvasObject to which the new Entry will be attached as a child. /// preview + [Obsolete("This has been deprecated in API12")] public Entry(EvasObject parent) : base(parent) { _clicked = new SmartEvent(this, this.RealHandle, "clicked"); @@ -292,30 +301,35 @@ namespace ElmSharp /// Activated will be triggered when the entry is activated. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Activated; /// /// Clicked will be triggered when the entry is clicked. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Clicked; /// /// ChangedByUser will be triggered when the entry is changed by user. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ChangedByUser; /// /// CursorChanged will be triggered when the cursor in the entry is changed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler CursorChanged; /// /// Sets or gets the entry to the single line mode. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsSingleLine { get @@ -332,6 +346,7 @@ namespace ElmSharp /// Sets or gets the entry to the password mode. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsPassword { get @@ -348,6 +363,7 @@ namespace ElmSharp /// Sets or gets whether the entry is editable. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsEditable { get @@ -364,6 +380,7 @@ namespace ElmSharp /// Sets or gets whether the entry is empty. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsEmpty { get @@ -376,6 +393,7 @@ namespace ElmSharp /// Sets or gets the text currently shown in the object entry. /// /// preview + [Obsolete("This has been deprecated in API12")] public override string Text { get @@ -393,6 +411,7 @@ namespace ElmSharp /// /// If there are styles in the user style stack, the properties in the top style of the user style stack will replace the properties in current theme. The input style is specified in the format, tag='property=value' (i.e., DEFAULT='font=Sans font_size=60'hilight=' + font_weight=Bold'). /// preview + [Obsolete("This has been deprecated in API12")] public string TextStyle { get @@ -409,6 +428,7 @@ namespace ElmSharp /// Sets or gets the current position of the cursor in the entry. /// /// preview + [Obsolete("This has been deprecated in API12")] public int CursorPosition { get @@ -425,6 +445,7 @@ namespace ElmSharp /// Sets or gets the scrollable state of the entry. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool Scrollable { get @@ -448,6 +469,7 @@ namespace ElmSharp /// Sets or gets the autocapitalization type on the immodule. /// /// preview + [Obsolete("This has been deprecated in API12")] public AutoCapital AutoCapital { get @@ -464,6 +486,7 @@ namespace ElmSharp /// Sets or gets the entry object's 'autosave' status. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsAutoSave { get @@ -480,6 +503,7 @@ namespace ElmSharp /// Sets or gets the entry text paste/drop mode. /// /// preview + [Obsolete("This has been deprecated in API12")] public CopyAndPasteMode CopyAndPasteMode { get @@ -496,6 +520,7 @@ namespace ElmSharp /// Gets the geometry of the cursor. /// /// preview + [Obsolete("This has been deprecated in API12")] public Rect CursorGeometry { get @@ -510,6 +535,7 @@ namespace ElmSharp /// Gets whether a format node exists at the current cursor position. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsCursorFormat { get @@ -522,6 +548,7 @@ namespace ElmSharp /// Gets if the current cursor position holds a visible format node. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsCursorVisibelFormat { get @@ -534,6 +561,7 @@ namespace ElmSharp /// Sets or gets the value of the input hint. /// /// preview + [Obsolete("This has been deprecated in API12")] public InputHints InputHint { get @@ -550,6 +578,7 @@ namespace ElmSharp /// Sets or gets the language mode of the input panel. /// /// preview + [Obsolete("This has been deprecated in API12")] public InputPanelLanguage InputPanelLanguage { get @@ -566,6 +595,7 @@ namespace ElmSharp /// Sets or gets the input panel layout variation of the entry. /// /// preview + [Obsolete("This has been deprecated in API12")] public int InputPanelVariation { get @@ -582,6 +612,7 @@ namespace ElmSharp /// Sets or gets the line wrap type to use on multiline entries. /// /// preview + [Obsolete("This has been deprecated in API12")] public WrapType LineWrapType { get @@ -598,6 +629,7 @@ namespace ElmSharp /// Sets or gets whether the entry should allow to use the text prediction. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool PredictionAllowed { get @@ -614,6 +646,7 @@ namespace ElmSharp /// Sets or gets whether the return key on the input panel should be disabled or not. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool InputPanelReturnKeyDisabled { get @@ -632,6 +665,7 @@ namespace ElmSharp /// If true, the input panel will be shown only in case of the Mouse up event (Focus event will be ignored). /// /// preview + [Obsolete("This has been deprecated in API12")] public bool InputPanelShowByOnDemand { get @@ -650,6 +684,7 @@ namespace ElmSharp /// The path to the file to load and save. /// The file format. /// preview + [Obsolete("This has been deprecated in API12")] public void SetFile(string file, TextFormat textFormat) { Interop.Elementary.elm_entry_file_set(RealHandle, file, (Interop.Elementary.TextFormat)textFormat); @@ -661,6 +696,7 @@ namespace ElmSharp /// The string (in markup) to be converted. /// The converted string (in UTF-8). /// preview + [Obsolete("This has been deprecated in API12")] public static string ConvertMarkupToUtf8(string markup) { return Interop.Elementary.elm_entry_markup_to_utf8(markup); @@ -671,6 +707,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public bool MoveCursorNext() { return Interop.Elementary.elm_entry_cursor_next(RealHandle); @@ -681,6 +718,7 @@ namespace ElmSharp /// /// TRUE on success, otherwise FALSE on failure. /// preview + [Obsolete("This has been deprecated in API12")] public bool MoveCursorPrev() { return Interop.Elementary.elm_entry_cursor_prev(RealHandle); @@ -691,6 +729,7 @@ namespace ElmSharp /// /// TRUE on success, otherwise FALSE on failure. /// preview + [Obsolete("This has been deprecated in API12")] public bool MoveCursorUp() { return Interop.Elementary.elm_entry_cursor_up(RealHandle); @@ -701,6 +740,7 @@ namespace ElmSharp /// /// TRUE on success, otherwise FALSE on failure. /// preview + [Obsolete("This has been deprecated in API12")] public bool MoveCursorDown() { return Interop.Elementary.elm_entry_cursor_down(RealHandle); @@ -710,6 +750,7 @@ namespace ElmSharp /// Moves the cursor to the beginning of the entry. /// /// preview + [Obsolete("This has been deprecated in API12")] public void MoveCursorBegin() { Interop.Elementary.elm_entry_cursor_begin_set(RealHandle); @@ -719,6 +760,7 @@ namespace ElmSharp /// Moves the cursor to the end of the entry. /// /// preview + [Obsolete("This has been deprecated in API12")] public void MoveCursorEnd() { Interop.Elementary.elm_entry_cursor_end_set(RealHandle); @@ -728,6 +770,7 @@ namespace ElmSharp /// Moves the cursor to the beginning of the current line. /// /// preview + [Obsolete("This has been deprecated in API12")] public void MoveCursorLineBegin() { Interop.Elementary.elm_entry_cursor_line_begin_set(RealHandle); @@ -737,6 +780,7 @@ namespace ElmSharp /// Moves the cursor to the end of the current line. /// /// preview + [Obsolete("This has been deprecated in API12")] public void MoveCursorLineEnd() { Interop.Elementary.elm_entry_cursor_line_end_set(RealHandle); @@ -747,6 +791,7 @@ namespace ElmSharp /// /// The layout type. /// preview + [Obsolete("This has been deprecated in API12")] public void SetInputPanelLayout(InputPanelLayout layout) { Interop.Elementary.elm_entry_input_panel_layout_set(RealHandle, (Interop.Elementary.InputPanelLayout)layout); @@ -757,6 +802,7 @@ namespace ElmSharp /// /// If true, the input panel appears when the entry is clicked or has focus, otherwise false. /// preview + [Obsolete("This has been deprecated in API12")] public void SetInputPanelEnabled(bool enabled) { Interop.Elementary.elm_entry_input_panel_enabled_set(RealHandle, enabled); @@ -767,6 +813,7 @@ namespace ElmSharp /// /// The type of "return" key on the input panel. /// preview + [Obsolete("This has been deprecated in API12")] public void SetInputPanelReturnKeyType(InputPanelReturnKeyType keyType) { Interop.Elementary.elm_entry_input_panel_return_key_type_set(RealHandle, (Interop.Elementary.ReturnKeyType)keyType); @@ -780,6 +827,7 @@ namespace ElmSharp /// This API can be used in case of manually controlling by using SetInputPanelEnabled(false). /// /// preview + [Obsolete("This has been deprecated in API12")] public void HideInputPanel() { Interop.Elementary.elm_entry_input_panel_hide(RealHandle); @@ -789,6 +837,7 @@ namespace ElmSharp /// Selects all the text within the entry. /// /// preview + [Obsolete("This has been deprecated in API12")] public void SelectAll() { Interop.Elementary.elm_entry_select_all(RealHandle); @@ -798,6 +847,7 @@ namespace ElmSharp /// Drops any existing text selection within the entry. /// /// preview + [Obsolete("This has been deprecated in API12")] public void SelectNone() { Interop.Elementary.elm_entry_select_none(RealHandle); @@ -807,6 +857,7 @@ namespace ElmSharp /// Forces calculation of the entry size and text layout. /// /// preview + [Obsolete("This has been deprecated in API12")] public void ForceCalculation() { Interop.Elementary.elm_entry_calc_force(RealHandle); @@ -817,6 +868,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public string GetCursorContent() { return Interop.Elementary.elm_entry_cursor_content_get(RealHandle); @@ -826,6 +878,7 @@ namespace ElmSharp /// Begins a selection within the entry, as though the user was holding down the mouse button to make a selection. /// /// preview + [Obsolete("This has been deprecated in API12")] public void BeginCursorSelection() { Interop.Elementary.elm_entry_cursor_selection_begin(RealHandle); @@ -836,6 +889,7 @@ namespace ElmSharp /// /// The text to be displayed. /// preview + [Obsolete("This has been deprecated in API12")] public void AppendText(string text) { Interop.Elementary.elm_entry_entry_append(RealHandle, text); @@ -849,6 +903,7 @@ namespace ElmSharp /// ScrollBarVisiblePolicy.Visible turns it on all the time, and ScrollBarVisiblePolicy.Invisible always keeps it off. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual ScrollBarVisiblePolicy HorizontalScrollBarVisiblePolicy { get @@ -872,6 +927,7 @@ namespace ElmSharp /// ScrollBarVisiblePolicy.Visible turns it on all the time, and ScrollBarVisiblePolicy.Invisible always keeps it off. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual ScrollBarVisiblePolicy VerticalScrollBarVisiblePolicy { get @@ -895,6 +951,7 @@ namespace ElmSharp /// This API will be set if it is enabled for the given axis with boolean parameters for each axis. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool VerticalBounce { get @@ -918,6 +975,7 @@ namespace ElmSharp /// This API will be set if it is enabled for the given axis with boolean parameters for each axis. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool HorizontalBounce { get @@ -938,6 +996,7 @@ namespace ElmSharp /// /// The text to be inserted. /// preview + [Obsolete("This has been deprecated in API12")] public void InsertTextToCursor(string text) { Interop.Elementary.elm_entry_entry_insert(RealHandle, text); @@ -947,6 +1006,7 @@ namespace ElmSharp /// Ends a selection within the entry as though the user had just released the mouse button while making a selection. /// /// preview + [Obsolete("This has been deprecated in API12")] public void EndCursorSelection() { Interop.Elementary.elm_entry_cursor_selection_end(RealHandle); @@ -956,6 +1016,7 @@ namespace ElmSharp /// Writes any changes made to the file that is set by a file. /// /// preview + [Obsolete("This has been deprecated in API12")] public void SaveFile() { Interop.Elementary.elm_entry_file_save(RealHandle); @@ -969,6 +1030,7 @@ namespace ElmSharp /// This API can be used in the case of manual control by using the SetInputPanelEnabled(false). /// /// preview + [Obsolete("This has been deprecated in API12")] public void ShowInputPanel() { Interop.Elementary.elm_entry_input_panel_show(RealHandle); @@ -979,6 +1041,7 @@ namespace ElmSharp /// /// This function is used to provide items. /// preview + [Obsolete("This has been deprecated in API12")] public void AppendItemProvider(Func func) { if (func != null) @@ -1002,6 +1065,7 @@ namespace ElmSharp /// /// This function is used to provide items. /// preview + [Obsolete("This has been deprecated in API12")] public void PrependItemProvider(Func func) { if (!_itemsProvider.ContainsKey(func)) @@ -1022,6 +1086,7 @@ namespace ElmSharp /// /// This function is used to provide items. /// preview + [Obsolete("This has been deprecated in API12")] public void RemoveItemProvider(Func func) { if (_itemsProvider.ContainsKey(func)) @@ -1039,6 +1104,7 @@ namespace ElmSharp /// /// This function type is used by entry filters to modify text. /// preview + [Obsolete("This has been deprecated in API12")] public void AppendMarkUpFilter(Func filter) { if (!_textFilters.ContainsKey(filter)) @@ -1065,6 +1131,7 @@ namespace ElmSharp /// /// This function type is used by entry filters to modify text. /// preview + [Obsolete("This has been deprecated in API12")] public void PrependMarkUpFilter(Func filter) { if (!_textFilters.ContainsKey(filter)) @@ -1091,6 +1158,7 @@ namespace ElmSharp /// /// This function type is used by entry filters to modify text. /// preview + [Obsolete("This has been deprecated in API12")] public void RemoveMarkUpFilter(Func filter) { if (_textFilters.ContainsKey(filter)) @@ -1107,6 +1175,7 @@ namespace ElmSharp /// This executes a "copy" action on the selected text in the entry. /// /// preview + [Obsolete("This has been deprecated in API12")] public void CopySelection() { Interop.Elementary.elm_entry_selection_copy(RealHandle); @@ -1116,6 +1185,7 @@ namespace ElmSharp /// This executes a "cut" action on the selected text in the entry. /// /// preview + [Obsolete("This has been deprecated in API12")] public void CutSelection() { Interop.Elementary.elm_entry_selection_cut(RealHandle); @@ -1125,6 +1195,7 @@ namespace ElmSharp /// This executes a "paste" action in the entry. /// /// preview + [Obsolete("This has been deprecated in API12")] public void PasteSelection() { Interop.Elementary.elm_entry_selection_paste(RealHandle); @@ -1136,6 +1207,7 @@ namespace ElmSharp /// /// If true, the selection handlers are disabled. /// preview + [Obsolete("This has been deprecated in API12")] public void DisableSelection(bool disable) { Interop.Elementary.elm_entry_selection_handler_disabled_set(RealHandle, disable); @@ -1146,6 +1218,7 @@ namespace ElmSharp /// /// Selection's value. /// preview + [Obsolete("This has been deprecated in API12")] public string GetSelection() { return Interop.Elementary.elm_entry_selection_get(RealHandle); @@ -1157,6 +1230,7 @@ namespace ElmSharp /// The start position. /// The end position. /// preview + [Obsolete("This has been deprecated in API12")] public void SetSelectionRegion(int start, int end) { Interop.Elementary.elm_entry_select_region_set(RealHandle, start, end); @@ -1167,6 +1241,7 @@ namespace ElmSharp /// /// true if the object should be displayed, otherwise false. /// preview + [Obsolete("This has been deprecated in API12")] public void SetIconVisible(bool isDisplay) { Interop.Elementary.elm_entry_icon_visible_set(RealHandle, isDisplay); @@ -1177,6 +1252,7 @@ namespace ElmSharp /// /// If enabled is true, the return key is automatically disabled when the entry has no text. /// preview + [Obsolete("This has been deprecated in API12")] public void SetInputPanelReturnKeyAutoEnable(bool enable) { Interop.Elementary.elm_entry_input_panel_return_key_autoenabled_set(RealHandle, enable); @@ -1188,6 +1264,7 @@ namespace ElmSharp /// Parent EvasObject. /// Handle IntPtr. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { return Interop.Elementary.elm_entry_add(parent.Handle); diff --git a/src/ElmSharp/ElmSharp/EvasCanvas.cs b/src/ElmSharp/ElmSharp/EvasCanvas.cs index 8136656..c45b9e5 100644 --- a/src/ElmSharp/ElmSharp/EvasCanvas.cs +++ b/src/ElmSharp/ElmSharp/EvasCanvas.cs @@ -30,6 +30,7 @@ namespace ElmSharp /// The groups within, present you functions that deal with the canvas directly too, and not yet with its objects. They are the functions you need to use at a minimum to get a working canvas. /// /// preview + [Obsolete("This has been deprecated in API12")] public class EvasCanvas { IntPtr _handle = IntPtr.Zero; @@ -45,6 +46,7 @@ namespace ElmSharp /// This function returns the current known canvas unit coordinates of the mouse pointer. /// /// preview + [Obsolete("This has been deprecated in API12")] public Point Pointer { get @@ -60,6 +62,7 @@ namespace ElmSharp /// This function returns the image cache size of the canvas in bytes. /// /// preview + [Obsolete("This has been deprecated in API12")] public int ImageCacheSize { get @@ -76,6 +79,7 @@ namespace ElmSharp /// Flushes the image cache of the canvas. /// /// preview + [Obsolete("This has been deprecated in API12")] public void FlushImageCache() { Interop.Evas.evas_image_cache_flush(_handle); @@ -89,6 +93,7 @@ namespace ElmSharp /// The rectangle's width. /// The rectangle's height. /// preview + [Obsolete("This has been deprecated in API12")] public void AddDamageRectangle(int x, int y, int width, int height) { Interop.Evas.evas_damage_rectangle_add(_handle, x, y, width, height); @@ -102,6 +107,7 @@ namespace ElmSharp /// The rectangle's width. /// The rectangle's height. /// preview + [Obsolete("This has been deprecated in API12")] public void AddObscuredRectangle(int x, int y, int width, int height) { Interop.Evas.evas_obscured_rectangle_add(_handle, x, y, width, height); @@ -111,6 +117,7 @@ namespace ElmSharp /// Removes all the "obscured regions" from an Evas canvas. /// /// preview + [Obsolete("This has been deprecated in API12")] public void ClearObscuredRectangle() { Interop.Evas.evas_obscured_clear(_handle); @@ -122,6 +129,7 @@ namespace ElmSharp /// The type of event that triggers. /// The action to be called when the event is triggered. /// preview + [Obsolete("This has been deprecated in API12")] public void AddEventAction(EvasObjectCallbackType type, Action action) { if (action != null) @@ -143,6 +151,7 @@ namespace ElmSharp /// The type of event that triggers. /// The action to be called when the event is triggered /// preview + [Obsolete("This has been deprecated in API12")] public void DeleteEventAction(EvasObjectCallbackType type, Action action) { if (action != null) diff --git a/src/ElmSharp/ElmSharp/EvasImage.cs b/src/ElmSharp/ElmSharp/EvasImage.cs index cee4b90..ba8aad2 100644 --- a/src/ElmSharp/ElmSharp/EvasImage.cs +++ b/src/ElmSharp/ElmSharp/EvasImage.cs @@ -26,6 +26,7 @@ namespace ElmSharp /// This group provides the functions for image objects. /// /// preview + [Obsolete("This has been deprecated in API12")] public class EvasImage : EvasObject { EvasObject _source = null; @@ -36,6 +37,7 @@ namespace ElmSharp /// /// The parent is a given container, which will be attached by EvasImage as a child. It's type. /// preview + [Obsolete("This has been deprecated in API12")] public EvasImage(EvasObject parent) : base(parent) { } @@ -50,6 +52,7 @@ namespace ElmSharp /// Sets or gets the source file from where an image object must fetch the real image data. /// /// preview + [Obsolete("This has been deprecated in API12")] public string File { get @@ -68,6 +71,7 @@ namespace ElmSharp /// Sets or gets the source object to be visible. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsSourceVisible { get @@ -84,6 +88,7 @@ namespace ElmSharp /// Sets or gets whether an object is clipped by the source object's clipper. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsSourceClipped { get @@ -105,6 +110,7 @@ namespace ElmSharp /// Very useful for frames and decorations. /// /// preview + [Obsolete("This has been deprecated in API12")] public ImageBorderFillMode BorderCenterFillMode { get @@ -121,6 +127,7 @@ namespace ElmSharp /// Sets or gets whether the image object's fill property should track the object's size. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsFilled { get @@ -137,6 +144,7 @@ namespace ElmSharp /// Sets or gets the scaling factor (multiplier) for the borders of the image object. /// /// preview + [Obsolete("This has been deprecated in API12")] public double BorderScale { get @@ -153,6 +161,7 @@ namespace ElmSharp /// Sets or gets the size of the given image object. /// /// preview + [Obsolete("This has been deprecated in API12")] public Size Size { get @@ -171,6 +180,7 @@ namespace ElmSharp /// Gets the row stride of the given image object. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Stride { get @@ -183,6 +193,7 @@ namespace ElmSharp /// Sets or gets whether the alpha channel data is being used on the given image object. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsOpaque { get @@ -199,6 +210,7 @@ namespace ElmSharp /// Sets or gets whether to use a high-quality image scaling algorithm on the given image object. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsSmoothScaled { get @@ -216,6 +228,7 @@ namespace ElmSharp /// /// The rectangle of the given image object that the image will be drawn to. /// preview + [Obsolete("This has been deprecated in API12")] public void SetFill(Rect geometry) { Interop.Evas.evas_object_image_fill_set(RealHandle, geometry.X, geometry.Y, geometry.Width, geometry.Height); @@ -227,6 +240,7 @@ namespace ElmSharp /// The image file path. /// The image key in file (if its an Eet one), otherwise set null. /// preview + [Obsolete("This has been deprecated in API12")] public void SetFile(string file, string key) { Interop.Evas.evas_object_image_file_set(RealHandle, file, key); @@ -237,6 +251,7 @@ namespace ElmSharp /// /// memory stream /// preview + [Obsolete("This has been deprecated in API12")] public void SetStream(Stream stream) { if (stream == null) @@ -261,6 +276,7 @@ namespace ElmSharp /// The proxy (image) object. /// true if the source object is set successfully, otherwise false on error. /// preview + [Obsolete("This has been deprecated in API12")] public bool SetSource(EvasObject source) { bool result = false; @@ -276,6 +292,7 @@ namespace ElmSharp /// /// The surface. /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public void SetNativeSurface(IntPtr surface) { @@ -290,6 +307,7 @@ namespace ElmSharp /// The border's top width. /// The border's bottom width. /// preview + [Obsolete("This has been deprecated in API12")] public void SetBorder(int left, int right, int top, int bottom) { Interop.Evas.evas_object_image_border_set(RealHandle, left, right, top, bottom); @@ -305,6 +323,7 @@ namespace ElmSharp /// The filename to be used to save the image (extension obligatory). /// The image key in the file (if an Eet one), or null, otherwise. /// String containing the flags to be used (null for none). + [Obsolete("This has been deprecated in API12")] public void Save(string file, string key, string flags) { Interop.Evas.evas_object_image_save(RealHandle, file, key, flags); @@ -316,6 +335,7 @@ namespace ElmSharp /// The parent is a given container, which will be attached by the image as a child. It's type. /// The new object, otherwise null if it cannot be created. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { return _handle != IntPtr.Zero ? _handle : Interop.Evas.evas_object_image_add(Interop.Evas.evas_object_evas_get(parent.Handle)); diff --git a/src/ElmSharp/ElmSharp/EvasKeyEventArgs.cs b/src/ElmSharp/ElmSharp/EvasKeyEventArgs.cs index 4ee3993..2095f28 100644 --- a/src/ElmSharp/ElmSharp/EvasKeyEventArgs.cs +++ b/src/ElmSharp/ElmSharp/EvasKeyEventArgs.cs @@ -25,6 +25,7 @@ namespace ElmSharp /// The EvasKeyEventArgs is a EvasKey EventArgs. /// /// preview + [Obsolete("This has been deprecated in API12")] public class EvasKeyEventArgs : EventArgs { IntPtr _nativeEventInfo; @@ -33,30 +34,35 @@ namespace ElmSharp /// BackButton name in platform. /// /// preview + [Obsolete("This has been deprecated in API12")] public const string PlatformBackButtonName = "XF86Back"; /// /// MenuButton name in platform. /// /// preview + [Obsolete("This has been deprecated in API12")] public const string PlatformMenuButtonName = "XF86Menu"; /// /// HomeButton name in platform. /// /// preview + [Obsolete("This has been deprecated in API12")] public const string PlatformHomeButtonName = "XF86Home"; /// /// Gets the name of the key. /// /// preview + [Obsolete("This has been deprecated in API12")] public string KeyName { get; private set; } /// /// Sets or gets the flags. /// /// preview + [Obsolete("This has been deprecated in API12")] public EvasEventFlag Flags { get @@ -86,6 +92,7 @@ namespace ElmSharp /// The information. /// EvasKey eventArgs. /// preview + [Obsolete("This has been deprecated in API12")] static public EvasKeyEventArgs Create(IntPtr data, IntPtr obj, IntPtr info) { return new EvasKeyEventArgs(info); @@ -94,7 +101,7 @@ namespace ElmSharp /// /// Event structure for Key Down event callbacks. /// - [NativeStruct("Evas_Event_Key_Down", Include="Elementary.h", PkgConfig="elementary")] + [NativeStruct("Evas_Event_Key_Down", Include = "Elementary.h", PkgConfig = "elementary")] [StructLayout(LayoutKind.Sequential)] struct EvasEventKeyDown { @@ -156,6 +163,7 @@ namespace ElmSharp /// Flags for the events. /// /// preview + [Obsolete("This has been deprecated in API12")] [Flags] public enum EvasEventFlag { diff --git a/src/ElmSharp/ElmSharp/EvasMap.cs b/src/ElmSharp/ElmSharp/EvasMap.cs index f5bcd5a..06913d0 100644 --- a/src/ElmSharp/ElmSharp/EvasMap.cs +++ b/src/ElmSharp/ElmSharp/EvasMap.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// The EvasMap is an opaque handle to map points. /// /// preview + [Obsolete("This has been deprecated in API12")] public class EvasMap { IntPtr _evasMap; @@ -32,6 +33,7 @@ namespace ElmSharp /// /// The number of points in the map /// preview + [Obsolete("This has been deprecated in API12")] public EvasMap(int count) { _evasMap = Interop.Evas.evas_map_new(count); @@ -67,6 +69,7 @@ namespace ElmSharp /// Gets or sets the flag of the object to move synchronization for map rendering. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsMoveSync { get @@ -84,6 +87,7 @@ namespace ElmSharp /// /// The object to use unmapped geometry to populate the map coordinates. /// preview + [Obsolete("This has been deprecated in API12")] public void PopulatePoints(EvasObject obj) { Interop.Evas.evas_map_util_points_populate_from_object_full(_evasMap, obj, 0); @@ -97,6 +101,7 @@ namespace ElmSharp /// The point Z-coordinate hint (pre-perspective transform). This value is used for all the four points. /// /// preview + [Obsolete("This has been deprecated in API12")] public void PopulatePoints(EvasObject obj, int z) { Interop.Evas.evas_map_util_points_populate_from_object_full(_evasMap, obj, z); @@ -108,6 +113,7 @@ namespace ElmSharp /// The geometry value contains X-coordinate, Y-coordinate, the width and height to use, to calculate the second and third points. /// The Z-coordinate hint (pre-perspective transform) This value is used for all the four points. /// preview + [Obsolete("This has been deprecated in API12")] public void PopulatePoints(Rect geometry, int z) { Interop.Evas.evas_map_util_points_populate_from_geometry(_evasMap, geometry.X, geometry.Y, geometry.Width, geometry.Height, z); @@ -120,6 +126,7 @@ namespace ElmSharp /// The rotation's center horizontal position. /// The rotation's center vertical position. /// preview + [Obsolete("This has been deprecated in API12")] public void Rotate(double degrees, int cx, int cy) { Interop.Evas.evas_map_util_rotate(_evasMap, degrees, cx, cy); @@ -135,6 +142,7 @@ namespace ElmSharp /// The rotation's center vertical position. /// The rotation's center depth position. /// preview + [Obsolete("This has been deprecated in API12")] public void Rotate3D(double dx, double dy, double dz, int cx, int cy, int cz) { Interop.Evas.evas_map_util_3d_rotate(_evasMap, dx, dy, dz, cx, cy, cz); @@ -146,6 +154,7 @@ namespace ElmSharp /// The index of point to change, this must be smaller than the map size. /// The 3D point coordinate. /// preview + [Obsolete("This has been deprecated in API12")] public void SetPointCoordinate(int idx, Point3D point) { Interop.Evas.evas_map_point_coord_set(_evasMap, idx, point.X, point.Y, point.Z); @@ -157,6 +166,7 @@ namespace ElmSharp /// The index of point to change, this must be smaller than the map size. /// The coordinates of a given point in the map. /// preview + [Obsolete("This has been deprecated in API12")] public Point3D GetPointCoordinate(int idx) { Point3D point; @@ -172,6 +182,7 @@ namespace ElmSharp /// The zooming center horizontal position. /// The zooming center vertical position. /// preview + [Obsolete("This has been deprecated in API12")] public void Zoom(double x, double y, int cx, int cy) { Interop.Evas.evas_map_util_zoom(_evasMap, x, y, cx, cy); diff --git a/src/ElmSharp/ElmSharp/EvasObject.cs b/src/ElmSharp/ElmSharp/EvasObject.cs index 20b8b87..b2e122f 100644 --- a/src/ElmSharp/ElmSharp/EvasObject.cs +++ b/src/ElmSharp/ElmSharp/EvasObject.cs @@ -24,6 +24,7 @@ namespace ElmSharp /// Enumeration for the Tooltip orientation. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum TooltipOrientation { /// @@ -81,6 +82,7 @@ namespace ElmSharp /// Enumeration for the aspect control. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum AspectControl { /// @@ -113,6 +115,7 @@ namespace ElmSharp /// How the object should be rendered to output. /// /// 5 + [Obsolete("This has been deprecated in API12")] public enum RenderOp { /// @@ -180,6 +183,7 @@ namespace ElmSharp /// The EvasObject is a base class for other widget classes. /// /// preview + [Obsolete("This has been deprecated in API12")] public abstract class EvasObject { private IntPtr _realHandle = IntPtr.Zero; @@ -199,18 +203,21 @@ namespace ElmSharp /// Sets or gets the handle for EvasObject. /// /// preview + [Obsolete("This has been deprecated in API12")] public IntPtr Handle { get; protected set; } /// /// Gets the parent object for EvasObject. /// /// preview + [Obsolete("This has been deprecated in API12")] public EvasObject Parent { get; private set; } /// /// Sets or gets the real handle for EvasObject. /// /// preview + [Obsolete("This has been deprecated in API12")] public IntPtr RealHandle { get @@ -244,6 +251,7 @@ namespace ElmSharp /// /// Parent EvasObject class. /// preview + [Obsolete("This has been deprecated in API12")] protected EvasObject(EvasObject parent) : this() { Debug.Assert(parent == null || parent.IsRealized); @@ -254,6 +262,7 @@ namespace ElmSharp /// Creates and initializes a new instance of the EvasObject class. /// /// preview + [Obsolete("This has been deprecated in API12")] protected EvasObject() { _backButtonHandler = new Interop.Eext.EextEventCallback((d, o, i) => { _backButtonPressed?.Invoke(this, EventArgs.Empty); }); @@ -279,12 +288,14 @@ namespace ElmSharp /// Deleted will be triggered when the widght is deleted. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Deleted; /// /// KeyUp will be triggered when the key is loose. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler KeyUp { add { _keyup.On += value; } @@ -295,6 +306,7 @@ namespace ElmSharp /// KeyDown will be triggered when the key is pressed down. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler KeyDown { add { _keydown.On += value; } @@ -305,6 +317,7 @@ namespace ElmSharp /// BackButtonPressed will be triggered when the Back button is pressed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler BackButtonPressed { add @@ -329,6 +342,7 @@ namespace ElmSharp /// MoreButtonPressed will be triggered when the More button is pressed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler MoreButtonPressed { add @@ -353,6 +367,7 @@ namespace ElmSharp /// Moved will be triggered when the widght is moved. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Moved { add { _moved.On += value; } @@ -363,6 +378,7 @@ namespace ElmSharp /// Resized Event Handler of the current widget's size. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Resized { add { _resized.On += value; } @@ -373,16 +389,18 @@ namespace ElmSharp /// Shown will be triggered when the widget is shown. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Shown { add { _shown.On += value; } remove { _shown.On -= value; } } - + /// /// Hidden will be triggered when the widget is hidden. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Hidden { add { _hidden.On += value; } @@ -393,6 +411,7 @@ namespace ElmSharp /// RenderPost Event Handler of the current widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler RenderPost { add @@ -420,18 +439,21 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public delegate EvasObject GetTooltipContentDelegate(); /// /// Gets a widget's status of realized or not. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsRealized { get { return Handle != IntPtr.Zero; } } /// /// Gets EvasCanvas. /// /// preview + [Obsolete("This has been deprecated in API12")] public EvasCanvas EvasCanvas { get @@ -446,6 +468,7 @@ namespace ElmSharp /// Sets of gets a value that allow the automation framework to find and interact with this object. /// /// preview + [Obsolete("This has been deprecated in API12")] public string AutomationId { get @@ -464,6 +487,7 @@ namespace ElmSharp /// Gets the current class's Name. /// /// preview + [Obsolete("This has been deprecated in API12")] public string ClassName { get @@ -476,6 +500,7 @@ namespace ElmSharp /// Sets or gets the horizontal pointer hints for an object's weight. /// /// preview + [Obsolete("This has been deprecated in API12")] public double WeightX { get @@ -492,6 +517,7 @@ namespace ElmSharp /// Sets or gets the vertical pointer hints for an object's weight. /// /// preview + [Obsolete("This has been deprecated in API12")] public double WeightY { get @@ -508,6 +534,7 @@ namespace ElmSharp /// Sets or gets the horizontal alignment hint of an object's alignment. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual double AlignmentX { get @@ -524,6 +551,7 @@ namespace ElmSharp /// Sets or gets the vertical alignment hint of an object's alignment. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual double AlignmentY { get @@ -540,6 +568,7 @@ namespace ElmSharp /// Sets or gets the width hints for an object's minimum size. /// /// preview + [Obsolete("This has been deprecated in API12")] public int MinimumWidth { get @@ -559,6 +588,7 @@ namespace ElmSharp /// Sets or gets the height hints for an object's minimum size. /// /// preview + [Obsolete("This has been deprecated in API12")] public int MinimumHeight { get @@ -578,6 +608,7 @@ namespace ElmSharp /// Gets the visible state of the given Evas object. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsVisible { get @@ -590,6 +621,7 @@ namespace ElmSharp /// Sets or gets the position and (rectangular) size of the given Evas object. /// /// preview + [Obsolete("This has been deprecated in API12")] public Rect Geometry { get @@ -609,6 +641,7 @@ namespace ElmSharp /// Sets or gets the general or main color of the given Evas object. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual Color Color { get @@ -627,6 +660,7 @@ namespace ElmSharp /// Sets or gets the map enabled state. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsMapEnabled { get @@ -643,6 +677,7 @@ namespace ElmSharp /// Sets or gets the current object's transformation map. /// /// preview + [Obsolete("This has been deprecated in API12")] public EvasMap EvasMap { get @@ -660,6 +695,7 @@ namespace ElmSharp /// Sets or gets whether an object is to repeat events. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool RepeatEvents { get @@ -682,6 +718,7 @@ namespace ElmSharp /// Sets or gets whether events on a smart object's member should get propagated up to its parent. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool PropagateEvents { get @@ -704,6 +741,7 @@ namespace ElmSharp /// Sets or gets whether an object is set to pass (ignore) events. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool PassEvents { get @@ -726,6 +764,7 @@ namespace ElmSharp /// Sets or gets the style for this object tooltip. /// /// preview + [Obsolete("This has been deprecated in API12")] public string TooltipStyle { get @@ -742,6 +781,7 @@ namespace ElmSharp /// Sets or gets the orientation of tooltip. /// /// preview + [Obsolete("This has been deprecated in API12")] public TooltipOrientation TooltipOrientation { get @@ -758,6 +798,7 @@ namespace ElmSharp /// Sets or gets size restriction state of an object's tooltip. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool TooltipWindowMode { get @@ -774,6 +815,7 @@ namespace ElmSharp /// Sets the content to be shown in the tooltip object. /// /// preview + [Obsolete("This has been deprecated in API12")] public GetTooltipContentDelegate TooltipContentDelegate { get @@ -799,6 +841,7 @@ namespace ElmSharp /// This gets the movement freeze count by one. /// /// preview + [Obsolete("This has been deprecated in API12")] public int TooltipMoveFreezeCount { get @@ -811,6 +854,7 @@ namespace ElmSharp /// Sets or gets whether an Evas object is to freeze (discard) events. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool AllEventsFrozen { get @@ -833,6 +877,7 @@ namespace ElmSharp /// Sets or gets the layer of its canvas that the given object will be part of. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual int Layer { get @@ -849,6 +894,7 @@ namespace ElmSharp /// Sets or gets the render operation to be used for rendering the Evas object. /// /// 5 + [Obsolete("This has been deprecated in API12")] public RenderOp RenderOperation { get @@ -867,6 +913,7 @@ namespace ElmSharp /// /// The object to clip object by. /// preview + [Obsolete("This has been deprecated in API12")] public void SetClip(EvasObject clip) { Interop.Evas.evas_object_clip_set(Handle, clip); @@ -878,6 +925,7 @@ namespace ElmSharp /// The horizontal alignment hint as double value ranging from 0.0 to 1.0. The default alignment hint value is 0.5. /// The vertical alignment hint as double value ranging from 0.0 to 1.0. The default alignment hint value is 0.5. /// preview + [Obsolete("This has been deprecated in API12")] public void SetAlignment(double x, double y) { Interop.Evas.evas_object_size_hint_align_set(Handle, x, y); @@ -889,6 +937,7 @@ namespace ElmSharp /// The non-negative double value to be used as horizontal weight hint. /// The non-negative double value to be used as vertical weight hint. /// preview + [Obsolete("This has been deprecated in API12")] public void SetWeight(double x, double y) { Interop.Evas.evas_object_size_hint_weight_set(Handle, x, y); @@ -899,6 +948,7 @@ namespace ElmSharp /// /// The text value to display inside the tooltip. /// preview + [Obsolete("This has been deprecated in API12")] public void SetTooltipText(string text) { Interop.Elementary.elm_object_tooltip_text_set(RealHandle, text); @@ -908,6 +958,7 @@ namespace ElmSharp /// Unsets an object's tooltip. /// /// preview + [Obsolete("This has been deprecated in API12")] public void UnsetTooltip() { Interop.Elementary.elm_object_tooltip_unset(RealHandle); @@ -918,6 +969,7 @@ namespace ElmSharp /// If the count is more than 0, the tooltip position will be fixed. /// /// preview + [Obsolete("This has been deprecated in API12")] public void PushTooltipMoveFreeze() { Interop.Elementary.elm_object_tooltip_move_freeze_push(RealHandle); @@ -927,6 +979,7 @@ namespace ElmSharp /// This decrements the tooltip freeze count by one. /// /// preview + [Obsolete("This has been deprecated in API12")] public void PopTooltipMoveFreeze() { Interop.Elementary.elm_object_tooltip_move_freeze_pop(RealHandle); @@ -936,6 +989,7 @@ namespace ElmSharp /// Force hide the tooltip of the object. /// /// preview + [Obsolete("This has been deprecated in API12")] public void HideTooltip() { Interop.Elementary.elm_object_tooltip_hide(RealHandle); @@ -945,6 +999,7 @@ namespace ElmSharp /// Force show the tooltip of the object. /// /// preview + [Obsolete("This has been deprecated in API12")] public void ShowTooltip() { Interop.Elementary.elm_object_tooltip_show(RealHandle); @@ -954,6 +1009,7 @@ namespace ElmSharp /// Makes the current object visible. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Show() { Interop.Evas.evas_object_show(Handle); @@ -963,6 +1019,7 @@ namespace ElmSharp /// Makes the current object invisible. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Hide() { Interop.Evas.evas_object_hide(Handle); @@ -974,6 +1031,7 @@ namespace ElmSharp /// The new width. /// The new height. /// preview + [Obsolete("This has been deprecated in API12")] public void Resize(int w, int h) { Interop.Evas.evas_object_resize(Handle, w, h); @@ -985,6 +1043,7 @@ namespace ElmSharp /// The X position to move the object. /// The Y position to move the object. /// preview + [Obsolete("This has been deprecated in API12")] public void Move(int x, int y) { Interop.Evas.evas_object_move(Handle, x, y); @@ -994,6 +1053,7 @@ namespace ElmSharp /// Lowers the object to the bottom of its layer. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Lower() { Interop.Evas.evas_object_lower(Handle); @@ -1004,6 +1064,7 @@ namespace ElmSharp /// /// Parent object. /// preview + [Obsolete("This has been deprecated in API12")] public static implicit operator IntPtr(EvasObject obj) { if (obj == null) @@ -1011,11 +1072,12 @@ namespace ElmSharp return obj.Handle; } - /// + /// /// Define cast to EvasObject operator from IntPtr /// /// Native handle to EvasObject /// preview + [Obsolete("This has been deprecated in API12")] public static explicit operator EvasObject(IntPtr handle) => EvasObject.s_handleTable.TryGetValue(handle, out EvasObject obj) ? obj : null; /// @@ -1025,6 +1087,7 @@ namespace ElmSharp /// Set TRUE to request that the obj is the only object receiving the keyname events, otherwise set to FALSE. /// If the call succeeds then true, otherwise false. /// preview + [Obsolete("This has been deprecated in API12")] public bool KeyGrab(string keyname, bool exclusive) { return Interop.Evas.evas_object_key_grab(Handle, keyname, 0, 0, exclusive); @@ -1035,6 +1098,7 @@ namespace ElmSharp /// /// The key the grab is set for. /// preview + [Obsolete("This has been deprecated in API12")] public void KeyUngrab(string keyname) { Interop.Evas.evas_object_key_ungrab(Handle, keyname, 0, 0); @@ -1044,6 +1108,7 @@ namespace ElmSharp /// Marks the smart object as changed. /// /// preview + [Obsolete("This has been deprecated in API12")] public void MarkChanged() { Interop.Evas.evas_object_smart_changed(RealHandle); @@ -1054,6 +1119,7 @@ namespace ElmSharp /// This will force immediate calculations needed for renderization of this object. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Calculate() { Interop.Evas.evas_object_smart_calculate(RealHandle); @@ -1066,6 +1132,7 @@ namespace ElmSharp /// The integer to be used as aspect width ratio term. /// The integer to be used as aspect height ratio term. /// preview + [Obsolete("This has been deprecated in API12")] public void SetSizeHintAspect(AspectControl aspect, int w, int h) { Interop.Evas.evas_object_size_hint_aspect_set(Handle, (int)aspect, w, h); @@ -1078,6 +1145,7 @@ namespace ElmSharp /// The integer to be used as aspect width ratio term. /// The integer to be used as aspect height ratio term. /// preview + [Obsolete("This has been deprecated in API12")] public void GetSizeHintAspect(out AspectControl aspect, out int w, out int h) { int aspectRatio; @@ -1090,6 +1158,7 @@ namespace ElmSharp /// /// The object below which to stack. /// preview + [Obsolete("This has been deprecated in API12")] public void StackBelow(EvasObject anchor) { Interop.Evas.evas_object_stack_below(Handle, anchor); @@ -1100,6 +1169,7 @@ namespace ElmSharp /// /// The object above which to stack. /// preview + [Obsolete("This has been deprecated in API12")] public void StackAbove(EvasObject anchor) { Interop.Evas.evas_object_stack_above(Handle, anchor); @@ -1109,6 +1179,7 @@ namespace ElmSharp /// Raises to the top of its layer. /// /// preview + [Obsolete("This has been deprecated in API12")] public void RaiseTop() { Interop.Evas.evas_object_raise(Handle); @@ -1163,6 +1234,7 @@ namespace ElmSharp /// The callback of the Invalidate Event. /// /// preview + [Obsolete("This has been deprecated in API12")] protected virtual void OnInvalidate() { } @@ -1171,6 +1243,7 @@ namespace ElmSharp /// The callback of the Instantiated Event. /// /// preview + [Obsolete("This has been deprecated in API12")] protected virtual void OnInstantiated() { } @@ -1179,6 +1252,7 @@ namespace ElmSharp /// The callback of the Realized Event. /// /// preview + [Obsolete("This has been deprecated in API12")] protected virtual void OnRealized() { } @@ -1187,6 +1261,7 @@ namespace ElmSharp /// The callback of the Unrealize Event. /// /// preview + [Obsolete("This has been deprecated in API12")] protected virtual void OnUnrealize() { } @@ -1197,6 +1272,7 @@ namespace ElmSharp /// Parent EvasObject. /// Handle IntPtr. /// preview + [Obsolete("This has been deprecated in API12")] protected abstract IntPtr CreateHandle(EvasObject parent); /// @@ -1204,6 +1280,7 @@ namespace ElmSharp /// /// Parent object. /// preview + [Obsolete("This has been deprecated in API12")] public void Realize(EvasObject parent) { if (!IsRealized) @@ -1234,6 +1311,7 @@ namespace ElmSharp /// Removes the current object relationship with others. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Unrealize() { if (IsRealized) diff --git a/src/ElmSharp/ElmSharp/EvasObjectEvent.cs b/src/ElmSharp/ElmSharp/EvasObjectEvent.cs index cfe8db1..844a4f4 100644 --- a/src/ElmSharp/ElmSharp/EvasObjectEvent.cs +++ b/src/ElmSharp/ElmSharp/EvasObjectEvent.cs @@ -26,12 +26,14 @@ namespace ElmSharp /// Inherits IDisposable. /// /// preview + [Obsolete("This has been deprecated in API12")] public interface IInvalidatable : IDisposable { /// /// Makes the current instance invalidate. /// /// preview + [Obsolete("This has been deprecated in API12")] void MakeInvalidate(); } @@ -39,6 +41,7 @@ namespace ElmSharp /// Enumeration for EvasObjectCallbackType. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum EvasObjectCallbackType { /// @@ -227,6 +230,7 @@ namespace ElmSharp /// /// Kinds of EventArgs. /// preview + [Obsolete("This has been deprecated in API12")] public class EvasObjectEvent : IInvalidatable where TEventArgs : EventArgs { /// @@ -237,6 +241,7 @@ namespace ElmSharp /// info /// Delegate handle. /// preview + [Obsolete("This has been deprecated in API12")] public delegate TEventArgs SmartEventInfoParser(IntPtr data, IntPtr obj, IntPtr info); private bool _disposed = false; @@ -253,6 +258,7 @@ namespace ElmSharp /// EvasObjectCallbackType /// SmartEventInfoParser /// preview + [Obsolete("This has been deprecated in API12")] public EvasObjectEvent(EvasObject sender, EvasObjectCallbackType type, SmartEventInfoParser parser) : this(sender, sender.Handle, type, parser) { } @@ -265,6 +271,7 @@ namespace ElmSharp /// EvasObjectCallbackType /// SmartEventInfoParser /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsableAttribute(EditorBrowsableState.Never)] public EvasObjectEvent(EvasObject sender, IntPtr handle, EvasObjectCallbackType type, SmartEventInfoParser parser) { @@ -281,6 +288,7 @@ namespace ElmSharp /// EvasObject class belongs to. /// SmartEventInfoParser /// preview + [Obsolete("This has been deprecated in API12")] public EvasObjectEvent(EvasObject sender, EvasObjectCallbackType type) : this(sender, type, null) { } @@ -303,6 +311,7 @@ namespace ElmSharp /// On Event Handler of the EvasObjectEvent. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler On { add @@ -345,6 +354,7 @@ namespace ElmSharp /// otherwise, false. /// /// preview + [Obsolete("This has been deprecated in API12")] protected virtual void Dispose(bool disposing) { if (!_disposed) @@ -369,6 +379,7 @@ namespace ElmSharp /// Destroys the current object. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Dispose() { Dispose(true); @@ -379,6 +390,7 @@ namespace ElmSharp /// Makes the current instance invalidate. /// /// preview + [Obsolete("This has been deprecated in API12")] public void MakeInvalidate() { _sender = null; @@ -390,6 +402,7 @@ namespace ElmSharp /// Event class for EvasObject. /// /// preview + [Obsolete("This has been deprecated in API12")] public class EvasObjectEvent : IInvalidatable { private EvasObjectEvent _evasObjectEvent; @@ -404,6 +417,7 @@ namespace ElmSharp /// EvasObject class belongs to. /// EvasObjectCallbackType /// preview + [Obsolete("This has been deprecated in API12")] public EvasObjectEvent(EvasObject sender, EvasObjectCallbackType type) : this(sender, sender.Handle, type) { } @@ -415,6 +429,7 @@ namespace ElmSharp /// EvasObject handle. /// EvasObjectCallbackType /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsableAttribute(EditorBrowsableState.Never)] public EvasObjectEvent(EvasObject sender, IntPtr handle, EvasObjectCallbackType type) { @@ -433,6 +448,7 @@ namespace ElmSharp /// On Event Handler of EvasObjectEvent. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler On { add @@ -467,6 +483,7 @@ namespace ElmSharp /// otherwise, false. /// /// preview + [Obsolete("This has been deprecated in API12")] protected virtual void Dispose(bool disposing) { if (!_disposed) @@ -483,6 +500,7 @@ namespace ElmSharp /// Destroys the current object. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Dispose() { Dispose(true); @@ -493,6 +511,7 @@ namespace ElmSharp /// Makes the current instance invalidate. /// /// preview + [Obsolete("This has been deprecated in API12")] public void MakeInvalidate() { _evasObjectEvent.MakeInvalidate(); diff --git a/src/ElmSharp/ElmSharp/FlipSelector.cs b/src/ElmSharp/ElmSharp/FlipSelector.cs index 969c4e0..b2d53c2 100644 --- a/src/ElmSharp/ElmSharp/FlipSelector.cs +++ b/src/ElmSharp/ElmSharp/FlipSelector.cs @@ -23,6 +23,7 @@ namespace ElmSharp /// The FlipSelector is a widget to show a set of text items, one at a time, with the same sheet switching style as the clock widget when one changes the current displaying sheet. /// /// preview + [Obsolete("This has been deprecated in API12")] public class FlipSelector : Layout { SmartEvent _selected; @@ -34,6 +35,7 @@ namespace ElmSharp /// /// Parent EvasObject. /// preview + [Obsolete("This has been deprecated in API12")] public FlipSelector(EvasObject parent) : base(parent) { _selected = new SmartEvent(this, Handle, "selected"); @@ -49,22 +51,26 @@ namespace ElmSharp /// Selected will be triggered when selected. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Selected; /// /// Overflowed will be triggered when overflowed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Overflowed; /// /// Underflowed will be triggered when underflowed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Underflowed; /// /// Sets or gets the interval on time updates for a user mouse button to hold on the flip selector widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Interval { get @@ -82,6 +88,7 @@ namespace ElmSharp /// Gets the currently selected item in the flip selector widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public FlipSelectorItem SelectedItem { get @@ -95,6 +102,7 @@ namespace ElmSharp /// Gets the first item in the given flip selector widget's list of items. /// /// preview + [Obsolete("This has been deprecated in API12")] public FlipSelectorItem FirstItem { get @@ -108,6 +116,7 @@ namespace ElmSharp /// Gets the last item in the given flip selector widget's list of items. /// /// preview + [Obsolete("This has been deprecated in API12")] public FlipSelectorItem LastItem { get @@ -128,6 +137,7 @@ namespace ElmSharp /// The widget's list of labels to show will be appended with the given value. If the user wishes so, a callback function pointer can be passed, which will get called when the same item is selected. /// /// preview + [Obsolete("This has been deprecated in API12")] public FlipSelectorItem Append(string text) { FlipSelectorItem item = new FlipSelectorItem(text, this); @@ -144,6 +154,7 @@ namespace ElmSharp /// The widget's list of labels to show will be prepended with the given value. If the user wishes so, a callback function pointer can be passed, which will get called when the same item is selected. /// /// preview + [Obsolete("This has been deprecated in API12")] public FlipSelectorItem Prepend(string text) { FlipSelectorItem item = new FlipSelectorItem(text, this); @@ -156,6 +167,7 @@ namespace ElmSharp /// /// FlipSelector's item. /// preview + [Obsolete("This has been deprecated in API12")] public void Remove(FlipSelectorItem item) { if (item != null) @@ -169,6 +181,7 @@ namespace ElmSharp /// The selection will be animated. Also, if it reaches the beginning of its list of member items, it will continue with the last one backwards. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Next() { Interop.Elementary.elm_flipselector_flip_next(Handle); @@ -178,6 +191,7 @@ namespace ElmSharp /// Programmatically select the previous item of the flip selector widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Prev() { Interop.Elementary.elm_flipselector_flip_prev(Handle); @@ -189,6 +203,7 @@ namespace ElmSharp /// Parent EvasObject. /// Handle IntPtr. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { return Interop.Elementary.elm_flipselector_add(parent.Handle); diff --git a/src/ElmSharp/ElmSharp/FlipSelectorItem.cs b/src/ElmSharp/ElmSharp/FlipSelectorItem.cs index 7abe582..2a26713 100644 --- a/src/ElmSharp/ElmSharp/FlipSelectorItem.cs +++ b/src/ElmSharp/ElmSharp/FlipSelectorItem.cs @@ -22,18 +22,21 @@ namespace ElmSharp /// The item class of FlipSelector. /// /// preview + [Obsolete("This has been deprecated in API12")] public class FlipSelectorItem : ItemObject { /// /// Sets or gets the text of the FlipSelectorItem. /// /// preview + [Obsolete("This has been deprecated in API12")] public string Text { get; private set; } /// /// Selected will be triggered when selected. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Selected; /// @@ -41,6 +44,7 @@ namespace ElmSharp /// /// FlipSelectorItem's text /// preview + [Obsolete("This has been deprecated in API12")] public FlipSelectorItem(string text) : base(IntPtr.Zero) { Text = text; @@ -52,6 +56,7 @@ namespace ElmSharp /// FlipSelectorItem's text /// Parent EvasObject /// preview + [Obsolete("This has been deprecated in API12")] public FlipSelectorItem(string text, EvasObject parent) : base(IntPtr.Zero, parent) { Text = text; diff --git a/src/ElmSharp/ElmSharp/FloatingButton.cs b/src/ElmSharp/ElmSharp/FloatingButton.cs index 99ef83a..773a66a 100644 --- a/src/ElmSharp/ElmSharp/FloatingButton.cs +++ b/src/ElmSharp/ElmSharp/FloatingButton.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// The FloatingButton is a widget to add the floating area for buttons. /// /// preview + [Obsolete("This has been deprecated in API12")] public class FloatingButton : Layout { /// @@ -29,6 +30,7 @@ namespace ElmSharp /// /// Created on this parent container. /// preview + [Obsolete("This has been deprecated in API12")] public FloatingButton(EvasObject parent) : base(parent) { } @@ -37,6 +39,7 @@ namespace ElmSharp /// Sets or gets the floatingbutton mode. /// /// preview + [Obsolete("This has been deprecated in API12")] public FloatingButtonMode Mode { get @@ -53,6 +56,7 @@ namespace ElmSharp /// Gets the floatingbutton position. /// /// preview + [Obsolete("This has been deprecated in API12")] public FloatingButtonPosition Position { get @@ -65,6 +69,7 @@ namespace ElmSharp /// Sets or gets the movability for a given FloatingButton widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool MovementBlock { get @@ -81,6 +86,7 @@ namespace ElmSharp /// Gets the opacity's value of the given FloatingButton. /// /// preview + [Obsolete("This has been deprecated in API12")] public override int Opacity { get @@ -100,6 +106,7 @@ namespace ElmSharp /// Button position. /// Animation flag. /// preview + [Obsolete("This has been deprecated in API12")] public void SetPosition(FloatingButtonPosition position, bool animated) { if (animated) @@ -118,6 +125,7 @@ namespace ElmSharp /// Parent EvasObject. /// Handle IntPtr. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { return Interop.Eext.eext_floatingbutton_add(parent.Handle); @@ -128,6 +136,7 @@ namespace ElmSharp /// Enumeration for the FloatingButtonMode. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum FloatingButtonMode { /// @@ -145,6 +154,7 @@ namespace ElmSharp /// Enumeration for the FloatingButtonPosition. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum FloatingButtonPosition { /// diff --git a/src/ElmSharp/ElmSharp/GenGrid.cs b/src/ElmSharp/ElmSharp/GenGrid.cs index 5976b99..8ec83eb 100644 --- a/src/ElmSharp/ElmSharp/GenGrid.cs +++ b/src/ElmSharp/ElmSharp/GenGrid.cs @@ -25,12 +25,14 @@ namespace ElmSharp /// All events of the GenGrid contain GenGridItemEventArgs as a parameter. /// /// preview + [Obsolete("This has been deprecated in API12")] public class GenGridItemEventArgs : EventArgs { /// /// Gets or sets the gengrid item. The return type is . /// /// preview + [Obsolete("This has been deprecated in API12")] public GenGridItem Item { get; set; } internal static GenGridItemEventArgs CreateFromSmartEvent(IntPtr data, IntPtr obj, IntPtr info) @@ -47,6 +49,7 @@ namespace ElmSharp /// The gengrid items are represented through the definition field details. /// /// preview + [Obsolete("This has been deprecated in API12")] public class GenGrid : Layout { HashSet _children = new HashSet(); @@ -69,6 +72,7 @@ namespace ElmSharp /// /// The parent is a given container which will be attached by GenGrid as a child. It's the type. /// preview + [Obsolete("This has been deprecated in API12")] public GenGrid(EvasObject parent) : base(parent) { InitializeSmartEvent(); @@ -78,72 +82,84 @@ namespace ElmSharp /// ItemSelected is raised when a new GenGrid item is selected. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemSelected; /// /// ItemUnselected is raised when the gengrid item is unselected. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemUnselected; /// /// ItemPressed is raised when a new gengrid item is pressed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemPressed; /// /// ItemReleased is raised when a new gengrid item is released. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemReleased; /// /// ItemActivated is raised when a new gengrid item is double-clicked or pressed (enter|return|spacebar). /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemActivated; /// /// ItemDoubleClicked is raised when a new gengrid item is double-clicked. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemDoubleClicked; /// /// ItemRealized is raised when a gengrid item is implemented through . /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemRealized; /// /// ItemUnrealized is raised when the gengrid item is deleted. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemUnrealized; /// /// ItemLongPressed is raised when a gengrid item is pressed for a certain amount of time. By default it's 1 second. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemLongPressed; /// /// ItemFocussed is raised when a gengrid item has received focus. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemFocused; /// /// ItemUnfocussed is raised when a gengrid item has lost focus. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemUnfocused; /// /// Changed is raised when an item is added, removed, resized or moved and when the gengrid is resized or gets "horizontal" property changes. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Changed; /// @@ -152,6 +168,7 @@ namespace ElmSharp /// By default, value is 0.0, meaning that the gengrid has its items grid placed exactly in the left along X-axis. /// /// preview + [Obsolete("This has been deprecated in API12")] public double ItemAlignmentX { get @@ -173,6 +190,7 @@ namespace ElmSharp /// By default, value is 0.0, meaning that the gengrid has its items grid placed exactly in the top along Y-axis. /// /// preview + [Obsolete("This has been deprecated in API12")] public double ItemAlignmentY { get @@ -193,6 +211,7 @@ namespace ElmSharp /// It is filled if true, otherwise not filled if false. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool FillItems { get @@ -215,6 +234,7 @@ namespace ElmSharp /// By default, multi-selection is disabled. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool MultipleSelection { get @@ -236,6 +256,7 @@ namespace ElmSharp /// Use this property to force a custom width for your items, making them as big as you wish. /// /// preview + [Obsolete("This has been deprecated in API12")] public int ItemWidth { get @@ -260,6 +281,7 @@ namespace ElmSharp /// Use this property to force a custom height for your items, making them as big as you wish. /// /// preview + [Obsolete("This has been deprecated in API12")] public int ItemHeight { get @@ -279,6 +301,7 @@ namespace ElmSharp /// Gets or sets the gengrid select mode by . /// /// preview + [Obsolete("This has been deprecated in API12")] public GenItemSelectionMode SelectionMode { get @@ -299,6 +322,7 @@ namespace ElmSharp /// If false, items are placed in rows from left to right, and when the space for a row is filled, another one is started below, thus expanding the grid vertically. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsHorizontal { get @@ -315,6 +339,7 @@ namespace ElmSharp /// Gets or sets whether the gengrid items should be highlighted when an item is selected. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsHighlight { get @@ -335,6 +360,7 @@ namespace ElmSharp /// ScrollBarVisiblePolicy.Visible turns it on all the time, and ScrollBarVisiblePolicy.Invisible always keeps it off. /// /// preview + [Obsolete("This has been deprecated in API12")] public ScrollBarVisiblePolicy HorizontalScrollBarVisiblePolicy { get @@ -358,6 +384,7 @@ namespace ElmSharp /// ScrollBarVisiblePolicy.Visible turns it on all the time, and ScrollBarVisiblePolicy.Invisible always keeps it off. /// /// preview + [Obsolete("This has been deprecated in API12")] public ScrollBarVisiblePolicy VerticalScrollBarVisiblePolicy { get @@ -377,6 +404,7 @@ namespace ElmSharp /// Gets the first item in a given GenGrid widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public GenGridItem FirstItem { get @@ -390,6 +418,7 @@ namespace ElmSharp /// Gets the last item in a given GenGrid widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public GenGridItem LastItem { get @@ -403,6 +432,7 @@ namespace ElmSharp /// Gets the items count in a given GenGrid widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public uint ItemCount { get @@ -415,6 +445,7 @@ namespace ElmSharp /// Gets the selected item in a given GenGrid widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public GenGridItem SelectedItem { get @@ -428,6 +459,7 @@ namespace ElmSharp /// Gets or sets whether a given GenGrid widget is able to or not able to have items reordered. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool ReorderMode { get @@ -449,6 +481,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public GenGridItem Append(GenItemClass itemClass, object data) { GenGridItem item = new GenGridItem(data, itemClass, this); @@ -466,6 +499,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public GenGridItem Prepend(GenItemClass itemClass, object data) { GenGridItem item = new GenGridItem(data, itemClass, this); @@ -484,6 +518,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public GenGridItem InsertBefore(GenItemClass itemClass, object data, GenGridItem before) { GenGridItem item = new GenGridItem(data, itemClass, this); @@ -502,6 +537,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public GenGridItem InsertAfter(GenItemClass itemClass, object data, GenGridItem after) { GenGridItem item = new GenGridItem(data, itemClass, this); @@ -518,6 +554,7 @@ namespace ElmSharp /// User defined comparison function that defines the sort order based on the gengrid item and its data. /// Return a gengrid item that contains the data and itemClass. /// preview + [Obsolete("This has been deprecated in API12")] public GenGridItem InsertSorted(GenItemClass itemClass, object data, Comparison comparison) { GenGridItem item = new GenGridItem(data, itemClass, this); @@ -546,6 +583,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public void ScrollTo(GenGridItem item, ScrollToPosition position, bool animated) { if (animated) @@ -567,6 +605,7 @@ namespace ElmSharp /// to update just one item. /// /// preview + [Obsolete("This has been deprecated in API12")] public void UpdateRealizedItems() { Interop.Elementary.elm_gengrid_realized_items_update(RealHandle); @@ -580,6 +619,7 @@ namespace ElmSharp /// to delete just one item. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Clear() { Interop.Elementary.elm_gengrid_clear(RealHandle); @@ -598,6 +638,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public GenGridItem GetItemByPosition(int x, int y, out int portionX, out int portionY) { IntPtr handle = Interop.Elementary.elm_gengrid_at_xy_item_get(RealHandle, x, y, out portionX, out portionY); @@ -610,6 +651,7 @@ namespace ElmSharp /// 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); diff --git a/src/ElmSharp/ElmSharp/GenGridItem.cs b/src/ElmSharp/ElmSharp/GenGridItem.cs index cdec871..e497d0a 100644 --- a/src/ElmSharp/ElmSharp/GenGridItem.cs +++ b/src/ElmSharp/ElmSharp/GenGridItem.cs @@ -25,6 +25,7 @@ namespace ElmSharp /// It contains the Update() method to update a gengrid item which is given. /// /// preview + [Obsolete("This has been deprecated in API12")] public class GenGridItem : GenItem { internal GenGridItem(object data, GenItemClass itemClass) : base(data, itemClass) @@ -44,6 +45,7 @@ namespace ElmSharp /// If false, it is unselected. /// /// preview + [Obsolete("This has been deprecated in API12")] public override bool IsSelected { get @@ -60,6 +62,7 @@ namespace ElmSharp /// Sets or gets the cursor to be shown when the mouse is over the gengrid item. /// /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public override string Cursor { @@ -84,6 +87,7 @@ namespace ElmSharp /// Sets or gets the style for this item cursor. /// /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public override string CursorStyle { @@ -101,6 +105,7 @@ namespace ElmSharp /// Sets or gets the cursor engine only usage for this item cursor. /// /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public override bool IsUseEngineCursor { @@ -118,6 +123,7 @@ namespace ElmSharp /// Sets or gets, or sets the style of the given gengrid item's tooltip. /// /// preview + [Obsolete("This has been deprecated in API12")] public override string TooltipStyle { get @@ -134,6 +140,7 @@ namespace ElmSharp /// Gets the gengrid item's select mode. /// /// preview + [Obsolete("This has been deprecated in API12")] public override GenItemSelectionMode SelectionMode { get @@ -150,6 +157,7 @@ namespace ElmSharp /// Gets or sets the gengrid item's row position, relative to the whole gengrid's grid area. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Row { get @@ -164,6 +172,7 @@ namespace ElmSharp /// Gets or sets the gengrid item's column position, relative to the whole gengrid's grid area. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Column { get @@ -179,6 +188,7 @@ namespace ElmSharp /// /// The text to set. /// preview + [Obsolete("This has been deprecated in API12")] public override void SetTooltipText(string tooltip) { Interop.Elementary.elm_gengrid_item_tooltip_text_set(Handle, tooltip); @@ -188,6 +198,7 @@ namespace ElmSharp /// Unsets the tooltip from item. /// /// preview + [Obsolete("This has been deprecated in API12")] public override void UnsetTooltip() { Interop.Elementary.elm_gengrid_item_tooltip_unset(Handle); @@ -202,6 +213,7 @@ namespace ElmSharp /// to update the contents of all the realized items. /// /// preview + [Obsolete("This has been deprecated in API12")] public override void Update() { Interop.Elementary.elm_gengrid_item_update(Handle); @@ -211,6 +223,7 @@ namespace ElmSharp /// Sets the content to be shown in the tooltip item. /// /// preview + [Obsolete("This has been deprecated in API12")] protected override void UpdateTooltipDelegate() { Interop.Elementary.elm_gengrid_item_tooltip_content_cb_set(Handle, diff --git a/src/ElmSharp/ElmSharp/GenItem.cs b/src/ElmSharp/ElmSharp/GenItem.cs index 0742d58..4736ed3 100644 --- a/src/ElmSharp/ElmSharp/GenItem.cs +++ b/src/ElmSharp/ElmSharp/GenItem.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// Enumeration for the selection modes of GenItem. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum GenItemSelectionMode { /// @@ -51,6 +52,7 @@ namespace ElmSharp /// It contains the GenItem class and data to display the data. /// /// preview + [Obsolete("This has been deprecated in API12")] public abstract class GenItem : ItemObject { internal Interop.Elementary.Elm_Tooltip_Item_Content_Cb _tooltipCb; @@ -60,6 +62,7 @@ namespace ElmSharp /// The delegate returning the tooltip contents. /// /// preview + [Obsolete("This has been deprecated in API12")] public delegate EvasObject GetTooltipContentDelegate(); internal GenItem(object data, GenItemClass itemClass) : base(IntPtr.Zero) @@ -80,12 +83,14 @@ namespace ElmSharp /// Gets the item class that defines how to display data. It returns type. /// /// preview + [Obsolete("This has been deprecated in API12")] public GenItemClass ItemClass { get; protected set; } /// /// Sets or gets the tooltip content delegate. /// /// preview + [Obsolete("This has been deprecated in API12")] public GetTooltipContentDelegate TooltipContentDelegate { get @@ -103,42 +108,49 @@ namespace ElmSharp /// It's an abstract property. /// /// preview + [Obsolete("This has been deprecated in API12")] public abstract GenItemSelectionMode SelectionMode { get; set; } /// /// Sets or gets the cursor to be shown when the mouse is over the gengrid item. /// /// preview + [Obsolete("This has been deprecated in API12")] public abstract string Cursor { get; set; } /// /// Sets or gets the style for this item cursor. /// /// preview + [Obsolete("This has been deprecated in API12")] public abstract string CursorStyle { get; set; } /// /// Sets or gets the cursor engine only usage for this item cursor. /// /// preview + [Obsolete("This has been deprecated in API12")] public abstract bool IsUseEngineCursor { get; set; } /// /// Gets the item data that is added through calling , , or methods. /// /// preview + [Obsolete("This has been deprecated in API12")] public object Data { get; protected set; } /// /// It's an abstract property. It's implemented by and . /// /// preview + [Obsolete("This has been deprecated in API12")] public abstract bool IsSelected { get; set; } /// /// It's an abstract property. It's implemented by and . /// /// preview + [Obsolete("This has been deprecated in API12")] public abstract string TooltipStyle { get; set; } /// @@ -146,24 +158,28 @@ namespace ElmSharp /// /// The text to set. /// preview + [Obsolete("This has been deprecated in API12")] public abstract void SetTooltipText(string tooltip); /// /// Unsets the tooltip. /// /// preview + [Obsolete("This has been deprecated in API12")] public abstract void UnsetTooltip(); /// /// It's an abstract method. It's implemented by and . /// /// preview + [Obsolete("This has been deprecated in API12")] public abstract void Update(); /// /// The override method for deleting the item class and item data. It's called when the item is deleted. /// /// preview + [Obsolete("This has been deprecated in API12")] protected override void OnInvalidate() { ItemClass?.SendItemDeleted(Data); @@ -175,6 +191,7 @@ namespace ElmSharp /// Abstract method for updating the tooltip content. /// /// preview + [Obsolete("This has been deprecated in API12")] protected abstract void UpdateTooltipDelegate(); } } \ No newline at end of file diff --git a/src/ElmSharp/ElmSharp/GenItemClass.cs b/src/ElmSharp/ElmSharp/GenItemClass.cs index 002493a..051cbfc 100644 --- a/src/ElmSharp/ElmSharp/GenItemClass.cs +++ b/src/ElmSharp/ElmSharp/GenItemClass.cs @@ -27,6 +27,7 @@ namespace ElmSharp /// It has some display styles, such as "default", "full", and "group_index". /// /// preview + [Obsolete("This has been deprecated in API12")] public class GenItemClass : IDisposable { static Dictionary s_HandleToEvasObject = new Dictionary(); @@ -38,6 +39,7 @@ namespace ElmSharp /// The part where the data should be shown. /// Return string that should be shown. /// preview + [Obsolete("This has been deprecated in API12")] public delegate string GetTextDelegate(object data, string part); /// @@ -47,6 +49,7 @@ namespace ElmSharp /// The part where the data should be shown. /// Return content that should be shown. /// preview + [Obsolete("This has been deprecated in API12")] public delegate EvasObject GetContentDelegate(object data, string part); /// @@ -54,6 +57,7 @@ namespace ElmSharp /// /// The item data. /// preview + [Obsolete("This has been deprecated in API12")] public delegate void DeleteDelegate(object data); /// @@ -64,6 +68,7 @@ namespace ElmSharp /// The content that has been added in gengrid. /// Return content that should be shown. /// preview + [Obsolete("This has been deprecated in API12")] public delegate EvasObject GetReusableContentDelegate(object data, string part, EvasObject old); ItemClass _itemClass; @@ -75,6 +80,7 @@ namespace ElmSharp /// /// The item display style. /// preview + [Obsolete("This has been deprecated in API12")] public GenItemClass(string style) { _style = style; @@ -103,6 +109,7 @@ namespace ElmSharp /// Gets the item style. /// /// preview + [Obsolete("This has been deprecated in API12")] public string ItemStyle { get { return _style; } } /// @@ -110,6 +117,7 @@ namespace ElmSharp /// If get, return . /// /// preview + [Obsolete("This has been deprecated in API12")] public GetTextDelegate GetTextHandler { get; set; } /// @@ -117,6 +125,7 @@ namespace ElmSharp /// If get, return . /// /// preview + [Obsolete("This has been deprecated in API12")] public GetContentDelegate GetContentHandler { get; set; } /// @@ -124,6 +133,7 @@ namespace ElmSharp /// If get, return . /// /// preview + [Obsolete("This has been deprecated in API12")] public DeleteDelegate DeleteHandler { get; set; } /// @@ -131,6 +141,7 @@ namespace ElmSharp /// If get, return . /// /// preview + [Obsolete("This has been deprecated in API12")] public GetReusableContentDelegate ReusableContentHandler { get; set; } internal IntPtr UnmanagedPtr @@ -154,6 +165,7 @@ namespace ElmSharp /// otherwise false. /// /// preview + [Obsolete("This has been deprecated in API12")] protected virtual void Dispose(bool disposing) { if (_unmanagedPtr != IntPtr.Zero) @@ -167,6 +179,7 @@ namespace ElmSharp /// Destroys the current object. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Dispose() { Dispose(true); @@ -184,6 +197,7 @@ namespace ElmSharp /// /// The new item class object. /// preview + [Obsolete("This has been deprecated in API12")] protected virtual IntPtr CreateItemClass() { return Interop.Elementary.elm_genlist_item_class_new(); @@ -194,6 +208,7 @@ namespace ElmSharp /// /// The object to be removed. /// preview + [Obsolete("This has been deprecated in API12")] protected virtual void ReleaseItemClass(IntPtr unmanagedPtr) { Interop.Elementary.elm_genlist_item_class_free(unmanagedPtr); @@ -219,7 +234,7 @@ namespace ElmSharp void EvasObjectDeleted(object sender, EventArgs e) { - if(sender is EvasObject evasObject) + if (sender is EvasObject evasObject) s_HandleToEvasObject.Remove(evasObject); } @@ -249,6 +264,7 @@ namespace ElmSharp /// It represents the gengrid item class definition field details. /// /// preview + [Obsolete("This has been deprecated in API12")] public class GenGridItemClass : GenItemClass { /// @@ -256,6 +272,7 @@ namespace ElmSharp /// /// The item display style. /// preview + [Obsolete("This has been deprecated in API12")] public GenGridItemClass(string style) : base(style) { } @@ -265,6 +282,7 @@ namespace ElmSharp /// /// The new instance. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateItemClass() { return Interop.Elementary.elm_gengrid_item_class_new(); @@ -275,32 +293,39 @@ namespace ElmSharp /// /// The object to be removed. /// preview + [Obsolete("This has been deprecated in API12")] protected override void ReleaseItemClass(IntPtr unmanagedPtr) { Interop.Elementary.elm_gengrid_item_class_free(unmanagedPtr); } } - [NativeStruct("Elm_Gen_Item_Class", Include="Elementary.h", PkgConfig="elementary")] + [NativeStruct("Elm_Gen_Item_Class", Include = "Elementary.h", PkgConfig = "elementary")] [StructLayout(LayoutKind.Sequential)] internal class ItemClass { /// preview + [Obsolete("This has been deprecated in API12")] public delegate string GetTextCallback(IntPtr data, IntPtr obj, IntPtr part); /// preview + [Obsolete("This has been deprecated in API12")] public delegate IntPtr GetContentCallback(IntPtr data, IntPtr obj, IntPtr part); /// preview + [Obsolete("This has been deprecated in API12")] public delegate int GetStateCallback(IntPtr data, IntPtr obj, IntPtr part); /// preview + [Obsolete("This has been deprecated in API12")] public delegate void DelCallback(IntPtr data, IntPtr obj); /// preview + [Obsolete("This has been deprecated in API12")] public delegate int FilterCallback(IntPtr data, IntPtr obj, IntPtr key); /// preview + [Obsolete("This has been deprecated in API12")] public delegate IntPtr GetReusableContentCallback(IntPtr data, IntPtr obj, IntPtr part, IntPtr old); public int version; diff --git a/src/ElmSharp/ElmSharp/GenList.cs b/src/ElmSharp/ElmSharp/GenList.cs index 7896b8f..09291c7 100644 --- a/src/ElmSharp/ElmSharp/GenList.cs +++ b/src/ElmSharp/ElmSharp/GenList.cs @@ -23,6 +23,7 @@ namespace ElmSharp /// Enumeration for setting the genlist item types. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum GenListItemType { /// @@ -45,6 +46,7 @@ namespace ElmSharp /// Enumeration for setting the genlist's resizing behavior, transverse axis scrolling, and items cropping. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum GenListMode { /// @@ -79,12 +81,14 @@ namespace ElmSharp /// All events of the GenList contain GenListItemEventArgs as a parameter. /// /// preview + [Obsolete("This has been deprecated in API12")] public class GenListItemEventArgs : EventArgs { /// /// Gets or sets the genlist item. The return type is . /// /// preview + [Obsolete("This has been deprecated in API12")] public GenListItem Item { get; set; } internal static GenListItemEventArgs CreateFromSmartEvent(IntPtr data, IntPtr obj, IntPtr info) @@ -98,6 +102,7 @@ namespace ElmSharp /// Enumeration for defining where to position the item in the genlist. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum ScrollToPosition { /// @@ -134,6 +139,7 @@ namespace ElmSharp /// If all you want is a simple list with icons and a single text, use widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public class GenList : Layout { HashSet _children = new HashSet(); @@ -160,6 +166,7 @@ namespace ElmSharp /// /// The parent is a given container, which will be attached by GenList as a child. It's type. /// preview + [Obsolete("This has been deprecated in API12")] public GenList(EvasObject parent) : base(parent) { } @@ -168,6 +175,7 @@ namespace ElmSharp /// Creates and initializes a new instance of the GenList class. /// /// preview + [Obsolete("This has been deprecated in API12")] protected GenList() { } @@ -179,6 +187,7 @@ namespace ElmSharp /// If true, the genlist items will have the same height and width. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool Homogeneous { get @@ -205,6 +214,7 @@ namespace ElmSharp /// If so, then some dynamic resizable objects in the genlist would not be diplayed properly. /// /// preview + [Obsolete("This has been deprecated in API12")] public GenListMode ListMode { get @@ -221,6 +231,7 @@ namespace ElmSharp /// Gets the first item in the genlist. /// /// preview + [Obsolete("This has been deprecated in API12")] public GenListItem FirstItem { get @@ -234,6 +245,7 @@ namespace ElmSharp /// Gets the last item in the genlist. /// /// preview + [Obsolete("This has been deprecated in API12")] public GenListItem LastItem { get @@ -249,6 +261,7 @@ namespace ElmSharp /// You can move the item up and down. However, reordering does not work with group items. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool ReorderMode { get @@ -265,6 +278,7 @@ namespace ElmSharp /// Gets or sets the maximum number of items within an item block. /// /// preview + [Obsolete("This has been deprecated in API12")] public int BlockCount { get @@ -281,6 +295,7 @@ namespace ElmSharp /// Gets or sets whether the genlist items should be highlighted when an item is selected. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsHighlight { get @@ -297,6 +312,7 @@ namespace ElmSharp /// Gets or sets the timeout in seconds for the longpress event. /// /// preview + [Obsolete("This has been deprecated in API12")] public double LongPressTimeout { get @@ -318,6 +334,7 @@ namespace ElmSharp /// Clicking on a focusable widget inside an item will couse this particular item to get focus as usual. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool FocusOnSelection { get @@ -334,6 +351,7 @@ namespace ElmSharp /// Gets or sets whether to enable multi-selection in the genlist. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsMultiSelection { get @@ -350,6 +368,7 @@ namespace ElmSharp /// Gets the selected item in a given GenList widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public GenListItem SelectedItem { get @@ -363,6 +382,7 @@ namespace ElmSharp /// Gets or sets the genlist select mode by . /// /// preview + [Obsolete("This has been deprecated in API12")] public GenItemSelectionMode SelectionMode { get @@ -379,6 +399,7 @@ namespace ElmSharp /// Gets the count of items in a this genlist widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Count { get @@ -395,6 +416,7 @@ namespace ElmSharp /// ScrollBarVisiblePolicy.Visible turns it on all the time, and ScrollBarVisiblePolicy.Invisible always keeps it off. /// /// preview + [Obsolete("This has been deprecated in API12")] public ScrollBarVisiblePolicy HorizontalScrollBarVisiblePolicy { get @@ -417,6 +439,7 @@ namespace ElmSharp /// ScrollBarVisiblePolicy.Visible turns it on all the time, and ScrollBarVisiblePolicy.Invisible always keeps it off. /// /// preview + [Obsolete("This has been deprecated in API12")] public ScrollBarVisiblePolicy VerticalScrollBarVisiblePolicy { get @@ -435,48 +458,56 @@ namespace ElmSharp /// ItemSelected is raised when a new genlist item is selected. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemSelected; /// /// ItemUnselected is raised when the genlist item is unselected. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemUnselected; /// /// ItemPressed is raised when a new genlist item is pressed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemPressed; /// /// ItemReleased is raised when a new genlist item is released. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemReleased; /// /// ItemActivated is raised when a new genlist item is double-clicked or pressed (enter|return|spacebar). /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemActivated; /// /// ItemDoubleClicked is raised when a new genlist item is double-clicked. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemDoubleClicked; /// /// ItemExpanded is raised when a new genlist item is indicated to expand. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemExpanded; /// /// ItemRealized is raised when a new genlist item is created as a real object. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemRealized; /// @@ -484,18 +515,21 @@ namespace ElmSharp /// After calling unrealize, the item's content objects are deleted, and the item object itself is deleted or is put into a floating cache. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemUnrealized; /// /// ItemLongPressed is raised when a genlist item is pressed for a certain amount of time. By default, it's 1 second. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemLongPressed; /// /// ItemMoved is raised when a genlist item is moved in the reorder mode. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemMoved; /// @@ -503,6 +537,7 @@ namespace ElmSharp /// To get the relative previous item, use . /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemMovedAfter; /// @@ -510,12 +545,14 @@ namespace ElmSharp /// To get the relative next item, use . /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemMovedBefore; /// /// Changed is raised when the genlist has changed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Changed { add { _changed.On += value; } @@ -526,6 +563,7 @@ namespace ElmSharp /// ScrollAnimationStarted is raised when the scrolling animation has started. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ScrollAnimationStarted { add { _scrollAnimationStarted.On += value; } @@ -536,6 +574,7 @@ namespace ElmSharp /// ScrollAnimationStopped is raised when the scrolling animation has stopped. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ScrollAnimationStopped { add { _scrollAnimationStopped.On += value; } @@ -551,6 +590,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public GenListItem Append(GenItemClass itemClass, object data) { return Append(itemClass, data, GenListItemType.Normal); @@ -564,6 +604,7 @@ namespace ElmSharp /// The genlist item type. /// Return a newly added genlist item that contains the data and itemClass. /// preview + [Obsolete("This has been deprecated in API12")] public GenListItem Append(GenItemClass itemClass, object data, GenListItemType type) { return Append(itemClass, data, type, null); @@ -578,6 +619,7 @@ namespace ElmSharp /// The parent item, otherwise null if there is no parent item. /// Return a newly added genlist item that contains the data and itemClass. /// preview + [Obsolete("This has been deprecated in API12")] public GenListItem Append(GenItemClass itemClass, object data, GenListItemType type, GenListItem parent) { GenListItem item = new GenListItem(data, itemClass, this); @@ -593,6 +635,7 @@ namespace ElmSharp /// The item data. /// Return a newly added genlist item that contains data and itemClass. /// preview + [Obsolete("This has been deprecated in API12")] public GenListItem Prepend(GenItemClass itemClass, object data) { return Prepend(itemClass, data, GenListItemType.Normal); @@ -606,6 +649,7 @@ namespace ElmSharp /// The genlist item type. /// Return a newly added genlist item that contains data and itemClass. /// preview + [Obsolete("This has been deprecated in API12")] public GenListItem Prepend(GenItemClass itemClass, object data, GenListItemType type) { return Prepend(itemClass, data, type, null); @@ -620,6 +664,7 @@ namespace ElmSharp /// The parent item, otherwise null if there is no parent item. /// Return a newly added genlist item that contains the data and itemClass. /// preview + [Obsolete("This has been deprecated in API12")] public GenListItem Prepend(GenItemClass itemClass, object data, GenListItemType type, GenListItem parent) { GenListItem item = new GenListItem(data, itemClass, this); @@ -637,6 +682,7 @@ namespace ElmSharp /// The item before which to place this new one. /// Return a newly added genlist item that contains data and itemClass. /// preview + [Obsolete("This has been deprecated in API12")] public GenListItem InsertBefore(GenItemClass itemClass, object data, GenListItem before) { return InsertBefore(itemClass, data, before, GenListItemType.Normal); @@ -652,6 +698,7 @@ namespace ElmSharp /// The genlist item type. /// Return a newly added genlist item that contains data and itemClass. /// preview + [Obsolete("This has been deprecated in API12")] public GenListItem InsertBefore(GenItemClass itemClass, object data, GenListItem before, GenListItemType type) { return InsertBefore(itemClass, data, before, type, null); @@ -667,6 +714,7 @@ namespace ElmSharp /// The parent item, otherwise null if there is no parent item. /// Return a newly added genlist item that contains data and itemClass. /// preview + [Obsolete("This has been deprecated in API12")] public GenListItem InsertBefore(GenItemClass itemClass, object data, GenListItem before, GenListItemType type, GenListItem parent) { GenListItem item = new GenListItem(data, itemClass, this); @@ -694,6 +742,7 @@ namespace ElmSharp /// The parent item, otherwise null if there is no parent item. /// Return a newly added genlist item that contains data and itemClass. /// preview + [Obsolete("This has been deprecated in API12")] public GenListItem InsertAfter(GenItemClass itemClass, object data, GenListItem after, GenListItemType type, GenListItem parent) { GenListItem item = new GenListItem(data, itemClass, this); @@ -721,6 +770,7 @@ namespace ElmSharp /// The parent item, otherwise null if there is no parent item. /// Return a genlist item that contains the data and itemClass. /// preview + [Obsolete("This has been deprecated in API12")] public GenListItem InsertSorted(GenItemClass itemClass, object data, Comparison comparison, GenListItemType type, GenListItem parent) { GenListItem item = new GenListItem(data, itemClass, this); @@ -754,6 +804,7 @@ namespace ElmSharp /// The position to show the given item to . /// The animated indicates how to display the item, by scrolling or by jumping. /// preview + [Obsolete("This has been deprecated in API12")] public void ScrollTo(GenListItem item, ScrollToPosition position, bool animated) { if (animated) @@ -774,6 +825,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public void UpdateRealizedItems() { Interop.Elementary.elm_genlist_realized_items_update(RealHandle); @@ -786,6 +838,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public void Clear() { Interop.Elementary.elm_genlist_clear(RealHandle); @@ -801,6 +854,7 @@ namespace ElmSharp /// /// The item at the given coordinates. /// preview + [Obsolete("This has been deprecated in API12")] public GenListItem GetItemByPosition(int x, int y, out int pos) { IntPtr handle = Interop.Elementary.elm_genlist_at_xy_item_get(RealHandle, x, y, out pos); @@ -813,6 +867,7 @@ namespace ElmSharp /// The number of the item to grab (0 being the first). /// /// preview + [Obsolete("This has been deprecated in API12")] public GenListItem GetItemByIndex(int index) { IntPtr handle = Interop.Elementary.elm_genlist_nth_item_get(RealHandle, index); @@ -823,6 +878,7 @@ namespace ElmSharp /// The callback of the Unrealized event. /// /// preview + [Obsolete("This has been deprecated in API12")] protected override void OnRealized() { base.OnRealized(); @@ -836,6 +892,7 @@ namespace ElmSharp /// 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); diff --git a/src/ElmSharp/ElmSharp/GenListItem.cs b/src/ElmSharp/ElmSharp/GenListItem.cs index 1b1bef9..7cfd23f 100644 --- a/src/ElmSharp/ElmSharp/GenListItem.cs +++ b/src/ElmSharp/ElmSharp/GenListItem.cs @@ -23,6 +23,7 @@ namespace ElmSharp /// The type of the item's part types. /// /// preview + [Obsolete("This has been deprecated in API12")] [Flags] public enum GenListItemFieldType { @@ -58,6 +59,7 @@ namespace ElmSharp /// It contains the Update() method to update a genlist item which is given. /// /// preview + [Obsolete("This has been deprecated in API12")] public class GenListItem : GenItem { internal GenListItem(object data, GenItemClass itemClass) : base(data, itemClass) @@ -72,6 +74,7 @@ namespace ElmSharp /// Gets or sets whether a given genlist item is selected. /// /// preview + [Obsolete("This has been deprecated in API12")] public override bool IsSelected { get @@ -88,6 +91,7 @@ namespace ElmSharp /// Gets or sets whether a given genlist item is expanded. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsExpanded { get @@ -108,6 +112,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public override void Update() { Interop.Elementary.elm_genlist_item_update(Handle); @@ -123,6 +128,7 @@ namespace ElmSharp /// The type of the item's part type. /// /// preview + [Obsolete("This has been deprecated in API12")] public void UpdateField(string part, GenListItemFieldType type) { Interop.Elementary.elm_genlist_item_fields_update(Handle, part, (uint)type); @@ -132,6 +138,7 @@ namespace ElmSharp /// Demotes an item to the end of the list. /// /// preview + [Obsolete("This has been deprecated in API12")] public void DemoteItem() { Interop.Elementary.elm_genlist_item_demote(Handle); @@ -141,6 +148,7 @@ namespace ElmSharp /// Gets or sets the genlist item's select mode. /// /// preview + [Obsolete("This has been deprecated in API12")] public override GenItemSelectionMode SelectionMode { get @@ -158,6 +166,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public GenListItem Next { get @@ -175,6 +184,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public GenListItem Previous { get @@ -191,6 +201,7 @@ namespace ElmSharp /// Sets or gets the content to be shown in the tooltip item. /// /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public override string Cursor { @@ -215,6 +226,7 @@ namespace ElmSharp /// Sets or gets the style for this item cursor. /// /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public override string CursorStyle { @@ -232,6 +244,7 @@ namespace ElmSharp /// Sets or gets the cursor engine only usage for this item cursor. /// /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public override bool IsUseEngineCursor { @@ -250,6 +263,7 @@ namespace ElmSharp /// /// The text to set in the content. /// preview + [Obsolete("This has been deprecated in API12")] public override void SetTooltipText(string tooltip) { Interop.Elementary.elm_genlist_item_tooltip_text_set(Handle, tooltip); @@ -259,6 +273,7 @@ namespace ElmSharp /// Unsets the tooltip from the item. /// /// preview + [Obsolete("This has been deprecated in API12")] public override void UnsetTooltip() { Interop.Elementary.elm_genlist_item_tooltip_unset(Handle); @@ -268,6 +283,7 @@ namespace ElmSharp /// Gets or sets the style of the given genlist item's tooltip. /// /// preview + [Obsolete("This has been deprecated in API12")] public override string TooltipStyle { get @@ -284,6 +300,7 @@ namespace ElmSharp /// Gets or sets the disable size restrictions on an object's tooltip. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsTooltipWindowMode { get @@ -300,6 +317,7 @@ namespace ElmSharp /// Gets the index of the item. It is only valid, once displayed. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Index { get @@ -312,6 +330,7 @@ namespace ElmSharp /// Gets the depth of the expanded item. /// /// preview + [Obsolete("This has been deprecated in API12")] public int ExpandedItemDepth { get @@ -327,6 +346,7 @@ namespace ElmSharp /// This removes the items that are the children (and their descendants) of the given item. /// /// preview + [Obsolete("This has been deprecated in API12")] public void ClearSubitems() { Interop.Elementary.elm_genlist_item_subitems_clear(Handle); @@ -339,6 +359,7 @@ namespace ElmSharp /// The item class for the item. /// The data for the item. /// preview + [Obsolete("This has been deprecated in API12")] public void UpdateItemClass(GenItemClass itemClass, object data) { Data = data; @@ -350,6 +371,7 @@ namespace ElmSharp /// Sets the content to be shown in the tooltip item. /// /// preview + [Obsolete("This has been deprecated in API12")] protected override void UpdateTooltipDelegate() { Interop.Elementary.elm_genlist_item_tooltip_content_cb_set(Handle, diff --git a/src/ElmSharp/ElmSharp/GestureLayer.cs b/src/ElmSharp/ElmSharp/GestureLayer.cs index d552278..1bffb8f 100644 --- a/src/ElmSharp/ElmSharp/GestureLayer.cs +++ b/src/ElmSharp/ElmSharp/GestureLayer.cs @@ -27,6 +27,7 @@ namespace ElmSharp /// Inherits Widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public class GestureLayer : Widget { private readonly Interop.Elementary.GestureEventCallback _gestureCallback; @@ -41,6 +42,7 @@ namespace ElmSharp /// /// The parent is a given container which will be attached by the GestureLayer as a child. It's the type. /// preview + [Obsolete("This has been deprecated in API12")] public GestureLayer(EvasObject parent) : base(parent) { _gestureCallback = new Interop.Elementary.GestureEventCallback(GestureCallbackHandler); @@ -50,6 +52,7 @@ namespace ElmSharp /// Enumeration for the supported gesture types. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum GestureType { /// @@ -102,6 +105,7 @@ namespace ElmSharp /// Enumeration for the gesture states. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum GestureState { /// @@ -136,6 +140,7 @@ namespace ElmSharp /// Sets or gets the repeat-events setting. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool HoldEvents { get @@ -152,6 +157,7 @@ namespace ElmSharp /// Sets or gets the gesture layer to continue enable of an object. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool Continues { get @@ -168,6 +174,7 @@ namespace ElmSharp /// Sets or gets the gesture layer finger-size for taps. /// /// preview + [Obsolete("This has been deprecated in API12")] public int TapFingerSize { get @@ -184,6 +191,7 @@ namespace ElmSharp /// Sets or gets the gesture layer long tap start timeout of an object. /// /// preview + [Obsolete("This has been deprecated in API12")] public double LongTapTimeout { get @@ -200,6 +208,7 @@ namespace ElmSharp /// Sets or gets the gesture layer double tap timeout of an object. /// /// preview + [Obsolete("This has been deprecated in API12")] public double DoubleTapTimeout { get @@ -216,6 +225,7 @@ namespace ElmSharp /// Sets or gets the gesture layer flick time limit (in ms) of an object. /// /// preview + [Obsolete("This has been deprecated in API12")] public int FlickTimeLimit { get @@ -232,6 +242,7 @@ namespace ElmSharp /// Sets or gets the gesture layer line minimum length of an object. /// /// preview + [Obsolete("This has been deprecated in API12")] public int MinimumLineLength { get @@ -248,6 +259,7 @@ namespace ElmSharp /// Sets or gets the gesture layer line angular tolerance of an object. /// /// preview + [Obsolete("This has been deprecated in API12")] public double LineAngularTolerance { get @@ -264,6 +276,7 @@ namespace ElmSharp /// Sets or gets the gesture layer line distance tolerance of an object. /// /// preview + [Obsolete("This has been deprecated in API12")] public int LineDistanceTolerance { get @@ -280,6 +293,7 @@ namespace ElmSharp /// Sets or gets the step-value for the rotate action. /// /// preview + [Obsolete("This has been deprecated in API12")] public double RotateStep { get @@ -296,6 +310,7 @@ namespace ElmSharp /// Sets or gets the gesture layer rotate angular tolerance of an object. /// /// preview + [Obsolete("This has been deprecated in API12")] public double RotateAngularTolerance { get @@ -312,6 +327,7 @@ namespace ElmSharp /// Sets or gets the control step value for the zoom action. /// /// preview + [Obsolete("This has been deprecated in API12")] public double ZoomStep { get @@ -328,6 +344,7 @@ namespace ElmSharp /// Sets or gets the gesture layer zoom distance tolerance of an object. /// /// preview + [Obsolete("This has been deprecated in API12")] public int ZoomDistanceTolerance { get @@ -344,6 +361,7 @@ namespace ElmSharp /// Sets or gets the gesture layer zoom finger factor of an object. /// /// preview + [Obsolete("This has been deprecated in API12")] public double ZoomFingerFactor { get @@ -360,6 +378,7 @@ namespace ElmSharp /// Sets or gets the gesture layer zoom wheel factor of an object. /// /// preview + [Obsolete("This has been deprecated in API12")] public double ZoomWheelFactor { get @@ -380,6 +399,7 @@ namespace ElmSharp /// /// The object to attach. /// preview + [Obsolete("This has been deprecated in API12")] public void Attach(EvasObject target) { Interop.Elementary.elm_gesture_layer_attach(Handle, target.Handle); @@ -393,6 +413,7 @@ namespace ElmSharp /// The event the callback tracks (START, MOVE, END, ABORT). /// The callback itself. /// preview + [Obsolete("This has been deprecated in API12")] public void SetGestureCallback(GestureType type, GestureState state, Action action) { lock (_handlers) @@ -436,6 +457,7 @@ namespace ElmSharp /// Clears the gesture state change callback. /// /// preview + [Obsolete("This has been deprecated in API12")] public void ClearCallbacks() { lock (_handlers) @@ -463,6 +485,7 @@ namespace ElmSharp /// The event the callback tracks (START, MOVE, END, ABORT). /// The callback itself. /// preview + [Obsolete("This has been deprecated in API12")] public void SetTapCallback(GestureType type, GestureState state, Action action) { SetCallback(type, state, action); @@ -474,6 +497,7 @@ namespace ElmSharp /// The event the callback tracks (START, MOVE, END, ABORT). /// The callback itself. /// preview + [Obsolete("This has been deprecated in API12")] public void SetMomentumCallback(GestureState state, Action action) { SetCallback(GestureType.Momentum, state, action); @@ -485,6 +509,7 @@ namespace ElmSharp /// The event the callback tracks (START, MOVE, END, ABORT). /// The callback itself. /// preview + [Obsolete("This has been deprecated in API12")] public void SetLineCallback(GestureState state, Action action) { SetCallback(GestureType.Line, state, action); @@ -496,6 +521,7 @@ namespace ElmSharp /// The event the callback tracks (START, MOVE, END, ABORT). /// The callback itself. /// preview + [Obsolete("This has been deprecated in API12")] public void SetFlickCallback(GestureState state, Action action) { SetCallback(GestureType.Flick, state, action); @@ -507,6 +533,7 @@ namespace ElmSharp /// The event the callback tracks (START, MOVE, END, ABORT). /// The callback itself. /// preview + [Obsolete("This has been deprecated in API12")] public void SetZoomCallback(GestureState state, Action action) { SetCallback(GestureType.Zoom, state, action); @@ -518,6 +545,7 @@ namespace ElmSharp /// The event the callback tracks (START, MOVE, END, ABORT). /// The callback itself. /// preview + [Obsolete("This has been deprecated in API12")] public void SetRotateCallback(GestureState state, Action action) { SetCallback(GestureType.Rotate, state, action); @@ -531,6 +559,7 @@ namespace ElmSharp /// The gesture layer's parent widget. /// /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { return Interop.Elementary.elm_gesture_layer_add(parent.Handle); @@ -540,6 +569,7 @@ namespace ElmSharp /// Clears the gesture state change callback. /// /// preview + [Obsolete("This has been deprecated in API12")] protected override void OnUnrealize() { ClearCallbacks(); @@ -603,7 +633,8 @@ namespace ElmSharp /// The struct of TapData. /// /// preview - [NativeStruct("Elm_Gesture_Taps_Info", Include="Elementary.h", PkgConfig="elementary")] + [Obsolete("This has been deprecated in API12")] + [NativeStruct("Elm_Gesture_Taps_Info", Include = "Elementary.h", PkgConfig = "elementary")] [StructLayout(LayoutKind.Sequential)] public struct TapData { @@ -611,12 +642,14 @@ namespace ElmSharp /// The X coordinate of the center point. /// /// preview + [Obsolete("This has been deprecated in API12")] public Int32 X; /// /// The Y coordinate of the center point. /// /// preview + [Obsolete("This has been deprecated in API12")] public Int32 Y; #pragma warning disable 3003 @@ -625,12 +658,14 @@ namespace ElmSharp /// The number of fingers tapped. /// /// preview + [Obsolete("This has been deprecated in API12")] public UInt32 FingersCount; /// /// The timestamp. /// /// preview + [Obsolete("This has been deprecated in API12")] public UInt32 Timestamp; #pragma warning restore 3003 @@ -640,7 +675,8 @@ namespace ElmSharp /// The struct of MomentumData. /// /// preview - [NativeStruct("Elm_Gesture_Momentum_Info", Include="Elementary.h", PkgConfig="elementary")] + [Obsolete("This has been deprecated in API12")] + [NativeStruct("Elm_Gesture_Momentum_Info", Include = "Elementary.h", PkgConfig = "elementary")] [StructLayout(LayoutKind.Sequential)] public struct MomentumData { @@ -648,24 +684,28 @@ namespace ElmSharp /// Final-swipe direction starting point on X. /// /// preview + [Obsolete("This has been deprecated in API12")] public Int32 X1; /// /// Final-swipe direction starting point on Y. /// /// preview + [Obsolete("This has been deprecated in API12")] public Int32 Y1; /// /// Final-swipe direction ending point on X. /// /// preview + [Obsolete("This has been deprecated in API12")] public Int32 X2; /// /// Final-swipe direction ending point on Y. /// /// preview + [Obsolete("This has been deprecated in API12")] public Int32 Y2; #pragma warning disable 3003 @@ -674,30 +714,35 @@ namespace ElmSharp /// Timestamp of start of final X-swipe. /// /// preview + [Obsolete("This has been deprecated in API12")] public UInt32 HorizontalSwipeTimestamp; /// /// Timestamp of start of final Y-swipe. /// /// preview + [Obsolete("This has been deprecated in API12")] public UInt32 VerticalSwipeTimestamp; /// /// Momentum on X. /// /// preview + [Obsolete("This has been deprecated in API12")] public Int32 HorizontalMomentum; /// /// Momentum on Y. /// /// preview + [Obsolete("This has been deprecated in API12")] public Int32 VerticalMomentum; /// /// Number of fingers. /// /// preview + [Obsolete("This has been deprecated in API12")] public UInt32 FingersCount; #pragma warning restore 3003 @@ -707,7 +752,8 @@ namespace ElmSharp /// The struct of LineData. /// /// preview - [NativeStruct("Elm_Gesture_Line_Info", Include="Elementary.h", PkgConfig="elementary")] + [Obsolete("This has been deprecated in API12")] + [NativeStruct("Elm_Gesture_Line_Info", Include = "Elementary.h", PkgConfig = "elementary")] [StructLayout(LayoutKind.Sequential)] public struct LineData { @@ -715,24 +761,28 @@ namespace ElmSharp /// Final-swipe direction starting point on X. /// /// preview + [Obsolete("This has been deprecated in API12")] public Int32 X1; /// /// Final-swipe direction starting point on Y. /// /// preview + [Obsolete("This has been deprecated in API12")] public Int32 Y1; /// /// Final-swipe direction ending point on X. /// /// preview + [Obsolete("This has been deprecated in API12")] public Int32 X2; /// /// Final-swipe direction ending point on Y. /// /// preview + [Obsolete("This has been deprecated in API12")] public Int32 Y2; #pragma warning disable 3003 @@ -741,30 +791,35 @@ namespace ElmSharp /// Timestamp of start of final X-swipe. /// /// preview + [Obsolete("This has been deprecated in API12")] public UInt32 HorizontalSwipeTimestamp; /// /// Timestamp of start of final Y-swipe. /// /// preview + [Obsolete("This has been deprecated in API12")] public UInt32 VerticalSwipeTimestamp; /// /// Momentum on X. /// /// preview + [Obsolete("This has been deprecated in API12")] public Int32 HorizontalMomentum; /// /// Momentum on Y. /// /// preview + [Obsolete("This has been deprecated in API12")] public Int32 VerticalMomentum; /// /// Number of fingers. /// /// preview + [Obsolete("This has been deprecated in API12")] public UInt32 FingersCount; #pragma warning restore 3003 @@ -773,6 +828,7 @@ namespace ElmSharp /// Angle (direction) of lines. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Angle; } @@ -780,7 +836,8 @@ namespace ElmSharp /// The struct of ZoomData. /// /// preview - [NativeStruct("Elm_Gesture_Zoom_Info", Include="Elementary.h", PkgConfig="elementary")] + [Obsolete("This has been deprecated in API12")] + [NativeStruct("Elm_Gesture_Zoom_Info", Include = "Elementary.h", PkgConfig = "elementary")] [StructLayout(LayoutKind.Sequential)] public struct ZoomData { @@ -788,24 +845,28 @@ namespace ElmSharp /// The X coordinate of zoom center point reported to the user. /// /// preview + [Obsolete("This has been deprecated in API12")] public Int32 X; /// /// The Y coordinate of zoom center point reported to the user. /// /// preview + [Obsolete("This has been deprecated in API12")] public Int32 Y; /// /// The radius (distance) between fingers reported to user. /// /// preview + [Obsolete("This has been deprecated in API12")] public Int32 Radius; /// /// The zoom value. 1.0 means no zoom. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Zoom; /// @@ -818,7 +879,8 @@ namespace ElmSharp /// The struct of RotateData. /// /// preview - [NativeStruct("Elm_Gesture_Rotate_Info", Include="Elementary.h", PkgConfig="elementary")] + [Obsolete("This has been deprecated in API12")] + [NativeStruct("Elm_Gesture_Rotate_Info", Include = "Elementary.h", PkgConfig = "elementary")] [StructLayout(LayoutKind.Sequential)] public struct RotateData { @@ -826,30 +888,35 @@ namespace ElmSharp /// The X coordinate of rotation center point reported to the user. /// /// preview + [Obsolete("This has been deprecated in API12")] public Int32 X; /// /// The Y coordinate of rotation center point reported to the user. /// /// preview + [Obsolete("This has been deprecated in API12")] public Int32 Y; /// /// The radius (distance) between fingers reported to user. /// /// preview + [Obsolete("This has been deprecated in API12")] public Int32 Radius; /// /// The start-angle. /// /// preview + [Obsolete("This has been deprecated in API12")] public double BaseAngle; /// /// The rotation value. 0.0 means no rotation. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Angle; /// @@ -864,12 +931,14 @@ namespace ElmSharp /// Config is a static class, it provides gestureLayer's timeout information. /// /// preview + [Obsolete("This has been deprecated in API12")] public static class Config { /// /// Sets or gets the duration for occurring long tap event of gesture layer. /// /// preview + [Obsolete("This has been deprecated in API12")] public static double DefaultLongTapTimeout { get @@ -886,6 +955,7 @@ namespace ElmSharp /// Sets or gets the duration for occurring double tap event of gesture layer. /// /// preview + [Obsolete("This has been deprecated in API12")] public static double DefaultDoubleTapTimeout { get diff --git a/src/ElmSharp/ElmSharp/Hoversel.cs b/src/ElmSharp/ElmSharp/Hoversel.cs index a560a07..8a54f79 100644 --- a/src/ElmSharp/ElmSharp/Hoversel.cs +++ b/src/ElmSharp/ElmSharp/Hoversel.cs @@ -22,12 +22,14 @@ namespace ElmSharp /// The HoverselItemEventArgs is a HoverselItem's EventArgs. /// /// preview + [Obsolete("This has been deprecated in API12")] public class HoverselItemEventArgs : EventArgs { /// /// The hoversel's item. /// /// preview + [Obsolete("This has been deprecated in API12")] public HoverselItem Item { get; set; } internal static HoverselItemEventArgs CreateFromSmartEvent(IntPtr data, IntPtr obj, IntPtr info) @@ -41,6 +43,7 @@ namespace ElmSharp /// The hoversel is a button that pops up a list of items. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Hoversel : Layout { SmartEvent _clicked; @@ -54,6 +57,7 @@ namespace ElmSharp /// /// The parent is a given container, which will be attached by Hoversel as a child. It's type. /// preview + [Obsolete("This has been deprecated in API12")] public Hoversel(EvasObject parent) : base(parent) { _clicked = new SmartEvent(this, "clicked"); @@ -87,30 +91,35 @@ namespace ElmSharp /// Clicked will be triggered when the hoversel is clicked. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Clicked; /// /// Expanded will be triggered when the hoversel is activated by clicking the hoversel, or by a function. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Expanded; /// /// Dismissed will be triggered when the hoversel is dismissed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Dismissed; /// /// ItemSelected will be triggered when the hoversel's item is selected. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemSelected; /// /// Gets or sets the status to control whether the hoversel should expand horizontally. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsHorizontal { get @@ -127,6 +136,7 @@ namespace ElmSharp /// Gets or sets the hover parent. /// /// preview + [Obsolete("This has been deprecated in API12")] public IntPtr HoverParent { get @@ -143,6 +153,7 @@ namespace ElmSharp /// Gets the flag of whether the hoversel is expanded. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsExpanded { get @@ -155,6 +166,7 @@ namespace ElmSharp /// Gets or sets the status of whether to update the icon and text of hoversel same to those of the selected item automatically. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool AutoUpdate { get @@ -171,6 +183,7 @@ namespace ElmSharp /// This triggers the hoversel popup from the code, the same as if the user had clicked the button. /// /// preview + [Obsolete("This has been deprecated in API12")] public void HoverBegin() { Interop.Elementary.elm_hoversel_hover_begin(RealHandle); @@ -180,6 +193,7 @@ namespace ElmSharp /// This dismisses the hoversel popup as if the user had clicked outside the hover. /// /// preview + [Obsolete("This has been deprecated in API12")] public void HoverEnd() { Interop.Elementary.elm_hoversel_hover_end(RealHandle); @@ -189,6 +203,7 @@ namespace ElmSharp /// This will remove all the children items from the hoversel. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Clear() { Interop.Elementary.elm_hoversel_clear(RealHandle); @@ -201,6 +216,7 @@ namespace ElmSharp /// Item's label. /// A handle to the added item. /// preview + [Obsolete("This has been deprecated in API12")] public HoverselItem AddItem(string label) { HoverselItem item = new HoverselItem(this); @@ -215,6 +231,7 @@ namespace ElmSharp /// 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); diff --git a/src/ElmSharp/ElmSharp/HoverselItem.cs b/src/ElmSharp/ElmSharp/HoverselItem.cs index 94cb475..2fc03be 100644 --- a/src/ElmSharp/ElmSharp/HoverselItem.cs +++ b/src/ElmSharp/ElmSharp/HoverselItem.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// The HoverselItem is the item of Hoversel. /// /// preview + [Obsolete("This has been deprecated in API12")] public class HoverselItem : ItemObject { internal HoverselItem() : base(IntPtr.Zero) @@ -36,12 +37,14 @@ namespace ElmSharp /// The HoverselItem's label. /// /// preview + [Obsolete("This has been deprecated in API12")] public string Label { get; internal set; } /// /// ItemSelected will be triggered when the HoverselItem is selected. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemSelected; internal void SendItemSelected() diff --git a/src/ElmSharp/ElmSharp/IAccessibleObject.cs b/src/ElmSharp/ElmSharp/IAccessibleObject.cs index 915bf7c..92cba84 100644 --- a/src/ElmSharp/ElmSharp/IAccessibleObject.cs +++ b/src/ElmSharp/ElmSharp/IAccessibleObject.cs @@ -14,30 +14,36 @@ * limitations under the License. */ +using System; + namespace ElmSharp.Accessible { /// /// IAccessibleObject is an interface, which defines the properties and methods of an accessible object. /// /// preview + [Obsolete("This has been deprecated in API12")] public interface IAccessibleObject { /// /// Gets or sets the reading information types of an accessible object. /// /// preview + [Obsolete("This has been deprecated in API12")] ReadingInfoType ReadingInfoType { get; set; } /// /// Gets or sets the role of the object in an accessibility domain. /// /// preview + [Obsolete("This has been deprecated in API12")] AccessRole Role { get; set; } /// /// Gets or sets the highlightable of the given widget. /// /// preview + [Obsolete("This has been deprecated in API12")] bool CanHighlight { get; set; } /// @@ -47,30 +53,35 @@ namespace ElmSharp.Accessible /// It is the application developer's responsibility to ensure that translation files are loaded and binded to the translation domain when accessibility is enabled. /// /// preview + [Obsolete("This has been deprecated in API12")] string TranslationDomain { get; set; } /// /// Gets or sets an accessible name of the object. /// /// preview + [Obsolete("This has been deprecated in API12")] string Name { get; set; } /// /// Gets or sets contextual information about the object. /// /// preview + [Obsolete("This has been deprecated in API12")] string Description { get; set; } /// /// Gets or sets the delegate for . /// /// preview + [Obsolete("This has been deprecated in API12")] AccessibleInfoProvider NameProvider { get; set; } /// /// Gets or sets the delegate for . /// /// preview + [Obsolete("This has been deprecated in API12")] AccessibleInfoProvider DescriptionProvider { get; set; } /// @@ -80,6 +91,7 @@ namespace ElmSharp.Accessible /// /// The relationship between the source object and target object of a given type. /// preview + [Obsolete("This has been deprecated in API12")] void AppendRelation(IAccessibleRelation relation); /// @@ -87,18 +99,21 @@ namespace ElmSharp.Accessible /// /// The relationship between the source object and target object of a given type. /// preview + [Obsolete("This has been deprecated in API12")] void RemoveRelation(IAccessibleRelation relation); /// /// Highlights the accessible widget. /// /// preview + [Obsolete("This has been deprecated in API12")] void Highlight(); /// /// Clears the highlight of the accessible widget. /// /// preview + [Obsolete("This has been deprecated in API12")] void Unhighlight(); } } diff --git a/src/ElmSharp/ElmSharp/IAnimatorMotionMapper.cs b/src/ElmSharp/ElmSharp/IAnimatorMotionMapper.cs index 9e96620..4a459c0 100644 --- a/src/ElmSharp/ElmSharp/IAnimatorMotionMapper.cs +++ b/src/ElmSharp/ElmSharp/IAnimatorMotionMapper.cs @@ -8,12 +8,14 @@ namespace ElmSharp /// The AnimatorMotionMapper interface. /// /// preview + [Obsolete("This has been deprecated in API12")] public interface IAnimatorMotionMapper { /// /// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve. /// /// preview + [Obsolete("This has been deprecated in API12")] double Calculate(double position); } @@ -21,12 +23,14 @@ namespace ElmSharp /// The LinearMotionMapper class. /// /// preview + [Obsolete("This has been deprecated in API12")] public class LinearMotionMapper : IAnimatorMotionMapper { /// /// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Calculate(double position) { return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.Linear, 0, 0); @@ -37,12 +41,14 @@ namespace ElmSharp /// The AccelerateMotionMapper class. /// /// preview + [Obsolete("This has been deprecated in API12")] public class AccelerateMotionMapper : IAnimatorMotionMapper { /// /// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Calculate(double position) { return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.Accelerate, 0, 0); @@ -53,12 +59,14 @@ namespace ElmSharp /// The DecelerateMotionMapper class. /// /// preview + [Obsolete("This has been deprecated in API12")] public class DecelerateMotionMapper : IAnimatorMotionMapper { /// /// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Calculate(double position) { return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.Decelerate, 0, 0); @@ -69,12 +77,14 @@ namespace ElmSharp /// The SinusoidalMotionMapper class. /// /// preview + [Obsolete("This has been deprecated in API12")] public class SinusoidalMotionMapper : IAnimatorMotionMapper { /// /// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Calculate(double position) { return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.Sinusoidal, 0, 0); @@ -85,18 +95,21 @@ namespace ElmSharp /// The AccelerateFactorMotionMapper class. /// /// preview + [Obsolete("This has been deprecated in API12")] public class AccelerateFactorMotionMapper : IAnimatorMotionMapper { /// /// The power factor of AccelerateFactorMotionMapper. /// /// preview + [Obsolete("This has been deprecated in API12")] public double PowerFactor { get; set; } = 0; /// /// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Calculate(double position) { return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.AccelerateFactor, PowerFactor, 0); @@ -107,18 +120,21 @@ namespace ElmSharp /// The DecelerateFactorMotionMapper class. /// /// preview + [Obsolete("This has been deprecated in API12")] public class DecelerateFactorMotionMapper : IAnimatorMotionMapper { /// /// The power factor of DecelerateFactorMotionMapper. /// /// preview + [Obsolete("This has been deprecated in API12")] public double PowerFactor { get; set; } = 0; /// /// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Calculate(double position) { return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.DecelerateFactor, PowerFactor, 0); @@ -129,18 +145,21 @@ namespace ElmSharp /// The SinusoidalFactorMotionMapper class. /// /// preview + [Obsolete("This has been deprecated in API12")] public class SinusoidalFactorMotionMapper : IAnimatorMotionMapper { /// /// The power factor of SinusoidalFactorMotionMapper. /// /// preview + [Obsolete("This has been deprecated in API12")] public double PowerFactor { get; set; } = 0; /// /// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Calculate(double position) { return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.SinusoidalFactor, PowerFactor, 0); @@ -151,24 +170,28 @@ namespace ElmSharp /// The DivisorInterpolatedMotionMapper class. /// /// preview + [Obsolete("This has been deprecated in API12")] public class DivisorInterpolatedMotionMapper : IAnimatorMotionMapper { /// /// The Divisor of DivisorInterpolatedMotionMapper. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Divisor { get; set; } = 0; /// /// The power of DivisorInterpolatedMotionMapper. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Power { get; set; } = 0; /// /// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Calculate(double position) { return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.DivisorInterp, Divisor, Power); @@ -179,24 +202,28 @@ namespace ElmSharp /// The BounceMotionMapper class. /// /// preview + [Obsolete("This has been deprecated in API12")] public class BounceMotionMapper : IAnimatorMotionMapper { /// /// The bounces of BounceMotionMapper. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Bounces { get; set; } = 0; /// /// The decay factor of BounceMotionMapper. /// /// preview + [Obsolete("This has been deprecated in API12")] public double DecayFactor { get; set; } = 0; /// /// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Calculate(double position) { return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.Bounce, DecayFactor, Bounces); @@ -207,24 +234,28 @@ namespace ElmSharp /// The SpringMotionMapper class. /// /// preview + [Obsolete("This has been deprecated in API12")] public class SpringMotionMapper : IAnimatorMotionMapper { /// /// The wobbles of SpringMotionMapper. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Wobbles { get; set; } = 0; /// /// The decay factor of SpringMotionMapper. /// /// preview + [Obsolete("This has been deprecated in API12")] public double DecayFactor { get; set; } = 0; /// /// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Calculate(double position) { return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.Bounce, DecayFactor, Wobbles); @@ -235,36 +266,42 @@ namespace ElmSharp /// The CubicBezierMotionMapper class. /// /// preview + [Obsolete("This has been deprecated in API12")] public class CubicBezierMotionMapper : IAnimatorMotionMapper { /// /// The X1 of CubicBezierMotionMapper. /// /// preview + [Obsolete("This has been deprecated in API12")] public double X1 { get; set; } = 0; /// /// The Y1 of CubicBezierMotionMapper. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Y1 { get; set; } = 0; /// /// The X2 of CubicBezierMotionMapper. /// /// preview + [Obsolete("This has been deprecated in API12")] public double X2 { get; set; } = 0; /// /// The Y2 of CubicBezierMotionMapper. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Y2 { get; set; } = 0; /// /// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Calculate(double position) { double[] values = { X1, Y1, X2, Y2 }; diff --git a/src/ElmSharp/ElmSharp/Icon.cs b/src/ElmSharp/ElmSharp/Icon.cs index 070b447..a8493d9 100644 --- a/src/ElmSharp/ElmSharp/Icon.cs +++ b/src/ElmSharp/ElmSharp/Icon.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// Enumeration for the icon lookup order. Should look for icons in the theme, FDO paths, or both. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum IconLookupOrder { /// @@ -48,6 +49,7 @@ namespace ElmSharp /// Inherits Image. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Icon : Image { /// @@ -55,6 +57,7 @@ namespace ElmSharp /// /// The parent is a given container, which will be attached by Icon as a child. It's type. /// preview + [Obsolete("This has been deprecated in API12")] public Icon(EvasObject parent) : base(parent) { } @@ -63,6 +66,7 @@ namespace ElmSharp /// Sets or gets the standard icon name of a given Icon widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public string StandardIconName { get @@ -79,6 +83,7 @@ namespace ElmSharp /// Sets or gets the icon lookup order of a given Icon widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public IconLookupOrder IconLookupOrder { get @@ -97,6 +102,7 @@ namespace ElmSharp /// The path to the file that is used as an icon image. /// The group that the icon belongs to. /// preview + [Obsolete("This has been deprecated in API12")] public void SetThumb(string file, string group) { Interop.Elementary.elm_icon_thumb_set(RealHandle, file, group); @@ -108,6 +114,7 @@ namespace ElmSharp /// EvasObject /// The new object, otherwise null if it cannot be created. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle); diff --git a/src/ElmSharp/ElmSharp/Image.cs b/src/ElmSharp/ElmSharp/Image.cs index f6403dd..db9bb06 100644 --- a/src/ElmSharp/ElmSharp/Image.cs +++ b/src/ElmSharp/ElmSharp/Image.cs @@ -27,6 +27,7 @@ namespace ElmSharp /// Inherits Widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Image : Widget { bool _canScaleUp = true; @@ -41,6 +42,7 @@ namespace ElmSharp /// /// The parent is a given container, which will be attached by the image as a child. It's type. /// preview + [Obsolete("This has been deprecated in API12")] public Image(EvasObject parent) : base(parent) { _clicked = new SmartEvent(this, "clicked"); @@ -51,24 +53,28 @@ namespace ElmSharp /// Clicked will be triggered when the image is clicked. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Clicked; /// /// LoadingCompleted will be triggered when the image is loaded completely. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler LoadingCompleted; /// /// Clicked will be triggered when the image fails to load. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler LoadingFailed; /// /// Gets the file that is used as an image. /// /// preview + [Obsolete("This has been deprecated in API12")] public string File { get @@ -81,6 +87,7 @@ namespace ElmSharp /// Sets or gets the smooth effect for an image. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsSmooth { get @@ -97,6 +104,7 @@ namespace ElmSharp /// Sets or gets whether scaling is disabled on the object. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsScaling { get @@ -113,6 +121,7 @@ namespace ElmSharp /// Sets or gets whether the object is down resizable. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool CanScaleDown { get @@ -130,6 +139,7 @@ namespace ElmSharp /// Sets or gets whether the object is up resizable. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool CanScaleUp { get @@ -147,6 +157,7 @@ namespace ElmSharp /// Sets or gets whether the image fills the entire object area, when keeping the aspect ratio. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool CanFillOutside { get @@ -163,6 +174,7 @@ namespace ElmSharp /// Sets or gets the prescale size for the image. /// /// preview + [Obsolete("This has been deprecated in API12")] public int PrescaleSize { get @@ -179,6 +191,7 @@ namespace ElmSharp /// Sets or gets whether the original aspect ratio of the image should be kept on resize. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsFixedAspect { get @@ -195,6 +208,7 @@ namespace ElmSharp /// Sets or gets whether an image object (which supports animation) is to animate itself. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsAnimated { get @@ -211,6 +225,7 @@ namespace ElmSharp /// Gets whether an image object supports animation. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsAnimatedAvailable { get @@ -227,6 +242,7 @@ namespace ElmSharp /// To actually start playing any image object's animation, should be TRUE before setting this property true. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsAnimationPlaying { get @@ -243,6 +259,7 @@ namespace ElmSharp /// Sets or gets whether the image is 'editable'. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsEditable { get @@ -259,6 +276,7 @@ namespace ElmSharp /// Gets the current size of the image. /// /// preview + [Obsolete("This has been deprecated in API12")] public Size ObjectSize { get @@ -272,6 +290,7 @@ namespace ElmSharp /// Sets or gets whether the alpha channel data is being used on the given image object. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsOpaque { get @@ -295,6 +314,7 @@ namespace ElmSharp /// Sets or gets the image orientation. /// /// preview + [Obsolete("This has been deprecated in API12")] public ImageOrientation Orientation { get @@ -311,6 +331,7 @@ namespace ElmSharp /// Sets or gets the image color. /// /// preview + [Obsolete("This has been deprecated in API12")] public override Color Color { get @@ -338,6 +359,7 @@ namespace ElmSharp /// Sets the background color. /// /// preview + [Obsolete("This has been deprecated in API12")] public override Color BackgroundColor { set @@ -360,6 +382,7 @@ namespace ElmSharp /// /// Be careful not to manipulate it, as it is under the control of the widget. /// preview + [Obsolete("This has been deprecated in API12")] public EvasImage ImageObject { get @@ -385,6 +408,7 @@ namespace ElmSharp /// The border's top width. /// The border's bottom width. /// preview + [Obsolete("This has been deprecated in API12")] public void SetBorder(int left, int right, int top, int bottom) { ImageObject?.SetBorder(left, right, top, bottom); @@ -399,6 +423,7 @@ namespace ElmSharp /// Very useful for frames and decorations. /// /// preview + [Obsolete("This has been deprecated in API12")] public ImageBorderFillMode BorderCenterFillMode { get @@ -428,6 +453,7 @@ namespace ElmSharp /// The path to the file that is used as an image source. /// (true = success, false = error) /// preview + [Obsolete("This has been deprecated in API12")] public bool Load(string file) { if (file == null) @@ -444,6 +470,7 @@ namespace ElmSharp /// The URI to the file that is used as an image source. /// (true = success, false = error) /// preview + [Obsolete("This has been deprecated in API12")] public bool Load(Uri uri) { if (uri == null) @@ -481,6 +508,7 @@ namespace ElmSharp /// The stream that is used as an image source. /// (true = success, false = error) /// preview + [Obsolete("This has been deprecated in API12")] public bool Load(Stream stream) { if (stream == null) @@ -507,6 +535,7 @@ namespace ElmSharp /// The cancellation token. /// (true = success, false = error) /// preview + [Obsolete("This has been deprecated in API12")] public async Task LoadAsync(string file, CancellationToken cancellationToken = default(CancellationToken)) { if (file == null) @@ -554,7 +583,7 @@ namespace ElmSharp throw new InvalidOperationException("Failed to set file to Image"); } // it should be return on main thread, because SmartEvent should be disposed on main thread - return await tcs.Task.ConfigureAwait(true); + return await tcs.Task.ConfigureAwait(true); } } @@ -565,6 +594,7 @@ namespace ElmSharp /// The cancellation token. /// (true = success, false = error) /// preview + [Obsolete("This has been deprecated in API12")] public Task LoadAsync(Uri uri, CancellationToken cancellationToken = default(CancellationToken)) { if (uri == null) @@ -580,6 +610,7 @@ namespace ElmSharp /// The cancellation token. /// (true = success, false = error) /// preview + [Obsolete("This has been deprecated in API12")] public async Task LoadAsync(Stream stream, CancellationToken cancellationToken = default(CancellationToken)) { if (stream == null) @@ -647,6 +678,7 @@ namespace ElmSharp /// The name of the Color class. /// The struct of the Color class. /// preview + [Obsolete("This has been deprecated in API12")] public override void SetPartColor(string part, Color color) { Interop.Elementary.elm_object_color_class_color_set(Handle, part, color.R * color.A / 255, @@ -661,6 +693,7 @@ namespace ElmSharp /// The name of the Color class. /// The color object. /// preview + [Obsolete("This has been deprecated in API12")] public override Color GetPartColor(string part) { Interop.Elementary.elm_object_color_class_color_get(Handle, part, out int r, out int g, out int b, out int a); @@ -673,6 +706,7 @@ namespace ElmSharp /// The parent is a given container, which will be attached by the image as a child. It's type. /// The new object, otherwise null if it cannot be created. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle); @@ -689,6 +723,7 @@ namespace ElmSharp /// Enumeration for the fill mode of the image border. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum ImageBorderFillMode { /// @@ -711,6 +746,7 @@ namespace ElmSharp /// Enumeration for the possible orientation options. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum ImageOrientation : int { /// diff --git a/src/ElmSharp/ElmSharp/Index.cs b/src/ElmSharp/ElmSharp/Index.cs index 6033916..3c4a3ff 100644 --- a/src/ElmSharp/ElmSharp/Index.cs +++ b/src/ElmSharp/ElmSharp/Index.cs @@ -24,6 +24,7 @@ namespace ElmSharp /// Inherits Layout. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Index : Layout { HashSet _children = new HashSet(); @@ -34,6 +35,7 @@ namespace ElmSharp /// /// The parent is a given container, which will be attached by Index as a child. It's type. /// preview + [Obsolete("This has been deprecated in API12")] public Index(EvasObject parent) : base(parent) { _delayedChanged = new SmartEvent(this, this.RealHandle, "delay,changed"); @@ -44,12 +46,14 @@ namespace ElmSharp /// Changed will be triggered when the selected index item is changed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Changed; /// /// Sets or gets whether the auto hiding feature is enabled or not for a given index widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool AutoHide { get @@ -66,6 +70,7 @@ namespace ElmSharp /// Sets or gets a value whether the horizontal mode is enabled or not. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsHorizontal { get @@ -82,6 +87,7 @@ namespace ElmSharp /// Sets or gets a value of the indicator's disabled status. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IndicatorVisible { get @@ -98,6 +104,7 @@ namespace ElmSharp /// Sets or gets whether the omit feature is enabled or not for a given index widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool OmitEnabled { get @@ -115,6 +122,7 @@ namespace ElmSharp /// The delay time is 0.2 seconds by default. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Delay { get @@ -131,6 +139,7 @@ namespace ElmSharp /// Gets or sets the items level for a given index widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Level { get @@ -148,6 +157,7 @@ namespace ElmSharp /// Priority group will be shown as many items as it can, and other group will be shown for one character only. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Priority { get @@ -164,6 +174,7 @@ namespace ElmSharp /// Gets the last selected item for a given index widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public IndexItem SelectedItem { get @@ -179,6 +190,7 @@ namespace ElmSharp /// The label for which the item should be indexed. /// An object to the IndexItem if added, or null on errors. /// preview + [Obsolete("This has been deprecated in API12")] public IndexItem Append(string label) { IndexItem item = new IndexItem(label, this); @@ -192,6 +204,7 @@ namespace ElmSharp /// The label for which the item should be indexed. /// A handle to the item if added, or null on errors. /// preview + [Obsolete("This has been deprecated in API12")] public IndexItem Prepend(string label) { IndexItem item = new IndexItem(label, this); @@ -206,6 +219,7 @@ namespace ElmSharp /// The index item to insert after. /// An object to the IndexItem if added, or null on errors. /// preview + [Obsolete("This has been deprecated in API12")] public IndexItem InsertBefore(string label, IndexItem before) { IndexItem item = new IndexItem(label, this); @@ -220,6 +234,7 @@ namespace ElmSharp /// The index item to insert after. /// An object to the IndexItem if added, or null on errors. /// preview + [Obsolete("This has been deprecated in API12")] public IndexItem InsertAfter(string label, IndexItem after) { IndexItem item = new IndexItem(label, this); @@ -232,6 +247,7 @@ namespace ElmSharp /// /// The index level (one of 0 or 1) where the changes were made. /// preview + [Obsolete("This has been deprecated in API12")] public void Update(int level) { Interop.Elementary.elm_index_level_go(RealHandle, level); @@ -241,6 +257,7 @@ namespace ElmSharp /// Removes all the items from a given index widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Clear() { Interop.Elementary.elm_index_item_clear(RealHandle); @@ -252,6 +269,7 @@ namespace ElmSharp /// 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); diff --git a/src/ElmSharp/ElmSharp/IndexItem.cs b/src/ElmSharp/ElmSharp/IndexItem.cs index dc57d60..f7cc3b5 100644 --- a/src/ElmSharp/ElmSharp/IndexItem.cs +++ b/src/ElmSharp/ElmSharp/IndexItem.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// Inherits ItemObject. /// /// preview + [Obsolete("This has been deprecated in API12")] public class IndexItem : ItemObject { /// @@ -29,6 +30,7 @@ namespace ElmSharp /// /// The text is set to the Text. It's the 'string' type. /// preview + [Obsolete("This has been deprecated in API12")] public IndexItem(string text) : base(IntPtr.Zero) { Text = text; @@ -40,6 +42,7 @@ namespace ElmSharp /// The text is set to the Text. It's the 'string' type. /// Parent EvasObject /// preview + [Obsolete("This has been deprecated in API12")] public IndexItem(string text, EvasObject parent) : base(IntPtr.Zero, parent) { Text = text; @@ -49,12 +52,14 @@ namespace ElmSharp /// Selected will be triggered when the index item is selected. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Selected; /// /// Gets the text. /// /// preview + [Obsolete("This has been deprecated in API12")] public string Text { get; private set; } /// @@ -62,6 +67,7 @@ namespace ElmSharp /// /// The selected state. /// preview + [Obsolete("This has been deprecated in API12")] public void Select(bool selected) { Interop.Elementary.elm_index_item_selected_set(Handle, selected); diff --git a/src/ElmSharp/ElmSharp/InputGenerator.cs b/src/ElmSharp/ElmSharp/InputGenerator.cs index 545d834..86bd10f 100644 --- a/src/ElmSharp/ElmSharp/InputGenerator.cs +++ b/src/ElmSharp/ElmSharp/InputGenerator.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// Enumeration of device type generated events. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum InputDeviceType { /// @@ -47,6 +48,7 @@ namespace ElmSharp /// Enumeration of pointer event types. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum InputPointerType { /// @@ -69,6 +71,7 @@ namespace ElmSharp /// Enumeration of touch event types. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum InputTouchType { /// @@ -97,6 +100,7 @@ namespace ElmSharp /// This is not for use by third-party applications. /// /// preview + [Obsolete("This has been deprecated in API12")] public class InputGenerator : IDisposable { IntPtr _handle = IntPtr.Zero; @@ -107,6 +111,7 @@ namespace ElmSharp /// /// The device type want to generate events /// preview + [Obsolete("This has been deprecated in API12")] public InputGenerator(InputDeviceType deviceType) { _handle = Interop.Eutil.efl_util_input_initialize_generator((int)deviceType); @@ -118,6 +123,7 @@ namespace ElmSharp /// The device type want to generate events /// The device name (maximum 31 characters) /// preview + [Obsolete("This has been deprecated in API12")] public InputGenerator(InputDeviceType deviceType, string name) { _handle = Interop.Eutil.efl_util_input_initialize_generator_with_name((int)deviceType, name); @@ -135,6 +141,7 @@ namespace ElmSharp /// Destroys the current object. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Dispose() { Dispose(true); @@ -149,6 +156,7 @@ namespace ElmSharp /// otherwise false. /// /// preview + [Obsolete("This has been deprecated in API12")] protected virtual void Dispose(bool disposing) { if (_isDisposed) @@ -168,6 +176,7 @@ namespace ElmSharp /// The key name want to generate. /// The value that select key press or release. (0: release, 1: press) /// preview + [Obsolete("This has been deprecated in API12")] public void GenerateKeyEvent(string key, int pressed) { Interop.Eutil.efl_util_input_generate_key(_handle, key, pressed); @@ -181,6 +190,7 @@ namespace ElmSharp /// x coordination to move. /// y coordination to move. /// preview + [Obsolete("This has been deprecated in API12")] public void GenerateMouseEvent(int buttons, InputPointerType type, int x, int y) { Interop.Eutil.efl_util_input_generate_pointer(_handle, buttons, (int)type, x, y); @@ -194,6 +204,7 @@ namespace ElmSharp /// The x axis of touch point. /// The y axis of touch point. /// preview + [Obsolete("This has been deprecated in API12")] public void GenerateTouchEvent(int index, InputTouchType type, int x, int y) { Interop.Eutil.efl_util_input_generate_touch(_handle, index, (int)type, x, y); diff --git a/src/ElmSharp/ElmSharp/ItemObject.cs b/src/ElmSharp/ElmSharp/ItemObject.cs index 113ece4..bd98ecb 100644 --- a/src/ElmSharp/ElmSharp/ItemObject.cs +++ b/src/ElmSharp/ElmSharp/ItemObject.cs @@ -23,6 +23,7 @@ namespace ElmSharp /// The ItemObject is used to manage the item object. /// /// preview + [Obsolete("This has been deprecated in API12")] public class ItemObject { private static Dictionary s_IdToItemTable = new Dictionary(); @@ -39,6 +40,7 @@ namespace ElmSharp /// Gets the parent object for ItemObject. /// /// preview + [Obsolete("This has been deprecated in API12")] public EvasObject Parent { get; internal set; } /// @@ -46,6 +48,7 @@ namespace ElmSharp /// /// IntPtr /// preview + [Obsolete("This has been deprecated in API12")] protected ItemObject(IntPtr handle) { _deleteCallback = DeleteCallbackHandler; @@ -61,6 +64,7 @@ namespace ElmSharp /// IntPtr /// Parent EvasObject /// preview + [Obsolete("This has been deprecated in API12")] protected ItemObject(IntPtr handle, EvasObject parent) { _deleteCallback = DeleteCallbackHandler; @@ -83,12 +87,14 @@ namespace ElmSharp /// Gets the ID of the item object. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Id { get; private set; } /// /// Sets or gets whether the item object is enabled. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsEnabled { get { return !Interop.Elementary.elm_object_item_disabled_get(Handle); } @@ -99,6 +105,7 @@ namespace ElmSharp /// Gets the track object of the item. /// /// preview + [Obsolete("This has been deprecated in API12")] public EvasObject TrackObject { get @@ -115,6 +122,7 @@ namespace ElmSharp /// Sets or gets the style of the item. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual string Style { get @@ -156,12 +164,14 @@ namespace ElmSharp /// Deleted will be triggered when the item object is deleted. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Deleted; /// /// Deletes the item object. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Delete() { Interop.Elementary.elm_object_item_del(Handle); @@ -174,6 +184,7 @@ namespace ElmSharp /// The content part name (null for the default content). /// The content of the object item. /// preview + [Obsolete("This has been deprecated in API12")] public void SetPartContent(string part, EvasObject content) { SetPartContent(part, content, false); @@ -186,6 +197,7 @@ namespace ElmSharp /// The content of the object item. /// Judge whether to delete the old content. /// preview + [Obsolete("This has been deprecated in API12")] public void SetPartContent(string part, EvasObject content, bool preserveOldContent) { IntPtr oldContent = Interop.Elementary.elm_object_item_part_content_unset(Handle, part); @@ -203,6 +215,7 @@ namespace ElmSharp /// The text part name (null for the default label). /// Text of the label. /// preview + [Obsolete("This has been deprecated in API12")] public void SetPartText(string part, string text) { Interop.Elementary.elm_object_item_part_text_set(Handle, part, text); @@ -214,6 +227,7 @@ namespace ElmSharp /// The text part name (null for the default label). /// /// preview + [Obsolete("This has been deprecated in API12")] public string GetPartText(string part) { return Interop.Elementary.elm_object_item_part_text_get(Handle, part); @@ -225,6 +239,7 @@ namespace ElmSharp /// The text part name (null for the default label). /// The color. /// preview + [Obsolete("This has been deprecated in API12")] public void SetPartColor(string part, Color color) { Interop.Elementary.elm_object_item_color_class_color_set(Handle, part, color.R * color.A / 255, @@ -239,6 +254,7 @@ namespace ElmSharp /// The text part name (null for the default label). /// The color of an object item. /// preview + [Obsolete("This has been deprecated in API12")] public Color GetPartColor(string part) { int r, g, b, a; @@ -251,6 +267,7 @@ namespace ElmSharp /// /// The text part name. /// preview + [Obsolete("This has been deprecated in API12")] public void DeletePartColor(string part) { Interop.Elementary.elm_object_item_color_class_del(Handle, part); @@ -263,6 +280,7 @@ namespace ElmSharp /// The signal's source. /// The function to be executed when the signal is emitted. /// preview + [Obsolete("This has been deprecated in API12")] public void AddSignalHandler(string emission, string source, Func func) { if (emission != null && source != null && func != null) @@ -286,6 +304,7 @@ namespace ElmSharp /// The signal's source. /// The function to be executed when the signal is emitted. /// preview + [Obsolete("This has been deprecated in API12")] public void RemoveSignalHandler(string emission, string source, Func func) { if (emission != null && source != null && func != null) @@ -309,6 +328,7 @@ namespace ElmSharp /// The signal's name. /// The signal's source. /// preview + [Obsolete("This has been deprecated in API12")] public void EmitSignal(string emission, string source) { Interop.Elementary.elm_object_item_signal_emit(Handle, emission, source); @@ -319,6 +339,7 @@ namespace ElmSharp /// /// ItemObject /// preview + [Obsolete("This has been deprecated in API12")] public static implicit operator IntPtr(ItemObject obj) { if (obj == null) @@ -330,6 +351,7 @@ namespace ElmSharp /// OnInvalidate of the object item. /// /// preview + [Obsolete("This has been deprecated in API12")] protected virtual void OnInvalidate() { } internal static ItemObject GetItemById(int id) @@ -397,7 +419,8 @@ namespace ElmSharp return Equals(other as SignalData); } - public bool Equals(SignalData other) { + public bool Equals(SignalData other) + { if (other == null) { return false; diff --git a/src/ElmSharp/ElmSharp/ItemObjectExtension.cs b/src/ElmSharp/ElmSharp/ItemObjectExtension.cs index 98fd12f..3879631 100644 --- a/src/ElmSharp/ElmSharp/ItemObjectExtension.cs +++ b/src/ElmSharp/ElmSharp/ItemObjectExtension.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// The ItemObjectExtension is used to manage the item object extension. /// /// preview + [Obsolete("This has been deprecated in API12")] public static class ItemObjectExtension { /// @@ -29,6 +30,7 @@ namespace ElmSharp /// /// The item object, which has grabbed the highlight. /// preview + [Obsolete("This has been deprecated in API12")] public static void GrabHighlight(this ItemObject obj) { Interop.Elementary.elm_atspi_component_highlight_grab(obj.Handle); @@ -39,6 +41,7 @@ namespace ElmSharp /// /// The item object, which has cleared the highlight. /// preview + [Obsolete("This has been deprecated in API12")] public static void ClearHighlight(this ItemObject obj) { Interop.Elementary.elm_atspi_component_highlight_clear(obj.Handle); diff --git a/src/ElmSharp/ElmSharp/Label.cs b/src/ElmSharp/ElmSharp/Label.cs index bcd8ef1..4be595d 100644 --- a/src/ElmSharp/ElmSharp/Label.cs +++ b/src/ElmSharp/ElmSharp/Label.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// Inherits Layout. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Label : Layout { SmartEvent _slideCompleted; @@ -31,6 +32,7 @@ namespace ElmSharp /// /// The parent is a given container, which will be attached by the Label as a child. It's type. /// preview + [Obsolete("This has been deprecated in API12")] public Label(EvasObject parent) : base(parent) { _slideCompleted = new SmartEvent(this, this.RealHandle, "slide,end"); @@ -44,12 +46,14 @@ namespace ElmSharp /// SlideCompleted will be triggered when the slide is completed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler SlideCompleted; /// /// Sets or gets the wrap width of the label. /// /// preview + [Obsolete("This has been deprecated in API12")] public int LineWrapWidth { get @@ -66,6 +70,7 @@ namespace ElmSharp /// Sets or gets the wrapping behavior of the label. /// /// preview + [Obsolete("This has been deprecated in API12")] public WrapType LineWrapType { get @@ -87,6 +92,7 @@ namespace ElmSharp /// Sets or gets the slide mode of the Label widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public LabelSlideMode SlideMode { get @@ -103,6 +109,7 @@ namespace ElmSharp /// Sets or gets the slide duration of the label. /// /// preview + [Obsolete("This has been deprecated in API12")] public double SlideDuration { get @@ -124,6 +131,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public double SlideSpeed { get @@ -140,6 +148,7 @@ namespace ElmSharp /// Sets or gets the ellipsis behavior of the label. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsEllipsis { get @@ -160,6 +169,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public string TextStyle { get @@ -183,6 +193,7 @@ namespace ElmSharp /// Starts the slide effect. /// /// preview + [Obsolete("This has been deprecated in API12")] public void PlaySlide() { Interop.Elementary.elm_label_slide_go(RealHandle); @@ -194,8 +205,9 @@ namespace ElmSharp /// EvasObject /// The new object, otherwise null if it cannot be created. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) - { + { return Interop.Elementary.elm_label_add(parent.Handle); } } @@ -204,6 +216,7 @@ namespace ElmSharp /// Enumeration for the slide modes of a label widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum LabelSlideMode { /// diff --git a/src/ElmSharp/ElmSharp/Layout.cs b/src/ElmSharp/ElmSharp/Layout.cs index 4d38b6d..ad087aa 100644 --- a/src/ElmSharp/ElmSharp/Layout.cs +++ b/src/ElmSharp/ElmSharp/Layout.cs @@ -23,6 +23,7 @@ namespace ElmSharp /// Inherits Widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Layout : Container { SmartEvent _languageChanged; @@ -35,6 +36,7 @@ namespace ElmSharp /// /// The parent is a given container, which will be attached by the layout as a child. It's type. /// preview + [Obsolete("This has been deprecated in API12")] public Layout(EvasObject parent) : base(parent) { } @@ -43,6 +45,7 @@ namespace ElmSharp /// Creates and initializes a new instance of the Layout class. /// /// preview + [Obsolete("This has been deprecated in API12")] protected Layout() : base() { } @@ -51,18 +54,21 @@ namespace ElmSharp /// LanguageChanged will be triggered when the program's language is changed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler LanguageChanged; /// /// ThemeChanged will be triggered when the theme is changed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ThemeChanged; /// /// Gets the edje layout. /// /// preview + [Obsolete("This has been deprecated in API12")] public EdjeObject EdjeObject { get @@ -77,6 +83,7 @@ namespace ElmSharp /// Gets or sets the accessibility state of texblock (text) parts in a layout object. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool TextBlockAccessibility { get @@ -96,6 +103,7 @@ namespace ElmSharp /// /// The frozen state, or 0 if the object is not frozen or on error. /// preview + [Obsolete("This has been deprecated in API12")] public int Freeze() { return Interop.Elementary.elm_layout_freeze(RealHandle); @@ -107,6 +115,7 @@ namespace ElmSharp /// /// The frozen state, or 0 if the object is not frozen or on error. /// preview + [Obsolete("This has been deprecated in API12")] public int Thaw() { return Interop.Elementary.elm_layout_thaw(RealHandle); @@ -121,6 +130,7 @@ namespace ElmSharp /// All of this can change due to state changes, and that's when this function should be called. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Resizing() { Interop.Elementary.elm_layout_sizing_eval(RealHandle); @@ -133,6 +143,7 @@ namespace ElmSharp /// Restrict minimum size of the current width. /// Restrict minimum size of the current height. /// preview + [Obsolete("This has been deprecated in API12")] public void Resizing(bool width, bool height) { Interop.Elementary.elm_layout_sizing_restricted_eval(RealHandle, width, height); @@ -146,6 +157,7 @@ namespace ElmSharp /// The data key. /// The data. /// preview + [Obsolete("This has been deprecated in API12")] public string GetEdjeData(string key) { return Interop.Elementary.elm_layout_data_get(RealHandle, key); @@ -157,6 +169,7 @@ namespace ElmSharp /// The text part to retrieve the text off. /// /// preview + [Obsolete("This has been deprecated in API12")] public override string GetPartText(string part) { return Interop.Elementary.elm_layout_text_get(RealHandle, part); @@ -169,6 +182,7 @@ namespace ElmSharp /// The text to set. /// /// preview + [Obsolete("This has been deprecated in API12")] public override bool SetPartText(string part, string text) { return Interop.Elementary.elm_layout_text_set(RealHandle, part, text); @@ -186,6 +200,7 @@ namespace ElmSharp /// The object to append. /// Success is true. /// preview + [Obsolete("This has been deprecated in API12")] public bool BoxAppend(string part, EvasObject child) { AddChild(child); @@ -204,6 +219,7 @@ namespace ElmSharp /// The object to prepend. /// Success is true. /// preview + [Obsolete("This has been deprecated in API12")] public bool BoxPrepend(string part, EvasObject child) { AddChild(child); @@ -221,6 +237,7 @@ namespace ElmSharp /// The object to remove. /// Success if true /// preview + [Obsolete("This has been deprecated in API12")] public bool BoxRemove(string part, EvasObject child) { RemoveChild(child); @@ -238,6 +255,7 @@ namespace ElmSharp /// If true, then all the objects will be deleted as well, otherwise they will just be removed and will be dangling on the canvas. /// Success if true. /// preview + [Obsolete("This has been deprecated in API12")] public bool BoxRemoveAll(string part, bool clear) { ClearChildren(); @@ -257,6 +275,7 @@ namespace ElmSharp /// The numeric position >=0 to insert the child. /// Success if true. /// preview + [Obsolete("This has been deprecated in API12")] public bool BoxInsertAt(string part, EvasObject child, uint position) { AddChild(child); @@ -276,6 +295,7 @@ namespace ElmSharp /// Another reference object to insert before the box. /// Success is true. /// preview + [Obsolete("This has been deprecated in API12")] public bool BoxInsertBefore(string part, EvasObject child, EvasObject reference) { AddChild(child); @@ -289,6 +309,7 @@ namespace ElmSharp /// The child that will be added in this layout object. /// TRUE on success, FALSE otherwise. /// preview + [Obsolete("This has been deprecated in API12")] public override bool SetPartContent(string part, EvasObject content) { return SetPartContent(part, content, false); @@ -302,6 +323,7 @@ namespace ElmSharp /// true, preserve old content will be unset. false, preserve old content will not be unset. /// TRUE on success, FALSE otherwise. /// preview + [Obsolete("This has been deprecated in API12")] public override bool SetPartContent(string part, EvasObject content, bool preserveOldContent) { if (preserveOldContent) @@ -319,6 +341,7 @@ namespace ElmSharp /// The group. /// The style to use. /// preview + [Obsolete("This has been deprecated in API12")] public void SetTheme(string klass, string group, string style) { Interop.Elementary.elm_layout_theme_set(RealHandle, klass, group, style); @@ -330,6 +353,7 @@ namespace ElmSharp /// The path to the file (edje) that is used as a layout. /// The group that the layout belongs to in the edje file. /// preview + [Obsolete("This has been deprecated in API12")] public void SetFile(string file, string group) { Interop.Elementary.elm_layout_file_set(RealHandle, file, group); @@ -339,6 +363,7 @@ namespace ElmSharp /// Sets the background color of a layout. /// /// preview + [Obsolete("This has been deprecated in API12")] public override Color BackgroundColor { set @@ -362,6 +387,7 @@ namespace ElmSharp /// API, elm_layout_text_valign_set, is an internal API only in Tizen. Available since Tizen_4.0. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual void SetVerticalTextAlignment(string part, double valign) { Interop.Elementary.elm_layout_text_valign_set(RealHandle, part, valign); @@ -374,6 +400,7 @@ namespace ElmSharp /// API, elm_layout_text_valign_get, is an internal API only in Tizen. Available since Tizen_4.0. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual double GetVerticalTextAlignment(string part) { return Interop.Elementary.elm_layout_text_valign_get(RealHandle, part); @@ -383,6 +410,7 @@ namespace ElmSharp /// The callback of the Realized Event. /// /// preview + [Obsolete("This has been deprecated in API12")] protected override void OnRealized() { base.OnRealized(); @@ -405,6 +433,7 @@ namespace ElmSharp /// The parent is a given container which will be attached by the layout as a child. It's type. /// The new object, otherwise null if it cannot be created. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { return Interop.Elementary.elm_layout_add(parent.Handle); diff --git a/src/ElmSharp/ElmSharp/List.cs b/src/ElmSharp/ElmSharp/List.cs index c21e358..b27d594 100644 --- a/src/ElmSharp/ElmSharp/List.cs +++ b/src/ElmSharp/ElmSharp/List.cs @@ -23,6 +23,7 @@ namespace ElmSharp /// Enumeration for setting the list's resizing behavior, transverse axis scrolling, and items cropping. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum ListMode { /// @@ -54,12 +55,14 @@ namespace ElmSharp /// All the events of a list contain ListItemEventArgs as a parameter. /// /// preview + [Obsolete("This has been deprecated in API12")] public class ListItemEventArgs : EventArgs { /// /// Gets or sets the list item. The return type is . /// /// preview + [Obsolete("This has been deprecated in API12")] public ListItem Item { get; set; } internal static ListItemEventArgs CreateFromSmartEvent(IntPtr data, IntPtr obj, IntPtr info) @@ -77,6 +80,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public class List : Layout { HashSet _children = new HashSet(); @@ -91,6 +95,7 @@ namespace ElmSharp /// /// The parent is a given container, which will be attached by the list as a child. It's type. /// preview + [Obsolete("This has been deprecated in API12")] public List(EvasObject parent) : base(parent) { _selected = new SmartEvent(this, this.RealHandle, "selected", ListItemEventArgs.CreateFromSmartEvent); @@ -109,6 +114,7 @@ namespace ElmSharp /// Gets or sets which mode to be used for the list. /// /// preview + [Obsolete("This has been deprecated in API12")] public ListMode Mode { get @@ -125,6 +131,7 @@ namespace ElmSharp /// Gets the selected item. /// /// preview + [Obsolete("This has been deprecated in API12")] public ListItem SelectedItem { get @@ -138,30 +145,35 @@ namespace ElmSharp /// ItemSelected is raised when a new list item is selected. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemSelected; /// /// ItemUnselected is raised when a list item is Unselected. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemUnselected; /// /// ItemDoubleClicked is raised when a new list item is double-clicked. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemDoubleClicked; /// /// ItemLongPressed is raised when a list item is pressed for a certain amount of time. By default, it's 1 second. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemLongPressed; /// /// ItemActivated is raised when a new list item is double-clicked or pressed (enter|return|spacebar). /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemActivated; /// @@ -170,6 +182,7 @@ namespace ElmSharp /// If not called, it won't display the list properly. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Update() { Interop.Elementary.elm_list_go(RealHandle); @@ -182,6 +195,7 @@ namespace ElmSharp /// Return a new added list item that contains a text. /// /// preview + [Obsolete("This has been deprecated in API12")] public ListItem Append(string label) { return Append(label, null, null); @@ -196,6 +210,7 @@ namespace ElmSharp /// Return a new added list item that contains a text and 2 icons. /// /// preview + [Obsolete("This has been deprecated in API12")] public ListItem Append(string label, EvasObject leftIcon, EvasObject rightIcon) { ListItem item = new ListItem(label, leftIcon, rightIcon, this); @@ -210,6 +225,7 @@ namespace ElmSharp /// The text for the item. /// Return a new added list item that contains a text. /// preview + [Obsolete("This has been deprecated in API12")] public ListItem Prepend(string label) { return Prepend(label, null, null); @@ -223,6 +239,7 @@ namespace ElmSharp /// The right icon for the item. /// Return a new added list item that contains a text and 2 icons. /// preview + [Obsolete("This has been deprecated in API12")] public ListItem Prepend(string label, EvasObject leftIcon, EvasObject rigthIcon) { ListItem item = new ListItem(label, leftIcon, rigthIcon, this); @@ -236,6 +253,7 @@ namespace ElmSharp /// To delete just one item, use . /// /// preview + [Obsolete("This has been deprecated in API12")] public void Clear() { Interop.Elementary.elm_list_clear(RealHandle); @@ -252,6 +270,7 @@ namespace ElmSharp /// 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); diff --git a/src/ElmSharp/ElmSharp/ListItem.cs b/src/ElmSharp/ElmSharp/ListItem.cs index 646fdc5..135466f 100644 --- a/src/ElmSharp/ElmSharp/ListItem.cs +++ b/src/ElmSharp/ElmSharp/ListItem.cs @@ -24,6 +24,7 @@ namespace ElmSharp /// It contains the Text, LeftIcon, and RightIcon properties to show the list item which is given. /// /// preview + [Obsolete("This has been deprecated in API12")] public class ListItem : ItemObject { internal ListItem(string text, EvasObject leftIcon, EvasObject rightIcon) : base(IntPtr.Zero) @@ -32,7 +33,7 @@ namespace ElmSharp LeftIcon = leftIcon; RightIcon = rightIcon; } - + internal ListItem(string text, EvasObject leftIcon, EvasObject rightIcon, EvasObject parent) : base(IntPtr.Zero, parent) { Text = text; @@ -44,18 +45,21 @@ namespace ElmSharp /// Gets the text for the list item. /// /// preview + [Obsolete("This has been deprecated in API12")] public string Text { get; internal set; } /// /// Gets the left icon for the list item. /// /// preview + [Obsolete("This has been deprecated in API12")] public EvasObject LeftIcon { get; internal set; } /// /// Gets the right icon for the list item. /// /// preview + [Obsolete("This has been deprecated in API12")] public EvasObject RightIcon { get; internal set; } } } diff --git a/src/ElmSharp/ElmSharp/MultiButtonEntry.cs b/src/ElmSharp/ElmSharp/MultiButtonEntry.cs index 914593e..36df29a 100644 --- a/src/ElmSharp/ElmSharp/MultiButtonEntry.cs +++ b/src/ElmSharp/ElmSharp/MultiButtonEntry.cs @@ -27,6 +27,7 @@ namespace ElmSharp /// The typical use case of multi-button entry is composing emails/messages to a group of addresses, each of which is an item that can be clicked for further actions. /// /// preview + [Obsolete("This has been deprecated in API12")] public class MultiButtonEntry : Layout { HashSet _children = new HashSet(); @@ -51,6 +52,7 @@ namespace ElmSharp /// /// The parent is a given container, which will be attached by the MultiButtonEntry as a child. It's type. /// preview + [Obsolete("This has been deprecated in API12")] public MultiButtonEntry(EvasObject parent) : base(parent) { _clicked = new SmartEvent(this, "clicked"); @@ -81,24 +83,28 @@ namespace ElmSharp /// Clicked is raised when a MultiButtonEntry is clicked. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Clicked; /// /// Expanded is raised when a MultiButtonEntry is expanded. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Expanded; /// /// Contracted is raised when a MultiButtonEntry is contracted. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Contracted; /// /// ExpandedStateChanged is raised when shrink mode state of MultiButtonEntry is changed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ExpandedStateChanged; /// @@ -106,36 +112,42 @@ namespace ElmSharp /// This is also raised when a user presses backspace, while the cursor is on the first field of the entry. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemSelected; /// /// ItemClicked is raised when an item is clicked by user interaction. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemClicked; /// /// ItemLongPressed is raised when MultiButtonEntry item is pressed for a long time. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemLongPressed; /// /// ItemAdded is raised when a new MultiButtonEntry item is added. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemAdded; /// /// ItemDeleted is raised when a MultiButtonEntry item is deleted. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ItemDeleted; /// /// Gets the selected item in the MultiButtonEntry. /// /// preview + [Obsolete("This has been deprecated in API12")] public MultiButtonEntryItem SelectedItem { get @@ -149,6 +161,7 @@ namespace ElmSharp /// Gets or sets whether the MultiButtonEntry is editable or not. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsEditable { get @@ -167,6 +180,7 @@ namespace ElmSharp /// If false, single line state. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsExpanded { get @@ -183,6 +197,7 @@ namespace ElmSharp /// Gets the first item in the MultiButtonEntry. /// /// preview + [Obsolete("This has been deprecated in API12")] public MultiButtonEntryItem FirstItem { get @@ -196,6 +211,7 @@ namespace ElmSharp /// Gets the last item in the MultiButtonEntry. /// /// preview + [Obsolete("This has been deprecated in API12")] public MultiButtonEntryItem LastItem { get @@ -209,6 +225,7 @@ namespace ElmSharp /// Gets the entry object int the MultiButtonEntry. /// /// preview + [Obsolete("This has been deprecated in API12")] public Entry Entry { get @@ -228,6 +245,7 @@ namespace ElmSharp /// Parent EvasObject. /// Handle IntPtr. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { return Interop.Elementary.elm_multibuttonentry_add(parent.Handle); @@ -239,6 +257,7 @@ namespace ElmSharp /// The label of the new item. /// A MultiButtonEntryItem to the item added. /// preview + [Obsolete("This has been deprecated in API12")] public MultiButtonEntryItem Append(string label) { var handle = Interop.Elementary.elm_multibuttonentry_item_append(RealHandle, label, null, IntPtr.Zero); @@ -252,6 +271,7 @@ namespace ElmSharp /// The label of the new item. /// A MultiButtonEntryItem to the item added. /// preview + [Obsolete("This has been deprecated in API12")] public MultiButtonEntryItem Prepend(string label) { var handle = Interop.Elementary.elm_multibuttonentry_item_prepend(RealHandle, label, null, IntPtr.Zero); @@ -266,6 +286,7 @@ namespace ElmSharp /// The label of new item. /// A MultiButtonEntryItem to the item added. /// preview + [Obsolete("This has been deprecated in API12")] public MultiButtonEntryItem InsertBefore(MultiButtonEntryItem before, string label) { var handle = Interop.Elementary.elm_multibuttonentry_item_insert_before(RealHandle, before.Handle, label, null, IntPtr.Zero); @@ -280,6 +301,7 @@ namespace ElmSharp /// The label of new item. /// A MultiButtonEntryItem to the item added. /// preview + [Obsolete("This has been deprecated in API12")] public MultiButtonEntryItem InsertAfter(MultiButtonEntryItem after, string label) { var handle = Interop.Elementary.elm_multibuttonentry_item_insert_after(RealHandle, after.Handle, label, null, IntPtr.Zero); @@ -291,6 +313,7 @@ namespace ElmSharp /// Removes all items in the MultiButtonEntry. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Clear() { Interop.Elementary.elm_multibuttonentry_clear(RealHandle); @@ -306,6 +329,7 @@ namespace ElmSharp /// /// The function to use as item filter. /// preview + [Obsolete("This has been deprecated in API12")] public void AppendFilter(Func func) { _filters.Add(func); @@ -320,6 +344,7 @@ namespace ElmSharp /// /// The function to use as text filter. /// preview + [Obsolete("This has been deprecated in API12")] public void PrependFilter(Func func) { _filters.Insert(0, func); @@ -334,6 +359,7 @@ namespace ElmSharp /// /// The filter function to remove. /// preview + [Obsolete("This has been deprecated in API12")] public void RemoveFilter(Func func) { _filters.Remove(func); @@ -349,6 +375,7 @@ namespace ElmSharp /// /// The function to return string to show. /// preview + [Obsolete("This has been deprecated in API12")] public void SetFormatCallback(Func func) { if (func == null) @@ -424,12 +451,14 @@ namespace ElmSharp /// It contains the Item which is type. /// /// preview + [Obsolete("This has been deprecated in API12")] public class MultiButtonEntryItemEventArgs : EventArgs { /// /// Gets or sets the MultiButtonEntryItem item. The return type is . /// /// preview + [Obsolete("This has been deprecated in API12")] public MultiButtonEntryItem Item { get; set; } internal static MultiButtonEntryItemEventArgs CreateFromSmartEvent(IntPtr data, IntPtr obj, IntPtr info) diff --git a/src/ElmSharp/ElmSharp/MultiButtonEntryItem.cs b/src/ElmSharp/ElmSharp/MultiButtonEntryItem.cs index 8f80e21..3e73537 100644 --- a/src/ElmSharp/ElmSharp/MultiButtonEntryItem.cs +++ b/src/ElmSharp/ElmSharp/MultiButtonEntryItem.cs @@ -24,6 +24,7 @@ namespace ElmSharp /// It contains Next and Prev properties to get the next and previous item. /// /// preview + [Obsolete("This has been deprecated in API12")] public class MultiButtonEntryItem : ItemObject { /// @@ -31,6 +32,7 @@ namespace ElmSharp /// /// The text of the MultiButtonEntryItem's label name. /// preview + [Obsolete("This has been deprecated in API12")] public MultiButtonEntryItem(string text) : base(IntPtr.Zero) { Label = text; @@ -50,12 +52,14 @@ namespace ElmSharp /// Gets the label of this item. /// /// preview + [Obsolete("This has been deprecated in API12")] public string Label { get; private set; } /// /// Gets or sets the selected state of an item. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsSelected { get @@ -72,6 +76,7 @@ namespace ElmSharp /// Get the next item in the MultiButtonEntry. /// /// preview + [Obsolete("This has been deprecated in API12")] public MultiButtonEntryItem Next { get @@ -85,6 +90,7 @@ namespace ElmSharp /// Get the previous item in the MultiButtonEntry. /// /// preview + [Obsolete("This has been deprecated in API12")] public MultiButtonEntryItem Prev { get diff --git a/src/ElmSharp/ElmSharp/NamedHint.cs b/src/ElmSharp/ElmSharp/NamedHint.cs index 64a8d16..3820236 100644 --- a/src/ElmSharp/ElmSharp/NamedHint.cs +++ b/src/ElmSharp/ElmSharp/NamedHint.cs @@ -14,24 +14,29 @@ * limitations under the License. */ +using System; + namespace ElmSharp { /// /// Predefined values for the hint properties in EvasObject. /// /// preview + [Obsolete("This has been deprecated in API12")] public static class NamedHint { /// /// This value can be used for and . /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly double Expand = 1.0; /// /// This value can be used for and . /// /// preview + [Obsolete("This has been deprecated in API12")] public static readonly double Fill = -1.0; } } diff --git a/src/ElmSharp/ElmSharp/NaviItem.cs b/src/ElmSharp/ElmSharp/NaviItem.cs index fbf014a..7067be9 100644 --- a/src/ElmSharp/ElmSharp/NaviItem.cs +++ b/src/ElmSharp/ElmSharp/NaviItem.cs @@ -23,6 +23,7 @@ namespace ElmSharp /// Inherits ItemObject /// /// preview + [Obsolete("This has been deprecated in API12")] public class NaviItem : ItemObject { EvasObject _content; @@ -57,12 +58,14 @@ namespace ElmSharp /// Popped will be triggered when NaviItem is removed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Popped; /// /// Gets the content object. The name of the content part is "elm.swallow.content". /// /// preview + [Obsolete("This has been deprecated in API12")] public EvasObject Content { get { return _content; } @@ -72,6 +75,7 @@ namespace ElmSharp /// Sets or gets a value whether the title area is enabled or not. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool TitleBarVisible { get @@ -88,6 +92,7 @@ namespace ElmSharp /// Sets or gets the title bar background color. /// /// preview + [Obsolete("This has been deprecated in API12")] public Color TitleBarBackgroundColor { get @@ -112,6 +117,7 @@ namespace ElmSharp /// Sets or gets an item style. /// /// preview + [Obsolete("This has been deprecated in API12")] public override string Style { get @@ -129,6 +135,7 @@ namespace ElmSharp /// The method should be overridden in the children class. /// /// preview + [Obsolete("This has been deprecated in API12")] protected override void OnInvalidate() { if (!_isPopped) diff --git a/src/ElmSharp/ElmSharp/Naviframe.cs b/src/ElmSharp/ElmSharp/Naviframe.cs index fcf3942..953fca9 100644 --- a/src/ElmSharp/ElmSharp/Naviframe.cs +++ b/src/ElmSharp/ElmSharp/Naviframe.cs @@ -24,12 +24,14 @@ namespace ElmSharp /// Inherits EventArgs. /// /// preview + [Obsolete("This has been deprecated in API12")] public class NaviframeEventArgs : EventArgs { /// /// Sets or gets the content object. The name of the content part is "elm.swallow.content". /// /// preview + [Obsolete("This has been deprecated in API12")] public EvasObject Content { get; set; } } /// @@ -37,6 +39,7 @@ namespace ElmSharp /// Inherits Widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Naviframe : Widget { SmartEvent _transitionFinished; @@ -47,6 +50,7 @@ namespace ElmSharp /// /// The parent is a given container which will be attached by Naviframe as a child. It's type. /// preview + [Obsolete("This has been deprecated in API12")] public Naviframe(EvasObject parent) : base(parent) { _transitionFinished = new SmartEvent(this, this.RealHandle, "transition,finished"); @@ -63,18 +67,21 @@ namespace ElmSharp /// After calling the Popped event, the Pop/Delete method will be returned. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Popped; /// /// AnimationFinished will be triggered when the animation is finished. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler AnimationFinished; /// /// Gets the list of the navi item. /// /// preview + [Obsolete("This has been deprecated in API12")] public IReadOnlyList NavigationStack { get { return _itemStack; } @@ -84,6 +91,7 @@ namespace ElmSharp /// Sets or gets the preserve content objects when items are popped. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool PreserveContentOnPop { get @@ -100,6 +108,7 @@ namespace ElmSharp /// Sets or gets whether the default back button is enabled. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool DefaultBackButtonEnabled { get @@ -119,6 +128,7 @@ namespace ElmSharp /// The main content object. The name of the content part is "elm.swallow.content". /// The created item, or null upon failure. /// preview + [Obsolete("This has been deprecated in API12")] public NaviItem Push(EvasObject content) { return Push(content, null); @@ -132,6 +142,7 @@ namespace ElmSharp /// The current item title. Null would be default. /// /// preview + [Obsolete("This has been deprecated in API12")] public NaviItem Push(EvasObject content, string title) { return Push(content, title, null); @@ -145,6 +156,7 @@ namespace ElmSharp /// The current item style name. Null would be default. /// The created item, or null upon failure. /// preview + [Obsolete("This has been deprecated in API12")] public NaviItem Push(EvasObject content, string title, string style) { IntPtr item = Interop.Elementary.elm_naviframe_item_push(RealHandle, title, IntPtr.Zero, IntPtr.Zero, content.Handle, style); @@ -162,6 +174,7 @@ namespace ElmSharp /// The main content object. The name of the content part is "elm.swallow.content". /// The created item, or null upon failure. /// preview + [Obsolete("This has been deprecated in API12")] public NaviItem InsertBefore(NaviItem before, EvasObject content) { return InsertBefore(before, content, ""); @@ -176,6 +189,7 @@ namespace ElmSharp /// The current item title. Null would be default. /// The created item, or null upon failure. /// preview + [Obsolete("This has been deprecated in API12")] public NaviItem InsertBefore(NaviItem before, EvasObject content, string title) { return InsertBefore(before, content, title, null); @@ -190,6 +204,7 @@ namespace ElmSharp /// The current item style name. Null would be default. /// The created item, or null upon failure. /// preview + [Obsolete("This has been deprecated in API12")] public NaviItem InsertBefore(NaviItem before, EvasObject content, string title, string style) { IntPtr item = Interop.Elementary.elm_naviframe_item_insert_before(RealHandle, before, title, IntPtr.Zero, IntPtr.Zero, content, null); @@ -208,6 +223,7 @@ namespace ElmSharp /// The main content object. The name of the content part is "elm.swallow.content". /// The created item, or null upon failure. /// preview + [Obsolete("This has been deprecated in API12")] public NaviItem InsertAfter(NaviItem after, EvasObject content) { return InsertAfter(after, content, ""); @@ -222,6 +238,7 @@ namespace ElmSharp /// The current item title. Null would be default. /// The created item, or null upon failure. /// preview + [Obsolete("This has been deprecated in API12")] public NaviItem InsertAfter(NaviItem after, EvasObject content, string title) { return InsertAfter(after, content, title, null); @@ -236,6 +253,7 @@ namespace ElmSharp /// The current item style name. Null would be default. /// The created item, or null upon failure. /// preview + [Obsolete("This has been deprecated in API12")] public NaviItem InsertAfter(NaviItem after, EvasObject content, string title, string style) { IntPtr item = Interop.Elementary.elm_naviframe_item_insert_after(RealHandle, after, title, IntPtr.Zero, IntPtr.Zero, content, null); @@ -250,6 +268,7 @@ namespace ElmSharp /// Pops an item that is on top of the stack. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Pop() { Interop.Elementary.elm_naviframe_item_pop(RealHandle); @@ -261,6 +280,7 @@ namespace ElmSharp /// 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); diff --git a/src/ElmSharp/ElmSharp/Panel.cs b/src/ElmSharp/ElmSharp/Panel.cs index e1ba995..91414d2 100644 --- a/src/ElmSharp/ElmSharp/Panel.cs +++ b/src/ElmSharp/ElmSharp/Panel.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// Enumeration for the PanelDirection types. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum PanelDirection { /// @@ -46,6 +47,7 @@ namespace ElmSharp /// The Panel is a container that can contain subobjects. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Panel : Layout { SmartEvent _toggled; @@ -56,6 +58,7 @@ namespace ElmSharp /// /// The EvasObject to which the new panel will be attached as a child. /// preview + [Obsolete("This has been deprecated in API12")] public Panel(EvasObject parent) : base(parent) { _toggled = new SmartEvent(this, this.RealHandle, "toggled"); @@ -69,6 +72,7 @@ namespace ElmSharp /// Sets or gets the hidden status of a given Panel widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsOpen { get @@ -85,6 +89,7 @@ namespace ElmSharp /// Sets or gets the direction of a given Panel widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public PanelDirection Direction { get @@ -101,12 +106,14 @@ namespace ElmSharp /// Toggled will be triggered when the panel is toggled. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Toggled; /// /// Scrolled will be triggered when the panel has been scrolled. This event is emitted only when the panel is scrollable /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Scrolled; /// @@ -116,6 +123,7 @@ namespace ElmSharp /// Bool value can be false or true. /// /// preview + [Obsolete("This has been deprecated in API12")] public void SetScrollable(bool enable) { Interop.Elementary.elm_panel_scrollable_set(RealHandle, enable); @@ -128,6 +136,7 @@ namespace ElmSharp /// The size of the scroll area. /// /// preview + [Obsolete("This has been deprecated in API12")] public void SetScrollableArea(double ratio) { Interop.Elementary.elm_panel_scrollable_content_size_set(RealHandle, ratio); @@ -137,6 +146,7 @@ namespace ElmSharp /// Toggles the hidden state of the panel. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Toggle() { Interop.Elementary.elm_panel_toggle(RealHandle); @@ -148,6 +158,7 @@ namespace ElmSharp /// 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); diff --git a/src/ElmSharp/ElmSharp/Panes.cs b/src/ElmSharp/ElmSharp/Panes.cs index ac0b851..863de6c 100644 --- a/src/ElmSharp/ElmSharp/Panes.cs +++ b/src/ElmSharp/ElmSharp/Panes.cs @@ -23,6 +23,7 @@ namespace ElmSharp /// When dragged, this bar resizes the contents' size. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Panes : Layout { SmartEvent _press; @@ -33,6 +34,7 @@ namespace ElmSharp /// /// The EvasObject to which the new Panes will be attached as a child. /// preview + [Obsolete("This has been deprecated in API12")] public Panes(EvasObject parent) : base(parent) { _press = new SmartEvent(this, this.RealHandle, "press"); @@ -46,12 +48,14 @@ namespace ElmSharp /// Pressed will be triggered when the panes have been pressed (button isn't released yet). /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Pressed; /// /// Unpressed will be triggered when the panes are released after being pressed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Unpressed; /// @@ -59,6 +63,7 @@ namespace ElmSharp /// True means the left and right panes resize homogeneously. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsFixed { get @@ -84,6 +89,7 @@ namespace ElmSharp /// The float type value between 0.0 and 1.0 represents the size proportion of the left side. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Proportion { get @@ -105,6 +111,7 @@ namespace ElmSharp /// By default, the panes are in a vertical mode. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsHorizontal { get @@ -123,6 +130,7 @@ namespace ElmSharp /// The value represents minimum size of the left side in pixels. /// /// preview + [Obsolete("This has been deprecated in API12")] public int LeftMinimumSize { get @@ -142,6 +150,7 @@ namespace ElmSharp /// The value between 0.0 and 1.0 represents size proportion of the minimum size of the left side. /// /// preview + [Obsolete("This has been deprecated in API12")] public double LeftMinimumRelativeSize { get @@ -160,6 +169,7 @@ namespace ElmSharp /// The value represents the minimum size of the right side in pixels. /// /// preview + [Obsolete("This has been deprecated in API12")] public int RightMinimumSize { get @@ -179,6 +189,7 @@ namespace ElmSharp /// The value between 0.0 and 1.0 represents size proportion of the minimum size of the right side. /// /// preview + [Obsolete("This has been deprecated in API12")] public double RightMinimumRelativeSize { get @@ -197,6 +208,7 @@ namespace ElmSharp /// 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); diff --git a/src/ElmSharp/ElmSharp/Point.cs b/src/ElmSharp/ElmSharp/Point.cs index 9738cde..c2494fb 100644 --- a/src/ElmSharp/ElmSharp/Point.cs +++ b/src/ElmSharp/ElmSharp/Point.cs @@ -22,18 +22,21 @@ namespace ElmSharp /// The Point is a struct that defines the 2D point as a pair of generic type. /// /// preview + [Obsolete("This has been deprecated in API12")] public struct Point : IEquatable { /// /// Location along the horizontal axis. /// /// preview + [Obsolete("This has been deprecated in API12")] public int X; /// /// Location along the vertical axis. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Y; /// @@ -41,6 +44,7 @@ namespace ElmSharp /// /// The string is formatted as "{{X={0} Y={1}}}". /// preview + [Obsolete("This has been deprecated in API12")] public override string ToString() { return string.Format("{{X={0} Y={1}}}", X, Y); @@ -51,6 +55,7 @@ namespace ElmSharp /// /// The hash code. /// preview + [Obsolete("This has been deprecated in API12")] public override int GetHashCode() { unchecked @@ -68,6 +73,7 @@ namespace ElmSharp /// otherwise false. /// /// preview + [Obsolete("This has been deprecated in API12")] public override bool Equals(object obj) { if (!(obj is Point)) @@ -85,6 +91,7 @@ namespace ElmSharp /// otherwise false. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool Equals(Point other) { return X.Equals(other.X) && Y.Equals(other.Y); @@ -97,6 +104,7 @@ namespace ElmSharp /// A on the right hand side. /// True if both s have equal values. /// preview + [Obsolete("This has been deprecated in API12")] public static bool operator ==(Point p1, Point p2) { return p1.Equals(p2); @@ -109,6 +117,7 @@ namespace ElmSharp /// A on the right hand side. /// True if both s do not have equal values. /// preview + [Obsolete("This has been deprecated in API12")] public static bool operator !=(Point p1, Point p2) { return !p1.Equals(p2); diff --git a/src/ElmSharp/ElmSharp/Point3D.cs b/src/ElmSharp/ElmSharp/Point3D.cs index e2fb92a..8aa06a9 100644 --- a/src/ElmSharp/ElmSharp/Point3D.cs +++ b/src/ElmSharp/ElmSharp/Point3D.cs @@ -22,24 +22,28 @@ namespace ElmSharp /// The Point3D is a struct that defines a 3D point. /// /// preview + [Obsolete("This has been deprecated in API12")] public struct Point3D : IEquatable { /// /// The X-coordinate of a 3D point. /// /// preview + [Obsolete("This has been deprecated in API12")] public int X; /// /// The Y-coordinate of a 3D point. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Y; /// /// The Z-coordinate of a 3D point. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Z; /// @@ -47,6 +51,7 @@ namespace ElmSharp /// /// The string is formatted as "{{X={0} Y={1} Z={2}}}". /// preview + [Obsolete("This has been deprecated in API12")] public override string ToString() { return string.Format("{{X={0} Y={1} Z={2}}}", X, Y, Z); @@ -54,6 +59,7 @@ namespace ElmSharp /// /// preview + [Obsolete("This has been deprecated in API12")] public override int GetHashCode() { unchecked @@ -74,6 +80,7 @@ namespace ElmSharp /// otherwise false. /// /// preview + [Obsolete("This has been deprecated in API12")] public override bool Equals(object obj) { if (!(obj is Point3D)) @@ -91,6 +98,7 @@ namespace ElmSharp /// otherwise, false. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool Equals(Point3D other) { return X.Equals(other.X) && Y.Equals(other.Y) && Z.Equals(other.Z); @@ -103,6 +111,7 @@ namespace ElmSharp /// A on the right hand side. /// True if both s have equal values. /// preview + [Obsolete("This has been deprecated in API12")] public static bool operator ==(Point3D p1, Point3D p2) { return p1.Equals(p2); @@ -115,6 +124,7 @@ namespace ElmSharp /// A on the right hand side. /// True if both s do not have equal values. /// preview + [Obsolete("This has been deprecated in API12")] public static bool operator !=(Point3D p1, Point3D p2) { return !p1.Equals(p2); diff --git a/src/ElmSharp/ElmSharp/Polygon.cs b/src/ElmSharp/ElmSharp/Polygon.cs index 153b2eb..c860723 100644 --- a/src/ElmSharp/ElmSharp/Polygon.cs +++ b/src/ElmSharp/ElmSharp/Polygon.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// The Polygon is a widget that is used to draw a polygon (filled). /// /// preview + [Obsolete("This has been deprecated in API12")] public class Polygon : EvasObject { /// @@ -29,6 +30,7 @@ namespace ElmSharp /// The EvasObject to which the new Polygon will be attached as a child. /// /// preview + [Obsolete("This has been deprecated in API12")] public Polygon(EvasObject parent) : base(parent) { } @@ -39,6 +41,7 @@ namespace ElmSharp /// The Y-coordinate of the new vertex. /// /// preview + [Obsolete("This has been deprecated in API12")] public void AddPoint(int x, int y) { Interop.Evas.evas_object_polygon_point_add(Handle, x, y); @@ -49,6 +52,7 @@ namespace ElmSharp /// The coordinates of the new vertex. /// /// preview + [Obsolete("This has been deprecated in API12")] public void AddPoint(Point p) { AddPoint(p.X, p.Y); @@ -58,6 +62,7 @@ namespace ElmSharp /// Removes all the vertices of the polygon, making it empty. /// /// preview + [Obsolete("This has been deprecated in API12")] public void ClearPoints() { Interop.Evas.evas_object_polygon_points_clear(Handle); @@ -69,6 +74,7 @@ namespace ElmSharp /// Parent EvasObject. /// Handle IntPtr. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { IntPtr evas = Interop.Evas.evas_object_evas_get(parent.Handle); diff --git a/src/ElmSharp/ElmSharp/Popup.cs b/src/ElmSharp/ElmSharp/Popup.cs index f8726bf..118318c 100644 --- a/src/ElmSharp/ElmSharp/Popup.cs +++ b/src/ElmSharp/ElmSharp/Popup.cs @@ -23,6 +23,7 @@ namespace ElmSharp /// Enumeration for the popup orientation types. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum PopupOrientation { /// @@ -68,6 +69,7 @@ namespace ElmSharp /// In addition to content area, there are two optional sections, namely title area and action area. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Popup : Layout { HashSet _children = new HashSet(); @@ -81,6 +83,7 @@ namespace ElmSharp /// /// The EvasObject to which the new popup will be attached as a child. /// preview + [Obsolete("This has been deprecated in API12")] public Popup(EvasObject parent) : base(parent) { _dismissed = new SmartEvent(this, "dismissed"); @@ -112,30 +115,35 @@ namespace ElmSharp /// Dismissed will be triggered when the popup has been dismissed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Dismissed; /// /// OutsideClicked will be triggered when users taps on the outside of Popup. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler OutsideClicked; /// /// OutsideClicked will be triggered when the popup is closed as a result of timeout. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler TimedOut; /// /// OutsideClicked will be triggered when the popup transition has finished in showing. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ShowAnimationFinished; /// /// Sets or gets the position in which the popup will appear in its parent. /// /// preview + [Obsolete("This has been deprecated in API12")] public PopupOrientation Orientation { get @@ -155,6 +163,7 @@ namespace ElmSharp /// Popup need to wrap the content text, so not allowing WrapType.None. /// /// preview + [Obsolete("This has been deprecated in API12")] public WrapType ContentTextWrapType { get @@ -178,6 +187,7 @@ namespace ElmSharp /// the timer will be started with this value, canceling any running timer. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Timeout { get @@ -197,6 +207,7 @@ namespace ElmSharp /// The visible region of the popup is surrounded by a translucent region called the Blocked event area. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool AllowEvents { get @@ -213,6 +224,7 @@ namespace ElmSharp /// Sets or gets the AlignmentX in which the popup will appear in its parent. /// /// preview + [Obsolete("This has been deprecated in API12")] public override double AlignmentX { get @@ -229,6 +241,7 @@ namespace ElmSharp /// Sets or gets the AlignmentY in which the popup will appear in its parent. /// /// preview + [Obsolete("This has been deprecated in API12")] public override double AlignmentY { get @@ -245,6 +258,7 @@ namespace ElmSharp /// Gets the opacity value of the popup. /// /// preview + [Obsolete("This has been deprecated in API12")] public override int Opacity { get @@ -264,6 +278,7 @@ namespace ElmSharp /// /// The new PopupItem which contains a label. /// preview + [Obsolete("This has been deprecated in API12")] public PopupItem Append(string label) { return Append(label, null); @@ -276,6 +291,7 @@ namespace ElmSharp /// The icon, which will be added into a new PopupItem. /// The new PopupItem, which contains the label and icon. /// preview + [Obsolete("This has been deprecated in API12")] public PopupItem Append(string label, EvasObject icon) { PopupItem item = new PopupItem(label, icon, this); @@ -289,6 +305,7 @@ namespace ElmSharp /// When the Popup is dismissed, the "dismissed" signal will be emitted. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Dismiss() { Interop.Elementary.elm_popup_dismiss(Handle); @@ -300,6 +317,7 @@ namespace ElmSharp /// Parent EvasObject. /// Handle IntPtr. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { return Interop.Elementary.elm_popup_add(parent.Handle); diff --git a/src/ElmSharp/ElmSharp/PopupItem.cs b/src/ElmSharp/ElmSharp/PopupItem.cs index 7651466..85969bb 100644 --- a/src/ElmSharp/ElmSharp/PopupItem.cs +++ b/src/ElmSharp/ElmSharp/PopupItem.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// The PopupItem is a class that includes the icon and text. /// /// preview + [Obsolete("This has been deprecated in API12")] public class PopupItem : ItemObject { internal PopupItem(string text, EvasObject icon) : base(IntPtr.Zero) @@ -40,12 +41,14 @@ namespace ElmSharp /// Gets the text label of the popupitem. Return value is string. /// /// preview + [Obsolete("This has been deprecated in API12")] public string Text { get; internal set; } /// /// Gets the EvasObject icon of the popupitem. /// /// preview + [Obsolete("This has been deprecated in API12")] public EvasObject Icon { get; internal set; } } } diff --git a/src/ElmSharp/ElmSharp/ProgressBar.cs b/src/ElmSharp/ElmSharp/ProgressBar.cs index 817e37d..4a1ed92 100644 --- a/src/ElmSharp/ElmSharp/ProgressBar.cs +++ b/src/ElmSharp/ElmSharp/ProgressBar.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// The ProgressBar is a widget for visually representing the progress status of a given job or task. /// /// preview + [Obsolete("This has been deprecated in API12")] public class ProgressBar : Layout { SmartEvent _changed; @@ -31,6 +32,7 @@ namespace ElmSharp /// /// The EvasObject to which the new ProgressBar will be attached as a child. /// preview + [Obsolete("This has been deprecated in API12")] public ProgressBar(EvasObject parent) : base(parent) { _changed = new SmartEvent(this, this.RealHandle, "changed"); @@ -44,6 +46,7 @@ namespace ElmSharp /// ValueChanged will be triggered when the value of the ProgressBar changes. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ValueChanged; /// @@ -58,6 +61,7 @@ namespace ElmSharp /// it animates its bar with the contents filling in constantly and back to non-filled, in a loop. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsPulseMode { get @@ -79,6 +83,7 @@ namespace ElmSharp /// it is interpreted as the closest of the boundary values in the range. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Value { get @@ -95,6 +100,7 @@ namespace ElmSharp /// Sets or gets the span value of the ProgressBar. /// /// preview + [Obsolete("This has been deprecated in API12")] public int SpanSize { get @@ -111,6 +117,7 @@ namespace ElmSharp /// Sets or gets the value whether a given ProgressBar widget is horizontal. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsHorizontal { get @@ -127,6 +134,7 @@ namespace ElmSharp /// Sets or gets the value whether a given progress bar widget's displaying values are inverted. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsInverted { get @@ -149,6 +157,7 @@ namespace ElmSharp /// Note that the units label is optional. Use a format string such as "%1.2f meters" for example. /// /// preview + [Obsolete("This has been deprecated in API12")] public string UnitFormat { get @@ -165,6 +174,7 @@ namespace ElmSharp /// Starts a given progress bar "pulsing" animation, if its under that mode. /// /// preview + [Obsolete("This has been deprecated in API12")] public void PlayPulse() { Interop.Elementary.elm_progressbar_pulse(RealHandle, true); @@ -184,6 +194,7 @@ namespace ElmSharp /// Stops a given progress bar "pulsing" animation, if its under that mode. /// /// preview + [Obsolete("This has been deprecated in API12")] public void StopPulse() { Interop.Elementary.elm_progressbar_pulse(RealHandle, false); @@ -195,6 +206,7 @@ namespace ElmSharp /// Part of the Progressbar. /// Value range is from 0.0 to 1.0. /// preview + [Obsolete("This has been deprecated in API12")] public double GetPartValue(string part) { return Interop.Elementary.elm_progressbar_part_value_get(RealHandle, part); @@ -204,6 +216,7 @@ namespace ElmSharp /// Sets or gets the general or main color of the given Progressbar. /// /// preview + [Obsolete("This has been deprecated in API12")] public override Color Color { get @@ -222,6 +235,7 @@ namespace ElmSharp /// Part of the Progressbar. /// Value range is from 0.0 to 1.0. /// preview + [Obsolete("This has been deprecated in API12")] public void SetPartValue(string part, double value) { Interop.Elementary.elm_progressbar_part_value_set(RealHandle, part, value); @@ -233,6 +247,7 @@ namespace ElmSharp /// 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); diff --git a/src/ElmSharp/ElmSharp/Radio.cs b/src/ElmSharp/ElmSharp/Radio.cs index f8d8b93..903f9f4 100644 --- a/src/ElmSharp/ElmSharp/Radio.cs +++ b/src/ElmSharp/ElmSharp/Radio.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// The Radio is a widget that allows for 1 or more options to be displayed, and have the user choose only 1 of them. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Radio : Layout { SmartEvent _changed; @@ -31,6 +32,7 @@ namespace ElmSharp /// /// The EvasObject to which the new Radio will be attached as a child. /// preview + [Obsolete("This has been deprecated in API12")] public Radio(EvasObject parent) : base(parent) { _changed = new SmartEvent(this, this.RealHandle, "changed"); @@ -41,12 +43,14 @@ namespace ElmSharp /// ValueChanged will be triggered when value of the radio changes. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ValueChanged; /// /// Sets or gets a unique value to each radio button. /// /// preview + [Obsolete("This has been deprecated in API12")] public int StateValue { get @@ -63,6 +67,7 @@ namespace ElmSharp /// Sets or gets the value of the radio group. /// /// preview + [Obsolete("This has been deprecated in API12")] public int GroupValue { get @@ -80,6 +85,7 @@ namespace ElmSharp /// /// Group which add radio in. /// preview + [Obsolete("This has been deprecated in API12")] public void SetGroup(Radio group) { if (group == null) @@ -95,6 +101,7 @@ namespace ElmSharp /// 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); diff --git a/src/ElmSharp/ElmSharp/ReadingInfoType.cs b/src/ElmSharp/ElmSharp/ReadingInfoType.cs index 922b29f..df20666 100644 --- a/src/ElmSharp/ElmSharp/ReadingInfoType.cs +++ b/src/ElmSharp/ElmSharp/ReadingInfoType.cs @@ -22,6 +22,7 @@ namespace ElmSharp.Accessible /// Enumeration for ReadingInfoType. /// /// preview + [Obsolete("This has been deprecated in API12")] [Flags] public enum ReadingInfoType { diff --git a/src/ElmSharp/ElmSharp/Rect.cs b/src/ElmSharp/ElmSharp/Rect.cs index 400dfbf..9ed36fb 100644 --- a/src/ElmSharp/ElmSharp/Rect.cs +++ b/src/ElmSharp/ElmSharp/Rect.cs @@ -23,6 +23,7 @@ namespace ElmSharp /// The Rect is a struct that represents the rectangular space. /// /// preview + [Obsolete("This has been deprecated in API12")] [StructLayout(LayoutKind.Sequential)] public struct Rect : IEquatable { @@ -34,6 +35,7 @@ namespace ElmSharp /// Width value. /// Height value. /// preview + [Obsolete("This has been deprecated in API12")] public Rect(int x, int y, int w, int h) { X = x; @@ -46,60 +48,70 @@ namespace ElmSharp /// Gets or sets the position of this rectangle on the X-axis. /// /// preview + [Obsolete("This has been deprecated in API12")] public int X { get; set; } /// /// Gets or sets the position of this rectangle on the Y-axis. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Y { get; set; } /// /// Gets or sets the width of this rectangle. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Width { get; set; } /// /// Gets or sets the height of this rectangle. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Height { get; set; } /// /// Gets the position of this rectangle on the X-axis. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Left { get { return X; } } /// /// Gets the extent along the X-axis. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Right { get { return X + Width; } } /// /// Gets the position of this rectangle on the Y-axis. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Top { get { return Y; } } /// /// Gets the extent along the Y-axis. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Bottom { get { return Y + Height; } } /// /// Gets the point defined by Rectangle.Left and Rectangle.Top. /// /// preview + [Obsolete("This has been deprecated in API12")] public Point Location { get { return new Point { X = X, Y = Y }; } } /// /// Gets the extent of the rectangle along its X-axis and Y-axis. /// /// preview + [Obsolete("This has been deprecated in API12")] public Size Size { get { return new Size { Width = Width, Height = Height }; } } /// @@ -107,6 +119,7 @@ namespace ElmSharp /// /// The string is formatted as "{{X={0} Y={1} Width={2} Height={3}}}". /// preview + [Obsolete("This has been deprecated in API12")] public override string ToString() { return string.Format("{{X={0} Y={1} Width={2} Height={3}}}", X, Y, Width, Height); @@ -117,6 +130,7 @@ namespace ElmSharp /// /// The hash code. /// preview + [Obsolete("This has been deprecated in API12")] public override int GetHashCode() { unchecked @@ -138,6 +152,7 @@ namespace ElmSharp /// otherwise false. /// /// preview + [Obsolete("This has been deprecated in API12")] public override bool Equals(object obj) { if (!(obj is Rect)) @@ -155,6 +170,7 @@ namespace ElmSharp /// otherwise, false /// /// preview + [Obsolete("This has been deprecated in API12")] public bool Equals(Rect other) { return X.Equals(other.X) && Y.Equals(other.Y) && Width.Equals(other.Width) && Height.Equals(other.Height); @@ -167,6 +183,7 @@ namespace ElmSharp /// A on the right hand side. /// True if both 's have equal values. /// preview + [Obsolete("This has been deprecated in API12")] public static bool operator ==(Rect r1, Rect r2) { return r1.Equals(r2); @@ -179,6 +196,7 @@ namespace ElmSharp /// A on the right hand side. /// True if both 's do not have equal values. /// preview + [Obsolete("This has been deprecated in API12")] public static bool operator !=(Rect r1, Rect r2) { return !r1.Equals(r2); diff --git a/src/ElmSharp/ElmSharp/Rectangle.cs b/src/ElmSharp/ElmSharp/Rectangle.cs index ac65d0f..b946c87 100644 --- a/src/ElmSharp/ElmSharp/Rectangle.cs +++ b/src/ElmSharp/ElmSharp/Rectangle.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// The Rectangle is a class that is used to draw a solid colored rectangle. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Rectangle : EvasObject { /// @@ -29,6 +30,7 @@ namespace ElmSharp /// /// The to which the new slider will be attached as a child. /// preview + [Obsolete("This has been deprecated in API12")] public Rectangle(EvasObject parent) : base(parent) { Interop.Evas.evas_object_size_hint_weight_set(Handle, 1.0, 1.0); @@ -40,6 +42,7 @@ namespace ElmSharp /// Parent EvasObject. /// Handle IntPtr. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { IntPtr evas = Interop.Evas.evas_object_evas_get(parent.Handle); diff --git a/src/ElmSharp/ElmSharp/Scroller.cs b/src/ElmSharp/ElmSharp/Scroller.cs index ea39372..5c02143 100644 --- a/src/ElmSharp/ElmSharp/Scroller.cs +++ b/src/ElmSharp/ElmSharp/Scroller.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// Enumeration for the visible type of scrollbar. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum ScrollBarVisiblePolicy { /// @@ -44,6 +45,7 @@ namespace ElmSharp /// Enumeration for the visible type of scrollbar. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum ScrollBlock { /// @@ -66,6 +68,7 @@ namespace ElmSharp /// Type that controls how the content is scrolled. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum ScrollSingleDirection { /// @@ -88,6 +91,7 @@ namespace ElmSharp /// The Scroller is a container that holds and clips a single object and allows you to scroll across it. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Scroller : Layout { SmartEvent _scroll; @@ -102,6 +106,7 @@ namespace ElmSharp /// /// The to which the new Scroller will be attached as a child. /// preview + [Obsolete("This has been deprecated in API12")] public Scroller(EvasObject parent) : base(parent) { } @@ -110,6 +115,7 @@ namespace ElmSharp /// Creates and initializes a new instance of the Scroller class. /// /// preview + [Obsolete("This has been deprecated in API12")] public Scroller() : base() { } @@ -118,6 +124,7 @@ namespace ElmSharp /// Scrolled will be triggered when the content has been scrolled. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Scrolled { add @@ -134,6 +141,7 @@ namespace ElmSharp /// ScrollAnimationStarted will be triggered when the content animation has been started. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ScrollAnimationStarted { add @@ -150,6 +158,7 @@ namespace ElmSharp /// ScrollAnimationStopped will be triggered when the content animation has been stopped. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ScrollAnimationStopped { add @@ -166,6 +175,7 @@ namespace ElmSharp /// DragStart will be triggered when dragging the contents around has started. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler DragStart { add @@ -182,6 +192,7 @@ namespace ElmSharp /// DragStop will be triggered when dragging the contents around has stopped. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler DragStop { add @@ -198,6 +209,7 @@ namespace ElmSharp /// PageScrolled will be triggered when the visible page has changed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler PageScrolled { add @@ -214,6 +226,7 @@ namespace ElmSharp /// Gets the current region in the content object that is visible through the scroller. /// /// preview + [Obsolete("This has been deprecated in API12")] public Rect CurrentRegion { get @@ -232,6 +245,7 @@ namespace ElmSharp /// ScrollBarVisiblePolicy.Visible turns it on all the time, and ScrollBarVisiblePolicy.Invisible always keeps it off. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual ScrollBarVisiblePolicy HorizontalScrollBarVisiblePolicy { get @@ -255,6 +269,7 @@ namespace ElmSharp /// ScrollBarVisiblePolicy.Visible turns it on all the time, and ScrollBarVisiblePolicy.Invisible always keeps it off. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual ScrollBarVisiblePolicy VerticalScrollBarVisiblePolicy { get @@ -278,6 +293,7 @@ namespace ElmSharp /// The default value is ScrollBlock.None, where movements are allowed in both directions. /// /// preview + [Obsolete("This has been deprecated in API12")] public ScrollBlock ScrollBlock { get @@ -299,6 +315,7 @@ namespace ElmSharp /// The page number starts from 0. 0 is the first page. /// /// preview + [Obsolete("This has been deprecated in API12")] public int VerticalPageIndex { get @@ -318,6 +335,7 @@ namespace ElmSharp /// The page number starts from 0. 0 is the first page. /// /// preview + [Obsolete("This has been deprecated in API12")] public int HorizontalPageIndex { get @@ -332,6 +350,7 @@ namespace ElmSharp /// Sets or gets the maximum limit of the movable page at vertical direction. /// /// preview + [Obsolete("This has been deprecated in API12")] public int VerticalPageScrollLimit { get @@ -351,6 +370,7 @@ namespace ElmSharp /// Sets or gets the maximum limit of the movable page at horizontal direction. /// /// preview + [Obsolete("This has been deprecated in API12")] public int HorizontalPageScrollLimit { get @@ -374,6 +394,7 @@ namespace ElmSharp /// This API will set if it is enabled for the given axis with the boolean parameters for each axis. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool VerticalBounce { get @@ -397,6 +418,7 @@ namespace ElmSharp /// This API will set if it is enabled for the given axis with the boolean parameters for each axis. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool HorizontalBounce { get @@ -416,6 +438,7 @@ namespace ElmSharp /// Gets the width of the content object of the scroller. /// /// preview + [Obsolete("This has been deprecated in API12")] public int ChildWidth { get @@ -430,6 +453,7 @@ namespace ElmSharp /// Gets the height of the content object of the scroller. /// /// preview + [Obsolete("This has been deprecated in API12")] public int ChildHeight { get @@ -448,6 +472,7 @@ namespace ElmSharp /// Default values for x and y are 0.0. /// /// preview + [Obsolete("This has been deprecated in API12")] public double HorizontalGravity { get @@ -471,6 +496,7 @@ namespace ElmSharp /// Default values for x and y are 0.0. /// /// preview + [Obsolete("This has been deprecated in API12")] public double VerticalGravity { get @@ -491,6 +517,7 @@ namespace ElmSharp /// The page number starts from 0. 0 is the first page. This returns the last page number among the pages. /// /// preview + [Obsolete("This has been deprecated in API12")] public int LastVerticalPageNumber { get @@ -506,6 +533,7 @@ namespace ElmSharp /// The page number starts from 0. 0 is the first page. This returns the last page number among the pages. /// /// preview + [Obsolete("This has been deprecated in API12")] public int LastHorizontalPageNumber { get @@ -522,6 +550,7 @@ namespace ElmSharp /// If the content is set, it will be shown repeatedly. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool VerticalLoop { get @@ -543,6 +572,7 @@ namespace ElmSharp /// If the content is set, it will be shown repeatedly. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool HorizontalLoop { get @@ -562,6 +592,7 @@ namespace ElmSharp /// Gets or sets a given scroller widget's scrolling page size, relative to its viewport size. /// /// preview + [Obsolete("This has been deprecated in API12")] public double VerticalRelativePageSize { get @@ -581,6 +612,7 @@ namespace ElmSharp /// Gets or sets a given scroller widget's scrolling page size, relative to its viewport size. /// /// preview + [Obsolete("This has been deprecated in API12")] public double HorizontalRelativePageSize { get @@ -606,6 +638,7 @@ namespace ElmSharp /// This function will set if it that is enabled or not, for each axis. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool VerticalSnap { get @@ -631,6 +664,7 @@ namespace ElmSharp /// This function will set if it that is enabled or not, for each axis. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool HorizontalSnap { get @@ -650,6 +684,7 @@ namespace ElmSharp /// Gets or sets the page size to an absolute fixed value, with 0 turning it off for that axis. /// /// preview + [Obsolete("This has been deprecated in API12")] public int PageHeight { get @@ -669,6 +704,7 @@ namespace ElmSharp /// Gets or sets the page size to an absolute fixed value, with 0 turning it off for that axis. /// /// preview + [Obsolete("This has been deprecated in API12")] public int PageWidth { get @@ -690,6 +726,7 @@ namespace ElmSharp /// By default, event propagation is enabled. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool ContentPropagateEvents { get @@ -706,6 +743,7 @@ namespace ElmSharp /// Gets or sets the step size to move scroller by key event. /// /// preview + [Obsolete("This has been deprecated in API12")] public int HorizontalStepSize { get @@ -725,6 +763,7 @@ namespace ElmSharp /// Gets or sets the step size to move scroller by key event. /// /// preview + [Obsolete("This has been deprecated in API12")] public int VerticalStepSize { get @@ -744,6 +783,7 @@ namespace ElmSharp /// Gets or sets a value whether mouse wheel is enabled or not over the scroller. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool WheelDisabled { get @@ -760,6 +800,7 @@ namespace ElmSharp /// Gets or sets the type of single direction scroll. /// /// preview + [Obsolete("This has been deprecated in API12")] public ScrollSingleDirection SingleDirection { get @@ -780,6 +821,7 @@ namespace ElmSharp /// Enable limiting minimum size horizontally. /// Enable limiting minimum size vertically. /// preview + [Obsolete("This has been deprecated in API12")] public void MinimumLimit(bool horizontal, bool vertical) { Interop.Elementary.elm_scroller_content_min_limit(RealHandle, horizontal, vertical); @@ -791,6 +833,7 @@ namespace ElmSharp /// The horizontal page size. /// The vertical page size. /// preview + [Obsolete("This has been deprecated in API12")] public void SetPageSize(int width, int height) { Interop.Elementary.elm_scroller_page_size_set(RealHandle, width, height); @@ -811,6 +854,7 @@ namespace ElmSharp /// The horizontal page relative size. /// The vertical page relative size. /// preview + [Obsolete("This has been deprecated in API12")] public void SetPageSize(double width, double height) { Interop.Elementary.elm_scroller_page_relative_set(RealHandle, width, height); @@ -824,6 +868,7 @@ namespace ElmSharp /// The vertical page number. /// True means slider with animation. /// preview + [Obsolete("This has been deprecated in API12")] public void ScrollTo(int horizontalPageIndex, int verticalPageIndex, bool animated) { if (animated) @@ -849,6 +894,7 @@ namespace ElmSharp /// Rect struct of region. /// True means allows the scroller to "smoothly slide" to this location. /// preview + [Obsolete("This has been deprecated in API12")] public void ScrollTo(Rect region, bool animated) { if (animated) @@ -865,6 +911,7 @@ namespace ElmSharp /// The callback of the Realized event. /// /// preview + [Obsolete("This has been deprecated in API12")] protected override void OnRealized() { base.OnRealized(); @@ -882,6 +929,7 @@ namespace ElmSharp /// 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); diff --git a/src/ElmSharp/ElmSharp/Size.cs b/src/ElmSharp/ElmSharp/Size.cs index 16676f4..bd2d4e2 100644 --- a/src/ElmSharp/ElmSharp/Size.cs +++ b/src/ElmSharp/ElmSharp/Size.cs @@ -22,18 +22,21 @@ namespace ElmSharp /// The Size is a struct defining the height and width as a pair of generic type. /// /// preview + [Obsolete("This has been deprecated in API12")] public struct Size : IEquatable { /// /// Magnitude along the horizontal axis, in platform-defined units. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Width; /// /// Magnitude along the vertical axis, in platform-specific units. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Height; /// @@ -42,6 +45,7 @@ namespace ElmSharp /// The width to set. /// The height to set. /// preview + [Obsolete("This has been deprecated in API12")] public Size(int width, int height) { Width = width; @@ -53,6 +57,7 @@ namespace ElmSharp /// /// The string is formatted as "{{Width={0} Height={1}}}". /// preview + [Obsolete("This has been deprecated in API12")] public override string ToString() { return string.Format("{{Width={0} Height={1}}}", Width, Height); @@ -63,6 +68,7 @@ namespace ElmSharp /// /// The hash code. /// preview + [Obsolete("This has been deprecated in API12")] public override int GetHashCode() { unchecked @@ -80,6 +86,7 @@ namespace ElmSharp /// otherwise false. /// /// preview + [Obsolete("This has been deprecated in API12")] public override bool Equals(object obj) { if (!(obj is Size)) @@ -97,6 +104,7 @@ namespace ElmSharp /// otherwise false. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool Equals(Size other) { return Width.Equals(other.Width) && Height.Equals(other.Height); @@ -109,6 +117,7 @@ namespace ElmSharp /// A on the right hand side. /// True if both s have equal values. /// preview + [Obsolete("This has been deprecated in API12")] public static bool operator ==(Size s1, Size s2) { return s1.Equals(s2); @@ -121,6 +130,7 @@ namespace ElmSharp /// A on the right hand side. /// True if both s do not have equal values. /// preview + [Obsolete("This has been deprecated in API12")] public static bool operator !=(Size s1, Size s2) { return !s1.Equals(s2); diff --git a/src/ElmSharp/ElmSharp/Slider.cs b/src/ElmSharp/ElmSharp/Slider.cs index e949e10..fd354aa 100644 --- a/src/ElmSharp/ElmSharp/Slider.cs +++ b/src/ElmSharp/ElmSharp/Slider.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// Enumeration for the Slider's indicator visiblity mode. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum SliderIndicatorVisibleMode { /// @@ -49,6 +50,7 @@ namespace ElmSharp /// The Slider is a widget that adds a draggable slider widget for selecting the value of something within a range. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Slider : Layout { double _minimum = 0.0; @@ -64,6 +66,7 @@ namespace ElmSharp /// /// The to which the new slider will be attached as a child. /// preview + [Obsolete("This has been deprecated in API12")] public Slider(EvasObject parent) : base(parent) { _changed = new SmartEvent(this, this.RealHandle, "changed"); @@ -83,6 +86,7 @@ namespace ElmSharp /// ValueChanged will be triggered when the Slider value is changed by the user. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ValueChanged; /// @@ -91,18 +95,21 @@ namespace ElmSharp /// so it avoids possibly expensive reactions to the value change. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler DelayedValueChanged; /// /// DragStarted will be triggered when dragging the Slider indicator around has started. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler DragStarted; /// /// DragStopped will be triggered when dragging the Slider indicator around has stopped. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler DragStopped; /// @@ -115,6 +122,7 @@ namespace ElmSharp /// (like weight and alignment hints), and you would like it to have a specific size. /// /// preview + [Obsolete("This has been deprecated in API12")] public int SpanSize { get @@ -140,6 +148,7 @@ namespace ElmSharp /// equal to 3.14159. By default, the indicator label is disabled. /// /// preview + [Obsolete("This has been deprecated in API12")] public string IndicatorFormat { get @@ -159,6 +168,7 @@ namespace ElmSharp /// The orientation may be vertical or horizontal. By default, it's displayed horizontally. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsHorizontal { get @@ -180,6 +190,7 @@ namespace ElmSharp /// Actual value can be obtained with value. By default, the minimum is equal to 0.0. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Minimum { get @@ -203,6 +214,7 @@ namespace ElmSharp /// Maximum must be greater than minimum, otherwise the behavior is undefined. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Maximum { get @@ -224,6 +236,7 @@ namespace ElmSharp /// on indicator with IndicatorFormat. The value must be between minimum and maximum values. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Value { get @@ -246,6 +259,7 @@ namespace ElmSharp /// By default, the step value is equal to 0.05. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Step { get @@ -268,6 +282,7 @@ namespace ElmSharp /// respectively, for the horizontal and vertical modes. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsInverted { get @@ -288,6 +303,7 @@ namespace ElmSharp /// It won't display the values set with IndicatorFormat if you disable the indicator. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsIndicatorVisible { get @@ -304,6 +320,7 @@ namespace ElmSharp /// Sets or gets the visible mode of the slider indicator. /// /// preview + [Obsolete("This has been deprecated in API12")] public SliderIndicatorVisibleMode IndicatorVisibleMode { get @@ -320,6 +337,7 @@ namespace ElmSharp /// Sets or gets whether to show the indicator of a slider on focus. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsIndicatorFocusable { get @@ -338,6 +356,7 @@ namespace ElmSharp /// 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); diff --git a/src/ElmSharp/ElmSharp/SmartEvent.cs b/src/ElmSharp/ElmSharp/SmartEvent.cs index 1200e0d..d6016bf 100644 --- a/src/ElmSharp/ElmSharp/SmartEvent.cs +++ b/src/ElmSharp/ElmSharp/SmartEvent.cs @@ -30,6 +30,7 @@ namespace ElmSharp /// /// The parameter for the event. /// preview + [Obsolete("This has been deprecated in API12")] public class SmartEvent : IInvalidatable where TEventArgs : EventArgs { /// @@ -40,6 +41,7 @@ namespace ElmSharp /// The item sender object. /// Return smart event item args. /// preview + [Obsolete("This has been deprecated in API12")] public delegate TEventArgs SmartEventInfoParser(IntPtr data, IntPtr obj, IntPtr info); private EvasObject _sender; @@ -55,6 +57,7 @@ namespace ElmSharp /// The event name. /// The event parameter. /// preview + [Obsolete("This has been deprecated in API12")] public SmartEvent(EvasObject sender, string eventName, SmartEventInfoParser parser) : this(sender, sender.Handle, eventName, parser) { } @@ -67,6 +70,7 @@ namespace ElmSharp /// The event name. /// The event parser. /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsableAttribute(EditorBrowsableState.Never)] public SmartEvent(EvasObject sender, IntPtr handle, string eventName, SmartEventInfoParser parser) { @@ -83,6 +87,7 @@ namespace ElmSharp /// The source of the event. /// The event name. /// preview + [Obsolete("This has been deprecated in API12")] public SmartEvent(EvasObject sender, string eventName) : this(sender, eventName, null) { } @@ -105,6 +110,7 @@ namespace ElmSharp /// Adds or removes a delegate for the event. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler On { add @@ -143,6 +149,7 @@ namespace ElmSharp /// Destroys the current object. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Dispose() { Dispose(true); @@ -153,6 +160,7 @@ namespace ElmSharp /// Makes the current instance invalidate. /// /// preview + [Obsolete("This has been deprecated in API12")] public void MakeInvalidate() { _sender = null; @@ -167,6 +175,7 @@ namespace ElmSharp /// otherwise false. /// /// preview + [Obsolete("This has been deprecated in API12")] protected virtual void Dispose(bool disposing) { if (disposing) @@ -191,6 +200,7 @@ namespace ElmSharp /// They are defined by an event string, which identifies them uniquely. /// /// preview + [Obsolete("This has been deprecated in API12")] public class SmartEvent : IInvalidatable { private SmartEvent _smartEvent; @@ -203,6 +213,7 @@ namespace ElmSharp /// The source of the event. /// The event name. /// preview + [Obsolete("This has been deprecated in API12")] public SmartEvent(EvasObject sender, string eventName) : this(sender, sender.RealHandle, eventName) { } @@ -214,6 +225,7 @@ namespace ElmSharp /// The event handler. /// The event name. /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsableAttribute(EditorBrowsableState.Never)] public SmartEvent(EvasObject sender, IntPtr handle, string eventName) { @@ -232,6 +244,7 @@ namespace ElmSharp /// Adds or removes a delegate for the event. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler On { add @@ -262,6 +275,7 @@ namespace ElmSharp /// Destroys the current object. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Dispose() { Dispose(true); @@ -272,6 +286,7 @@ namespace ElmSharp /// Makes the current instance invalidate. /// /// preview + [Obsolete("This has been deprecated in API12")] public void MakeInvalidate() { _smartEvent.MakeInvalidate(); @@ -285,6 +300,7 @@ namespace ElmSharp /// otherwise false. /// /// preview + [Obsolete("This has been deprecated in API12")] protected virtual void Dispose(bool disposing) { if (disposing) diff --git a/src/ElmSharp/ElmSharp/Spinner.cs b/src/ElmSharp/ElmSharp/Spinner.cs index f815772..abbb2a6 100644 --- a/src/ElmSharp/ElmSharp/Spinner.cs +++ b/src/ElmSharp/ElmSharp/Spinner.cs @@ -23,6 +23,7 @@ namespace ElmSharp /// Inherits . /// /// preview + [Obsolete("This has been deprecated in API12")] public class Spinner : Layout { double _minimum = 0.0; @@ -36,6 +37,7 @@ namespace ElmSharp /// /// The parent of new Spinner instance /// preview + [Obsolete("This has been deprecated in API12")] public Spinner(EvasObject parent) : base(parent) { if (Elementary.GetProfile() == "tv") @@ -48,6 +50,7 @@ namespace ElmSharp /// Creates and initializes a new instance of the Layout class. /// /// preview + [Obsolete("This has been deprecated in API12")] protected Spinner() : base() { } @@ -56,18 +59,21 @@ namespace ElmSharp /// ValueChanged will be triggered whenever the spinner value is changed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler ValueChanged; /// /// DelayedValueChanged will be triggered after a short time when the value is changed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler DelayedValueChanged; /// /// Sets or gets the label format of the spinner. /// /// preview + [Obsolete("This has been deprecated in API12")] public string LabelFormat { get @@ -84,6 +90,7 @@ namespace ElmSharp /// Sets or gets the minimum value for the spinner. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Minimum { get @@ -101,6 +108,7 @@ namespace ElmSharp /// Sets or gets the maximum value for the spinner. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Maximum { get @@ -118,6 +126,7 @@ namespace ElmSharp /// Sets or gets the step that is used to increment or decrement the spinner value. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Step { get @@ -134,6 +143,7 @@ namespace ElmSharp /// Sets or gets the value displayed by the spinner. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Value { get @@ -150,6 +160,7 @@ namespace ElmSharp /// Sets or gets the interval on time updates for a user mouse button to hold on the spinner widgets' arrows. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Interval { get @@ -166,6 +177,7 @@ namespace ElmSharp /// Sets or gets the base for rounding. /// /// preview + [Obsolete("This has been deprecated in API12")] public double RoundBase { get @@ -182,6 +194,7 @@ namespace ElmSharp /// Sets or gets the round value for rounding. /// /// preview + [Obsolete("This has been deprecated in API12")] public int RoundValue { get @@ -203,6 +216,7 @@ namespace ElmSharp /// By default, it's disabled. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsWrapEnabled { get @@ -220,6 +234,7 @@ namespace ElmSharp /// /// By default, it is enabled. /// preview + [Obsolete("This has been deprecated in API12")] public bool IsEditable { get @@ -238,6 +253,7 @@ namespace ElmSharp /// The numerical value to be replaced /// The label to be used /// preview + [Obsolete("This has been deprecated in API12")] public void AddSpecialValue(double value, string label) { Interop.Elementary.elm_spinner_special_value_add(RealHandle, value, label); @@ -248,6 +264,7 @@ namespace ElmSharp /// /// The replaced numerical value. /// preview + [Obsolete("This has been deprecated in API12")] public void RemoveSpecialValue(double value) { Interop.Elementary.elm_spinner_special_value_del(RealHandle, value); @@ -259,6 +276,7 @@ namespace ElmSharp /// The replaced numerical value. /// The value of the spinner, which replaced the numerical value with a special string. /// preview + [Obsolete("This has been deprecated in API12")] public string GetSpecialValue(double value) { return Interop.Elementary.elm_spinner_special_value_get(RealHandle, value); @@ -268,6 +286,7 @@ namespace ElmSharp /// The callback of the Realized event. /// /// preview + [Obsolete("This has been deprecated in API12")] protected override void OnRealized() { base.OnRealized(); @@ -284,6 +303,7 @@ namespace ElmSharp /// 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); diff --git a/src/ElmSharp/ElmSharp/Table.cs b/src/ElmSharp/ElmSharp/Table.cs index bf31fd9..bfd62ed 100644 --- a/src/ElmSharp/ElmSharp/Table.cs +++ b/src/ElmSharp/ElmSharp/Table.cs @@ -23,6 +23,7 @@ namespace ElmSharp /// Inherits . /// /// preview + [Obsolete("This has been deprecated in API12")] public class Table : Container { int _paddingX = 0; @@ -35,6 +36,7 @@ namespace ElmSharp /// A to which the new Table instance will be attached. /// /// preview + [Obsolete("This has been deprecated in API12")] public Table(EvasObject parent) : base(parent) { } @@ -44,6 +46,7 @@ namespace ElmSharp /// /// True for homogeneous, False for no homogeneous. /// preview + [Obsolete("This has been deprecated in API12")] public bool Homogeneous { get @@ -60,6 +63,7 @@ namespace ElmSharp /// Sets or gets the horizontal padding between the cells. /// /// preview + [Obsolete("This has been deprecated in API12")] public int PaddingX { get @@ -77,6 +81,7 @@ namespace ElmSharp /// Sets or gets the vertical padding between the cells. /// /// preview + [Obsolete("This has been deprecated in API12")] public int PaddingY { get @@ -98,6 +103,7 @@ namespace ElmSharp /// The column span. /// The row span. /// preview + [Obsolete("This has been deprecated in API12")] public void Pack(EvasObject obj, int col, int row, int colspan, int rowspan) { if (obj == null) @@ -111,6 +117,7 @@ namespace ElmSharp /// /// The subobject. /// preview + [Obsolete("This has been deprecated in API12")] public void Unpack(EvasObject obj) { if (obj == null) @@ -123,6 +130,7 @@ namespace ElmSharp /// Removes all the child objects from a table object. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Clear() { Interop.Elementary.elm_table_clear(RealHandle, false); @@ -135,6 +143,7 @@ namespace ElmSharp /// The name of part class. /// The color. /// preview + [Obsolete("This has been deprecated in API12")] public override void SetPartColor(string part, Color color) { Interop.Elementary.elm_object_color_class_color_set(Handle, part, color.R * color.A / 255, @@ -149,6 +158,7 @@ namespace ElmSharp /// The name of part class, it could be 'bg', 'elm.swllow.content'. /// The color of a particular part. /// preview + [Obsolete("This has been deprecated in API12")] public override Color GetPartColor(string part) { int r, g, b, a; @@ -162,6 +172,7 @@ namespace ElmSharp /// 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); diff --git a/src/ElmSharp/ElmSharp/Toolbar.cs b/src/ElmSharp/ElmSharp/Toolbar.cs index 2ac1069..2a12385 100644 --- a/src/ElmSharp/ElmSharp/Toolbar.cs +++ b/src/ElmSharp/ElmSharp/Toolbar.cs @@ -23,6 +23,7 @@ namespace ElmSharp /// Enumeration for the selection mode of the toolbar. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum ToolbarSelectionMode { /// @@ -50,6 +51,7 @@ namespace ElmSharp /// Enumeration for setting the toolbar items display behavior, it can be scrollable, can show a menu with exceeding items, or simply hide them. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum ToolbarShrinkMode { /// @@ -82,6 +84,7 @@ namespace ElmSharp /// Enumeration for the icon lookup order of the toolbar. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum ToolbarIconLookupOrder { /// @@ -112,12 +115,14 @@ namespace ElmSharp /// Inherits EventArgs. /// /// preview + [Obsolete("This has been deprecated in API12")] public class ToolbarItemEventArgs : EventArgs { /// /// Gets the ToolbarItem. /// /// preview + [Obsolete("This has been deprecated in API12")] public ToolbarItem Item { get; private set; } internal static ToolbarItemEventArgs CreateFromSmartEvent(IntPtr data, IntPtr obj, IntPtr info) @@ -131,6 +136,7 @@ namespace ElmSharp /// The Toolbar is a widget that displays a list of items inside a box. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Toolbar : Widget { SmartEvent _clicked; @@ -144,6 +150,7 @@ namespace ElmSharp /// A EvasObject to which the new Table instance will be attached. /// /// preview + [Obsolete("This has been deprecated in API12")] public Toolbar(EvasObject parent) : base(parent) { _selected = new SmartEvent(this, this.RealHandle, "selected", ToolbarItemEventArgs.CreateFromSmartEvent); @@ -171,6 +178,7 @@ namespace ElmSharp /// Selected will be triggered when toolbar has been selected. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Selected; /// @@ -178,6 +186,7 @@ namespace ElmSharp /// /// True for homogeneous, False for no homogeneous. /// preview + [Obsolete("This has been deprecated in API12")] public bool Homogeneous { get @@ -194,6 +203,7 @@ namespace ElmSharp /// Sets or gets the slection mode of a given Toolbar widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public ToolbarSelectionMode SelectionMode { get @@ -210,6 +220,7 @@ namespace ElmSharp /// Sets or gets the shrink mode of a given Toolbar widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public ToolbarShrinkMode ShrinkMode { get @@ -226,6 +237,7 @@ namespace ElmSharp /// Sets or gets the toolbar's current orientation. /// /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public bool IsHorizontal { @@ -245,6 +257,7 @@ namespace ElmSharp /// Icons added before calling this function will not be affected. /// /// preview + [Obsolete("This has been deprecated in API12")] public ToolbarIconLookupOrder IconLookupOrder { get @@ -262,6 +275,7 @@ namespace ElmSharp /// Default value is 32 pixels, to be used by toolbar items. /// /// preview + [Obsolete("This has been deprecated in API12")] public int IconSize { get @@ -278,6 +292,7 @@ namespace ElmSharp /// Gets the number of items in a Toolbar widget. /// /// preview + [Obsolete("This has been deprecated in API12")] public int ItemsCount { get @@ -291,6 +306,7 @@ namespace ElmSharp /// /// The toolbar items alignment, a float between 0.0 and 1.0. /// preview + [Obsolete("This has been deprecated in API12")] public double ItemAlignment { get @@ -311,6 +327,7 @@ namespace ElmSharp /// By default it's false. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool TransverseExpansion { get @@ -331,6 +348,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public ToolbarItem Append(string label) { return Append(label, null); @@ -346,6 +364,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public ToolbarItem Append(string label, string icon) { ToolbarItem item = new ToolbarItem(label, icon, this); @@ -362,6 +381,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public ToolbarItem Prepend(string label) { return Prepend(label, null); @@ -377,6 +397,7 @@ namespace ElmSharp /// /// /// preview + [Obsolete("This has been deprecated in API12")] public ToolbarItem Prepend(string label, string icon) { ToolbarItem item = new ToolbarItem(label, icon, this); @@ -392,6 +413,7 @@ namespace ElmSharp /// The new which is inserted into the toolbar. /// /// preview + [Obsolete("This has been deprecated in API12")] public ToolbarItem InsertBefore(ToolbarItem before, string label) { return InsertBefore(before, label, string.Empty); @@ -406,6 +428,7 @@ namespace ElmSharp /// The new which is inserted into the toolbar. /// /// preview + [Obsolete("This has been deprecated in API12")] public ToolbarItem InsertBefore(ToolbarItem before, string label, string icon) { ToolbarItem item = new ToolbarItem(label, icon, this); @@ -421,6 +444,7 @@ namespace ElmSharp /// A string with the icon name or the absolute path of an image file. /// The new which is inserted into the toolbar. /// preview + [Obsolete("This has been deprecated in API12")] public ToolbarItem InsertAfter(ToolbarItem after, string label, string icon) { ToolbarItem item = new ToolbarItem(label, icon, this); @@ -434,6 +458,7 @@ namespace ElmSharp /// The label of the item. /// The into the toolbar. /// preview + [Obsolete("This has been deprecated in API12")] public ToolbarItem FindItemByLabel(string label) { IntPtr handle = Interop.Elementary.elm_toolbar_item_find_by_label(RealHandle, label); @@ -444,6 +469,7 @@ namespace ElmSharp /// Gets the selected ToolbarItemItem of the toolbar. /// /// preview + [Obsolete("This has been deprecated in API12")] public ToolbarItem SelectedItem { get @@ -457,6 +483,7 @@ namespace ElmSharp /// Gets the first ToolbarItemItem of the toolbar. /// /// preview + [Obsolete("This has been deprecated in API12")] public ToolbarItem FirstItem { get @@ -470,6 +497,7 @@ namespace ElmSharp /// Gets the last ToolbarItemItem of the toolbar. /// /// preview + [Obsolete("This has been deprecated in API12")] public ToolbarItem LastItem { get @@ -485,6 +513,7 @@ namespace ElmSharp /// 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); diff --git a/src/ElmSharp/ElmSharp/ToolbarItem.cs b/src/ElmSharp/ElmSharp/ToolbarItem.cs index 382808c..6e71c98 100644 --- a/src/ElmSharp/ElmSharp/ToolbarItem.cs +++ b/src/ElmSharp/ElmSharp/ToolbarItem.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// The ToolbarItem is an item of the toolbar. /// /// preview + [Obsolete("This has been deprecated in API12")] public class ToolbarItem : ItemObject { string _icon; @@ -43,6 +44,7 @@ namespace ElmSharp /// Sets or gets the icon path of the item. /// /// preview + [Obsolete("This has been deprecated in API12")] public string Icon { get @@ -60,6 +62,7 @@ namespace ElmSharp /// Sets or gets the text string of the item. /// /// preview + [Obsolete("This has been deprecated in API12")] public string Text { get @@ -95,6 +98,7 @@ namespace ElmSharp /// /// Items aren't set as a separator by default. If set as a separator, it displays a separator theme, so it won't display the icons or labels. /// preview + [Obsolete("This has been deprecated in API12")] public bool IsSeparator { get @@ -111,6 +115,7 @@ namespace ElmSharp /// Sets or gets whether the item is selected. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsSelected { get @@ -127,18 +132,21 @@ namespace ElmSharp /// Selected will be triggered when the item is selected. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Selected; /// /// LongPressed will be triggered when the item is pressed for a long time. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler LongPressed; /// /// Clicked will be triggered when the item is clicked. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Clicked; internal void SendSelected() diff --git a/src/ElmSharp/ElmSharp/Transit.cs b/src/ElmSharp/ElmSharp/Transit.cs index 5a66462..55b2a77 100644 --- a/src/ElmSharp/ElmSharp/Transit.cs +++ b/src/ElmSharp/ElmSharp/Transit.cs @@ -29,6 +29,7 @@ namespace ElmSharp /// /// Transit is not reusable. If the effect ends, the transit is destroyed automatically. /// preview + [Obsolete("This has been deprecated in API12")] public class Transit : IDisposable { IntPtr _handle = IntPtr.Zero; @@ -44,12 +45,14 @@ namespace ElmSharp /// A callback is called when the transit is deleted. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler Deleted; /// /// Creates and initializes a new instance of the Transit class. /// /// preview + [Obsolete("This has been deprecated in API12")] public Transit() { _handle = Interop.Elementary.elm_transit_add(); @@ -75,6 +78,7 @@ namespace ElmSharp /// Gets or sets the transit animation time. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Duration { get @@ -92,6 +96,7 @@ namespace ElmSharp /// If it is not kept, the objects states will be reset when the transition ends. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool ObjectStateKeep { get @@ -108,6 +113,7 @@ namespace ElmSharp /// Gets or sets the transit animation acceleration type. /// /// preview + [Obsolete("This has been deprecated in API12")] public TweenMode TweenMode { get @@ -125,6 +131,7 @@ namespace ElmSharp /// If the repeat is a negative number, it will repeat infinite times. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Repeat { get @@ -141,6 +148,7 @@ namespace ElmSharp /// Gets or sets if auto reverse is on. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool AutoReverse { get @@ -157,6 +165,7 @@ namespace ElmSharp /// Gets or sets the event enabled when transit is operating. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool EventEnabled { get @@ -174,6 +183,7 @@ namespace ElmSharp /// This gets the smooth scaling for transit map rendering. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool Smooth { get @@ -192,6 +202,7 @@ namespace ElmSharp /// It represents the progression position relative to the total. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Progress { get @@ -205,6 +216,7 @@ namespace ElmSharp /// /// A factor value from 0.0 to 1.0. /// preview + [Obsolete("This has been deprecated in API12")] public double BeginAccelerationFactor { get @@ -224,6 +236,7 @@ namespace ElmSharp /// /// A factor value from 0.0 to 1.0. /// preview + [Obsolete("This has been deprecated in API12")] public double EndAccelerationFactor { get @@ -244,6 +257,7 @@ namespace ElmSharp /// /// The interval value in seconds. /// preview + [Obsolete("This has been deprecated in API12")] public void Go(double interval = 0) { if (interval == 0) @@ -262,6 +276,7 @@ namespace ElmSharp /// Pauses the transition. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Pause() { if (Interop.Elementary.elm_transit_paused_get(_handle) == false) @@ -272,6 +287,7 @@ namespace ElmSharp /// Resumes the transition. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Resume() { if (Interop.Elementary.elm_transit_paused_get(_handle) == true) @@ -283,6 +299,7 @@ namespace ElmSharp /// /// Cannot add the duplicate transit. /// preview + [Obsolete("This has been deprecated in API12")] public IList Chains { get { return _chains; } @@ -293,6 +310,7 @@ namespace ElmSharp /// /// Cannot add the duplicate object. /// preview + [Obsolete("This has been deprecated in API12")] public IList Objects { get { return _objects; } @@ -303,6 +321,7 @@ namespace ElmSharp /// /// EffectBase object. /// preview + [Obsolete("This has been deprecated in API12")] public void AddEffect(EffectBase effect) { IntPtr _effect = effect.CreateEffect(_handle); @@ -315,6 +334,7 @@ namespace ElmSharp /// Destroys the current object. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Dispose() { Dispose(true); @@ -329,6 +349,7 @@ namespace ElmSharp /// otherwise false. /// /// preview + [Obsolete("This has been deprecated in API12")] protected virtual void Dispose(bool disposing) { if (_isDisposed) diff --git a/src/ElmSharp/ElmSharp/TransitEffect.cs b/src/ElmSharp/ElmSharp/TransitEffect.cs index e42cd5c..cb3ae0d 100644 --- a/src/ElmSharp/ElmSharp/TransitEffect.cs +++ b/src/ElmSharp/ElmSharp/TransitEffect.cs @@ -23,6 +23,7 @@ namespace ElmSharp /// Enumeration for the axis along which flip effect should be applied. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum FlipAxis { /// @@ -40,6 +41,7 @@ namespace ElmSharp /// Enumeration for the direction in which the wipe effect should occur. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum WipeDirection { /// @@ -67,6 +69,7 @@ namespace ElmSharp /// Enumeration for whether the wipe effect should show or hide the object. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum WipeType { /// @@ -84,6 +87,7 @@ namespace ElmSharp /// Enumration for the type of acceleration used in transition. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum TweenMode { /// @@ -131,12 +135,14 @@ namespace ElmSharp /// Blend effect class. /// /// preview + [Obsolete("This has been deprecated in API12")] public class BlendEffect : EffectBase { /// /// Creates and initializes a new instance of the BlendEffect class. /// /// preview + [Obsolete("This has been deprecated in API12")] public BlendEffect() { } @@ -151,6 +157,7 @@ namespace ElmSharp /// Color effect class. /// /// preview + [Obsolete("This has been deprecated in API12")] public class ColorEffect : EffectBase { Color _begin; @@ -162,6 +169,7 @@ namespace ElmSharp /// The begin color of the effect. /// The end color of the effect. /// preview + [Obsolete("This has been deprecated in API12")] public ColorEffect(Color beginColor, Color endColor) { _begin = beginColor; @@ -172,6 +180,7 @@ namespace ElmSharp /// The begin color of the effect. /// /// preview + [Obsolete("This has been deprecated in API12")] public Color BeginColor { get { return _begin; } @@ -181,6 +190,7 @@ namespace ElmSharp /// The end color of the effect. /// /// preview + [Obsolete("This has been deprecated in API12")] public Color EndColor { get { return _end; } @@ -196,12 +206,14 @@ namespace ElmSharp /// Fade effect class. /// /// preview + [Obsolete("This has been deprecated in API12")] public class FadeEffect : EffectBase { /// /// Creates and initializes a new instance of the FadeEffect class. /// /// preview + [Obsolete("This has been deprecated in API12")] public FadeEffect() { } @@ -216,6 +228,7 @@ namespace ElmSharp /// Flip effect class. /// /// preview + [Obsolete("This has been deprecated in API12")] public class FlipEffect : EffectBase { FlipAxis _axis; @@ -229,6 +242,7 @@ namespace ElmSharp /// Flipping Direction. True is clockwise. /// Resizable effect with FlipEffect. /// preview + [Obsolete("This has been deprecated in API12")] public FlipEffect(FlipAxis axis, bool clockWise, bool resizable = false) { _axis = axis; @@ -240,6 +254,7 @@ namespace ElmSharp /// Flipping axis (X or Y). /// /// preview + [Obsolete("This has been deprecated in API12")] public FlipAxis Axis { get { return _axis; } @@ -249,6 +264,7 @@ namespace ElmSharp /// Flipping direction. True is clockwise. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool ClockWise { get { return _clockWise; } @@ -258,6 +274,7 @@ namespace ElmSharp /// Resizable FlipEffect. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool Resizable { get { return _resizable; } @@ -275,6 +292,7 @@ namespace ElmSharp /// Resizing effect class. /// /// preview + [Obsolete("This has been deprecated in API12")] public class ResizingEffect : EffectBase { Size _begin; @@ -286,6 +304,7 @@ namespace ElmSharp /// The begin size of the effect. /// The end size of the effect. /// preview + [Obsolete("This has been deprecated in API12")] public ResizingEffect(Size beginSize, Size endSize) { _begin = beginSize; @@ -296,6 +315,7 @@ namespace ElmSharp /// The begin size of the effect. /// /// preview + [Obsolete("This has been deprecated in API12")] public Size BeginSize { get { return _begin; } @@ -305,6 +325,7 @@ namespace ElmSharp /// The end size of the effect. /// /// preview + [Obsolete("This has been deprecated in API12")] public Size EndSize { get { return _end; } @@ -320,6 +341,7 @@ namespace ElmSharp /// Rotation effect class. /// /// preview + [Obsolete("This has been deprecated in API12")] public class RotationEffect : EffectBase { float _begin; @@ -331,6 +353,7 @@ namespace ElmSharp /// The begin degree of the effect. /// The end degree of the effect. /// preview + [Obsolete("This has been deprecated in API12")] public RotationEffect(float beginDegree, float endDegree) { _begin = beginDegree; @@ -341,6 +364,7 @@ namespace ElmSharp /// The begin degree of the effect. /// /// preview + [Obsolete("This has been deprecated in API12")] public float BeginDegree { get { return _begin; } @@ -350,6 +374,7 @@ namespace ElmSharp /// The end degree of the effect. /// /// preview + [Obsolete("This has been deprecated in API12")] public float EndDegree { get { return _end; } @@ -365,6 +390,7 @@ namespace ElmSharp /// Translation effect class. /// /// preview + [Obsolete("This has been deprecated in API12")] public class TranslationEffect : EffectBase { Point _begin; @@ -376,6 +402,7 @@ namespace ElmSharp /// The begin point of the effect. /// The end point of the effect. /// preview + [Obsolete("This has been deprecated in API12")] public TranslationEffect(Point beginPoint, Point endPoint) { _begin = beginPoint; @@ -386,6 +413,7 @@ namespace ElmSharp /// The begin point of the effect. /// /// preview + [Obsolete("This has been deprecated in API12")] public Point BeginPoint { get { return _begin; } @@ -395,6 +423,7 @@ namespace ElmSharp /// The end point of the effect. /// /// preview + [Obsolete("This has been deprecated in API12")] public Point EndPoint { get { return _end; } @@ -410,6 +439,7 @@ namespace ElmSharp /// Wipe effect class. /// /// preview + [Obsolete("This has been deprecated in API12")] public class WipeEffect : EffectBase { WipeType _type; @@ -421,6 +451,7 @@ namespace ElmSharp /// Wipe type. Hide or show. /// Wipe direction. /// preview + [Obsolete("This has been deprecated in API12")] public WipeEffect(WipeType type, WipeDirection direction) { _type = type; @@ -431,6 +462,7 @@ namespace ElmSharp /// Wipe type. Hide or show. /// /// preview + [Obsolete("This has been deprecated in API12")] public WipeType Type { get { return _type; } @@ -440,6 +472,7 @@ namespace ElmSharp /// Wipe direction. /// /// preview + [Obsolete("This has been deprecated in API12")] public WipeDirection Direction { get { return _direction; } @@ -455,6 +488,7 @@ namespace ElmSharp /// Zoom effect class. /// /// preview + [Obsolete("This has been deprecated in API12")] public class ZoomEffect : EffectBase { float _begin; @@ -466,6 +500,7 @@ namespace ElmSharp /// The begin rate of the effect. /// The end rate of the effect. /// preview + [Obsolete("This has been deprecated in API12")] public ZoomEffect(float beginRate, float endRate) { _begin = beginRate; @@ -476,6 +511,7 @@ namespace ElmSharp /// The begin rate of the effect. /// /// preview + [Obsolete("This has been deprecated in API12")] public float BeginRate { get { return _begin; } @@ -485,6 +521,7 @@ namespace ElmSharp /// The end rate of the effect. /// /// preview + [Obsolete("This has been deprecated in API12")] public float EndRate { get { return _end; } diff --git a/src/ElmSharp/ElmSharp/Utility.cs b/src/ElmSharp/ElmSharp/Utility.cs index 1223207..9f3d153 100644 --- a/src/ElmSharp/ElmSharp/Utility.cs +++ b/src/ElmSharp/ElmSharp/Utility.cs @@ -14,12 +14,15 @@ * limitations under the License. */ +using System; + namespace ElmSharp { /// /// This class is a static class for utility methods. /// /// preview + [Obsolete("This has been deprecated in API12")] public static class Utility { /// @@ -27,6 +30,7 @@ namespace ElmSharp /// /// The new font path. /// preview + [Obsolete("This has been deprecated in API12")] public static void AppendGlobalFontPath(string path) { Interop.Evas.evas_font_path_global_append(path); @@ -37,6 +41,7 @@ namespace ElmSharp /// /// The new font path. /// preview + [Obsolete("This has been deprecated in API12")] public static void PrependEvasGlobalFontPath(string path) { Interop.Evas.evas_font_path_global_prepend(path); @@ -46,6 +51,7 @@ namespace ElmSharp /// Removes all font paths loaded into the memory by evas_font_path_app_* APIs for the application. /// /// preview + [Obsolete("This has been deprecated in API12")] public static void ClearEvasGlobalFontPath() { Interop.Evas.evas_font_path_global_clear(); @@ -55,6 +61,7 @@ namespace ElmSharp /// Reinitialize FontConfig. /// /// preview + [Obsolete("This has been deprecated in API12")] public static void FontReinit() { Interop.Evas.evas_font_reinit(); @@ -78,8 +85,9 @@ namespace ElmSharp /// Shadow alpha value. /// /// preview + [Obsolete("This has been deprecated in API12")] public static bool SetEdjeColorClass(string colorClass, int red, int green, int blue, int alpha, int outlineRed, int outlineGreen, int outlineBlue, int outlineAlpha, - int shadowRed, int shadowGreen, int shadowBlue, int shadowAlpha) + int shadowRed, int shadowGreen, int shadowBlue, int shadowAlpha) { return Interop.Elementary.edje_color_class_set(colorClass, red, green, blue, alpha, outlineRed, outlineGreen, outlineBlue, outlineAlpha, shadowRed, shadowGreen, shadowBlue, shadowAlpha); } @@ -102,8 +110,9 @@ namespace ElmSharp /// Shadow alpha value. /// /// preview + [Obsolete("This has been deprecated in API12")] public static bool GetEdjeColorClass(string colorClass, out int red, out int green, out int blue, out int alpha, out int outlineRed, out int outlineGreen, out int outlineBlue, - out int outlineAlpha, out int shadowRed, out int shadowGreen, out int shadowBlue, out int shadowAlpha) + out int outlineAlpha, out int shadowRed, out int shadowGreen, out int shadowBlue, out int shadowAlpha) { return Interop.Elementary.edje_color_class_get(colorClass, out red, out green, out blue, out alpha, out outlineRed, out outlineGreen, out outlineBlue, out outlineAlpha, out shadowRed, out shadowGreen, out shadowBlue, out shadowAlpha); @@ -114,6 +123,7 @@ namespace ElmSharp /// This function triggers the processing of messages addressed to any (alive) edje objects. /// /// preview + [Obsolete("This has been deprecated in API12")] public static void ProcessEdjeMessageSignal() { Interop.Elementary.edje_message_signal_process(); @@ -127,6 +137,7 @@ namespace ElmSharp /// The font size. /// True on success, or False on error. /// preview + [Obsolete("This has been deprecated in API12")] public static bool SetEdjeTextClass(string textClass, string font, int size) { return Interop.Elementary.edje_text_class_set(textClass, font, size); @@ -140,6 +151,7 @@ namespace ElmSharp /// The font size. /// True on success, or False on error. /// preview + [Obsolete("This has been deprecated in API12")] public static bool GetEdjeTextClass(string textClass, out string font, out int size) { return Interop.Elementary.edje_text_class_get(textClass, out font, out size); @@ -150,6 +162,7 @@ namespace ElmSharp /// /// The text class name. /// preview + [Obsolete("This has been deprecated in API12")] public static void DeleteEdjeTextClass(string textClass) { Interop.Elementary.edje_text_class_del(textClass); @@ -163,6 +176,7 @@ namespace ElmSharp /// The green component of the color. /// The blue component of the color. /// preview + [Obsolete("This has been deprecated in API12")] public static void PremulityplyEvasColorByAlpha(int alpha, ref int red, ref int green, ref int blue) { Interop.Evas.evas_color_argb_premul(alpha, ref red, ref green, ref blue); @@ -176,6 +190,7 @@ namespace ElmSharp /// The green component of the color. /// The blue component of the color. /// preview + [Obsolete("This has been deprecated in API12")] public static void UnPremulityplyEvasColorByAlpha(int alpha, ref int red, ref int green, ref int blue) { Interop.Evas.evas_color_argb_unpremul(alpha, ref red, ref green, ref blue); diff --git a/src/ElmSharp/ElmSharp/Widget.cs b/src/ElmSharp/ElmSharp/Widget.cs index 6ddcb1e..7b01d42 100644 --- a/src/ElmSharp/ElmSharp/Widget.cs +++ b/src/ElmSharp/ElmSharp/Widget.cs @@ -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,6 +349,7 @@ 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); @@ -341,6 +362,7 @@ namespace ElmSharp /// The content. /// /// preview + [Obsolete("This has been deprecated in API12")] public virtual bool SetPartContent(string part, EvasObject content) { return SetPartContent(part, content, false); @@ -354,6 +376,7 @@ namespace ElmSharp /// 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) @@ -371,6 +394,7 @@ namespace ElmSharp /// The content. /// /// preview + [Obsolete("This has been deprecated in API12")] public void SetContent(EvasObject content) { SetContent(content, false); @@ -383,6 +407,7 @@ namespace ElmSharp /// 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(); diff --git a/src/ElmSharp/ElmSharp/Window.cs b/src/ElmSharp/ElmSharp/Window.cs index ee3ab84..1abc434 100644 --- a/src/ElmSharp/ElmSharp/Window.cs +++ b/src/ElmSharp/ElmSharp/Window.cs @@ -24,6 +24,7 @@ namespace ElmSharp /// Enumeration for the display rotation of window. /// /// preview + [Obsolete("This has been deprecated in API12")] [Flags] public enum DisplayRotation { @@ -52,6 +53,7 @@ namespace ElmSharp /// Enumeration for the indicator opacity. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum StatusBarMode { /// @@ -77,6 +79,7 @@ namespace ElmSharp /// Enumeration for the keygrab modes of the window. /// /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public enum KeyGrabMode { @@ -105,6 +108,7 @@ namespace ElmSharp /// Enumeration for the indicator mode. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum IndicatorMode { /// @@ -127,6 +131,7 @@ namespace ElmSharp /// Enumeration for the keyboard mode. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum KeyboardMode { /// @@ -214,6 +219,7 @@ namespace ElmSharp /// Enumeration for the window type. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum WindowType { /// @@ -313,6 +319,7 @@ namespace ElmSharp /// Enumeration of notification window's priority level. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum NotificationLevel { /// @@ -345,6 +352,7 @@ namespace ElmSharp /// Enumeration of screen mode. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum ScreenMode { /// @@ -362,6 +370,7 @@ namespace ElmSharp /// The Window is a container that contains the graphical user interface of a program. /// /// preview + [Obsolete("This has been deprecated in API12")] public class Window : Widget { SmartEvent _deleteRequest; @@ -373,6 +382,7 @@ namespace ElmSharp /// /// Window name. /// preview + [Obsolete("This has been deprecated in API12")] public Window(string name) : this(null, name) { } @@ -392,6 +402,7 @@ namespace ElmSharp /// and set callback when window rotation is changed. /// /// preview + [Obsolete("This has been deprecated in API12")] public Window(Window parent, string name) : this(parent, name, WindowType.Basic) { } @@ -414,6 +425,7 @@ namespace ElmSharp /// and set callback when window rotation is changed. /// /// preview + [Obsolete("This has been deprecated in API12")] public Window(Window parent, string name, WindowType type) { Name = name; @@ -431,6 +443,7 @@ namespace ElmSharp /// Creates and initializes a new instance of the Window class. /// /// preview + [Obsolete("This has been deprecated in API12")] protected Window() { } @@ -439,30 +452,35 @@ namespace ElmSharp /// CloseRequested will be triggered when window is closed. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler CloseRequested; /// /// RotationChanged will be triggered when window is rotated. /// /// preview + [Obsolete("This has been deprecated in API12")] public event EventHandler RotationChanged; /// /// Sets or gets the window name. /// /// preview + [Obsolete("This has been deprecated in API12")] public string Name { get; set; } /// /// Gets the window type. /// /// preview + [Obsolete("This has been deprecated in API12")] public WindowType Type { get; } = WindowType.Basic; /// /// Gets the window size with Size value(w,h) /// /// preview + [Obsolete("This has been deprecated in API12")] public Size ScreenSize { get @@ -477,6 +495,7 @@ namespace ElmSharp /// Gets the screen dpi for the screen that the window is on. /// /// preview + [Obsolete("This has been deprecated in API12")] public Point ScreenDpi { get @@ -491,6 +510,7 @@ namespace ElmSharp /// Gets the rotation of the window. The rotation of the window in degrees (0-360). /// /// preview + [Obsolete("This has been deprecated in API12")] public int Rotation { get @@ -503,6 +523,7 @@ namespace ElmSharp /// Gets whether the window manager supports window rotation or not. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool IsRotationSupported { get @@ -522,6 +543,7 @@ namespace ElmSharp /// Sets or gets the available rotation degree. /// /// preview + [Obsolete("This has been deprecated in API12")] public DisplayRotation AvailableRotations { get @@ -548,6 +570,7 @@ namespace ElmSharp /// If auto deletion is disabled, the window is not destroyed and the program has to handle it. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool AutoDeletion { get @@ -568,6 +591,7 @@ namespace ElmSharp /// If alpha is true, the alpha channel of the canvas will be enabled possibly making parts of the window completely or partially transparent. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool Alpha { get @@ -587,6 +611,7 @@ namespace ElmSharp /// The Role will be invalid if a new role is set or if the window is destroyed. /// /// preview + [Obsolete("This has been deprecated in API12")] public string Role { get @@ -603,6 +628,7 @@ namespace ElmSharp /// Sets or gets the mode of the status bar. /// /// preview + [Obsolete("This has been deprecated in API12")] public StatusBarMode StatusBarMode { get @@ -619,6 +645,7 @@ namespace ElmSharp /// Sets or gets the iconified state of the window. /// /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public bool Iconified { @@ -637,6 +664,7 @@ namespace ElmSharp /// /// The indicator mode. /// preview + [Obsolete("This has been deprecated in API12")] public IndicatorMode IndicatorMode { get @@ -653,6 +681,7 @@ namespace ElmSharp /// Gets or sets the aspect ratio of the window. /// /// preview + [Obsolete("This has been deprecated in API12")] public double Aspect { get @@ -669,6 +698,7 @@ namespace ElmSharp /// Window's autohide state. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool AutoHide { get @@ -686,6 +716,7 @@ namespace ElmSharp /// This function requests the Window Manager to not draw any decoration around the window. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool Borderless { get @@ -702,6 +733,7 @@ namespace ElmSharp /// Gets or sets the demand attention state of the window. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool DemandAttention { get @@ -718,6 +750,7 @@ namespace ElmSharp /// Gets or sets the floating mode of the window. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool FloatingMode { get @@ -735,6 +768,7 @@ namespace ElmSharp /// This function will enable or disable the animation of focus highlight only for the given window, regardless of the global setting for it. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool FocusHighlightAnimation { get @@ -752,6 +786,7 @@ namespace ElmSharp /// This function will enable or disable the focus highlight only for the given window, regardless of the global setting for it. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool FocusHighlightEnabled { get @@ -769,6 +804,7 @@ namespace ElmSharp /// Sets the style to use for theming the highlight of focused objects on the given window. If style is NULL, the default will be used. /// /// preview + [Obsolete("This has been deprecated in API12")] public string FocusHighlightStyle { get @@ -785,6 +821,7 @@ namespace ElmSharp /// Gets the keyboard mode of the window. /// /// preview + [Obsolete("This has been deprecated in API12")] public KeyboardMode KeyboardMode { get @@ -806,6 +843,7 @@ namespace ElmSharp /// and anything else means that the window will be placed in the default layer. /// /// preview + [Obsolete("This has been deprecated in API12")] public override int Layer { get @@ -822,6 +860,7 @@ namespace ElmSharp /// Gets or sets the modal state of the window. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool Modal { get @@ -840,6 +879,7 @@ namespace ElmSharp /// The noblank property may have no effect if the window is iconified/minimized or hidden. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool NoBlank { get @@ -856,6 +896,7 @@ namespace ElmSharp /// Gets the profile of the window. /// /// preview + [Obsolete("This has been deprecated in API12")] public string Profile { get @@ -873,6 +914,7 @@ namespace ElmSharp /// When this function returns true, object will never resize larger than the screen. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool ScreenConstrain { get @@ -889,6 +931,7 @@ namespace ElmSharp /// Gets or sets the base size of the window. /// /// preview + [Obsolete("This has been deprecated in API12")] public Size BaseSize { get @@ -907,6 +950,7 @@ namespace ElmSharp /// Gets or sets the step size of the window. /// /// preview + [Obsolete("This has been deprecated in API12")] public Size StepSize { get @@ -925,6 +969,7 @@ namespace ElmSharp /// Gets the screen position X of a window. /// /// preview + [Obsolete("This has been deprecated in API12")] public int ScreenPositionX { get @@ -939,6 +984,7 @@ namespace ElmSharp /// Gets the screen position Y of a window. /// /// preview + [Obsolete("This has been deprecated in API12")] public int ScreenPositionY { get @@ -953,6 +999,7 @@ namespace ElmSharp /// Gets or sets the title of the window. /// /// preview + [Obsolete("This has been deprecated in API12")] public string Title { get @@ -969,6 +1016,7 @@ namespace ElmSharp /// Gets or sets the urgent state of the window. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool Urgent { get @@ -985,6 +1033,7 @@ namespace ElmSharp /// Gets or sets the withdrawn state of the window. /// /// preview + [Obsolete("This has been deprecated in API12")] public bool Withdrawn { get @@ -1007,6 +1056,7 @@ namespace ElmSharp /// This can be used for a notification type window only. /// /// preview + [Obsolete("This has been deprecated in API12")] public NotificationLevel NotificationLevel { get @@ -1036,6 +1086,7 @@ namespace ElmSharp /// This needs the privilege. If the application which is not get the privilege use this API, the window manager generates the permission deny error. /// /// preview + [Obsolete("This has been deprecated in API12")] public ScreenMode ScreenMode { get @@ -1065,6 +1116,7 @@ namespace ElmSharp /// This needs the privilege. If the application which is not get the privilege use this API, the window manager generates the permission deny error. /// /// preview + [Obsolete("This has been deprecated in API12")] public int Brightness { get @@ -1089,6 +1141,7 @@ namespace ElmSharp /// A boolean that if true, specifies to create a system-wide service all users can connect to, otherwise the service is private to the user ID that created the service. /// If true creates successful, otherwise false. /// preview + [Obsolete("This has been deprecated in API12")] public bool CreateServiceSocket(string name, int number, bool systemWide) { return Interop.Elementary.elm_win_socket_listen(RealHandle, name, number, systemWide); @@ -1100,6 +1153,7 @@ namespace ElmSharp /// The rotation of the window, in degrees (0-360), counter-clockwise. /// Resizes the window's contents so that they fit inside the current window geometry. /// preview + [Obsolete("This has been deprecated in API12")] public void SetRotation(int degree, bool resize) { if (resize) @@ -1116,6 +1170,7 @@ namespace ElmSharp /// This will have no effect when used by a non-alpha window. /// /// preview + [Obsolete("This has been deprecated in API12")] public void SetOpaqueState() { Interop.Eutil.efl_util_set_window_opaque_state(RealHandle, 1); @@ -1125,6 +1180,7 @@ namespace ElmSharp /// Unsets the alpha window's visual state to opaque state. /// /// preview + [Obsolete("This has been deprecated in API12")] public void UnsetOpaqueState() { Interop.Eutil.efl_util_set_window_opaque_state(RealHandle, 0); @@ -1139,6 +1195,7 @@ namespace ElmSharp /// Be careful that this may have side-effects like making the window non-accessible in some cases unless the window is specially handled. Use this with care. /// /// preview + [Obsolete("This has been deprecated in API12")] public void FocusSkip(bool skip) { Interop.Elementary.elm_win_prop_focus_skip_set(Handle, skip); @@ -1149,6 +1206,7 @@ namespace ElmSharp /// Places the window pointed by object at the top of the stack, so that it's not covered by any other window. /// /// preview + [Obsolete("This has been deprecated in API12")] public void PullUp() { Interop.Elementary.elm_win_raise(Handle); @@ -1159,6 +1217,7 @@ namespace ElmSharp /// Places the window pointed by object at the bottom of the stack, so that no other window is covered by it. /// /// preview + [Obsolete("This has been deprecated in API12")] public void BringDown() { Interop.Elementary.elm_win_lower(Handle); @@ -1173,6 +1232,7 @@ namespace ElmSharp /// in any way that the window is going to be the active one after it. /// /// preview + [Obsolete("This has been deprecated in API12")] public void Active() { Interop.Elementary.elm_win_activate(Handle); @@ -1185,6 +1245,7 @@ namespace ElmSharp /// /// Resize object. /// preview + [Obsolete("This has been deprecated in API12")] public void DeleteResizeObject(EvasObject obj) { Interop.Elementary.elm_win_resize_object_del(Handle, obj); @@ -1203,6 +1264,7 @@ namespace ElmSharp /// Resize object. /// /// preview + [Obsolete("This has been deprecated in API12")] public void AddResizeObject(EvasObject obj) { Interop.Elementary.elm_win_resize_object_add(Handle, obj); @@ -1215,6 +1277,7 @@ namespace ElmSharp /// The keyname to grab. /// According to the grabmode, it can grab key differently. /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public void WinKeyGrab(string keyname, KeyGrabMode mode) { @@ -1227,6 +1290,7 @@ namespace ElmSharp /// /// The keyname to grab. /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public void WinKeyUngrab(string keyname) { @@ -1238,6 +1302,7 @@ namespace ElmSharp /// /// The keyname string to set keygrab. /// preview + [Obsolete("This has been deprecated in API12")] public void KeyGrabEx(string keyname) { Interop.Elementary.eext_win_keygrab_set(RealHandle, keyname); @@ -1248,6 +1313,7 @@ namespace ElmSharp /// /// The keyname string to unset keygrab. /// preview + [Obsolete("This has been deprecated in API12")] public void KeyUngrabEx(string keyname) { Interop.Elementary.eext_win_keygrab_unset(RealHandle, keyname); @@ -1263,6 +1329,7 @@ namespace ElmSharp /// The value string /// The ID of the created auxiliary hint, otherwise -1 on failure /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public int AddAuxiliaryHint(string hint, string value) { @@ -1278,6 +1345,7 @@ namespace ElmSharp /// The ID of the auxiliary hint /// If true deletes successful, otherwise false. /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public bool DeleteAuxiliaryHint(int id) { @@ -1294,6 +1362,7 @@ namespace ElmSharp /// The value string to be set /// If true changes successful, otherwise false. /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public bool SetAuxiliaryHintValue(int id, string value) { @@ -1309,6 +1378,7 @@ namespace ElmSharp /// The auxiliary hint ID /// The string value of the auxiliary hint ID /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public string GetAuxiliaryHintValue(int id) { @@ -1324,6 +1394,7 @@ namespace ElmSharp /// The auxiliary hint string /// The ID of the auxiliary hint, otherwise -1 on failure /// preview + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public int GetAuxiliaryHintId(string hint) { @@ -1336,6 +1407,7 @@ namespace ElmSharp /// Parent EvasObject. /// Handle IntPtr. /// preview + [Obsolete("This has been deprecated in API12")] protected override IntPtr CreateHandle(EvasObject parent) { Interop.Elementary.elm_config_accel_preference_set("3d"); diff --git a/src/ElmSharp/ElmSharp/WrapType.cs b/src/ElmSharp/ElmSharp/WrapType.cs index 2fccafa..a237f15 100644 --- a/src/ElmSharp/ElmSharp/WrapType.cs +++ b/src/ElmSharp/ElmSharp/WrapType.cs @@ -22,6 +22,7 @@ namespace ElmSharp /// Enumeration for the wrap types. /// /// preview + [Obsolete("This has been deprecated in API12")] public enum WrapType { /// diff --git a/src/Tizen.NUI.Wearable/src/public/CircularPagination.cs b/src/Tizen.NUI.Wearable/src/public/CircularPagination.cs index 3258e8e..143d6f7 100755 --- a/src/Tizen.NUI.Wearable/src/public/CircularPagination.cs +++ b/src/Tizen.NUI.Wearable/src/public/CircularPagination.cs @@ -27,7 +27,7 @@ namespace Tizen.NUI.Wearable /// Especially, CircularPagination provides indicators specific to wearable device. /// /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public class CircularPagination : Control { @@ -69,7 +69,7 @@ namespace Tizen.NUI.Wearable /// Creates a new instance of a CircularPagination. /// /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public CircularPagination() : base() { @@ -80,7 +80,7 @@ namespace Tizen.NUI.Wearable /// Creates a new instance of a CircularPagination using style. /// /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public CircularPagination(CircularPaginationStyle style) : base(style) { @@ -91,7 +91,7 @@ namespace Tizen.NUI.Wearable /// Gets or sets the size of the indicator. /// /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Size IndicatorSize { @@ -114,7 +114,7 @@ namespace Tizen.NUI.Wearable /// Gets or sets the background resource of indicator. /// /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Selector IndicatorImageURL { @@ -137,7 +137,7 @@ namespace Tizen.NUI.Wearable /// Gets or sets the background resource of the center indicator. /// /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Selector CenterIndicatorImageURL { @@ -175,7 +175,7 @@ namespace Tizen.NUI.Wearable /// Please refer to LeftIndicatorCount and RightIndicatorCount. /// /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public bool IsSymmetrical { @@ -207,7 +207,7 @@ namespace Tizen.NUI.Wearable /// This value is for symmetrical indicators. /// /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public int IndicatorCount { @@ -290,7 +290,7 @@ namespace Tizen.NUI.Wearable /// This value can be set when IsSymmetrical API is false. /// /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public int LeftIndicatorCount { @@ -362,7 +362,7 @@ namespace Tizen.NUI.Wearable /// This value can be set when IsSymmetrical API is false. /// /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public int RightIndicatorCount { @@ -421,7 +421,7 @@ namespace Tizen.NUI.Wearable /// If no value is set, the default value is the center indicator. /// /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public int SelectedIndex { @@ -466,7 +466,7 @@ namespace Tizen.NUI.Wearable /// Indicator index /// The position of a indicator by index /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Position GetIndicatorPosition(int index) { @@ -484,7 +484,7 @@ namespace Tizen.NUI.Wearable /// The position of a indicator by index /// This exception can occur by the position is null. /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public virtual void SetIndicatorPosition(int index, Position position) { @@ -518,7 +518,7 @@ namespace Tizen.NUI.Wearable /// /// The indicator will be selected out /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] protected virtual void SelectOut(VisualMap selectOutIndicator) { @@ -539,7 +539,7 @@ namespace Tizen.NUI.Wearable /// /// The indicator will be selected in /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] protected virtual void SelectIn(VisualMap selectInIndicator) { @@ -559,7 +559,7 @@ namespace Tizen.NUI.Wearable /// you can override it to create your own default style. /// /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] protected override ViewStyle CreateViewStyle() { @@ -571,7 +571,7 @@ namespace Tizen.NUI.Wearable /// /// DisposeTypes /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] protected override void Dispose(DisposeTypes type) { diff --git a/src/Tizen.NUI.Wearable/src/public/CircularProgress.cs b/src/Tizen.NUI.Wearable/src/public/CircularProgress.cs index eef7387..63751b4 100755 --- a/src/Tizen.NUI.Wearable/src/public/CircularProgress.cs +++ b/src/Tizen.NUI.Wearable/src/public/CircularProgress.cs @@ -26,6 +26,7 @@ namespace Tizen.NUI.Wearable /// The CircularProgress class of Wearable is used to show the ongoing status with a circular bar. /// CircularProgress can be counted in its percentage. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public class CircularProgress : Control { @@ -169,6 +170,7 @@ namespace Tizen.NUI.Wearable /// But, it also can be displayed on the button or the list for small size. /// User can set its size. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public CircularProgress() : base() { @@ -179,6 +181,7 @@ namespace Tizen.NUI.Wearable /// The constructor of the CircularProgress class with specific style. /// /// style name + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public CircularProgress(string style) : base(style) { @@ -189,6 +192,7 @@ namespace Tizen.NUI.Wearable /// The constructor of the CircularProgress class with specific style. /// /// The style object to initialize the CircularProgress. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public CircularProgress(CircularProgressStyle progressStyle) : base(progressStyle) { @@ -203,6 +207,7 @@ namespace Tizen.NUI.Wearable /// /// The thickness of the track and progress. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public float Thickness { @@ -220,6 +225,7 @@ namespace Tizen.NUI.Wearable /// The property to get/set the maximum value of the CircularProgress. /// The default value is 100. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public float MaxValue { @@ -237,6 +243,7 @@ namespace Tizen.NUI.Wearable /// The property to get/set the minimum value of the CircularProgress. /// The default value is 0. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public float MinValue { @@ -254,6 +261,7 @@ namespace Tizen.NUI.Wearable /// The property to get/set the current value of the CircularProgress. /// The default value is 0. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public float CurrentValue { @@ -278,6 +286,7 @@ namespace Tizen.NUI.Wearable /// /// The property to get/set Track object color of the CircularProgress. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Color TrackColor { @@ -294,6 +303,7 @@ namespace Tizen.NUI.Wearable /// /// The property to get/set Progress object color of the CircularProgress. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Color ProgressColor { @@ -310,6 +320,7 @@ namespace Tizen.NUI.Wearable /// /// Flag to be enabled or disabled in CircularProgress. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public new bool IsEnabled { @@ -357,6 +368,7 @@ namespace Tizen.NUI.Wearable /// Dispose Progress and all children on it. /// /// Dispose type. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] protected override void Dispose(DisposeTypes type) { @@ -377,6 +389,7 @@ namespace Tizen.NUI.Wearable /// /// Update progress value /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] protected virtual void UpdateValue() { @@ -399,6 +412,7 @@ namespace Tizen.NUI.Wearable /// Get Progress style. /// /// The default progress style. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] protected override ViewStyle CreateViewStyle() { @@ -406,6 +420,7 @@ namespace Tizen.NUI.Wearable } /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] protected override void OnControlStateChanged(ControlStateChangedEventArgs controlStateChangedInfo) { diff --git a/src/Tizen.NUI.Wearable/src/public/CircularScrollbar.cs b/src/Tizen.NUI.Wearable/src/public/CircularScrollbar.cs index 067c76f..08db214 100755 --- a/src/Tizen.NUI.Wearable/src/public/CircularScrollbar.cs +++ b/src/Tizen.NUI.Wearable/src/public/CircularScrollbar.cs @@ -26,12 +26,14 @@ namespace Tizen.NUI.Wearable /// The CircualrScrollbar is a wearable NUI component that can be linked to the scrollable objects /// indicating the current scroll position of the scrollable object.
/// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public class CircularScrollbar : ScrollbarBase { #region Fields /// Bindable property of Thickness + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty ThicknessProperty = BindableProperty.Create(nameof(Thickness), typeof(float), typeof(CircularScrollbar), default(float), propertyChanged: (bindable, oldValue, newValue) => { @@ -106,6 +108,7 @@ namespace Tizen.NUI.Wearable /// /// Create an empty CircularScrollbar. /// + [Obsolete("This has been deprecated in API12")] public CircularScrollbar() : base() { } @@ -117,6 +120,7 @@ namespace Tizen.NUI.Wearable /// The length of the viewport representing the amount of visible content. /// The current position of the viewport in scrollable content area. This is the viewport's top position if the scroller is vertical, otherwise, left. /// Whether the direction of scrolling is horizontal or not. It is vertical by default. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public CircularScrollbar(float contentLength, float viewportLength, float currentPosition, bool isHorizontal = false) : base() { @@ -126,6 +130,7 @@ namespace Tizen.NUI.Wearable /// /// Create an empty CircularScrollbar with a CircularScrollbarStyle instance to set style properties. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public CircularScrollbar(CircularScrollbarStyle style) : base(style) { @@ -147,6 +152,7 @@ namespace Tizen.NUI.Wearable /// /// The thickness of the scrollbar and track. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public float Thickness { @@ -161,6 +167,7 @@ namespace Tizen.NUI.Wearable /// Values below 6 degrees are treated as 6 degrees. /// Values exceeding 180 degrees are treated as 180 degrees. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public float TrackSweepAngle { @@ -171,6 +178,7 @@ namespace Tizen.NUI.Wearable /// /// The color of the track part. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Color TrackColor { @@ -181,6 +189,7 @@ namespace Tizen.NUI.Wearable /// /// The color of the thumb part. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Color ThumbColor { @@ -196,6 +205,7 @@ namespace Tizen.NUI.Wearable #region Methods /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public override void Initialize(float contentLength, float viewportLenth, float currentPosition, bool isHorizontal = false) { @@ -265,6 +275,7 @@ namespace Tizen.NUI.Wearable } /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public override void Update(float contentLength, float viewportLength, float position, uint durationMs = 0, AlphaFunction alphaFunction = null) { @@ -273,6 +284,7 @@ namespace Tizen.NUI.Wearable } /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public override void Update(float contentLength, float position, uint durationMs = 0, AlphaFunction alphaFunction = null) { @@ -309,6 +321,7 @@ namespace Tizen.NUI.Wearable } /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public override void ScrollTo(float position, uint durationMs = 0, AlphaFunction alphaFunction = null) { @@ -345,6 +358,7 @@ namespace Tizen.NUI.Wearable } /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public override void OnRelayout(Vector2 size, RelayoutContainer container) { @@ -375,6 +389,7 @@ namespace Tizen.NUI.Wearable } /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public override void ApplyStyle(ViewStyle viewStyle) { @@ -386,6 +401,7 @@ namespace Tizen.NUI.Wearable } /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] protected override ViewStyle CreateViewStyle() { @@ -475,6 +491,7 @@ namespace Tizen.NUI.Wearable } /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public override float ScrollPosition { @@ -482,6 +499,7 @@ namespace Tizen.NUI.Wearable } /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public override float ScrollCurrentPosition { diff --git a/src/Tizen.NUI.Wearable/src/public/CircularSlider.cs b/src/Tizen.NUI.Wearable/src/public/CircularSlider.cs index b9b6237..e8b9472 100755 --- a/src/Tizen.NUI.Wearable/src/public/CircularSlider.cs +++ b/src/Tizen.NUI.Wearable/src/public/CircularSlider.cs @@ -25,6 +25,7 @@ namespace Tizen.NUI.Wearable /// /// Value Changed event data. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public class CircularSliderValueChangedEventArgs : EventArgs { @@ -33,6 +34,7 @@ namespace Tizen.NUI.Wearable /// /// Current value /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public float CurrentValue { @@ -45,6 +47,7 @@ namespace Tizen.NUI.Wearable /// The CircularSlider class of Wearable is used to let users select a value from a continuous or discrete range of values by moving the slider thumb. /// CircularSlider shows the current value with the length of the line. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public class CircularSlider : Control { @@ -221,6 +224,7 @@ namespace Tizen.NUI.Wearable /// /// The constructor of CircularSlider. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public CircularSlider() : base() { @@ -231,6 +235,7 @@ namespace Tizen.NUI.Wearable /// The constructor of the CircularSlider class with specific style. /// /// The style object to initialize the CircularSlider. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public CircularSlider(CircularSliderStyle progressStyle) : base(progressStyle) { @@ -244,6 +249,7 @@ namespace Tizen.NUI.Wearable /// /// The value changed event handler. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public event EventHandler ValueChanged; @@ -254,6 +260,7 @@ namespace Tizen.NUI.Wearable /// /// The thickness of the track and progress. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public float Thickness { @@ -271,6 +278,7 @@ namespace Tizen.NUI.Wearable /// The property to get/set the maximum value of the CircularSlider. /// The default value is 100. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public float MaxValue { @@ -288,6 +296,7 @@ namespace Tizen.NUI.Wearable /// The property to get/set the minimum value of the CircularSlider. /// The default value is 0. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public float MinValue { @@ -305,6 +314,7 @@ namespace Tizen.NUI.Wearable /// The property to get/set the current value of the CircularSlider. /// The default value is 0. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public float CurrentValue { @@ -330,6 +340,7 @@ namespace Tizen.NUI.Wearable /// /// The property to get/set Track object color of the CircularSlider. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Color TrackColor { @@ -346,6 +357,7 @@ namespace Tizen.NUI.Wearable /// /// The property to get/set Progress object color of the CircularSlider. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Color ProgressColor { @@ -362,6 +374,7 @@ namespace Tizen.NUI.Wearable /// /// Gets or sets the size of the thumb of Slider. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Size ThumbSize { @@ -378,6 +391,7 @@ namespace Tizen.NUI.Wearable /// /// The property to get/set Thumb object color of the CircularSlider. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Color ThumbColor { @@ -394,6 +408,7 @@ namespace Tizen.NUI.Wearable /// /// Flag to be enabled or disabled in CircularSlider. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public new bool IsEnabled { @@ -437,6 +452,7 @@ namespace Tizen.NUI.Wearable /// Dispose Progress and all children on it. /// /// Dispose type. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] protected override void Dispose(DisposeTypes type) { @@ -458,6 +474,7 @@ namespace Tizen.NUI.Wearable /// /// Update progress value /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] protected virtual void UpdateValue() { @@ -480,6 +497,7 @@ namespace Tizen.NUI.Wearable /// Get Progress style. /// /// The default progress style. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] protected override ViewStyle CreateViewStyle() { diff --git a/src/Tizen.NUI.Wearable/src/public/NUIWatchApplication.cs b/src/Tizen.NUI.Wearable/src/public/NUIWatchApplication.cs index d466716..afa3f7f 100755 --- a/src/Tizen.NUI.Wearable/src/public/NUIWatchApplication.cs +++ b/src/Tizen.NUI.Wearable/src/public/NUIWatchApplication.cs @@ -25,32 +25,38 @@ namespace Tizen.NUI /// /// Represents an application that can make watch-face. /// + [Obsolete("This has been deprecated in API12")] public class NUIWatchApplication : CoreApplication { /// /// Occurs whenever the application is resumed. /// + [Obsolete("This has been deprecated in API12")] public event EventHandler Resumed; /// /// Occurs whenever the application is paused. /// + [Obsolete("This has been deprecated in API12")] public event EventHandler Paused; /// /// Occurs at every second. /// + [Obsolete("This has been deprecated in API12")] public event EventHandler TimeTick; /// /// Event arguments that passed via time tick event signal. /// + [Obsolete("This has been deprecated in API12")] public class TimeTickEventArgs : EventArgs { private WatchTime _watchTime; /// /// Default Constructor. /// + [Obsolete("This has been deprecated in API12")] public TimeTickEventArgs( WatchTime watchTime ) { _watchTime = watchTime; @@ -59,6 +65,7 @@ namespace Tizen.NUI /// /// WatchTime. /// + [Obsolete("This has been deprecated in API12")] public WatchTime WatchTime { get @@ -72,17 +79,20 @@ namespace Tizen.NUI /// Occurs at each minute in ambient mode. /// http://tizen.org/privilege/alarm.set privilege is needed to receive ambient ticks at each minute. /// + [Obsolete("This has been deprecated in API12")] public event EventHandler AmbientTick; /// /// Event arguments that passed via ambient tick event signal. /// + [Obsolete("This has been deprecated in API12")] public class AmbientTickEventArgs : EventArgs { private WatchTime _watchTime; /// /// Default Constructor. /// + [Obsolete("This has been deprecated in API12")] public AmbientTickEventArgs(WatchTime watchTime) { _watchTime = watchTime; @@ -91,6 +101,7 @@ namespace Tizen.NUI /// /// WatchTime. /// + [Obsolete("This has been deprecated in API12")] public WatchTime WatchTime { get @@ -103,17 +114,20 @@ namespace Tizen.NUI /// /// Occurs when the device enters or exits ambient mode /// + [Obsolete("This has been deprecated in API12")] public event EventHandler AmbientChanged; /// /// Event arguments that passed via ambient tick event signal. /// + [Obsolete("This has been deprecated in API12")] public class AmbientChangedEventArgs : EventArgs { private bool _changed; /// /// Default Constructor. /// + [Obsolete("This has been deprecated in API12")] public AmbientChangedEventArgs(bool changed) { _changed = changed; @@ -122,6 +136,7 @@ namespace Tizen.NUI /// /// Changed. /// + [Obsolete("This has been deprecated in API12")] public bool Changed { get @@ -134,6 +149,7 @@ namespace Tizen.NUI /// /// The default constructor. /// + [Obsolete("This has been deprecated in API12")] public NUIWatchApplication() : base(new NUIWatchCoreBackend()) { } @@ -141,6 +157,7 @@ namespace Tizen.NUI /// /// The constructor with stylesheet. /// + [Obsolete("This has been deprecated in API12")] public NUIWatchApplication(string stylesheet) : base(new NUIWatchCoreBackend(stylesheet)) { } @@ -148,6 +165,7 @@ namespace Tizen.NUI /// /// Overrides this method if want to handle behavior. /// + [Obsolete("This has been deprecated in API12")] protected override void OnLocaleChanged(LocaleChangedEventArgs e) { Log.Debug("NUI", "OnLocaleChanged() is called!"); @@ -157,6 +175,7 @@ namespace Tizen.NUI /// /// Overrides this method if want to handle behavior. /// + [Obsolete("This has been deprecated in API12")] protected override void OnLowBattery(LowBatteryEventArgs e) { Log.Debug("NUI", "OnLowBattery() is called!"); @@ -166,6 +185,7 @@ namespace Tizen.NUI /// /// Overrides this method if want to handle behavior. /// + [Obsolete("This has been deprecated in API12")] protected override void OnLowMemory(LowMemoryEventArgs e) { Log.Debug("NUI", "OnLowMemory() is called!"); @@ -175,6 +195,7 @@ namespace Tizen.NUI /// /// Overrides this method if want to handle behavior. /// + [Obsolete("This has been deprecated in API12")] protected override void OnRegionFormatChanged(RegionFormatChangedEventArgs e) { Log.Debug("NUI", "OnRegionFormatChanged() is called!"); @@ -184,6 +205,7 @@ namespace Tizen.NUI /// /// Overrides this method if want to handle behavior. /// + [Obsolete("This has been deprecated in API12")] protected override void OnCreate() { // This is also required to create DisposeQueue on main thread. @@ -196,6 +218,7 @@ namespace Tizen.NUI /// /// Overrides this method if want to handle behavior. /// + [Obsolete("This has been deprecated in API12")] protected virtual void OnPreCreate() { Log.Debug("NUI", "OnPreCreate() is called!"); @@ -204,6 +227,7 @@ namespace Tizen.NUI /// /// Overrides this method if want to handle behavior. /// + [Obsolete("This has been deprecated in API12")] protected override void OnTerminate() { Log.Debug("NUI", "OnTerminate() is called!"); @@ -213,6 +237,7 @@ namespace Tizen.NUI /// /// Overrides this method if want to handle behavior. /// + [Obsolete("This has been deprecated in API12")] protected override void OnAppControlReceived(AppControlReceivedEventArgs e) { Log.Debug("NUI", "OnAppControlReceived() is called!"); @@ -227,6 +252,7 @@ namespace Tizen.NUI /// /// Overrides this method if want to handle behavior. /// + [Obsolete("This has been deprecated in API12")] protected virtual void OnPause() { Log.Debug("NUI", "OnPause() is called!"); @@ -236,6 +262,7 @@ namespace Tizen.NUI /// /// Overrides this method if want to handle behavior. /// + [Obsolete("This has been deprecated in API12")] protected virtual void OnResume() { Log.Debug("NUI", "OnResume() is called!"); @@ -245,6 +272,7 @@ namespace Tizen.NUI /// /// Overrides this method if want to handle behavior. /// + [Obsolete("This has been deprecated in API12")] protected virtual void OnTimeTick(TimeTickEventArgs e) { Log.Debug("NUI", "OnTimeTick() is called!"); @@ -255,6 +283,7 @@ namespace Tizen.NUI /// Overrides this method if want to handle behavior. /// /// http://tizen.org/privilege/alarm.set + [Obsolete("This has been deprecated in API12")] protected virtual void OnAmbientTick(AmbientTickEventArgs e) { Log.Debug("NUI", "OnAmbientTick() is called!"); @@ -264,6 +293,7 @@ namespace Tizen.NUI /// /// Overrides this method if want to handle behavior. /// + [Obsolete("This has been deprecated in API12")] protected virtual void OnAmbientChanged(AmbientChangedEventArgs e) { Log.Debug("NUI", "OnAmbientChanged() is called!"); @@ -274,6 +304,7 @@ namespace Tizen.NUI /// Run NUIWidgetApplication. /// /// Arguments from commandline. + [Obsolete("This has been deprecated in API12")] public override void Run(string[] args) { Backend.AddEventHandler(EventType.PreCreated, OnPreCreate); @@ -290,6 +321,7 @@ namespace Tizen.NUI /// /// Exit NUIWidgetApplication. /// + [Obsolete("This has been deprecated in API12")] public override void Exit() { Backend.Exit(); @@ -306,6 +338,7 @@ namespace Tizen.NUI /// /// Get the window instance. /// + [Obsolete("This has been deprecated in API12")] public Window Window { get diff --git a/src/Tizen.NUI.Wearable/src/public/Popup.cs b/src/Tizen.NUI.Wearable/src/public/Popup.cs index dc86666..d67f0c9 100755 --- a/src/Tizen.NUI.Wearable/src/public/Popup.cs +++ b/src/Tizen.NUI.Wearable/src/public/Popup.cs @@ -29,6 +29,7 @@ namespace Tizen.NUI.Wearable /// It is attached to Window directly so that it is shown on top of all UI components. /// Title(text) and Content(container) are initially formed and user can control them by setting properties or styles. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public class Popup : Control { @@ -37,6 +38,7 @@ namespace Tizen.NUI.Wearable /// /// Constructor /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Popup() : base() { @@ -47,6 +49,7 @@ namespace Tizen.NUI.Wearable /// Constructor with style /// /// style + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Popup(PopupStyle style) : base(style) { @@ -57,6 +60,7 @@ namespace Tizen.NUI.Wearable /// Dispose. /// /// Dispose type + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] protected override void Dispose(DisposeTypes type) { @@ -108,6 +112,7 @@ namespace Tizen.NUI.Wearable /// /// Set postion of added button /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public enum ButtonPosition { @@ -136,6 +141,7 @@ namespace Tizen.NUI.Wearable /// /// ContentContainer /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public View ContentContainer; @@ -146,6 +152,7 @@ namespace Tizen.NUI.Wearable /// Button to be added /// If set true, added button will be placed automatically /// Specific postion set by user + [Obsolete("This has been deprecated in API12")] public void AppendButton(string index, Button button, bool automaticPositioning = true, ButtonPosition position = ButtonPosition.Automatic) { if (button != null) @@ -252,6 +259,7 @@ namespace Tizen.NUI.Wearable /// /// Index(key) to be found /// Button of Popup + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Button GetButton(string index) { @@ -264,6 +272,7 @@ namespace Tizen.NUI.Wearable /// Get Title. /// /// Title(TextLabel) of Popup + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public TextLabel GetTitle() { @@ -275,6 +284,7 @@ namespace Tizen.NUI.Wearable /// /// Index(key) of the content added /// Content to be added in Popup's content + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public void AppendContent(string index, View content) { @@ -287,6 +297,7 @@ namespace Tizen.NUI.Wearable /// /// Index(key) to be found /// Content in the Popup + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public View GetContent(string index) { @@ -298,6 +309,7 @@ namespace Tizen.NUI.Wearable /// /// Window where Popup is placed /// Posting animation + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public void Post(Window targetWindow, bool animated = true) { @@ -331,6 +343,7 @@ namespace Tizen.NUI.Wearable /// Dismiss Popup. /// /// True when using Dismissing event + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public void Dismiss(bool animated = true) { @@ -361,6 +374,7 @@ namespace Tizen.NUI.Wearable /// Set timeout milli-second /// /// Automatically dissmissed after milli-second + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public void SetTimeout(uint milliSecond) { @@ -384,6 +398,7 @@ namespace Tizen.NUI.Wearable /// /// OnUpdate /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] protected override void OnUpdate() { @@ -392,36 +407,42 @@ namespace Tizen.NUI.Wearable /// /// CustomAnimation /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public IPopupAnimation CustomAnimation; /// /// Event when outside of components(Button, Content, Title) is clicked. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public event EventHandler OutsideClicked; /// /// Event before popup is posted. Customized action such as animation can be added. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public event EventHandler BeforePosting; /// /// Event after popup is posted. Customized action such as animation can be added. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public event EventHandler AfterPosting; /// /// Event before popup is dismissed. Customized action such as animation can be added. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public event EventHandler BeforeDissmising; /// /// Event after popup is dismissed. Customized action such as animation can be added. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public event EventHandler AfterDissmising; @@ -429,6 +450,7 @@ namespace Tizen.NUI.Wearable /// Get Popup style. /// /// The default popup style. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] protected override ViewStyle CreateViewStyle() { @@ -606,6 +628,7 @@ namespace Tizen.NUI.Wearable /// /// PopupAnimation interface /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public interface IPopupAnimation { @@ -613,12 +636,14 @@ namespace Tizen.NUI.Wearable /// ShowAnimation /// /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] void ShowAnimation(Popup popup); /// /// HideAnimation /// /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] void HideAnimation(Popup popup); } diff --git a/src/Tizen.NUI.Wearable/src/public/RecyclerView/GridRecycleLayoutManager.cs b/src/Tizen.NUI.Wearable/src/public/RecyclerView/GridRecycleLayoutManager.cs index 37c209b..807a60d 100755 --- a/src/Tizen.NUI.Wearable/src/public/RecyclerView/GridRecycleLayoutManager.cs +++ b/src/Tizen.NUI.Wearable/src/public/RecyclerView/GridRecycleLayoutManager.cs @@ -25,7 +25,7 @@ namespace Tizen.NUI.Wearable /// [Draft] This class implements a grid box layout. /// /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public class GridRecycleLayoutManager : RecycleLayoutManager { @@ -35,7 +35,7 @@ namespace Tizen.NUI.Wearable /// [draft ]Get/Set the number of rows in the grid /// /// 8 - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public int Rows { @@ -61,7 +61,7 @@ namespace Tizen.NUI.Wearable /// [Draft] Get/Set the number of columns in the grid /// /// 8 - // This will be public opened after ACR done. (Before ACR, need to be hidden as Inhouse API) + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public int Columns { @@ -110,7 +110,7 @@ namespace Tizen.NUI.Wearable /// This is called to find out how much container size can be. /// /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public override float CalculateLayoutOrientationSize() { @@ -124,7 +124,7 @@ namespace Tizen.NUI.Wearable /// /// Scroll position which is calculated by ScrollableBase /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] public override void Layout(float scrollPosition) { int itemInGroup = LayoutOrientation == Orientation.Vertical ? Rows : Columns; @@ -190,7 +190,7 @@ namespace Tizen.NUI.Wearable /// Scroll position which is calculated by ScrollableBase /// List of RecycleItems which should be recycled. /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] public override List Recycle(float scrollPosition) { List result = new List(); @@ -254,13 +254,14 @@ namespace Tizen.NUI.Wearable /// /// Scroll position which is calculated by ScrollableBase /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] public override float CalculateCandidateScrollPosition(float scrollPosition) { return scrollPosition; } /// + [Obsolete("This has been deprecated in API12")] public override View RequestNextFocusableView(View currentFocusedView, View.FocusDirection direction, bool loopEnabled) { View nextFocusedView = null; diff --git a/src/Tizen.NUI.Wearable/src/public/RecyclerView/LinearRecycleLayoutManager.cs b/src/Tizen.NUI.Wearable/src/public/RecyclerView/LinearRecycleLayoutManager.cs index 9c3366f..bff4d56 100755 --- a/src/Tizen.NUI.Wearable/src/public/RecyclerView/LinearRecycleLayoutManager.cs +++ b/src/Tizen.NUI.Wearable/src/public/RecyclerView/LinearRecycleLayoutManager.cs @@ -25,7 +25,7 @@ namespace Tizen.NUI.Wearable /// [Draft] This class implements a linear box layout. /// /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public class LinearRecycleLayoutManager : RecycleLayoutManager { @@ -64,7 +64,7 @@ namespace Tizen.NUI.Wearable /// /// Scroll position which is calculated by ScrollableBase /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] public override void Layout(float scrollPosition) { firstVisibleItemIndex = -1; @@ -116,7 +116,7 @@ namespace Tizen.NUI.Wearable /// This is called to find out how much container size can be. /// /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public override float CalculateLayoutOrientationSize() { @@ -129,7 +129,7 @@ namespace Tizen.NUI.Wearable /// Scroll position which is calculated by ScrollableBase /// List of RecycleItems which should be recycled. /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] public override List Recycle(float scrollPosition) { List result = new List(); @@ -181,13 +181,14 @@ namespace Tizen.NUI.Wearable /// /// Scroll position which is calculated by ScrollableBase /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] public override float CalculateCandidateScrollPosition(float scrollPosition) { return scrollPosition; } /// + [Obsolete("This has been deprecated in API12")] public override View RequestNextFocusableView(View currentFocusedView, View.FocusDirection direction, bool loopEnabled) { View nextFocusedView = null; diff --git a/src/Tizen.NUI.Wearable/src/public/RecyclerView/RecycleAdapter.cs b/src/Tizen.NUI.Wearable/src/public/RecyclerView/RecycleAdapter.cs index eddf2d9..3c9f22a 100755 --- a/src/Tizen.NUI.Wearable/src/public/RecyclerView/RecycleAdapter.cs +++ b/src/Tizen.NUI.Wearable/src/public/RecyclerView/RecycleAdapter.cs @@ -25,7 +25,7 @@ namespace Tizen.NUI.Wearable /// Managing RecycleItem and Data for RecyclerView. /// /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public class RecycleAdapter { @@ -37,7 +37,7 @@ namespace Tizen.NUI.Wearable /// /// Item for RecyclerView /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public virtual RecycleItem CreateRecycleItem() { @@ -51,7 +51,7 @@ namespace Tizen.NUI.Wearable /// /// Reused RecycleItem which needs data binding. /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public virtual void BindData(RecycleItem item) { @@ -62,7 +62,7 @@ namespace Tizen.NUI.Wearable /// Notify when data of adapter is changed. /// /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public void Notify() { @@ -73,7 +73,7 @@ namespace Tizen.NUI.Wearable /// Triggered when user called Notify(). /// /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public event EventHandler OnDataChanged; @@ -81,7 +81,7 @@ namespace Tizen.NUI.Wearable /// Triggered when user called Notify(). /// /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public List Data { diff --git a/src/Tizen.NUI.Wearable/src/public/RecyclerView/RecycleItem.cs b/src/Tizen.NUI.Wearable/src/public/RecyclerView/RecycleItem.cs index 9037734..09228c2 100755 --- a/src/Tizen.NUI.Wearable/src/public/RecyclerView/RecycleItem.cs +++ b/src/Tizen.NUI.Wearable/src/public/RecyclerView/RecycleItem.cs @@ -15,6 +15,7 @@ */ using System.ComponentModel; using Tizen.NUI.Components; +using System; namespace Tizen.NUI.Wearable { @@ -22,7 +23,7 @@ namespace Tizen.NUI.Wearable /// [Draft] This class provides a basic item for RecyclerView. /// /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public class RecycleItem : Control { @@ -31,7 +32,7 @@ namespace Tizen.NUI.Wearable /// Can access to data of RecycleAdapter using this index. /// /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public int DataIndex { get; set; } = 0; } diff --git a/src/Tizen.NUI.Wearable/src/public/RecyclerView/RecycleLayoutManager.cs b/src/Tizen.NUI.Wearable/src/public/RecyclerView/RecycleLayoutManager.cs index bf6c589..e57666a 100755 --- a/src/Tizen.NUI.Wearable/src/public/RecyclerView/RecycleLayoutManager.cs +++ b/src/Tizen.NUI.Wearable/src/public/RecyclerView/RecycleLayoutManager.cs @@ -17,6 +17,7 @@ using Tizen.NUI.BaseComponents; using Tizen.NUI.Components; using System.Collections.Generic; using System.ComponentModel; +using System; namespace Tizen.NUI.Wearable { @@ -25,7 +26,7 @@ namespace Tizen.NUI.Wearable /// Lay out RecycleItem and recycle RecycleItem. /// /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public class RecycleLayoutManager { @@ -33,7 +34,7 @@ namespace Tizen.NUI.Wearable /// Enumeration for the direction in which the content is laid out /// /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public enum Orientation { @@ -41,14 +42,14 @@ namespace Tizen.NUI.Wearable /// Vertical /// /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] Vertical = 0, /// /// Horizontal /// /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] Horizontal = 1, } @@ -57,7 +58,7 @@ namespace Tizen.NUI.Wearable /// Container which contains RecycleItems. /// /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public View Container { get; set; } @@ -65,7 +66,7 @@ namespace Tizen.NUI.Wearable /// Size of RecycleItem. /// /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Size ItemSize { get; set; } = new Size(); @@ -73,7 +74,7 @@ namespace Tizen.NUI.Wearable /// Get/Set the orientation in the layout. /// /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Orientation LayoutOrientation { get; set; } = Orientation.Vertical; @@ -81,7 +82,7 @@ namespace Tizen.NUI.Wearable /// How far can you reach the next item. /// /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public float StepSize { get; protected set; } @@ -89,14 +90,14 @@ namespace Tizen.NUI.Wearable /// How far can you reach the next item. /// /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public int DataCount { get; set; } /// /// The last scrolled position which is calculated by ScrollableBase. The value should be updated in the Recycle() method. /// - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] protected float PrevScrollPosition { get; set; } @@ -105,7 +106,7 @@ namespace Tizen.NUI.Wearable /// /// Scroll position which is calculated by ScrollableBase /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public virtual void Layout(float scrollPosition) { @@ -116,7 +117,7 @@ namespace Tizen.NUI.Wearable /// This is called to find out how much container size can be. /// /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public virtual float CalculateLayoutOrientationSize() { @@ -129,7 +130,7 @@ namespace Tizen.NUI.Wearable /// Scroll position which is calculated by ScrollableBase /// List of RecycleItems which should be recycled. /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public virtual List Recycle(float scrollPosition) { @@ -141,7 +142,7 @@ namespace Tizen.NUI.Wearable /// /// Scroll position which is calculated by ScrollableBase /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public virtual float CalculateCandidateScrollPosition(float scrollPosition) { @@ -156,6 +157,7 @@ namespace Tizen.NUI.Wearable /// The direction to move the focus towards. /// Whether the focus movement should be looped within the control. /// The next keyboard focusable view in this control or an empty handle if no view can be focused. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public virtual View RequestNextFocusableView(View currentFocusedView, View.FocusDirection direction, bool loopEnabled) { diff --git a/src/Tizen.NUI.Wearable/src/public/RecyclerView/RecyclerView.cs b/src/Tizen.NUI.Wearable/src/public/RecyclerView/RecyclerView.cs index a311455..721ef1c 100755 --- a/src/Tizen.NUI.Wearable/src/public/RecyclerView/RecyclerView.cs +++ b/src/Tizen.NUI.Wearable/src/public/RecyclerView/RecyclerView.cs @@ -24,7 +24,7 @@ namespace Tizen.NUI.Wearable /// /// [Draft] This class provides a View that can recycle items to improve performance. /// - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public class RecyclerView : ScrollableBase { @@ -36,6 +36,7 @@ namespace Tizen.NUI.Wearable /// /// Default constructor. /// + [Obsolete("This has been deprecated in API12")] public RecyclerView() : base() { Initialize(new RecycleAdapter(), new RecycleLayoutManager()); @@ -47,7 +48,7 @@ namespace Tizen.NUI.Wearable /// Recycle adapter of RecyclerView. /// Recycle layoutManager of RecyclerView. /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public RecyclerView(RecycleAdapter adapter, RecycleLayoutManager layoutManager) { @@ -79,7 +80,7 @@ namespace Tizen.NUI.Wearable /// /// Gets / Sets total number of items. /// - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public int TotalItemCount { @@ -135,7 +136,7 @@ namespace Tizen.NUI.Wearable /// /// Scrolling direction mode for RecyclerView. . /// - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public new Direction ScrollingDirection { @@ -162,7 +163,7 @@ namespace Tizen.NUI.Wearable /// Recycler adpater. /// /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public RecycleAdapter Adapter { @@ -189,7 +190,7 @@ namespace Tizen.NUI.Wearable /// Recycler layoutManager. /// /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public RecycleLayoutManager LayoutManager { @@ -250,7 +251,7 @@ namespace Tizen.NUI.Wearable /// Scroll position which is calculated by ScrollableBase /// Adjusted scroll destination /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] protected override float AdjustTargetPositionOfScrollAnimation(float position) { @@ -264,6 +265,7 @@ namespace Tizen.NUI.Wearable /// [EditorBrowsable(EditorBrowsableState.Never)] + [Obsolete("This has been deprecated in API12")] public override View GetNextFocusableView(View currentFocusedView, View.FocusDirection direction, bool loopEnabled) { View nextFocusedView = null; diff --git a/src/Tizen.NUI.Wearable/src/public/Title.cs b/src/Tizen.NUI.Wearable/src/public/Title.cs index 7934030..63445b4 100755 --- a/src/Tizen.NUI.Wearable/src/public/Title.cs +++ b/src/Tizen.NUI.Wearable/src/public/Title.cs @@ -27,7 +27,7 @@ namespace Tizen.NUI.Components /// You can also set the color of the fadeout. /// /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public class Title : TextLabel { @@ -65,13 +65,14 @@ namespace Tizen.NUI.Components /// /// /// 8 + [Obsolete("This has been deprecated in API12")] static Title() { } /// /// Construct Title with null. /// /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Title() : base() { @@ -83,7 +84,7 @@ namespace Tizen.NUI.Components /// /// Construct Style /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Title(TextLabelStyle textLabelStyle) : base(textLabelStyle) { @@ -95,7 +96,7 @@ namespace Tizen.NUI.Components /// /// style name /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Title(string style) : base(style) { @@ -106,7 +107,7 @@ namespace Tizen.NUI.Components /// Sets the start and end color of the fadeout. /// /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Color FadeOutColor { @@ -126,7 +127,7 @@ namespace Tizen.NUI.Components /// Gets or Sets the width of the fadeout effect. /// /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public int FadeOutWidth { @@ -146,6 +147,7 @@ namespace Tizen.NUI.Components /// /// dispose types. /// 8 + [Obsolete("This has been deprecated in API12")] protected override void Dispose(DisposeTypes type) { if (disposed) diff --git a/src/Tizen.NUI.Wearable/src/public/WatchView.cs b/src/Tizen.NUI.Wearable/src/public/WatchView.cs index 5fb24a4..31a7659 100755 --- a/src/Tizen.NUI.Wearable/src/public/WatchView.cs +++ b/src/Tizen.NUI.Wearable/src/public/WatchView.cs @@ -27,6 +27,7 @@ namespace Tizen.NUI.Wearable /// The WatchView is a class for displaying the watch.
/// /// 6 + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public class WatchView : View { @@ -34,6 +35,7 @@ namespace Tizen.NUI.Wearable /// Creates a new WatchView. /// /// 6 + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public WatchView(Window window, string watchId, string contentInfo, int width, int height) : this(Interop.WatchView.New(Window.getCPtr(window), watchId, contentInfo, width, height), true) { @@ -54,6 +56,7 @@ namespace Tizen.NUI.Wearable /// /// True on success, false otherwise. /// 6 + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public bool PauseWatch() { @@ -67,6 +70,7 @@ namespace Tizen.NUI.Wearable /// /// True on success, false otherwise. /// 6 + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public bool ResumeWatch() { @@ -100,6 +104,7 @@ namespace Tizen.NUI.Wearable /// To make the Button instance be disposed. /// /// 6 + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] protected override void Dispose(DisposeTypes type) { diff --git a/src/Tizen.NUI.Wearable/src/public/WearableList.cs b/src/Tizen.NUI.Wearable/src/public/WearableList.cs index 9df4a16..c9f8fd1 100755 --- a/src/Tizen.NUI.Wearable/src/public/WearableList.cs +++ b/src/Tizen.NUI.Wearable/src/public/WearableList.cs @@ -24,7 +24,7 @@ namespace Tizen.NUI.Wearable /// [Draft] This class provides a list view styled by wearable ux. /// List will lay out all items with Fish-Eye layout manager. /// - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public class WearableList : RecyclerView { @@ -34,7 +34,7 @@ namespace Tizen.NUI.Wearable /// Default constructor. /// /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public WearableList() : base(new RecycleAdapter(), new FishEyeLayoutManager()) { @@ -58,6 +58,7 @@ namespace Tizen.NUI.Wearable } /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] protected override void SetScrollbar() { @@ -68,6 +69,7 @@ namespace Tizen.NUI.Wearable } /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public new RecycleAdapter Adapter { @@ -96,7 +98,7 @@ namespace Tizen.NUI.Wearable /// Data index of item. /// If set true, scroll to item using animation. /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] public void SetFocus(int dataIndex, bool animated) { if (LayoutManager == null) @@ -127,7 +129,7 @@ namespace Tizen.NUI.Wearable /// /// Index of item. /// 8 - /// This may be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API + [Obsolete("This has been deprecated in API12")] protected override void OnPreReachedTargetPosition(float targetPosition) { if (LayoutManager == null) diff --git a/src/Tizen.NUI.Wearable/src/public/WearableStyle/CircularPaginationStyle.cs b/src/Tizen.NUI.Wearable/src/public/WearableStyle/CircularPaginationStyle.cs index 8d47b68..e8af4db 100755 --- a/src/Tizen.NUI.Wearable/src/public/WearableStyle/CircularPaginationStyle.cs +++ b/src/Tizen.NUI.Wearable/src/public/WearableStyle/CircularPaginationStyle.cs @@ -18,6 +18,7 @@ using System.ComponentModel; using Tizen.NUI.BaseComponents; using Tizen.NUI.Binding; using Tizen.NUI.Components; +using System; namespace Tizen.NUI.Wearable { @@ -25,7 +26,7 @@ namespace Tizen.NUI.Wearable /// CircularPaginationStyle used to config the circularPagination represent. /// /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public class CircularPaginationStyle : ControlStyle { @@ -72,7 +73,7 @@ namespace Tizen.NUI.Wearable /// Creates a new instance of a CircularPaginationStyle. /// /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public CircularPaginationStyle() : base() { @@ -83,7 +84,7 @@ namespace Tizen.NUI.Wearable /// Creates a new instance of a CircularPaginationStyle using style. /// /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public CircularPaginationStyle(CircularPaginationStyle style) : base(style) { @@ -93,7 +94,7 @@ namespace Tizen.NUI.Wearable /// Gets or sets the size of the indicator. /// /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Size IndicatorSize { @@ -105,7 +106,7 @@ namespace Tizen.NUI.Wearable /// Gets or sets the resource of indicator. /// /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Selector IndicatorImageURL { @@ -117,7 +118,7 @@ namespace Tizen.NUI.Wearable /// Gets or sets the resource of the center indicator. /// /// 8 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Selector CenterIndicatorImageURL { diff --git a/src/Tizen.NUI.Wearable/src/public/WearableStyle/CircularProgressStyle.cs b/src/Tizen.NUI.Wearable/src/public/WearableStyle/CircularProgressStyle.cs index 5b06872..067f56f 100755 --- a/src/Tizen.NUI.Wearable/src/public/WearableStyle/CircularProgressStyle.cs +++ b/src/Tizen.NUI.Wearable/src/public/WearableStyle/CircularProgressStyle.cs @@ -18,12 +18,14 @@ using System.ComponentModel; using Tizen.NUI.BaseComponents; using Tizen.NUI.Binding; using Tizen.NUI.Components; +using System; namespace Tizen.NUI.Wearable { /// /// CircularProgressStyle is a class which saves CircularProgress's ux data. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public class CircularProgressStyle : ControlStyle { @@ -117,6 +119,7 @@ namespace Tizen.NUI.Wearable /// /// Creates a new instance of a CircularProgressStyle. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public CircularProgressStyle() : base() { @@ -127,6 +130,7 @@ namespace Tizen.NUI.Wearable /// Creates a new instance of a CircularProgressStyle with style. /// /// Create CircularProgressStyle by style customized by user. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public CircularProgressStyle(CircularProgressStyle style) : base(style) { @@ -135,6 +139,7 @@ namespace Tizen.NUI.Wearable /// /// The thickness of the track and progress. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public float? Thickness { @@ -151,6 +156,7 @@ namespace Tizen.NUI.Wearable /// /// The property to get/set the maximum value of the CircularProgress. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public float MaxValue { @@ -167,6 +173,7 @@ namespace Tizen.NUI.Wearable /// /// The property to get/set the minim value of the CircularProgress. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public float MinValue { @@ -183,6 +190,7 @@ namespace Tizen.NUI.Wearable /// /// The property to get/set the current value of the CircularProgress. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public float CurrentValue { @@ -199,6 +207,7 @@ namespace Tizen.NUI.Wearable /// /// The property to get/set Track object color of the CircularProgress. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Color TrackColor { @@ -215,6 +224,7 @@ namespace Tizen.NUI.Wearable /// /// The property to get/set Progress object color of the CircularProgress. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Color ProgressColor { @@ -232,6 +242,7 @@ namespace Tizen.NUI.Wearable /// Flag to be enabled or disabled in CircularProgress. /// /// 8 + [Obsolete("This has been deprecated in API12")] public new bool? IsEnabled { get @@ -248,6 +259,7 @@ namespace Tizen.NUI.Wearable /// Dispose CircularProgressStyle and all children on it. /// /// true in order to free managed objects + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] protected override void Dispose(bool disposing) { diff --git a/src/Tizen.NUI.Wearable/src/public/WearableStyle/CircularScrollbarStyle.cs b/src/Tizen.NUI.Wearable/src/public/WearableStyle/CircularScrollbarStyle.cs index 6c63231..3771e98 100755 --- a/src/Tizen.NUI.Wearable/src/public/WearableStyle/CircularScrollbarStyle.cs +++ b/src/Tizen.NUI.Wearable/src/public/WearableStyle/CircularScrollbarStyle.cs @@ -17,12 +17,14 @@ using System.ComponentModel; using Tizen.NUI.Components; using Tizen.NUI.Binding; +using System; namespace Tizen.NUI.Wearable { /// /// CircularScrollbarStyle is a class which saves CircularScrollbar's ux data. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public class CircularScrollbarStyle : ControlStyle { @@ -85,6 +87,7 @@ namespace Tizen.NUI.Wearable /// /// Creates a new instance of a CircularScrollbarStyle. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public CircularScrollbarStyle() : base() { @@ -94,6 +97,7 @@ namespace Tizen.NUI.Wearable /// Copy constructor. /// /// Create ScrollbarStyle by style customized by user. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public CircularScrollbarStyle(CircularScrollbarStyle style) : base(style) { @@ -114,6 +118,7 @@ namespace Tizen.NUI.Wearable /// /// The thickness of the scrollbar and track. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public float? Thickness { @@ -128,6 +133,7 @@ namespace Tizen.NUI.Wearable /// Values below 6 degrees are treated as 6 degrees. /// Values exceeding 180 degrees are treated as 180 degrees. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public float? TrackSweepAngle { @@ -138,6 +144,7 @@ namespace Tizen.NUI.Wearable /// /// The color of the track part. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Color TrackColor { @@ -148,6 +155,7 @@ namespace Tizen.NUI.Wearable /// /// The color of the thumb part. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Color ThumbColor { diff --git a/src/Tizen.NUI.Wearable/src/public/WearableStyle/CircularSliderStyle.cs b/src/Tizen.NUI.Wearable/src/public/WearableStyle/CircularSliderStyle.cs index 119bd88..580dd6e 100755 --- a/src/Tizen.NUI.Wearable/src/public/WearableStyle/CircularSliderStyle.cs +++ b/src/Tizen.NUI.Wearable/src/public/WearableStyle/CircularSliderStyle.cs @@ -18,12 +18,14 @@ using System.ComponentModel; using Tizen.NUI.BaseComponents; using Tizen.NUI.Binding; using Tizen.NUI.Components; +using System; namespace Tizen.NUI.Wearable { /// /// CircularSliderStyle is a class which saves CircularSlider's ux data. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public class CircularSliderStyle : ControlStyle { @@ -141,6 +143,7 @@ namespace Tizen.NUI.Wearable /// /// Creates a new instance of a CircularSliderStyle. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public CircularSliderStyle() : base() { @@ -151,6 +154,7 @@ namespace Tizen.NUI.Wearable /// Creates a new instance of a CircularSliderStyle with style. /// /// Create CircularSliderStyle by style customized by user. + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public CircularSliderStyle(CircularSliderStyle style) : base(style) { @@ -159,6 +163,7 @@ namespace Tizen.NUI.Wearable /// /// The thickness of the track and progress. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public float? Thickness { @@ -175,6 +180,7 @@ namespace Tizen.NUI.Wearable /// /// The property to get/set the maximum value of the CircularSlider. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public float MaxValue { @@ -191,6 +197,7 @@ namespace Tizen.NUI.Wearable /// /// The property to get/set the minim value of the CircularSlider. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public float MinValue { @@ -207,6 +214,7 @@ namespace Tizen.NUI.Wearable /// /// The property to get/set the current value of the CircularSlider. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public float CurrentValue { @@ -223,6 +231,7 @@ namespace Tizen.NUI.Wearable /// /// The property to get/set Track object color of the CircularSlider. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Color TrackColor { @@ -239,6 +248,7 @@ namespace Tizen.NUI.Wearable /// /// The property to get/set Progress object color of the CircularSlider. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Color ProgressColor { @@ -255,6 +265,7 @@ namespace Tizen.NUI.Wearable /// /// Gets or sets the size of the thumb of Slider. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Size ThumbSize { @@ -271,6 +282,7 @@ namespace Tizen.NUI.Wearable /// /// The property to get/set Thumb object color of the CircularSlider. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public Color ThumbColor { @@ -288,6 +300,7 @@ namespace Tizen.NUI.Wearable /// Flag to be enabled or disabled in CircularSlider. /// /// 8 + [Obsolete("This has been deprecated in API12")] public new bool? IsEnabled { get diff --git a/src/Tizen.NUI.Wearable/src/public/WearableStyle/PopupStyle.cs b/src/Tizen.NUI.Wearable/src/public/WearableStyle/PopupStyle.cs index 90efa80..9f9eab7 100755 --- a/src/Tizen.NUI.Wearable/src/public/WearableStyle/PopupStyle.cs +++ b/src/Tizen.NUI.Wearable/src/public/WearableStyle/PopupStyle.cs @@ -17,12 +17,14 @@ using System.ComponentModel; using Tizen.NUI.Binding; using Tizen.NUI.Components; +using System; namespace Tizen.NUI.Wearable { /// /// PopupStyle used to config the Popup represent. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public class PopupStyle : ControlStyle { @@ -44,6 +46,7 @@ namespace Tizen.NUI.Wearable /// /// Creates a new instance of a PopupStyle. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public PopupStyle() : base() { @@ -53,6 +56,7 @@ namespace Tizen.NUI.Wearable /// /// Creates a new instance of a PopupStyle using style. /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public PopupStyle(PopupStyle style) : base(style) { @@ -61,6 +65,7 @@ namespace Tizen.NUI.Wearable /// /// WrapContent /// + [Obsolete("This has been deprecated in API12")] [EditorBrowsable(EditorBrowsableState.Never)] public bool? WrapContent { -- 2.7.4