Esempio n. 1
0
 private void InvokeChanged()
 {
     if (_updateActive)
     {
         ChangedEvt?.Invoke();
     }
 }
Esempio n. 2
0
                /// <summary>
                /// Creates and initializes a new instance of the CircleSlider class.
                /// </summary>
                /// <param name="parent">The Efl.Ui.Widget to which the new CircleSlider will be attached as a child.</param>
                /// <since_tizen> 6 </since_tizen>
                public CircleSlider(Efl.Ui.Widget parent) : base(parent)
                {
                    _handle = Interop.Eext.eext_circle_object_slider_add(parent.NativeHandle, IntPtr.Zero);

                    Bar           = new Efl.Ui.Wearable.CircleSliderBar(_handle);
                    BarBackground = new Efl.Ui.Wearable.CircleSliderBarBackground(_handle);

                    smartChanged = new Interop.Evas.SmartCallback((d, o, e) =>
                    {
                        ChangedEvt?.Invoke(this, EventArgs.Empty);
                    });

                    Interop.Evas.evas_object_smart_callback_add(_handle, ChangedEventName, smartChanged, IntPtr.Zero);

                    elm_layout_content_set(this.NativeHandle, "efl.swallow.vg", CircleHandle);
                }