using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Linq;
+using System.Threading;
using System.ComponentModel;
-namespace Efl { namespace Ui {
+namespace Efl {
+
+namespace Ui {
+
/// <summary>A custom layout engine for <see cref="Efl.Ui.Box"/>.</summary>
-[BoxFlowNativeInherit]
+[Efl.Ui.BoxFlow.NativeMethods]
public class BoxFlow : Efl.Ui.Box, Efl.Eo.IWrapper
{
///<summary>Pointer to the native class description.</summary>
- public override System.IntPtr NativeClass {
- get {
- if (((object)this).GetType() == typeof (BoxFlow))
- return Efl.Ui.BoxFlowNativeInherit.GetEflClassStatic();
+ public override System.IntPtr NativeClass
+ {
+ get
+ {
+ if (((object)this).GetType() == typeof(BoxFlow))
+ {
+ return GetEflClassStatic();
+ }
else
+ {
return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
+ }
}
}
+
[System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
efl_ui_box_flow_class_get();
- ///<summary>Creates a new instance.</summary>
- ///<param name="parent">Parent instance.</param>
- ///<param name="style">The widget style to use. See <see cref="Efl.Ui.Widget.SetStyle"/></param>
+ /// <summary>Initializes a new instance of the <see cref="BoxFlow"/> class.</summary>
+ /// <param name="parent">Parent instance.</param>
+ /// <param name="style">The widget style to use. See <see cref="Efl.Ui.Widget.SetStyle"/></param>
public BoxFlow(Efl.Object parent
- , System.String style = null) :
- base(efl_ui_box_flow_class_get(), typeof(BoxFlow), parent)
+ , System.String style = null) : base(efl_ui_box_flow_class_get(), typeof(BoxFlow), parent)
{
if (Efl.Eo.Globals.ParamHelperCheck(style))
+ {
SetStyle(Efl.Eo.Globals.GetParamHelper(style));
+ }
+
FinishInstantiation();
}
- ///<summary>Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
+
+ /// <summary>Initializes a new instance of the <see cref="BoxFlow"/> 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 BoxFlow(System.IntPtr raw) : base(raw)
{
- RegisterEventProxies();
+ }
+
+ /// <summary>Initializes a new instance of the <see cref="BoxFlow"/> 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 BoxFlow(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
+ {
}
- ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
- protected BoxFlow(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {}
- ///<summary>Verifies if the given object is equal to this one.</summary>
- public override bool Equals(object obj)
+
+ /// <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 = obj as Efl.Object;
+ 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>
+
+ /// <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>
+
+ /// <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>Register the Eo event wrappers making the bridge to C# events. Internal usage only.</summary>
- protected override void RegisterEventProxies()
- {
- base.RegisterEventProxies();
- }
+
private static IntPtr GetEflClassStatic()
{
return Efl.Ui.BoxFlow.efl_ui_box_flow_class_get();
}
-}
-public class BoxFlowNativeInherit : Efl.Ui.BoxNativeInherit{
- public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary);
- public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
+ /// <summary>Wrapper for native methods and virtual method delegates.
+ /// For internal use by generated code only.</summary>
+ public new class NativeMethods : Efl.Ui.Box.NativeMethods
{
- var descs = new System.Collections.Generic.List<Efl_Op_Description>();
- var methods = Efl.Eo.Globals.GetUserMethods(type);
- descs.AddRange(base.GetEoOps(type));
- return descs;
- }
- public override IntPtr GetEflClass()
- {
- return Efl.Ui.BoxFlow.efl_ui_box_flow_class_get();
- }
- public static new IntPtr GetEflClassStatic()
- {
- return Efl.Ui.BoxFlow.efl_ui_box_flow_class_get();
- }
+ /// <summary>Gets the list of Eo operations to override.</summary>
+ /// <returns>The list of Eo operations to be overload.</returns>
+ public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
+ {
+ var descs = new System.Collections.Generic.List<Efl_Op_Description>();
+ descs.AddRange(base.GetEoOps(type));
+ return descs;
+ }
+ /// <summary>Returns the Eo class for the native methods of this class.</summary>
+ /// <returns>The native class pointer.</returns>
+ public override IntPtr GetEflClass()
+ {
+ return Efl.Ui.BoxFlow.efl_ui_box_flow_class_get();
+ }
+
+ #pragma warning disable CA1707, SA1300, SA1600
+
+ #pragma warning restore CA1707, SA1300, SA1600
+
+}
+}
+}
+
}
-} }
+