From fae672fecc3a072eee067401155bea0aa8cdc2f5 Mon Sep 17 00:00:00 2001 From: RinaYou Date: Thu, 28 Sep 2017 14:58:07 +0900 Subject: [PATCH] [ElmSharp] Fix several warnings Change-Id: I52e62ec113e5744e53d9cf0184151b0ef5b80442 --- src/ElmSharp/ElmSharp/AccessibleRelation.cs | 7 ++ src/ElmSharp/ElmSharp/AnimatorMotionMapper.cs | 118 ++++++++++++++++++++++++++ src/ElmSharp/ElmSharp/Elementary.cs | 21 +++++ src/ElmSharp/ElmSharp/ElmScrollConfig.cs | 3 + src/ElmSharp/ElmSharp/Entry.cs | 8 +- src/ElmSharp/ElmSharp/EvasCanvas.cs | 2 +- 6 files changed, 154 insertions(+), 5 deletions(-) mode change 100644 => 100755 src/ElmSharp/ElmSharp/AnimatorMotionMapper.cs mode change 100644 => 100755 src/ElmSharp/ElmSharp/ElmScrollConfig.cs diff --git a/src/ElmSharp/ElmSharp/AccessibleRelation.cs b/src/ElmSharp/ElmSharp/AccessibleRelation.cs index 4d24e98..0c88422 100755 --- a/src/ElmSharp/ElmSharp/AccessibleRelation.cs +++ b/src/ElmSharp/ElmSharp/AccessibleRelation.cs @@ -23,7 +23,14 @@ namespace ElmSharp.Accessible public interface IAccessibleRelation { + /// + /// Gets or sets the target object. + /// AccessibleObject Target { get; set; } + + /// + /// Gets the type. + /// int Type { get; } } diff --git a/src/ElmSharp/ElmSharp/AnimatorMotionMapper.cs b/src/ElmSharp/ElmSharp/AnimatorMotionMapper.cs old mode 100644 new mode 100755 index defc7af..22db0c5 --- a/src/ElmSharp/ElmSharp/AnimatorMotionMapper.cs +++ b/src/ElmSharp/ElmSharp/AnimatorMotionMapper.cs @@ -4,112 +4,230 @@ using System.Text; namespace ElmSharp { + /// + /// The AnimatorMotionMapper interface + /// public interface AnimatorMotionMapper { + /// + /// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve + /// double Caculate(double position); } + /// + /// The LinearMotionMapper class + /// public class LinearMotionMapper : AnimatorMotionMapper { + /// + /// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve + /// public double Caculate(double position) { return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.Linear, 0, 0); } } + /// + /// The AccelerateMotionMapper class + /// public class AccelerateMotionMapper : AnimatorMotionMapper { + /// + /// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve + /// public double Caculate(double position) { return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.Accelerate, 0, 0); } } + /// + /// The DecelerateMotionMapper class + /// public class DecelerateMotionMapper : AnimatorMotionMapper { + /// + /// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve + /// public double Caculate(double position) { return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.Decelerate, 0, 0); } } + /// + /// The SinusoidalMotionMapper class + /// public class SinusoidalMotionMapper : AnimatorMotionMapper { + /// + /// Maps an input position from 0.0 to 1.0 along a timeline to a position in a different curve + /// public double Caculate(double position) { return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.Sinusoidal, 0, 0); } } + /// + /// The AccelerateFactorMotionMapper class + /// public class AccelerateFactorMotionMapper : AnimatorMotionMapper { + /// + /// The power factor of AccelerateFactorMotionMapper + /// 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 + /// public double Caculate(double position) { return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.AccelerateFactor, PowerFactor, 0); } } + /// + /// The DecelerateFactorMotionMapper class + /// public class DecelerateFactorMotionMapper : AnimatorMotionMapper { + /// + /// The power factor of DecelerateFactorMotionMapper + /// 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 + /// public double Caculate(double position) { return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.DecelerateFactor, PowerFactor, 0); } } + /// + /// The SinusoidalFactorMotionMapper class + /// public class SinusoidalFactorMotionMapper : AnimatorMotionMapper { + /// + /// The power factor of SinusoidalFactorMotionMapper + /// 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 + /// public double Caculate(double position) { return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.SinusoidalFactor, PowerFactor, 0); } } + /// + /// The DivisorInterpolatedMotionMapper class + /// public class DivisorInterpolatedMotionMapper : AnimatorMotionMapper { + /// + /// The Divisor of DivisorInterpolatedMotionMapper + /// public double Divisor { get; set; } = 0; + + /// + /// The power of DivisorInterpolatedMotionMapper + /// 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 + /// public double Caculate(double position) { return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.DivisorInterp, Divisor, Power); } } + /// + /// The BounceMotionMapper class + /// public class BounceMotionMapper : AnimatorMotionMapper { + /// + /// The bounces of BounceMotionMapper + /// public int Bounces { get; set; } = 0; + + /// + /// The decay factor of BounceMotionMapper + /// 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 + /// public double Caculate(double position) { return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.Bounce, DecayFactor, Bounces); } } + /// + /// The SpringMotionMapper class + /// public class SpringMotionMapper : AnimatorMotionMapper { + /// + /// The wobbles of SpringMotionMapper + /// public int Wobbles { get; set; } = 0; + + /// + /// The decat factir of SpringMotionMapper + /// 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 + /// public double Caculate(double position) { return Interop.Ecore.ecore_animator_pos_map(position, Interop.Ecore.PositionMap.Bounce, DecayFactor, Wobbles); } } + /// + /// The CubicBezierMotionMapper class + /// public class CubicBezierMotionMapper : AnimatorMotionMapper { + /// + /// The X1 of CubicBezierMotionMapper + /// public double X1 { get; set; } = 0; + + /// + /// The Y1 of CubicBezierMotionMapper + /// public double Y1 { get; set; } = 0; + + /// + /// The X2 of CubicBezierMotionMapper + /// public double X2 { get; set; } = 0; + + /// + /// The Y2 of CubicBezierMotionMapper + /// 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 + /// public double Caculate(double position) { double[] values = { X1, Y1, X2, Y2 }; diff --git a/src/ElmSharp/ElmSharp/Elementary.cs b/src/ElmSharp/ElmSharp/Elementary.cs index bd90845..c0c6abb 100755 --- a/src/ElmSharp/ElmSharp/Elementary.cs +++ b/src/ElmSharp/ElmSharp/Elementary.cs @@ -191,6 +191,9 @@ namespace ElmSharp Interop.Elementary.elm_run(); } + /// + /// Prepends a theme overlay to the list of overlays + /// [EditorBrowsable(EditorBrowsableState.Never)] public static void ThemeOverlay() { @@ -261,30 +264,45 @@ namespace ElmSharp Interop.Elementary.elm_theme_extension_del(IntPtr.Zero, item); } + /// + /// Gets the amount of inertia a scroller imposes during region bring animations. + /// [EditorBrowsable(EditorBrowsableState.Never)] public static double GetSystemScrollFriction() { return BringInScrollFriction; } + /// + /// Sets the amount of inertia a scroller imposes during region bring animations. + /// [EditorBrowsable(EditorBrowsableState.Never)] public static void SetSystemScrollFriction(double timeSet) { BringInScrollFriction = timeSet; } + /// + /// Get Elementary's profile in use + /// [EditorBrowsable(EditorBrowsableState.Never)] public static string GetProfile() { return Interop.Elementary.elm_config_profile_get(); } + /// + /// Set the global scaling factor + /// [EditorBrowsable(EditorBrowsableState.Never)] public static void SetScale(double scale) { Scale = scale; } + /// + /// Get the global scaling factor + /// [EditorBrowsable(EditorBrowsableState.Never)] public static double GetScale() { @@ -320,6 +338,9 @@ namespace ElmSharp return Interop.Elementary.elm_policy_set(policy, value); } + /// + /// Reload Elementary's configuration, bounded to current selected profile. + /// [EditorBrowsable(EditorBrowsableState.Never)] public static void ReloadConfig() { diff --git a/src/ElmSharp/ElmSharp/ElmScrollConfig.cs b/src/ElmSharp/ElmSharp/ElmScrollConfig.cs old mode 100644 new mode 100755 index 974d74f..c3079e2 --- a/src/ElmSharp/ElmSharp/ElmScrollConfig.cs +++ b/src/ElmSharp/ElmSharp/ElmScrollConfig.cs @@ -24,6 +24,9 @@ namespace ElmSharp /// public static class ElmScrollConfig { + /// + /// Gets or sets the amount of inertia a scroller imposes during region bring animations. + /// [EditorBrowsable(EditorBrowsableState.Never)] public static double BringInScrollFriction { diff --git a/src/ElmSharp/ElmSharp/Entry.cs b/src/ElmSharp/ElmSharp/Entry.cs index 68d2364..65777ef 100755 --- a/src/ElmSharp/ElmSharp/Entry.cs +++ b/src/ElmSharp/ElmSharp/Entry.cs @@ -174,22 +174,22 @@ namespace ElmSharp } /// - /// Enumeration that defines the entry's copy & paste policy. + /// Enumeration that defines the entry's copy and paste policy. /// public enum CopyAndPasteMode { /// - /// Copy & paste text with markup tag + /// Copy and paste text with markup tag /// Markup, /// - /// Copy & paste text without item(image) tag + /// Copy and paste text without item(image) tag /// NoImage, /// - /// Copy & paste text without markup tag + /// Copy and paste text without markup tag /// PlainText } diff --git a/src/ElmSharp/ElmSharp/EvasCanvas.cs b/src/ElmSharp/ElmSharp/EvasCanvas.cs index 067f47d..95100c3 100755 --- a/src/ElmSharp/ElmSharp/EvasCanvas.cs +++ b/src/ElmSharp/ElmSharp/EvasCanvas.cs @@ -153,7 +153,7 @@ namespace ElmSharp /// /// Creates an Evas canvas handle. /// - /// Parent EvasObject + /// EvasObject /// Handle IntPtr IntPtr CreateHandle(IntPtr evasObject) { -- 2.7.4