1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.ComponentModel;
7 namespace Efl { namespace Gfx {
8 /// <summary>Graphical filters can be applied to any object implementing this interface.
9 /// 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".
11 /// This was a beta feature since 1.15.
14 public interface Filter :
15 Efl.Eo.IWrapper, IDisposable
17 /// <summary>Gets the code of the filter program set on this object. May be <c>null</c>.
19 /// <param name="code">The Lua program source code.
21 /// <param name="name">An optional name for this filter.
23 /// <returns></returns>
24 void GetFilterProgram( out System.String code, out System.String name);
25 /// <summary>Set a graphical filter program on this object.
26 /// Valid for Text and Image objects at the moment.
28 /// 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.
30 /// Set to <c>null</c> to disable filtering.
32 /// <param name="code">The Lua program source code.
34 /// <param name="name">An optional name for this filter.
36 /// <returns></returns>
37 void SetFilterProgram( System.String code, System.String name);
38 /// <summary>Set the current state of the filter.
39 /// This should be used by Edje (EFL's internal layout engine), but could also be used when implementing animations programmatically.
41 /// A full state is defined by two states (name + value): origin state and target state of an ongoing animation, as well as the <c>pos</c> progress (from 0 to 1) of that animation timeline. The second state can be omitted if there is no ongoing animation.
43 /// <param name="cur_state">Current state of the filter
45 /// <param name="cur_val">Current value
47 /// <param name="next_state">Next filter state, optional
49 /// <param name="next_val">Next value, optional
51 /// <param name="pos">Position, optional
53 /// <returns></returns>
54 void GetFilterState( out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos);
55 /// <summary>Set the current state of the filter.
56 /// This should be used by Edje (EFL's internal layout engine), but could also be used when implementing animations programmatically.
58 /// A full state is defined by two states (name + value): origin state and target state of an ongoing animation, as well as the <c>pos</c> progress (from 0 to 1) of that animation timeline. The second state can be omitted if there is no ongoing animation.
60 /// <param name="cur_state">Current state of the filter
62 /// <param name="cur_val">Current value
64 /// <param name="next_state">Next filter state, optional
66 /// <param name="next_val">Next value, optional
68 /// <param name="pos">Position, optional
70 /// <returns></returns>
71 void SetFilterState( System.String cur_state, double cur_val, System.String next_state, double next_val, double pos);
72 /// <summary>Gets the padding required to apply this filter.
74 /// <param name="l">Padding on the left
76 /// <param name="r">Padding on the right
78 /// <param name="t">Padding on the top
80 /// <param name="b">Padding on the bottom
82 /// <returns></returns>
83 void GetFilterPadding( out int l, out int r, out int t, out int b);
84 /// <summary>Bind an object to use as a mask or texture in a filter program.
85 /// This will create automatically a new RGBA buffer containing the source object's pixels (as it is rendered).
87 /// <param name="name">Buffer name as used in the program.
89 /// <returns>Object to use as a source of pixels.
91 Efl.Gfx.Entity GetFilterSource( System.String name);
92 /// <summary>Bind an object to use as a mask or texture in a filter program.
93 /// This will create automatically a new RGBA buffer containing the source object's pixels (as it is rendered).
95 /// <param name="name">Buffer name as used in the program.
97 /// <param name="source">Object to use as a source of pixels.
99 /// <returns></returns>
100 void SetFilterSource( System.String name, Efl.Gfx.Entity source);
101 /// <summary>Extra data used by the filter program.
102 /// Each data element is a string (<c>value</c>) stored as a global variable <c>name</c>. The program is then responsible for conversion to numbers, tables, etc...
104 /// If the <c>execute</c> flag is set, then the <c>value</c> can be complex and run, as if the original Lua program contained a line 'name = value'. This can be used to pass in tables.
106 /// <param name="name">Name of the global variable
108 /// <param name="value">String value to use as data
110 /// <param name="execute">If <c>true</c>, execute 'name = value'
112 /// <returns></returns>
113 void GetFilterData( System.String name, out System.String value, out bool execute);
114 /// <summary>Extra data used by the filter program.
115 /// Each data element is a string (<c>value</c>) stored as a global variable <c>name</c>. The program is then responsible for conversion to numbers, tables, etc...
117 /// If the <c>execute</c> flag is set, then the <c>value</c> can be complex and run, as if the original Lua program contained a line 'name = value'. This can be used to pass in tables.
119 /// <param name="name">Name of the global variable
121 /// <param name="value">String value to use as data
123 /// <param name="execute">If <c>true</c>, execute 'name = value'
125 /// <returns></returns>
126 void SetFilterData( System.String name, System.String value, bool execute);
128 /// <summary>Graphical filters can be applied to any object implementing this interface.
129 /// 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".
131 /// This was a beta feature since 1.15.
133 sealed public class FilterConcrete :
138 ///<summary>Pointer to the native class description.</summary>
139 public System.IntPtr NativeClass {
141 if (((object)this).GetType() == typeof (FilterConcrete))
142 return Efl.Gfx.FilterNativeInherit.GetEflClassStatic();
144 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
147 private System.IntPtr handle;
148 ///<summary>Pointer to the native instance.</summary>
149 public System.IntPtr NativeHandle {
150 get { return handle; }
152 [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr
153 efl_gfx_filter_interface_get();
154 ///<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>
155 public FilterConcrete(System.IntPtr raw)
158 register_event_proxies();
160 ///<summary>Destructor.</summary>
165 ///<summary>Releases the underlying native instance.</summary>
166 void Dispose(bool disposing)
168 if (handle != System.IntPtr.Zero) {
169 Efl.Eo.Globals.efl_unref(handle);
170 handle = System.IntPtr.Zero;
173 ///<summary>Releases the underlying native instance.</summary>
174 public void Dispose()
177 GC.SuppressFinalize(this);
179 ///<summary>Casts obj into an instance of this type.</summary>
180 public static FilterConcrete static_cast(Efl.Object obj)
183 throw new System.ArgumentNullException("obj");
184 return new FilterConcrete(obj.NativeHandle);
186 ///<summary>Verifies if the given object is equal to this one.</summary>
187 public override bool Equals(object obj)
189 var other = obj as Efl.Object;
192 return this.NativeHandle == other.NativeHandle;
194 ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
195 public override int GetHashCode()
197 return this.NativeHandle.ToInt32();
199 ///<summary>Turns the native pointer into a string representation.</summary>
200 public override String ToString()
202 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
204 void register_event_proxies()
207 /// <summary>Gets the code of the filter program set on this object. May be <c>null</c>.
209 /// <param name="code">The Lua program source code.
211 /// <param name="name">An optional name for this filter.
213 /// <returns></returns>
214 public void GetFilterProgram( out System.String code, out System.String name) {
215 Efl.Gfx.FilterNativeInherit.efl_gfx_filter_program_get_ptr.Value.Delegate(this.NativeHandle, out code, out name);
216 Eina.Error.RaiseIfUnhandledException();
218 /// <summary>Set a graphical filter program on this object.
219 /// Valid for Text and Image objects at the moment.
221 /// 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.
223 /// Set to <c>null</c> to disable filtering.
225 /// <param name="code">The Lua program source code.
227 /// <param name="name">An optional name for this filter.
229 /// <returns></returns>
230 public void SetFilterProgram( System.String code, System.String name) {
231 Efl.Gfx.FilterNativeInherit.efl_gfx_filter_program_set_ptr.Value.Delegate(this.NativeHandle, code, name);
232 Eina.Error.RaiseIfUnhandledException();
234 /// <summary>Set the current state of the filter.
235 /// This should be used by Edje (EFL's internal layout engine), but could also be used when implementing animations programmatically.
237 /// A full state is defined by two states (name + value): origin state and target state of an ongoing animation, as well as the <c>pos</c> progress (from 0 to 1) of that animation timeline. The second state can be omitted if there is no ongoing animation.
239 /// <param name="cur_state">Current state of the filter
241 /// <param name="cur_val">Current value
243 /// <param name="next_state">Next filter state, optional
245 /// <param name="next_val">Next value, optional
247 /// <param name="pos">Position, optional
249 /// <returns></returns>
250 public void GetFilterState( out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos) {
251 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);
252 Eina.Error.RaiseIfUnhandledException();
254 /// <summary>Set the current state of the filter.
255 /// This should be used by Edje (EFL's internal layout engine), but could also be used when implementing animations programmatically.
257 /// A full state is defined by two states (name + value): origin state and target state of an ongoing animation, as well as the <c>pos</c> progress (from 0 to 1) of that animation timeline. The second state can be omitted if there is no ongoing animation.
259 /// <param name="cur_state">Current state of the filter
261 /// <param name="cur_val">Current value
263 /// <param name="next_state">Next filter state, optional
265 /// <param name="next_val">Next value, optional
267 /// <param name="pos">Position, optional
269 /// <returns></returns>
270 public void SetFilterState( System.String cur_state, double cur_val, System.String next_state, double next_val, double pos) {
271 Efl.Gfx.FilterNativeInherit.efl_gfx_filter_state_set_ptr.Value.Delegate(this.NativeHandle, cur_state, cur_val, next_state, next_val, pos);
272 Eina.Error.RaiseIfUnhandledException();
274 /// <summary>Gets the padding required to apply this filter.
276 /// <param name="l">Padding on the left
278 /// <param name="r">Padding on the right
280 /// <param name="t">Padding on the top
282 /// <param name="b">Padding on the bottom
284 /// <returns></returns>
285 public void GetFilterPadding( out int l, out int r, out int t, out int b) {
286 Efl.Gfx.FilterNativeInherit.efl_gfx_filter_padding_get_ptr.Value.Delegate(this.NativeHandle, out l, out r, out t, out b);
287 Eina.Error.RaiseIfUnhandledException();
289 /// <summary>Bind an object to use as a mask or texture in a filter program.
290 /// This will create automatically a new RGBA buffer containing the source object's pixels (as it is rendered).
292 /// <param name="name">Buffer name as used in the program.
294 /// <returns>Object to use as a source of pixels.
296 public Efl.Gfx.Entity GetFilterSource( System.String name) {
297 var _ret_var = Efl.Gfx.FilterNativeInherit.efl_gfx_filter_source_get_ptr.Value.Delegate(this.NativeHandle, name);
298 Eina.Error.RaiseIfUnhandledException();
301 /// <summary>Bind an object to use as a mask or texture in a filter program.
302 /// This will create automatically a new RGBA buffer containing the source object's pixels (as it is rendered).
304 /// <param name="name">Buffer name as used in the program.
306 /// <param name="source">Object to use as a source of pixels.
308 /// <returns></returns>
309 public void SetFilterSource( System.String name, Efl.Gfx.Entity source) {
310 Efl.Gfx.FilterNativeInherit.efl_gfx_filter_source_set_ptr.Value.Delegate(this.NativeHandle, name, source);
311 Eina.Error.RaiseIfUnhandledException();
313 /// <summary>Extra data used by the filter program.
314 /// Each data element is a string (<c>value</c>) stored as a global variable <c>name</c>. The program is then responsible for conversion to numbers, tables, etc...
316 /// If the <c>execute</c> flag is set, then the <c>value</c> can be complex and run, as if the original Lua program contained a line 'name = value'. This can be used to pass in tables.
318 /// <param name="name">Name of the global variable
320 /// <param name="value">String value to use as data
322 /// <param name="execute">If <c>true</c>, execute 'name = value'
324 /// <returns></returns>
325 public void GetFilterData( System.String name, out System.String value, out bool execute) {
326 Efl.Gfx.FilterNativeInherit.efl_gfx_filter_data_get_ptr.Value.Delegate(this.NativeHandle, name, out value, out execute);
327 Eina.Error.RaiseIfUnhandledException();
329 /// <summary>Extra data used by the filter program.
330 /// Each data element is a string (<c>value</c>) stored as a global variable <c>name</c>. The program is then responsible for conversion to numbers, tables, etc...
332 /// If the <c>execute</c> flag is set, then the <c>value</c> can be complex and run, as if the original Lua program contained a line 'name = value'. This can be used to pass in tables.
334 /// <param name="name">Name of the global variable
336 /// <param name="value">String value to use as data
338 /// <param name="execute">If <c>true</c>, execute 'name = value'
340 /// <returns></returns>
341 public void SetFilterData( System.String name, System.String value, bool execute) {
342 Efl.Gfx.FilterNativeInherit.efl_gfx_filter_data_set_ptr.Value.Delegate(this.NativeHandle, name, value, execute);
343 Eina.Error.RaiseIfUnhandledException();
346 public class FilterNativeInherit : Efl.Eo.NativeClass{
347 public static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Efl);
348 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
350 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
351 if (efl_gfx_filter_program_get_static_delegate == null)
352 efl_gfx_filter_program_get_static_delegate = new efl_gfx_filter_program_get_delegate(filter_program_get);
353 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)});
354 if (efl_gfx_filter_program_set_static_delegate == null)
355 efl_gfx_filter_program_set_static_delegate = new efl_gfx_filter_program_set_delegate(filter_program_set);
356 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)});
357 if (efl_gfx_filter_state_get_static_delegate == null)
358 efl_gfx_filter_state_get_static_delegate = new efl_gfx_filter_state_get_delegate(filter_state_get);
359 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)});
360 if (efl_gfx_filter_state_set_static_delegate == null)
361 efl_gfx_filter_state_set_static_delegate = new efl_gfx_filter_state_set_delegate(filter_state_set);
362 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)});
363 if (efl_gfx_filter_padding_get_static_delegate == null)
364 efl_gfx_filter_padding_get_static_delegate = new efl_gfx_filter_padding_get_delegate(filter_padding_get);
365 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)});
366 if (efl_gfx_filter_source_get_static_delegate == null)
367 efl_gfx_filter_source_get_static_delegate = new efl_gfx_filter_source_get_delegate(filter_source_get);
368 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)});
369 if (efl_gfx_filter_source_set_static_delegate == null)
370 efl_gfx_filter_source_set_static_delegate = new efl_gfx_filter_source_set_delegate(filter_source_set);
371 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)});
372 if (efl_gfx_filter_data_get_static_delegate == null)
373 efl_gfx_filter_data_get_static_delegate = new efl_gfx_filter_data_get_delegate(filter_data_get);
374 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)});
375 if (efl_gfx_filter_data_set_static_delegate == null)
376 efl_gfx_filter_data_set_static_delegate = new efl_gfx_filter_data_set_delegate(filter_data_set);
377 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)});
380 public override IntPtr GetEflClass()
382 return Efl.Gfx.FilterConcrete.efl_gfx_filter_interface_get();
384 public static IntPtr GetEflClassStatic()
386 return Efl.Gfx.FilterConcrete.efl_gfx_filter_interface_get();
390 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);
393 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);
394 public static Efl.Eo.FunctionWrapper<efl_gfx_filter_program_get_api_delegate> efl_gfx_filter_program_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_filter_program_get_api_delegate>(_Module, "efl_gfx_filter_program_get");
395 private static void filter_program_get(System.IntPtr obj, System.IntPtr pd, out System.String code, out System.String name)
397 Eina.Log.Debug("function efl_gfx_filter_program_get was called");
398 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
399 if(wrapper != null) {
400 System.String _out_code = default( System.String);
401 System.String _out_name = default( System.String);
404 ((Filter)wrapper).GetFilterProgram( out _out_code, out _out_name);
405 } catch (Exception e) {
406 Eina.Log.Warning($"Callback error: {e.ToString()}");
407 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
412 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);
415 private static efl_gfx_filter_program_get_delegate efl_gfx_filter_program_get_static_delegate;
418 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);
421 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);
422 public static Efl.Eo.FunctionWrapper<efl_gfx_filter_program_set_api_delegate> efl_gfx_filter_program_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_filter_program_set_api_delegate>(_Module, "efl_gfx_filter_program_set");
423 private static void filter_program_set(System.IntPtr obj, System.IntPtr pd, System.String code, System.String name)
425 Eina.Log.Debug("function efl_gfx_filter_program_set was called");
426 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
427 if(wrapper != null) {
430 ((Filter)wrapper).SetFilterProgram( code, name);
431 } catch (Exception e) {
432 Eina.Log.Warning($"Callback error: {e.ToString()}");
433 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
436 efl_gfx_filter_program_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), code, name);
439 private static efl_gfx_filter_program_set_delegate efl_gfx_filter_program_set_static_delegate;
442 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);
445 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);
446 public static Efl.Eo.FunctionWrapper<efl_gfx_filter_state_get_api_delegate> efl_gfx_filter_state_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_filter_state_get_api_delegate>(_Module, "efl_gfx_filter_state_get");
447 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)
449 Eina.Log.Debug("function efl_gfx_filter_state_get was called");
450 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
451 if(wrapper != null) {
452 System.String _out_cur_state = default( System.String);
453 cur_val = default(double); System.String _out_next_state = default( System.String);
454 next_val = default(double); pos = default(double);
456 ((Filter)wrapper).GetFilterState( out _out_cur_state, out cur_val, out _out_next_state, out next_val, out pos);
457 } catch (Exception e) {
458 Eina.Log.Warning($"Callback error: {e.ToString()}");
459 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
461 cur_state = _out_cur_state;
462 next_state = _out_next_state;
464 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);
467 private static efl_gfx_filter_state_get_delegate efl_gfx_filter_state_get_static_delegate;
470 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);
473 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);
474 public static Efl.Eo.FunctionWrapper<efl_gfx_filter_state_set_api_delegate> efl_gfx_filter_state_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_filter_state_set_api_delegate>(_Module, "efl_gfx_filter_state_set");
475 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)
477 Eina.Log.Debug("function efl_gfx_filter_state_set was called");
478 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
479 if(wrapper != null) {
482 ((Filter)wrapper).SetFilterState( cur_state, cur_val, next_state, next_val, pos);
483 } catch (Exception e) {
484 Eina.Log.Warning($"Callback error: {e.ToString()}");
485 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
488 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);
491 private static efl_gfx_filter_state_set_delegate efl_gfx_filter_state_set_static_delegate;
494 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);
497 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);
498 public static Efl.Eo.FunctionWrapper<efl_gfx_filter_padding_get_api_delegate> efl_gfx_filter_padding_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_filter_padding_get_api_delegate>(_Module, "efl_gfx_filter_padding_get");
499 private static void filter_padding_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b)
501 Eina.Log.Debug("function efl_gfx_filter_padding_get was called");
502 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
503 if(wrapper != null) {
504 l = default( int); r = default( int); t = default( int); b = default( int);
506 ((Filter)wrapper).GetFilterPadding( out l, out r, out t, out b);
507 } catch (Exception e) {
508 Eina.Log.Warning($"Callback error: {e.ToString()}");
509 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
512 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);
515 private static efl_gfx_filter_padding_get_delegate efl_gfx_filter_padding_get_static_delegate;
518 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] 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);
521 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.EntityConcrete, Efl.Eo.NonOwnTag>))] 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);
522 public static Efl.Eo.FunctionWrapper<efl_gfx_filter_source_get_api_delegate> efl_gfx_filter_source_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_filter_source_get_api_delegate>(_Module, "efl_gfx_filter_source_get");
523 private static Efl.Gfx.Entity filter_source_get(System.IntPtr obj, System.IntPtr pd, System.String name)
525 Eina.Log.Debug("function efl_gfx_filter_source_get was called");
526 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
527 if(wrapper != null) {
528 Efl.Gfx.Entity _ret_var = default(Efl.Gfx.Entity);
530 _ret_var = ((Filter)wrapper).GetFilterSource( name);
531 } catch (Exception e) {
532 Eina.Log.Warning($"Callback error: {e.ToString()}");
533 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
537 return efl_gfx_filter_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name);
540 private static efl_gfx_filter_source_get_delegate efl_gfx_filter_source_get_static_delegate;
543 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.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity source);
546 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.EntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.Entity source);
547 public static Efl.Eo.FunctionWrapper<efl_gfx_filter_source_set_api_delegate> efl_gfx_filter_source_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_filter_source_set_api_delegate>(_Module, "efl_gfx_filter_source_set");
548 private static void filter_source_set(System.IntPtr obj, System.IntPtr pd, System.String name, Efl.Gfx.Entity source)
550 Eina.Log.Debug("function efl_gfx_filter_source_set was called");
551 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
552 if(wrapper != null) {
555 ((Filter)wrapper).SetFilterSource( name, source);
556 } catch (Exception e) {
557 Eina.Log.Warning($"Callback error: {e.ToString()}");
558 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
561 efl_gfx_filter_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, source);
564 private static efl_gfx_filter_source_set_delegate efl_gfx_filter_source_set_static_delegate;
567 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);
570 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);
571 public static Efl.Eo.FunctionWrapper<efl_gfx_filter_data_get_api_delegate> efl_gfx_filter_data_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_filter_data_get_api_delegate>(_Module, "efl_gfx_filter_data_get");
572 private static void filter_data_get(System.IntPtr obj, System.IntPtr pd, System.String name, out System.String value, out bool execute)
574 Eina.Log.Debug("function efl_gfx_filter_data_get was called");
575 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
576 if(wrapper != null) {
577 System.String _out_value = default( System.String);
578 execute = default(bool);
580 ((Filter)wrapper).GetFilterData( name, out _out_value, out execute);
581 } catch (Exception e) {
582 Eina.Log.Warning($"Callback error: {e.ToString()}");
583 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
587 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);
590 private static efl_gfx_filter_data_get_delegate efl_gfx_filter_data_get_static_delegate;
593 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);
596 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);
597 public static Efl.Eo.FunctionWrapper<efl_gfx_filter_data_set_api_delegate> efl_gfx_filter_data_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_filter_data_set_api_delegate>(_Module, "efl_gfx_filter_data_set");
598 private static void filter_data_set(System.IntPtr obj, System.IntPtr pd, System.String name, System.String value, bool execute)
600 Eina.Log.Debug("function efl_gfx_filter_data_set was called");
601 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
602 if(wrapper != null) {
605 ((Filter)wrapper).SetFilterData( name, value, execute);
606 } catch (Exception e) {
607 Eina.Log.Warning($"Callback error: {e.ToString()}");
608 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
611 efl_gfx_filter_data_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, value, execute);
614 private static efl_gfx_filter_data_set_delegate efl_gfx_filter_data_set_static_delegate;