/// <summary>An interval slider.
/// This is a slider with two indicators.</summary>
[Efl.Ui.SliderInterval.NativeMethods]
-public class SliderInterval : Efl.Ui.Slider, Efl.Eo.IWrapper
+public class SliderInterval : Efl.Ui.Slider
{
///<summary>Pointer to the native class description.</summary>
public override System.IntPtr NativeClass
/// <param name="raw">The native pointer to be wrapped.</param>
protected SliderInterval(System.IntPtr raw) : base(raw)
{
- }
+ }
/// <summary>Initializes a new instance of the <see cref="SliderInterval"/> class.
/// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
{
}
- /// <summary>Verifies if the given object is equal to this one.</summary>
- /// <param name="instance">The object to compare to.</param>
- /// <returns>True if both objects point to the same native object.</returns>
- public override bool Equals(object instance)
- {
- var other = instance as Efl.Object;
- if (other == null)
- {
- return false;
- }
- return this.NativeHandle == other.NativeHandle;
- }
-
- /// <summary>Gets the hash code for this object based on the native pointer it points to.</summary>
- /// <returns>The value of the pointer, to be used as the hash code of this object.</returns>
- public override int GetHashCode()
- {
- return this.NativeHandle.ToInt32();
- }
-
- /// <summary>Turns the native pointer into a string representation.</summary>
- /// <returns>A string with the type and the native pointer for this object.</returns>
- public override String ToString()
- {
- return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
- }
-
/// <summary>Sets up position of two indicators at start and end position.</summary>
/// <param name="from">interval minimum value</param>
/// <param name="to">interval maximum value</param>
return Efl.Ui.SliderInterval.efl_ui_slider_interval_class_get();
}
- #pragma warning disable CA1707, SA1300, SA1600
+ #pragma warning disable CA1707, CS1591, SA1300, SA1600
private delegate void efl_ui_slider_interval_value_get_delegate(System.IntPtr obj, System.IntPtr pd, out double from, out double to);
private static void interval_value_get(System.IntPtr obj, System.IntPtr pd, out double from, out double to)
{
Eina.Log.Debug("function efl_ui_slider_interval_value_get was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
from = default(double); to = default(double);
try
{
- ((SliderInterval)wrapper).GetIntervalValue(out from, out to);
+ ((SliderInterval)ws.Target).GetIntervalValue(out from, out to);
}
catch (Exception e)
{
private static void interval_value_set(System.IntPtr obj, System.IntPtr pd, double from, double to)
{
Eina.Log.Debug("function efl_ui_slider_interval_value_set was called");
- Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
- if (wrapper != null)
+ var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+ if (ws != null)
{
try
{
- ((SliderInterval)wrapper).SetIntervalValue(from, to);
+ ((SliderInterval)ws.Target).SetIntervalValue(from, to);
}
catch (Exception e)
{
private static efl_ui_slider_interval_value_set_delegate efl_ui_slider_interval_value_set_static_delegate;
- #pragma warning restore CA1707, SA1300, SA1600
+ #pragma warning restore CA1707, CS1591, SA1300, SA1600
}
}