1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.Threading;
7 using System.ComponentModel;
12 /// <summary>Graphical filters can be applied to any object implementing this interface.
13 /// 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".
15 /// This was a beta feature since 1.15.</summary>
16 [Efl.Gfx.IFilterConcrete.NativeMethods]
17 public interface IFilter :
18 Efl.Eo.IWrapper, IDisposable
20 /// <summary>Gets the code of the filter program set on this object. May be <c>null</c>.</summary>
21 /// <param name="code">The Lua program source code.</param>
22 /// <param name="name">An optional name for this filter.</param>
23 void GetFilterProgram(out System.String code, out System.String name);
24 /// <summary>Set a graphical filter program on this object.
25 /// Valid for Text and Image objects at the moment.
27 /// 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.
29 /// Set to <c>null</c> to disable filtering.</summary>
30 /// <param name="code">The Lua program source code.</param>
31 /// <param name="name">An optional name for this filter.</param>
32 void SetFilterProgram(System.String code, System.String name);
33 /// <summary>Set the current state of the filter.
34 /// This should be used by Edje (EFL's internal layout engine), but could also be used when implementing animations programmatically.
36 /// 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.</summary>
37 /// <param name="cur_state">Current state of the filter</param>
38 /// <param name="cur_val">Current value</param>
39 /// <param name="next_state">Next filter state, optional</param>
40 /// <param name="next_val">Next value, optional</param>
41 /// <param name="pos">Position, optional</param>
42 void GetFilterState(out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos);
43 /// <summary>Set the current state of the filter.
44 /// This should be used by Edje (EFL's internal layout engine), but could also be used when implementing animations programmatically.
46 /// 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.</summary>
47 /// <param name="cur_state">Current state of the filter</param>
48 /// <param name="cur_val">Current value</param>
49 /// <param name="next_state">Next filter state, optional</param>
50 /// <param name="next_val">Next value, optional</param>
51 /// <param name="pos">Position, optional</param>
52 void SetFilterState(System.String cur_state, double cur_val, System.String next_state, double next_val, double pos);
53 /// <summary>Gets the padding required to apply this filter.</summary>
54 /// <param name="l">Padding on the left</param>
55 /// <param name="r">Padding on the right</param>
56 /// <param name="t">Padding on the top</param>
57 /// <param name="b">Padding on the bottom</param>
58 void GetFilterPadding(out int l, out int r, out int t, out int b);
59 /// <summary>Bind an object to use as a mask or texture in a filter program.
60 /// This will create automatically a new RGBA buffer containing the source object's pixels (as it is rendered).</summary>
61 /// <param name="name">Buffer name as used in the program.</param>
62 /// <returns>Object to use as a source of pixels.</returns>
63 Efl.Gfx.IEntity GetFilterSource(System.String name);
64 /// <summary>Bind an object to use as a mask or texture in a filter program.
65 /// This will create automatically a new RGBA buffer containing the source object's pixels (as it is rendered).</summary>
66 /// <param name="name">Buffer name as used in the program.</param>
67 /// <param name="source">Object to use as a source of pixels.</param>
68 void SetFilterSource(System.String name, Efl.Gfx.IEntity source);
69 /// <summary>Extra data used by the filter program.
70 /// 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...
72 /// 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.</summary>
73 /// <param name="name">Name of the global variable</param>
74 /// <param name="value">String value to use as data</param>
75 /// <param name="execute">If <c>true</c>, execute 'name = value'</param>
76 void GetFilterData(System.String name, out System.String value, out bool execute);
77 /// <summary>Extra data used by the filter program.
78 /// 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...
80 /// 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.</summary>
81 /// <param name="name">Name of the global variable</param>
82 /// <param name="value">String value to use as data</param>
83 /// <param name="execute">If <c>true</c>, execute 'name = value'</param>
84 void SetFilterData(System.String name, System.String value, bool execute);
86 /// <summary>Graphical filters can be applied to any object implementing this interface.
87 /// 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".
89 /// This was a beta feature since 1.15.</summary>
90 sealed public class IFilterConcrete :
95 ///<summary>Pointer to the native class description.</summary>
96 public override System.IntPtr NativeClass
100 if (((object)this).GetType() == typeof(IFilterConcrete))
102 return GetEflClassStatic();
106 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
111 [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr
112 efl_gfx_filter_interface_get();
113 /// <summary>Initializes a new instance of the <see cref="IFilter"/> class.
114 /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
115 private IFilterConcrete(System.IntPtr raw) : base(raw)
119 /// <summary>Gets the code of the filter program set on this object. May be <c>null</c>.</summary>
120 /// <param name="code">The Lua program source code.</param>
121 /// <param name="name">An optional name for this filter.</param>
122 public void GetFilterProgram(out System.String code, out System.String name) {
123 Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_program_get_ptr.Value.Delegate(this.NativeHandle,out code, out name);
124 Eina.Error.RaiseIfUnhandledException();
126 /// <summary>Set a graphical filter program on this object.
127 /// Valid for Text and Image objects at the moment.
129 /// 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.
131 /// Set to <c>null</c> to disable filtering.</summary>
132 /// <param name="code">The Lua program source code.</param>
133 /// <param name="name">An optional name for this filter.</param>
134 public void SetFilterProgram(System.String code, System.String name) {
135 Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_program_set_ptr.Value.Delegate(this.NativeHandle,code, name);
136 Eina.Error.RaiseIfUnhandledException();
138 /// <summary>Set the current state of the filter.
139 /// This should be used by Edje (EFL's internal layout engine), but could also be used when implementing animations programmatically.
141 /// 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.</summary>
142 /// <param name="cur_state">Current state of the filter</param>
143 /// <param name="cur_val">Current value</param>
144 /// <param name="next_state">Next filter state, optional</param>
145 /// <param name="next_val">Next value, optional</param>
146 /// <param name="pos">Position, optional</param>
147 public void GetFilterState(out System.String cur_state, out double cur_val, out System.String next_state, out double next_val, out double pos) {
148 Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_state_get_ptr.Value.Delegate(this.NativeHandle,out cur_state, out cur_val, out next_state, out next_val, out pos);
149 Eina.Error.RaiseIfUnhandledException();
151 /// <summary>Set the current state of the filter.
152 /// This should be used by Edje (EFL's internal layout engine), but could also be used when implementing animations programmatically.
154 /// 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.</summary>
155 /// <param name="cur_state">Current state of the filter</param>
156 /// <param name="cur_val">Current value</param>
157 /// <param name="next_state">Next filter state, optional</param>
158 /// <param name="next_val">Next value, optional</param>
159 /// <param name="pos">Position, optional</param>
160 public void SetFilterState(System.String cur_state, double cur_val, System.String next_state, double next_val, double pos) {
161 Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_state_set_ptr.Value.Delegate(this.NativeHandle,cur_state, cur_val, next_state, next_val, pos);
162 Eina.Error.RaiseIfUnhandledException();
164 /// <summary>Gets the padding required to apply this filter.</summary>
165 /// <param name="l">Padding on the left</param>
166 /// <param name="r">Padding on the right</param>
167 /// <param name="t">Padding on the top</param>
168 /// <param name="b">Padding on the bottom</param>
169 public void GetFilterPadding(out int l, out int r, out int t, out int b) {
170 Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_padding_get_ptr.Value.Delegate(this.NativeHandle,out l, out r, out t, out b);
171 Eina.Error.RaiseIfUnhandledException();
173 /// <summary>Bind an object to use as a mask or texture in a filter program.
174 /// This will create automatically a new RGBA buffer containing the source object's pixels (as it is rendered).</summary>
175 /// <param name="name">Buffer name as used in the program.</param>
176 /// <returns>Object to use as a source of pixels.</returns>
177 public Efl.Gfx.IEntity GetFilterSource(System.String name) {
178 var _ret_var = Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_source_get_ptr.Value.Delegate(this.NativeHandle,name);
179 Eina.Error.RaiseIfUnhandledException();
182 /// <summary>Bind an object to use as a mask or texture in a filter program.
183 /// This will create automatically a new RGBA buffer containing the source object's pixels (as it is rendered).</summary>
184 /// <param name="name">Buffer name as used in the program.</param>
185 /// <param name="source">Object to use as a source of pixels.</param>
186 public void SetFilterSource(System.String name, Efl.Gfx.IEntity source) {
187 Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_source_set_ptr.Value.Delegate(this.NativeHandle,name, source);
188 Eina.Error.RaiseIfUnhandledException();
190 /// <summary>Extra data used by the filter program.
191 /// 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...
193 /// 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.</summary>
194 /// <param name="name">Name of the global variable</param>
195 /// <param name="value">String value to use as data</param>
196 /// <param name="execute">If <c>true</c>, execute 'name = value'</param>
197 public void GetFilterData(System.String name, out System.String value, out bool execute) {
198 Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_data_get_ptr.Value.Delegate(this.NativeHandle,name, out value, out execute);
199 Eina.Error.RaiseIfUnhandledException();
201 /// <summary>Extra data used by the filter program.
202 /// 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...
204 /// 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.</summary>
205 /// <param name="name">Name of the global variable</param>
206 /// <param name="value">String value to use as data</param>
207 /// <param name="execute">If <c>true</c>, execute 'name = value'</param>
208 public void SetFilterData(System.String name, System.String value, bool execute) {
209 Efl.Gfx.IFilterConcrete.NativeMethods.efl_gfx_filter_data_set_ptr.Value.Delegate(this.NativeHandle,name, value, execute);
210 Eina.Error.RaiseIfUnhandledException();
212 private static IntPtr GetEflClassStatic()
214 return Efl.Gfx.IFilterConcrete.efl_gfx_filter_interface_get();
216 /// <summary>Wrapper for native methods and virtual method delegates.
217 /// For internal use by generated code only.</summary>
218 public class NativeMethods : Efl.Eo.NativeClass
220 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl);
221 /// <summary>Gets the list of Eo operations to override.</summary>
222 /// <returns>The list of Eo operations to be overload.</returns>
223 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
225 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
226 var methods = Efl.Eo.Globals.GetUserMethods(type);
228 if (efl_gfx_filter_program_get_static_delegate == null)
230 efl_gfx_filter_program_get_static_delegate = new efl_gfx_filter_program_get_delegate(filter_program_get);
233 if (methods.FirstOrDefault(m => m.Name == "GetFilterProgram") != null)
235 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) });
238 if (efl_gfx_filter_program_set_static_delegate == null)
240 efl_gfx_filter_program_set_static_delegate = new efl_gfx_filter_program_set_delegate(filter_program_set);
243 if (methods.FirstOrDefault(m => m.Name == "SetFilterProgram") != null)
245 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) });
248 if (efl_gfx_filter_state_get_static_delegate == null)
250 efl_gfx_filter_state_get_static_delegate = new efl_gfx_filter_state_get_delegate(filter_state_get);
253 if (methods.FirstOrDefault(m => m.Name == "GetFilterState") != null)
255 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) });
258 if (efl_gfx_filter_state_set_static_delegate == null)
260 efl_gfx_filter_state_set_static_delegate = new efl_gfx_filter_state_set_delegate(filter_state_set);
263 if (methods.FirstOrDefault(m => m.Name == "SetFilterState") != null)
265 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) });
268 if (efl_gfx_filter_padding_get_static_delegate == null)
270 efl_gfx_filter_padding_get_static_delegate = new efl_gfx_filter_padding_get_delegate(filter_padding_get);
273 if (methods.FirstOrDefault(m => m.Name == "GetFilterPadding") != null)
275 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) });
278 if (efl_gfx_filter_source_get_static_delegate == null)
280 efl_gfx_filter_source_get_static_delegate = new efl_gfx_filter_source_get_delegate(filter_source_get);
283 if (methods.FirstOrDefault(m => m.Name == "GetFilterSource") != null)
285 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) });
288 if (efl_gfx_filter_source_set_static_delegate == null)
290 efl_gfx_filter_source_set_static_delegate = new efl_gfx_filter_source_set_delegate(filter_source_set);
293 if (methods.FirstOrDefault(m => m.Name == "SetFilterSource") != null)
295 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) });
298 if (efl_gfx_filter_data_get_static_delegate == null)
300 efl_gfx_filter_data_get_static_delegate = new efl_gfx_filter_data_get_delegate(filter_data_get);
303 if (methods.FirstOrDefault(m => m.Name == "GetFilterData") != null)
305 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) });
308 if (efl_gfx_filter_data_set_static_delegate == null)
310 efl_gfx_filter_data_set_static_delegate = new efl_gfx_filter_data_set_delegate(filter_data_set);
313 if (methods.FirstOrDefault(m => m.Name == "SetFilterData") != null)
315 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) });
320 /// <summary>Returns the Eo class for the native methods of this class.</summary>
321 /// <returns>The native class pointer.</returns>
322 public override IntPtr GetEflClass()
324 return Efl.Gfx.IFilterConcrete.efl_gfx_filter_interface_get();
327 #pragma warning disable CA1707, CS1591, SA1300, SA1600
330 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);
333 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);
335 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");
337 private static void filter_program_get(System.IntPtr obj, System.IntPtr pd, out System.String code, out System.String name)
339 Eina.Log.Debug("function efl_gfx_filter_program_get was called");
340 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
343 System.String _out_code = default(System.String);
344 System.String _out_name = default(System.String);
348 ((IFilter)ws.Target).GetFilterProgram(out _out_code, out _out_name);
352 Eina.Log.Warning($"Callback error: {e.ToString()}");
353 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
362 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);
366 private static efl_gfx_filter_program_get_delegate efl_gfx_filter_program_get_static_delegate;
369 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);
372 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);
374 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");
376 private static void filter_program_set(System.IntPtr obj, System.IntPtr pd, System.String code, System.String name)
378 Eina.Log.Debug("function efl_gfx_filter_program_set was called");
379 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
385 ((IFilter)ws.Target).SetFilterProgram(code, name);
389 Eina.Log.Warning($"Callback error: {e.ToString()}");
390 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
397 efl_gfx_filter_program_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), code, name);
401 private static efl_gfx_filter_program_set_delegate efl_gfx_filter_program_set_static_delegate;
404 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);
407 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);
409 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");
411 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)
413 Eina.Log.Debug("function efl_gfx_filter_state_get was called");
414 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
417 System.String _out_cur_state = default(System.String);
418 cur_val = default(double); System.String _out_next_state = default(System.String);
419 next_val = default(double); pos = default(double);
422 ((IFilter)ws.Target).GetFilterState(out _out_cur_state, out cur_val, out _out_next_state, out next_val, out pos);
426 Eina.Log.Warning($"Callback error: {e.ToString()}");
427 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
430 cur_state = _out_cur_state;
431 next_state = _out_next_state;
436 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);
440 private static efl_gfx_filter_state_get_delegate efl_gfx_filter_state_get_static_delegate;
443 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);
446 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);
448 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");
450 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)
452 Eina.Log.Debug("function efl_gfx_filter_state_set was called");
453 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
459 ((IFilter)ws.Target).SetFilterState(cur_state, cur_val, next_state, next_val, pos);
463 Eina.Log.Warning($"Callback error: {e.ToString()}");
464 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
471 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);
475 private static efl_gfx_filter_state_set_delegate efl_gfx_filter_state_set_static_delegate;
478 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);
481 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);
483 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");
485 private static void filter_padding_get(System.IntPtr obj, System.IntPtr pd, out int l, out int r, out int t, out int b)
487 Eina.Log.Debug("function efl_gfx_filter_padding_get was called");
488 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
491 l = default(int); r = default(int); t = default(int); b = default(int);
494 ((IFilter)ws.Target).GetFilterPadding(out l, out r, out t, out b);
498 Eina.Log.Warning($"Callback error: {e.ToString()}");
499 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
506 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);
510 private static efl_gfx_filter_padding_get_delegate efl_gfx_filter_padding_get_static_delegate;
512 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
513 private delegate Efl.Gfx.IEntity efl_gfx_filter_source_get_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name);
515 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))]
516 public delegate Efl.Gfx.IEntity efl_gfx_filter_source_get_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String name);
518 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");
520 private static Efl.Gfx.IEntity filter_source_get(System.IntPtr obj, System.IntPtr pd, System.String name)
522 Eina.Log.Debug("function efl_gfx_filter_source_get was called");
523 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
526 Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity);
529 _ret_var = ((IFilter)ws.Target).GetFilterSource(name);
533 Eina.Log.Warning($"Callback error: {e.ToString()}");
534 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
542 return efl_gfx_filter_source_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name);
546 private static efl_gfx_filter_source_get_delegate efl_gfx_filter_source_get_static_delegate;
549 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.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity source);
552 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.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity source);
554 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");
556 private static void filter_source_set(System.IntPtr obj, System.IntPtr pd, System.String name, Efl.Gfx.IEntity source)
558 Eina.Log.Debug("function efl_gfx_filter_source_set was called");
559 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
565 ((IFilter)ws.Target).SetFilterSource(name, source);
569 Eina.Log.Warning($"Callback error: {e.ToString()}");
570 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
577 efl_gfx_filter_source_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, source);
581 private static efl_gfx_filter_source_set_delegate efl_gfx_filter_source_set_static_delegate;
584 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);
587 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);
589 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");
591 private static void filter_data_get(System.IntPtr obj, System.IntPtr pd, System.String name, out System.String value, out bool execute)
593 Eina.Log.Debug("function efl_gfx_filter_data_get was called");
594 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
597 System.String _out_value = default(System.String);
598 execute = default(bool);
601 ((IFilter)ws.Target).GetFilterData(name, out _out_value, out execute);
605 Eina.Log.Warning($"Callback error: {e.ToString()}");
606 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
614 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);
618 private static efl_gfx_filter_data_get_delegate efl_gfx_filter_data_get_static_delegate;
621 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);
624 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);
626 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");
628 private static void filter_data_set(System.IntPtr obj, System.IntPtr pd, System.String name, System.String value, bool execute)
630 Eina.Log.Debug("function efl_gfx_filter_data_set was called");
631 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
637 ((IFilter)ws.Target).SetFilterData(name, value, execute);
641 Eina.Log.Warning($"Callback error: {e.ToString()}");
642 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
649 efl_gfx_filter_data_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), name, value, execute);
653 private static efl_gfx_filter_data_set_delegate efl_gfx_filter_data_set_static_delegate;
655 #pragma warning restore CA1707, CS1591, SA1300, SA1600