*/
using System;
+using System.ComponentModel;
using System.Diagnostics;
namespace ElmSharp.Wearable
}
/// <summary>
+ /// Creates and initializes a new instance of the Circle DateTimeSelector class.
+ /// </summary>
+ /// <param name="parent">The parent of new Circle CircleDateTimeSelector instance</param>
+ [Obsolete("It is not safe for guess circle surface from parent and create new surface by every new widget")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public CircleDateTimeSelector(EvasObject parent) : this(parent, CircleSurface.CreateCircleSurface(parent))
+ {
+ ((IRotaryActionWidget)this).Activate();
+ }
+
+ /// <summary>
/// Gets the handle for Circle Widget.
/// </summary>
public virtual IntPtr CircleHandle => _circleHandle;
public virtual CircleSurface CircleSurface => _surface;
/// <summary>
+ /// Sets or gets disabled state of this widget.
+ /// </summary>
+ [Obsolete("Use IsEnabled")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool Disabled
+ {
+ get => !IsEnabled;
+ set => IsEnabled = !value;
+ }
+
+ /// <summary>
/// Sets or gets the state of the widget, which might be enabled or disabled.
/// </summary>
public override bool IsEnabled
*/
using System;
+using System.ComponentModel;
using System.Diagnostics;
namespace ElmSharp.Wearable
}
/// <summary>
+ /// Creates and initializes a new instance of the Circle GenList class.
+ /// </summary>
+ /// <param name="parent">The parent of new Circle CircleGenList instance</param>
+ [Obsolete("It is not safe for guess circle surface from parent and create new surface by every new widget")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public CircleGenList(EvasObject parent) : this(parent, CircleSurface.CreateCircleSurface(parent))
+ {
+ ((IRotaryActionWidget)this).Activate();
+ }
+
+ /// <summary>
/// Gets the handle for Circle Widget.
/// </summary>
public virtual IntPtr CircleHandle => _circleHandle;
public virtual CircleSurface CircleSurface => _surface;
/// <summary>
+ /// Sets or gets disabled state of this widget.
+ /// </summary>
+ [Obsolete("Use IsEnabled")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool Disabled
+ {
+ get => !IsEnabled;
+ set => IsEnabled = !value;
+ }
+
+ /// <summary>
/// Sets or gets the state of the widget, which might be enabled or disabled.
/// </summary>
public override bool IsEnabled
*/
using System;
+using System.ComponentModel;
using System.Diagnostics;
namespace ElmSharp.Wearable
}
/// <summary>
+ /// Creates and initializes a new instance of the Circle Progressbar class.
+ /// </summary>
+ /// <param name="parent">The parent of new Circle Progressbar instance</param>
+ [Obsolete("It is not safe for guess circle surface from parent and create new surface by every new widget")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public CircleProgressBar(EvasObject parent) : this(parent, CircleSurface.CreateCircleSurface(parent))
+ {
+ }
+
+ /// <summary>
/// Gets the handle for Circle Widget.
/// </summary>
public virtual IntPtr CircleHandle => Handle;
public virtual CircleSurface CircleSurface => _surface;
/// <summary>
+ /// Sets or gets disabled state of this widget.
+ /// </summary>
+ [Obsolete("Use IsEnabled")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool Disabled
+ {
+ get => !IsEnabled;
+ set => IsEnabled = !value;
+ }
+
+ /// <summary>
/// Sets or gets the state of the widget, which might be enabled or disabled.
/// </summary>
public override bool IsEnabled
*/
using System;
+using System.ComponentModel;
using System.Diagnostics;
namespace ElmSharp.Wearable
}
/// <summary>
+ /// Creates and initializes a new instance of the Circle Scroller class.
+ /// </summary>
+ /// <param name="parent">The parent of new Circle CircleScroller instance</param>
+ [Obsolete("It is not safe for guess circle surface from parent and create new surface by every new widget")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public CircleScroller(EvasObject parent) : this(parent, CircleSurface.CreateCircleSurface(parent))
+ {
+ ((IRotaryActionWidget)this).Activate();
+ }
+
+ /// <summary>
/// Gets the handle for Circle Widget.
/// </summary>
public virtual IntPtr CircleHandle => _circleHandle;
public virtual CircleSurface CircleSurface => _surface;
/// <summary>
+ /// Sets or gets disabled state of this widget.
+ /// </summary>
+ [Obsolete("Use IsEnabled")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool Disabled
+ {
+ get => !IsEnabled;
+ set => IsEnabled = !value;
+ }
+
+ /// <summary>
/// Sets or gets the state of the widget, which might be enabled or disabled.
/// </summary>
public override bool IsEnabled
*/
using System;
+using System.ComponentModel;
using System.Diagnostics;
namespace ElmSharp.Wearable
}
/// <summary>
+ /// Creates and initializes a new instance of the Circle Slider class.
+ /// </summary>
+ /// <param name="parent">The parent of new Circle CircleSlider instance</param>
+ [Obsolete("It is not safe for guess circle surface from parent and create new surface by every new widget")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public CircleSlider(EvasObject parent) : this(parent, CircleSurface.CreateCircleSurface(parent))
+ {
+ ((IRotaryActionWidget)this).Activate();
+ }
+
+ /// <summary>
/// Changed will be triggered when the circle slider value changes.
/// </summary>
public event EventHandler ValueChanged;
}
/// <summary>
+ /// Sets or gets disabled state of this widget.
+ /// </summary>
+ [Obsolete("Use IsEnabled")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool Disabled
+ {
+ get => !IsEnabled;
+ set => IsEnabled = !value;
+ }
+
+ /// <summary>
/// Sets or gets the state of the widget, which might be enabled or disabled.
/// </summary>
public override bool IsEnabled
*/
using System;
+using System.ComponentModel;
using System.Diagnostics;
namespace ElmSharp.Wearable
}
/// <summary>
+ /// Creates and initializes a new instance of the Circle Spinner class.
+ /// </summary>
+ /// <param name="parent">The parent of new Circle CircleSpinner instance</param>
+ [Obsolete("It is not safe for guess circle surface from parent and create new surface by every new widget")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public CircleSpinner(EvasObject parent) : this(parent, CircleSurface.CreateCircleSurface(parent))
+ {
+ ((IRotaryActionWidget)this).Activate();
+ }
+
+ /// <summary>
/// Gets the handle for Circle Widget.
/// </summary>
public virtual IntPtr CircleHandle => RealHandle;
}
/// <summary>
+ /// Sets or gets disabled state of this widget.
+ /// </summary>
+ [Obsolete("Use IsEnabled")]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public bool Disabled
+ {
+ get => !IsEnabled;
+ set => IsEnabled = !value;
+ }
+
+ /// <summary>
/// Sets or gets the state of the widget, which might be enabled or disabled.
/// </summary>
public override bool IsEnabled
_handle = IntPtr.Zero;
}
+ /// <summary>
+ /// Gets the handle for CircleSurface
+ /// </summary>
public IntPtr Handle => _handle;
+
+ 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);
+ else if (obj is Layout) return new CircleSurface(obj as Layout);
+ else return new CircleSurface();
+ }
}
}