#pragma warning disable CS1591
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Linq;
using System.ComponentModel;
namespace Efl { namespace Gfx {
/// Graphical filters can be applied to any object implementing this interface.
/// Filters are programmable effects that run whenever the object is rendered on its canvas. The program language is Lua and a complete reference can be found under "EFL Graphics Filters".
///
/// This was a beta feature since 1.15.
/// 1.18
[FilterNativeInherit]
public interface Filter :
Efl.Eo.IWrapper, IDisposable
{
/// Gets the code of the filter program set on this object. May be null.
/// 1.18
/// The Lua program source code.
/// 1.18
/// An optional name for this filter.
/// 1.18
///
void GetFilterProgram( out System.String code, out System.String name);
/// Set a graphical filter program on this object.
/// Valid for Text and Image objects at the moment.
///
/// The argument passed to this function is a string containing a valid Lua program based on the filters API as described in the "EFL Graphics Filters" reference page.
///
/// Set to null to disable filtering.
/// 1.18
/// The Lua program source code.
/// 1.18
/// An optional name for this filter.
/// 1.18
///
void SetFilterProgram( System.String code, System.String name);
/// Set the current state of the filter.
/// This should be used by Edje (EFL's internal layout engine), but could also be used when implementing animations programmatically.
///
/// A full state is defined by two states (name + value): origin state and target state of an ongoing animation, as well as the pos progress (from 0 to 1) of that animation timeline. The second state can be omitted if there is no ongoing animation.
/// 1.18
/// Current state of the filter
/// 1.18
/// Current value
/// 1.18
/// Next filter state, optional
/// 1.18
/// Next value, optional
/// 1.18
/// Position, optional
/// 1.18
///
void GetFilterState( out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos);
/// Set the current state of the filter.
/// This should be used by Edje (EFL's internal layout engine), but could also be used when implementing animations programmatically.
///
/// A full state is defined by two states (name + value): origin state and target state of an ongoing animation, as well as the pos progress (from 0 to 1) of that animation timeline. The second state can be omitted if there is no ongoing animation.
/// 1.18
/// Current state of the filter
/// 1.18
/// Current value
/// 1.18
/// Next filter state, optional
/// 1.18
/// Next value, optional
/// 1.18
/// Position, optional
/// 1.18
///
void SetFilterState( System.String cur_state, double cur_val, System.String next_state, double next_val, double pos);
/// Gets the padding required to apply this filter.
/// 1.18
/// Padding on the left
/// 1.18
/// Padding on the right
/// 1.18
/// Padding on the top
/// 1.18
/// Padding on the bottom
/// 1.18
///
void GetFilterPadding( out int l, out int r, out int t, out int b);
/// Bind an object to use as a mask or texture in a filter program.
/// This will create automatically a new RGBA buffer containing the source object's pixels (as it is rendered).
/// 1.18
/// Buffer name as used in the program.
/// 1.18
/// Object to use as a source of pixels.
/// 1.18
Efl.Gfx.Entity GetFilterSource( System.String name);
/// Bind an object to use as a mask or texture in a filter program.
/// This will create automatically a new RGBA buffer containing the source object's pixels (as it is rendered).
/// 1.18
/// Buffer name as used in the program.
/// 1.18
/// Object to use as a source of pixels.
/// 1.18
///
void SetFilterSource( System.String name, Efl.Gfx.Entity source);
/// Extra data used by the filter program.
/// Each data element is a string (value) stored as a global variable name. The program is then responsible for conversion to numbers, tables, etc...
///
/// If the execute flag is set, then the value can be complex and run, as if the original Lua program contained a line 'name = value'. This can be used to pass in tables.
/// 1.18
/// Name of the global variable
/// 1.18
/// String value to use as data
/// 1.18
/// If true, execute 'name = value'
/// 1.18
///
void GetFilterData( System.String name, out System.String value, out bool execute);
/// Extra data used by the filter program.
/// Each data element is a string (value) stored as a global variable name. The program is then responsible for conversion to numbers, tables, etc...
///
/// If the execute flag is set, then the value can be complex and run, as if the original Lua program contained a line 'name = value'. This can be used to pass in tables.
/// 1.18
/// Name of the global variable
/// 1.18
/// String value to use as data
/// 1.18
/// If true, execute 'name = value'
/// 1.18
///
void SetFilterData( System.String name, System.String value, bool execute);
}
/// Graphical filters can be applied to any object implementing this interface.
/// Filters are programmable effects that run whenever the object is rendered on its canvas. The program language is Lua and a complete reference can be found under "EFL Graphics Filters".
///
/// This was a beta feature since 1.15.
/// 1.18
sealed public class FilterConcrete :
Filter
{
///Pointer to the native class description.
public System.IntPtr NativeClass {
get {
if (((object)this).GetType() == typeof (FilterConcrete))
return Efl.Gfx.FilterNativeInherit.GetEflClassStatic();
else
return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
}
}
private System.IntPtr handle;
///Pointer to the native instance.
public System.IntPtr NativeHandle {
get { return handle; }
}
[System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr
efl_gfx_filter_interface_get();
///Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.
public FilterConcrete(System.IntPtr raw)
{
handle = raw;
register_event_proxies();
}
///Destructor.
~FilterConcrete()
{
Dispose(false);
}
///Releases the underlying native instance.
void Dispose(bool disposing)
{
if (handle != System.IntPtr.Zero) {
Efl.Eo.Globals.efl_unref(handle);
handle = System.IntPtr.Zero;
}
}
///Releases the underlying native instance.
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
///Casts obj into an instance of this type.
public static FilterConcrete static_cast(Efl.Object obj)
{
if (obj == null)
throw new System.ArgumentNullException("obj");
return new FilterConcrete(obj.NativeHandle);
}
///Verifies if the given object is equal to this one.
public override bool Equals(object obj)
{
var other = obj as Efl.Object;
if (other == null)
return false;
return this.NativeHandle == other.NativeHandle;
}
///Gets the hash code for this object based on the native pointer it points to.
public override int GetHashCode()
{
return this.NativeHandle.ToInt32();
}
///Turns the native pointer into a string representation.
public override String ToString()
{
return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
}
void register_event_proxies()
{
}
/// Gets the code of the filter program set on this object. May be null.
/// 1.18
/// The Lua program source code.
/// 1.18
/// An optional name for this filter.
/// 1.18
///
public void GetFilterProgram( out System.String code, out System.String name) {
Efl.Gfx.FilterNativeInherit.efl_gfx_filter_program_get_ptr.Value.Delegate(this.NativeHandle, out code, out name);
Eina.Error.RaiseIfUnhandledException();
}
/// Set a graphical filter program on this object.
/// Valid for Text and Image objects at the moment.
///
/// The argument passed to this function is a string containing a valid Lua program based on the filters API as described in the "EFL Graphics Filters" reference page.
///
/// Set to null to disable filtering.
/// 1.18
/// The Lua program source code.
/// 1.18
/// An optional name for this filter.
/// 1.18
///
public void SetFilterProgram( System.String code, System.String name) {
Efl.Gfx.FilterNativeInherit.efl_gfx_filter_program_set_ptr.Value.Delegate(this.NativeHandle, code, name);
Eina.Error.RaiseIfUnhandledException();
}
/// Set the current state of the filter.
/// This should be used by Edje (EFL's internal layout engine), but could also be used when implementing animations programmatically.
///
/// A full state is defined by two states (name + value): origin state and target state of an ongoing animation, as well as the pos progress (from 0 to 1) of that animation timeline. The second state can be omitted if there is no ongoing animation.
/// 1.18
/// Current state of the filter
/// 1.18
/// Current value
/// 1.18
/// Next filter state, optional
/// 1.18
/// Next value, optional
/// 1.18
/// Position, optional
/// 1.18
///
public void GetFilterState( out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos) {
Efl.Gfx.FilterNativeInherit.efl_gfx_filter_state_get_ptr.Value.Delegate(this.NativeHandle, out cur_state, out cur_val, out next_state, out next_val, out pos);
Eina.Error.RaiseIfUnhandledException();
}
/// Set the current state of the filter.
/// This should be used by Edje (EFL's internal layout engine), but could also be used when implementing animations programmatically.
///
/// A full state is defined by two states (name + value): origin state and target state of an ongoing animation, as well as the pos progress (from 0 to 1) of that animation timeline. The second state can be omitted if there is no ongoing animation.
/// 1.18
/// Current state of the filter
/// 1.18
/// Current value
/// 1.18
/// Next filter state, optional
/// 1.18
/// Next value, optional
/// 1.18
/// Position, optional
/// 1.18
///
public void SetFilterState( System.String cur_state, double cur_val, System.String next_state, double next_val, double pos) {
Efl.Gfx.FilterNativeInherit.efl_gfx_filter_state_set_ptr.Value.Delegate(this.NativeHandle, cur_state, cur_val, next_state, next_val, pos);
Eina.Error.RaiseIfUnhandledException();
}
/// Gets the padding required to apply this filter.
/// 1.18
/// Padding on the left
/// 1.18
/// Padding on the right
/// 1.18
/// Padding on the top
/// 1.18
/// Padding on the bottom
/// 1.18
///
public void GetFilterPadding( out int l, out int r, out int t, out int b) {
Efl.Gfx.FilterNativeInherit.efl_gfx_filter_padding_get_ptr.Value.Delegate(this.NativeHandle, out l, out r, out t, out b);
Eina.Error.RaiseIfUnhandledException();
}
/// Bind an object to use as a mask or texture in a filter program.
/// This will create automatically a new RGBA buffer containing the source object's pixels (as it is rendered).
/// 1.18
/// Buffer name as used in the program.
/// 1.18
/// Object to use as a source of pixels.
/// 1.18
public Efl.Gfx.Entity GetFilterSource( System.String name) {
var _ret_var = Efl.Gfx.FilterNativeInherit.efl_gfx_filter_source_get_ptr.Value.Delegate(this.NativeHandle, name);
Eina.Error.RaiseIfUnhandledException();
return _ret_var;
}
/// Bind an object to use as a mask or texture in a filter program.
/// This will create automatically a new RGBA buffer containing the source object's pixels (as it is rendered).
/// 1.18
/// Buffer name as used in the program.
/// 1.18
/// Object to use as a source of pixels.
/// 1.18
///
public void SetFilterSource( System.String name, Efl.Gfx.Entity source) {
Efl.Gfx.FilterNativeInherit.efl_gfx_filter_source_set_ptr.Value.Delegate(this.NativeHandle, name, source);
Eina.Error.RaiseIfUnhandledException();
}
/// Extra data used by the filter program.
/// Each data element is a string (value) stored as a global variable name. The program is then responsible for conversion to numbers, tables, etc...
///
/// If the execute flag is set, then the value can be complex and run, as if the original Lua program contained a line 'name = value'. This can be used to pass in tables.
/// 1.18
/// Name of the global variable
/// 1.18
/// String value to use as data
/// 1.18
/// If true, execute 'name = value'
/// 1.18
///
public void GetFilterData( System.String name, out System.String value, out bool execute) {
Efl.Gfx.FilterNativeInherit.efl_gfx_filter_data_get_ptr.Value.Delegate(this.NativeHandle, name, out value, out execute);
Eina.Error.RaiseIfUnhandledException();
}
/// Extra data used by the filter program.
/// Each data element is a string (value) stored as a global variable name. The program is then responsible for conversion to numbers, tables, etc...
///
/// If the execute flag is set, then the value can be complex and run, as if the original Lua program contained a line 'name = value'. This can be used to pass in tables.
/// 1.18
/// Name of the global variable
/// 1.18
/// String value to use as data
/// 1.18
/// If true, execute 'name = value'
/// 1.18
///
public void SetFilterData( System.String name, System.String value, bool execute) {
Efl.Gfx.FilterNativeInherit.efl_gfx_filter_data_set_ptr.Value.Delegate(this.NativeHandle, name, value, execute);
Eina.Error.RaiseIfUnhandledException();
}
}
public class FilterNativeInherit : Efl.Eo.NativeClass{
public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl);
public override System.Collections.Generic.List GetEoOps(System.Type type)
{
var descs = new System.Collections.Generic.List();
if (efl_gfx_filter_program_get_static_delegate == null)
efl_gfx_filter_program_get_static_delegate = new efl_gfx_filter_program_get_delegate(filter_program_get);
descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_program_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_program_get_static_delegate)});
if (efl_gfx_filter_program_set_static_delegate == null)
efl_gfx_filter_program_set_static_delegate = new efl_gfx_filter_program_set_delegate(filter_program_set);
descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_program_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_program_set_static_delegate)});
if (efl_gfx_filter_state_get_static_delegate == null)
efl_gfx_filter_state_get_static_delegate = new efl_gfx_filter_state_get_delegate(filter_state_get);
descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_state_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_state_get_static_delegate)});
if (efl_gfx_filter_state_set_static_delegate == null)
efl_gfx_filter_state_set_static_delegate = new efl_gfx_filter_state_set_delegate(filter_state_set);
descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_state_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_state_set_static_delegate)});
if (efl_gfx_filter_padding_get_static_delegate == null)
efl_gfx_filter_padding_get_static_delegate = new efl_gfx_filter_padding_get_delegate(filter_padding_get);
descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_padding_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_padding_get_static_delegate)});
if (efl_gfx_filter_source_get_static_delegate == null)
efl_gfx_filter_source_get_static_delegate = new efl_gfx_filter_source_get_delegate(filter_source_get);
descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_source_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_source_get_static_delegate)});
if (efl_gfx_filter_source_set_static_delegate == null)
efl_gfx_filter_source_set_static_delegate = new efl_gfx_filter_source_set_delegate(filter_source_set);
descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_source_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_source_set_static_delegate)});
if (efl_gfx_filter_data_get_static_delegate == null)
efl_gfx_filter_data_get_static_delegate = new efl_gfx_filter_data_get_delegate(filter_data_get);
descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_data_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_data_get_static_delegate)});
if (efl_gfx_filter_data_set_static_delegate == null)
efl_gfx_filter_data_set_static_delegate = new efl_gfx_filter_data_set_delegate(filter_data_set);
descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_filter_data_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_filter_data_set_static_delegate)});
return descs;
}
public override IntPtr GetEflClass()
{
return Efl.Gfx.FilterConcrete.efl_gfx_filter_interface_get();
}
public static IntPtr GetEflClassStatic()
{
return Efl.Gfx.FilterConcrete.efl_gfx_filter_interface_get();
}
private delegate void efl_gfx_filter_program_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String name);
public delegate void efl_gfx_filter_program_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String name);
public static Efl.Eo.FunctionWrapper efl_gfx_filter_program_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_program_get");
private static void filter_program_get(System.IntPtr obj, System.IntPtr pd, out System.String code, out System.String name)
{
Eina.Log.Debug("function efl_gfx_filter_program_get was called");
Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
if(wrapper != null) {
System.String _out_code = default( System.String);
System.String _out_name = default( System.String);
try {
((Filter)wrapper).GetFilterProgram( out _out_code, out _out_name);
} catch (Exception e) {
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
code = _out_code;
name = _out_name;
} else {
efl_gfx_filter_program_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out code, out name);
}
}
private static efl_gfx_filter_program_get_delegate efl_gfx_filter_program_get_static_delegate;
private delegate void efl_gfx_filter_program_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name);
public delegate void efl_gfx_filter_program_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String code, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name);
public static Efl.Eo.FunctionWrapper efl_gfx_filter_program_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_program_set");
private static void filter_program_set(System.IntPtr obj, System.IntPtr pd, System.String code, System.String name)
{
Eina.Log.Debug("function efl_gfx_filter_program_set was called");
Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
if(wrapper != null) {
try {
((Filter)wrapper).SetFilterProgram( code, name);
} catch (Exception e) {
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
} else {
efl_gfx_filter_program_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), code, name);
}
}
private static efl_gfx_filter_program_set_delegate efl_gfx_filter_program_set_static_delegate;
private delegate void efl_gfx_filter_state_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String cur_state, out double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String next_state, out double next_val, out double pos);
public delegate void efl_gfx_filter_state_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String cur_state, out double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String next_state, out double next_val, out double pos);
public static Efl.Eo.FunctionWrapper efl_gfx_filter_state_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_state_get");
private static void filter_state_get(System.IntPtr obj, System.IntPtr pd, out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos)
{
Eina.Log.Debug("function efl_gfx_filter_state_get was called");
Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
if(wrapper != null) {
System.String _out_cur_state = default( System.String);
cur_val = default(double); System.String _out_next_state = default( System.String);
next_val = default(double); pos = default(double);
try {
((Filter)wrapper).GetFilterState( out _out_cur_state, out cur_val, out _out_next_state, out next_val, out pos);
} catch (Exception e) {
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
cur_state = _out_cur_state;
next_state = _out_next_state;
} else {
efl_gfx_filter_state_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out cur_state, out cur_val, out next_state, out next_val, out pos);
}
}
private static efl_gfx_filter_state_get_delegate efl_gfx_filter_state_get_static_delegate;
private delegate void efl_gfx_filter_state_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String cur_state, double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String next_state, double next_val, double pos);
public delegate void efl_gfx_filter_state_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String cur_state, double cur_val, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String next_state, double next_val, double pos);
public static Efl.Eo.FunctionWrapper efl_gfx_filter_state_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_state_set");
private static void filter_state_set(System.IntPtr obj, System.IntPtr pd, System.String cur_state, double cur_val, System.String next_state, double next_val, double pos)
{
Eina.Log.Debug("function efl_gfx_filter_state_set was called");
Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
if(wrapper != null) {
try {
((Filter)wrapper).SetFilterState( cur_state, cur_val, next_state, next_val, pos);
} catch (Exception e) {
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
} else {
efl_gfx_filter_state_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), cur_state, cur_val, next_state, next_val, pos);
}
}
private static efl_gfx_filter_state_set_delegate efl_gfx_filter_state_set_static_delegate;
private delegate void efl_gfx_filter_padding_get_delegate(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b);
public delegate void efl_gfx_filter_padding_get_api_delegate(System.IntPtr obj, out int l, out int r, out int t, out int b);
public static Efl.Eo.FunctionWrapper efl_gfx_filter_padding_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_padding_get");
private static void filter_padding_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b)
{
Eina.Log.Debug("function efl_gfx_filter_padding_get was called");
Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
if(wrapper != null) {
l = default( int); r = default( int); t = default( int); b = default( int);
try {
((Filter)wrapper).GetFilterPadding( out l, out r, out t, out b);
} catch (Exception e) {
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
} else {
efl_gfx_filter_padding_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out l, out r, out t, out b);
}
}
private static efl_gfx_filter_padding_get_delegate efl_gfx_filter_padding_get_static_delegate;
[return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] private delegate Efl.Gfx.Entity efl_gfx_filter_source_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name);
[return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] public delegate Efl.Gfx.Entity efl_gfx_filter_source_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name);
public static Efl.Eo.FunctionWrapper efl_gfx_filter_source_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_source_get");
private static Efl.Gfx.Entity filter_source_get(System.IntPtr obj, System.IntPtr pd, System.String name)
{
Eina.Log.Debug("function efl_gfx_filter_source_get was called");
Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
if(wrapper != null) {
Efl.Gfx.Entity _ret_var = default(Efl.Gfx.Entity);
try {
_ret_var = ((Filter)wrapper).GetFilterSource( name);
} catch (Exception e) {
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
return _ret_var;
} else {
return efl_gfx_filter_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name);
}
}
private static efl_gfx_filter_source_get_delegate efl_gfx_filter_source_get_static_delegate;
private delegate void efl_gfx_filter_source_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.Entity source);
public delegate void efl_gfx_filter_source_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest))] Efl.Gfx.Entity source);
public static Efl.Eo.FunctionWrapper efl_gfx_filter_source_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_source_set");
private static void filter_source_set(System.IntPtr obj, System.IntPtr pd, System.String name, Efl.Gfx.Entity source)
{
Eina.Log.Debug("function efl_gfx_filter_source_set was called");
Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
if(wrapper != null) {
try {
((Filter)wrapper).SetFilterSource( name, source);
} catch (Exception e) {
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
} else {
efl_gfx_filter_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, source);
}
}
private static efl_gfx_filter_source_set_delegate efl_gfx_filter_source_set_static_delegate;
private delegate void efl_gfx_filter_data_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String value, [MarshalAs(UnmanagedType.U1)] out bool execute);
public delegate void efl_gfx_filter_data_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] out System.String value, [MarshalAs(UnmanagedType.U1)] out bool execute);
public static Efl.Eo.FunctionWrapper efl_gfx_filter_data_get_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_data_get");
private static void filter_data_get(System.IntPtr obj, System.IntPtr pd, System.String name, out System.String value, out bool execute)
{
Eina.Log.Debug("function efl_gfx_filter_data_get was called");
Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
if(wrapper != null) {
System.String _out_value = default( System.String);
execute = default(bool);
try {
((Filter)wrapper).GetFilterData( name, out _out_value, out execute);
} catch (Exception e) {
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
value = _out_value;
} else {
efl_gfx_filter_data_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, out value, out execute);
}
}
private static efl_gfx_filter_data_get_delegate efl_gfx_filter_data_get_static_delegate;
private delegate void efl_gfx_filter_data_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value, [MarshalAs(UnmanagedType.U1)] bool execute);
public delegate void efl_gfx_filter_data_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String value, [MarshalAs(UnmanagedType.U1)] bool execute);
public static Efl.Eo.FunctionWrapper efl_gfx_filter_data_set_ptr = new Efl.Eo.FunctionWrapper(_Module, "efl_gfx_filter_data_set");
private static void filter_data_set(System.IntPtr obj, System.IntPtr pd, System.String name, System.String value, bool execute)
{
Eina.Log.Debug("function efl_gfx_filter_data_set was called");
Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
if(wrapper != null) {
try {
((Filter)wrapper).SetFilterData( name, value, execute);
} catch (Exception e) {
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
} else {
efl_gfx_filter_data_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, value, execute);
}
}
private static efl_gfx_filter_data_set_delegate efl_gfx_filter_data_set_static_delegate;
}
} }