Class CircleSlider
Definition
- Namespace:
- ElmSharp.Wearable
- Assembly:
- ElmSharp.Wearable.dll
- API Level:
- preview
Circle slider is a circular designed widget used to select a value in a range by the Rotary event.
public class CircleSlider : Widget, IAccessibleObject, IRotaryActionWidget, ICircleWidget
- Inheritance
- Implements
Constructors
View SourceCircleSlider(EvasObject, CircleSurface)
Creates and initializes a new instance of the CircleSlider class.
Declaration
public CircleSlider(EvasObject parent, CircleSurface surface)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent | The EvasObject to which the new CircleSlider will be attached as a child. |
CircleSurface | surface | The surface for drawing the circle features for this widget. |
API Level: preview
Properties
View SourceBackgroundAngle
Sets or gets the angle in degree of the circle slider background.
Declaration
public double BackgroundAngle { get; set; }
Property Value
Type | Description |
---|---|
Double |
API Level: preview
View SourceBackgroundAngleOffset
Sets or gets the angle offset for the circle slider background. Offset value means start position of the slider background.
Declaration
public double BackgroundAngleOffset { get; set; }
Property Value
Type | Description |
---|---|
Double |
API Level: preview
View SourceBackgroundColor
Sets or gets the color of the circle slider background.
Declaration
public override Color BackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
Overrides
API Level: preview
View SourceBackgroundLineWidth
Sets or gets the line width of the circle slider background.
Declaration
public int BackgroundLineWidth { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: preview
View SourceBackgroundRadius
Gets or sets the radius value for the circle slider background.
Declaration
public double BackgroundRadius { get; set; }
Property Value
Type | Description |
---|---|
Double |
API Level: preview
View SourceBarAngle
Sets or gets the angle in degree of the circle slider bar.
Declaration
public double BarAngle { get; set; }
Property Value
Type | Description |
---|---|
Double |
API Level: preview
View SourceBarAngleMaximum
Sets or gets the maximum angle of the circle slider bar.
Declaration
public double BarAngleMaximum { get; set; }
Property Value
Type | Description |
---|---|
Double |
API Level: preview
View SourceBarAngleMinimum
Sets or gets the minimum angle of the circle slider bar.
Declaration
public double BarAngleMinimum { get; set; }
Property Value
Type | Description |
---|---|
Double |
API Level: preview
View SourceBarAngleOffset
Sets or gets the angle offset for the slider bar. Offset value means start position of the slider bar.
Declaration
public double BarAngleOffset { get; set; }
Property Value
Type | Description |
---|---|
Double |
API Level: preview
View SourceBarColor
Sets or gets the color of the circle slider bar.
Declaration
public Color BarColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
API Level: preview
View SourceBarLineWidth
Sets or gets the line width of the circle slider bar.
Declaration
public int BarLineWidth { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: preview
View SourceBarRadius
Gets or sets the radius value for the circle slider bar.
Declaration
public double BarRadius { get; set; }
Property Value
Type | Description |
---|---|
Double |
API Level: preview
View SourceCircleHandle
Gets the handle for the Circle widget.
Declaration
public virtual IntPtr CircleHandle { get; }
Property Value
Type | Description |
---|---|
IntPtr |
API Level: preview
View SourceCircleSurface
Gets the handle for the circle surface used in this widget.
Declaration
public virtual CircleSurface CircleSurface { get; }
Property Value
Type | Description |
---|---|
CircleSurface |
API Level: preview
View SourceIsEnabled
Sets or gets the state of the widget, which might be enabled or disabled.
Declaration
public override bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
API Level: preview
View SourceMaximum
Sets or gets the maximum values for the circle slider.
Declaration
public double Maximum { get; set; }
Property Value
Type | Description |
---|---|
Double |
Remarks
This defines the allowed maximum values to be selected by the user. If the actual value is bigger than the maximum value, it is updated to the maximum value. Actual value can be obtained with Value. By default, the minimum value is equal to 0.0, and the maximum value is equal to 1.0. Maximum must be greater than minimum, otherwise the behavior is undefined.
API Level: preview
View SourceMinimum
Sets or gets the minimum values for the circle slider.
Declaration
public double Minimum { get; set; }
Property Value
Type | Description |
---|---|
Double |
Remarks
This defines the allowed minimum values to be selected by the user. If the actual value is less than the minimum value, it is updated to the minimum value. Actual value can be obtained with Value. By default, minimum value is equal to 0.0.
API Level: preview
View SourceStep
Sets or gets the step by which the circle slider bar moves.
Declaration
public double Step { get; set; }
Property Value
Type | Description |
---|---|
Double |
Remarks
This value is used when the circle slider value is changed by a drag or the Rotary event. The value of the slider is increased/decreased by the step value.
API Level: preview
View SourceValue
Gets or sets the value displayed by the circle slider.
Declaration
public double Value { get; set; }
Property Value
Type | Description |
---|---|
Double |
Remarks
The value must be between minimum and maximum.
API Level: preview
Methods
View SourceCreateHandle(EvasObject)
Creates a widget handle.
Declaration
protected override IntPtr CreateHandle(EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent | Parent EvasObject |
Returns
Type | Description |
---|---|
IntPtr | Handle IntPtr. |
Overrides
API Level: preview
View SourceOnRealized()
The callback of the Realized event.
Declaration
protected override void OnRealized()
Overrides
API Level: preview
Events
View SourceValueChanged
Changed will be triggered when the circle slider value changes.
Declaration
public event EventHandler ValueChanged
Event Type
Type | Description |
---|---|
EventHandler |