#pragma warning disable CS1591
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.ComponentModel;
namespace Efl {
namespace Gfx {
/// API common to all UI container objects.
[Efl.Gfx.IArrangementConcrete.NativeMethods]
[Efl.Eo.BindingEntity]
public interface IArrangement :
Efl.Eo.IWrapper, IDisposable
{
/// Alignment of the container within its bounds
/// Horizontal alignment
/// Vertical alignment
void GetContentAlign(out double align_horiz, out double align_vert);
/// Alignment of the container within its bounds
/// Horizontal alignment
/// Vertical alignment
void SetContentAlign(double align_horiz, double align_vert);
/// Padding between items contained in this object.
/// Horizontal padding
/// Vertical padding
/// true if scalable, false otherwise
void GetContentPadding(out double pad_horiz, out double pad_vert, out bool scalable);
/// Padding between items contained in this object.
/// Horizontal padding
/// Vertical padding
/// true if scalable, false otherwise
void SetContentPadding(double pad_horiz, double pad_vert, bool scalable);
}
/// API common to all UI container objects.
sealed public class IArrangementConcrete :
Efl.Eo.EoWrapper
, IArrangement
{
///Pointer to the native class description.
public override System.IntPtr NativeClass
{
get
{
if (((object)this).GetType() == typeof(IArrangementConcrete))
{
return GetEflClassStatic();
}
else
{
return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
}
}
}
/// Constructor to be used when objects are expected to be constructed from native code.
/// Tag struct storing the native handle of the object being constructed.
private IArrangementConcrete(ConstructingHandle ch) : base(ch)
{
}
[System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr
efl_gfx_arrangement_interface_get();
/// Initializes a new instance of the class.
/// Internal usage: This is used when interacting with C code and should not be used directly.
/// The native pointer to be wrapped.
private IArrangementConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
{
}
/// Alignment of the container within its bounds
/// Horizontal alignment
/// Vertical alignment
public void GetContentAlign(out double align_horiz, out double align_vert) {
Efl.Gfx.IArrangementConcrete.NativeMethods.efl_gfx_arrangement_content_align_get_ptr.Value.Delegate(this.NativeHandle,out align_horiz, out align_vert);
Eina.Error.RaiseIfUnhandledException();
}
/// Alignment of the container within its bounds
/// Horizontal alignment
/// Vertical alignment
public void SetContentAlign(double align_horiz, double align_vert) {
Efl.Gfx.IArrangementConcrete.NativeMethods.efl_gfx_arrangement_content_align_set_ptr.Value.Delegate(this.NativeHandle,align_horiz, align_vert);
Eina.Error.RaiseIfUnhandledException();
}
/// Padding between items contained in this object.
/// Horizontal padding
/// Vertical padding
/// true if scalable, false otherwise
public void GetContentPadding(out double pad_horiz, out double pad_vert, out bool scalable) {
Efl.Gfx.IArrangementConcrete.NativeMethods.efl_gfx_arrangement_content_padding_get_ptr.Value.Delegate(this.NativeHandle,out pad_horiz, out pad_vert, out scalable);
Eina.Error.RaiseIfUnhandledException();
}
/// Padding between items contained in this object.
/// Horizontal padding
/// Vertical padding
/// true if scalable, false otherwise
public void SetContentPadding(double pad_horiz, double pad_vert, bool scalable) {
Efl.Gfx.IArrangementConcrete.NativeMethods.efl_gfx_arrangement_content_padding_set_ptr.Value.Delegate(this.NativeHandle,pad_horiz, pad_vert, scalable);
Eina.Error.RaiseIfUnhandledException();
}
private static IntPtr GetEflClassStatic()
{
return Efl.Gfx.IArrangementConcrete.efl_gfx_arrangement_interface_get();
}
/// Wrapper for native methods and virtual method delegates.
/// For internal use by generated code only.
public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods
{
private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl);
/// Gets the list of Eo operations to override.
/// The list of Eo operations to be overload.
public override System.Collections.Generic.List GetEoOps(System.Type type)
{
var descs = new System.Collections.Generic.List();
var methods = Efl.Eo.Globals.GetUserMethods(type);
if (efl_gfx_arrangement_content_align_get_static_delegate == null)
{
efl_gfx_arrangement_content_align_get_static_delegate = new efl_gfx_arrangement_content_align_get_delegate(content_align_get);
}
if (methods.FirstOrDefault(m => m.Name == "GetContentAlign") != null)
{
descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_arrangement_content_align_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_arrangement_content_align_get_static_delegate) });
}
if (efl_gfx_arrangement_content_align_set_static_delegate == null)
{
efl_gfx_arrangement_content_align_set_static_delegate = new efl_gfx_arrangement_content_align_set_delegate(content_align_set);
}
if (methods.FirstOrDefault(m => m.Name == "SetContentAlign") != null)
{
descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_arrangement_content_align_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_arrangement_content_align_set_static_delegate) });
}
if (efl_gfx_arrangement_content_padding_get_static_delegate == null)
{
efl_gfx_arrangement_content_padding_get_static_delegate = new efl_gfx_arrangement_content_padding_get_delegate(content_padding_get);
}
if (methods.FirstOrDefault(m => m.Name == "GetContentPadding") != null)
{
descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_arrangement_content_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_arrangement_content_padding_get_static_delegate) });
}
if (efl_gfx_arrangement_content_padding_set_static_delegate == null)
{
efl_gfx_arrangement_content_padding_set_static_delegate = new efl_gfx_arrangement_content_padding_set_delegate(content_padding_set);
}
if (methods.FirstOrDefault(m => m.Name == "SetContentPadding") != null)
{
descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_arrangement_content_padding_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_arrangement_content_padding_set_static_delegate) });
}
return descs;
}
/// Returns the Eo class for the native methods of this class.
/// The native class pointer.
public override IntPtr GetEflClass()
{
return Efl.Gfx.IArrangementConcrete.efl_gfx_arrangement_interface_get();
}
#pragma warning disable CA1707, CS1591, SA1300, SA1600
private delegate void efl_gfx_arrangement_content_align_get_delegate(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert);
public delegate void efl_gfx_arrangement_content_align_get_api_delegate(System.IntPtr obj, out double align_horiz, out double align_vert);
public static Efl.Eo.FunctionWrapper efl_gfx_arrangement_content_align_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_arrangement_content_align_get");
private static void content_align_get(System.IntPtr obj, System.IntPtr pd, out double align_horiz, out double align_vert)
{
Eina.Log.Debug("function efl_gfx_arrangement_content_align_get was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
align_horiz = default(double); align_vert = default(double);
try
{
((IArrangement)ws.Target).GetContentAlign(out align_horiz, out align_vert);
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
}
else
{
efl_gfx_arrangement_content_align_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out align_horiz, out align_vert);
}
}
private static efl_gfx_arrangement_content_align_get_delegate efl_gfx_arrangement_content_align_get_static_delegate;
private delegate void efl_gfx_arrangement_content_align_set_delegate(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert);
public delegate void efl_gfx_arrangement_content_align_set_api_delegate(System.IntPtr obj, double align_horiz, double align_vert);
public static Efl.Eo.FunctionWrapper efl_gfx_arrangement_content_align_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_arrangement_content_align_set");
private static void content_align_set(System.IntPtr obj, System.IntPtr pd, double align_horiz, double align_vert)
{
Eina.Log.Debug("function efl_gfx_arrangement_content_align_set was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
try
{
((IArrangement)ws.Target).SetContentAlign(align_horiz, align_vert);
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
}
else
{
efl_gfx_arrangement_content_align_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), align_horiz, align_vert);
}
}
private static efl_gfx_arrangement_content_align_set_delegate efl_gfx_arrangement_content_align_set_static_delegate;
private delegate void efl_gfx_arrangement_content_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable);
public delegate void efl_gfx_arrangement_content_padding_get_api_delegate(System.IntPtr obj, out double pad_horiz, out double pad_vert, [MarshalAs(UnmanagedType.U1)] out bool scalable);
public static Efl.Eo.FunctionWrapper efl_gfx_arrangement_content_padding_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_arrangement_content_padding_get");
private static void content_padding_get(System.IntPtr obj, System.IntPtr pd, out double pad_horiz, out double pad_vert, out bool scalable)
{
Eina.Log.Debug("function efl_gfx_arrangement_content_padding_get was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
pad_horiz = default(double); pad_vert = default(double); scalable = default(bool);
try
{
((IArrangement)ws.Target).GetContentPadding(out pad_horiz, out pad_vert, out scalable);
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
}
else
{
efl_gfx_arrangement_content_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out pad_horiz, out pad_vert, out scalable);
}
}
private static efl_gfx_arrangement_content_padding_get_delegate efl_gfx_arrangement_content_padding_get_static_delegate;
private delegate void efl_gfx_arrangement_content_padding_set_delegate(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable);
public delegate void efl_gfx_arrangement_content_padding_set_api_delegate(System.IntPtr obj, double pad_horiz, double pad_vert, [MarshalAs(UnmanagedType.U1)] bool scalable);
public static Efl.Eo.FunctionWrapper efl_gfx_arrangement_content_padding_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_arrangement_content_padding_set");
private static void content_padding_set(System.IntPtr obj, System.IntPtr pd, double pad_horiz, double pad_vert, bool scalable)
{
Eina.Log.Debug("function efl_gfx_arrangement_content_padding_set was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
try
{
((IArrangement)ws.Target).SetContentPadding(pad_horiz, pad_vert, scalable);
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
}
else
{
efl_gfx_arrangement_content_padding_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), pad_horiz, pad_vert, scalable);
}
}
private static efl_gfx_arrangement_content_padding_set_delegate efl_gfx_arrangement_content_padding_set_static_delegate;
#pragma warning restore CA1707, CS1591, SA1300, SA1600
}
}
}
}