/// <summary>Low-level polygon object</summary>
[Efl.Canvas.Polygon.NativeMethods]
+[Efl.Eo.BindingEntity]
public class Polygon : Efl.Canvas.Object
{
///<summary>Pointer to the native class description.</summary>
/// <summary>Initializes a new instance of the <see cref="Polygon"/> class.</summary>
/// <param name="parent">Parent instance.</param>
public Polygon(Efl.Object parent= null
- ) : base(efl_canvas_polygon_class_get(), typeof(Polygon), parent)
+ ) : base(efl_canvas_polygon_class_get(), parent)
{
FinishInstantiation();
}
+ /// <summary>Constructor to be used when objects are expected to be constructed from native code.</summary>
+ /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
+ protected Polygon(ConstructingHandle ch) : base(ch)
+ {
+ }
+
/// <summary>Initializes a new instance of the <see cref="Polygon"/> class.
/// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
- /// <param name="raw">The native pointer to be wrapped.</param>
- protected Polygon(System.IntPtr raw) : base(raw)
+ /// <param name="wh">The native pointer to be wrapped.</param>
+ protected Polygon(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
{
}
/// <summary>Initializes a new instance of the <see cref="Polygon"/> class.
/// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
/// <param name="baseKlass">The pointer to the base native Eo class.</param>
- /// <param name="managedType">The managed type of the public constructor that originated this call.</param>
/// <param name="parent">The Efl.Object parent of this instance.</param>
- protected Polygon(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
+ protected Polygon(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
{
}
/// <param name="pos">A point coordinate.</param>
virtual public void AddPoint(Eina.Position2D pos) {
Eina.Position2D.NativeStruct _in_pos = pos;
- Efl.Canvas.Polygon.NativeMethods.efl_canvas_polygon_point_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),_in_pos);
+ Efl.Canvas.Polygon.NativeMethods.efl_canvas_polygon_point_add_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_pos);
Eina.Error.RaiseIfUnhandledException();
}
/// <summary>Removes all of the points from the given evas polygon object.</summary>
virtual public void ClearPoints() {
- Efl.Canvas.Polygon.NativeMethods.efl_canvas_polygon_points_clear_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
+ Efl.Canvas.Polygon.NativeMethods.efl_canvas_polygon_points_clear_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
Eina.Error.RaiseIfUnhandledException();
}
private static IntPtr GetEflClassStatic()