2 using System.Collections.Generic;
12 /// CircleTimePickerMarker is a part used to set the color of the marker.
14 /// <since_tizen> 6 </since_tizen>
15 public class CircleTimePickerMarker : ICircleColor
18 public CircleTimePickerMarker(IntPtr CircleHandle) { _handle = CircleHandle; }
21 /// Sets the color of the marker on the circle time picker.
23 /// <since_tizen> 6 </since_tizen>
24 public void SetColor(int r, int g, int b, int a)
27 Interop.Eext.eext_circle_object_item_color_set(_handle, "default", r, g, b, a);
31 /// Gets the color of the marker on the circle time picker.
33 /// <since_tizen> 6 </since_tizen>
34 public void GetColor(out int r, out int g, out int b, out int a)
38 Interop.Eext.eext_circle_object_item_color_get(_handle, "default", out r, out g, out b, out a);
43 /// CircleTimePicker is a circular designed widget to display and handle time picker value by the rotary event.
45 /// <since_tizen> 6 </since_tizen>
46 public class CircleTimePicker : Efl.Ui.Timepicker, ICircleWidget
51 /// Get the handle for the circle widget.
53 /// <since_tizen> 6 </since_tizen>
54 public virtual IntPtr CircleHandle => _handle;
57 /// Sets or gets the color of the marker.
59 /// <since_tizen> 6 </since_tizen>
60 public CircleTimePickerMarker Marker;
63 /// Creates and initializes a new instance of the CircleTimePicker class.
65 /// <param name="parent">The Efl.Ui.Widget to which the new CircleTimePicker will be attached as a child.</param>
66 /// <since_tizen> 6 </since_tizen>
67 public CircleTimePicker(Efl.Ui.Widget parent) : base(parent)
69 _handle = Interop.Eext.eext_circle_object_datetime_add(this.NativeHandle, IntPtr.Zero);
70 Marker = new CircleTimePickerMarker(_handle);
71 elm_layout_content_set(this.NativeHandle, "efl.swallow.vg", CircleHandle);
74 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)]
75 internal static extern bool elm_layout_content_set(IntPtr obj, string swallow, IntPtr content);
78 /// Sets or gets the disabled state of the circle time picker.
80 /// <since_tizen> 6 </since_tizen>
84 set => Enable = !value;
88 /// Sets or gets the enabled state of the circle time picker.
90 /// <since_tizen> 6 </since_tizen>
95 return !Interop.Eext.eext_circle_object_disabled_get(CircleHandle);
99 Interop.Eext.eext_circle_object_disabled_set(CircleHandle, !value);
104 /// Sets or gets the line width of the marker.
106 /// <since_tizen> 6 </since_tizen>
107 public int MarkerLineWidth
111 return Interop.Eext.eext_circle_object_item_line_width_get(CircleHandle, "default");
115 Interop.Eext.eext_circle_object_item_line_width_set(CircleHandle, "default", value);
120 /// Sets or gets the radius of the marker.
122 /// <since_tizen> 6 </since_tizen>
123 public double MarkerRadius
127 return Interop.Eext.eext_circle_object_item_radius_get(CircleHandle, "default");
131 Interop.Eext.eext_circle_object_item_radius_set(CircleHandle, "default", value);