1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.ComponentModel;
7 namespace Efl { namespace Ui {
8 /// <summary>Elementary pan class</summary>
10 public class Pan : Efl.Canvas.Group, Efl.Eo.IWrapper,Efl.IContent
12 ///<summary>Pointer to the native class description.</summary>
13 public override System.IntPtr NativeClass {
15 if (((object)this).GetType() == typeof (Pan))
16 return Efl.Ui.PanNativeInherit.GetEflClassStatic();
18 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
21 [System.Runtime.InteropServices.DllImport(efl.Libs.Elementary)] internal static extern System.IntPtr
22 efl_ui_pan_class_get();
23 ///<summary>Creates a new instance.</summary>
24 ///<param name="parent">Parent instance.</param>
25 public Pan(Efl.Object parent= null
27 base(efl_ui_pan_class_get(), typeof(Pan), parent)
29 FinishInstantiation();
31 ///<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>
32 protected Pan(System.IntPtr raw) : base(raw)
34 RegisterEventProxies();
36 ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
37 protected Pan(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {}
38 ///<summary>Verifies if the given object is equal to this one.</summary>
39 public override bool Equals(object obj)
41 var other = obj as Efl.Object;
44 return this.NativeHandle == other.NativeHandle;
46 ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
47 public override int GetHashCode()
49 return this.NativeHandle.ToInt32();
51 ///<summary>Turns the native pointer into a string representation.</summary>
52 public override String ToString()
54 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
56 private static object PanContentChangedEvtKey = new object();
57 /// <summary>Called when pan content changed</summary>
58 public event EventHandler PanContentChangedEvt
62 string key = "_EFL_UI_PAN_EVENT_PAN_CONTENT_CHANGED";
63 if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_PanContentChangedEvt_delegate)) {
64 eventHandlers.AddHandler(PanContentChangedEvtKey , value);
66 Eina.Log.Error($"Error adding proxy for event {key}");
71 string key = "_EFL_UI_PAN_EVENT_PAN_CONTENT_CHANGED";
72 if (RemoveNativeEventHandler(key, this.evt_PanContentChangedEvt_delegate)) {
73 eventHandlers.RemoveHandler(PanContentChangedEvtKey , value);
75 Eina.Log.Error($"Error removing proxy for event {key}");
79 ///<summary>Method to raise event PanContentChangedEvt.</summary>
80 public void On_PanContentChangedEvt(EventArgs e)
84 evt = (EventHandler)eventHandlers[PanContentChangedEvtKey];
88 Efl.EventCb evt_PanContentChangedEvt_delegate;
89 private void on_PanContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
91 EventArgs args = EventArgs.Empty;
93 On_PanContentChangedEvt(args);
94 } catch (Exception e) {
95 Eina.Log.Error(e.ToString());
96 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
100 private static object PanViewportChangedEvtKey = new object();
101 /// <summary>Called when pan viewport changed</summary>
102 public event EventHandler PanViewportChangedEvt
106 string key = "_EFL_UI_PAN_EVENT_PAN_VIEWPORT_CHANGED";
107 if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_PanViewportChangedEvt_delegate)) {
108 eventHandlers.AddHandler(PanViewportChangedEvtKey , value);
110 Eina.Log.Error($"Error adding proxy for event {key}");
115 string key = "_EFL_UI_PAN_EVENT_PAN_VIEWPORT_CHANGED";
116 if (RemoveNativeEventHandler(key, this.evt_PanViewportChangedEvt_delegate)) {
117 eventHandlers.RemoveHandler(PanViewportChangedEvtKey , value);
119 Eina.Log.Error($"Error removing proxy for event {key}");
123 ///<summary>Method to raise event PanViewportChangedEvt.</summary>
124 public void On_PanViewportChangedEvt(EventArgs e)
128 evt = (EventHandler)eventHandlers[PanViewportChangedEvtKey];
130 evt?.Invoke(this, e);
132 Efl.EventCb evt_PanViewportChangedEvt_delegate;
133 private void on_PanViewportChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
135 EventArgs args = EventArgs.Empty;
137 On_PanViewportChangedEvt(args);
138 } catch (Exception e) {
139 Eina.Log.Error(e.ToString());
140 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
144 private static object PanPositionChangedEvtKey = new object();
145 /// <summary>Called when pan position changed</summary>
146 public event EventHandler PanPositionChangedEvt
150 string key = "_EFL_UI_PAN_EVENT_PAN_POSITION_CHANGED";
151 if (AddNativeEventHandler(efl.Libs.Elementary, key, this.evt_PanPositionChangedEvt_delegate)) {
152 eventHandlers.AddHandler(PanPositionChangedEvtKey , value);
154 Eina.Log.Error($"Error adding proxy for event {key}");
159 string key = "_EFL_UI_PAN_EVENT_PAN_POSITION_CHANGED";
160 if (RemoveNativeEventHandler(key, this.evt_PanPositionChangedEvt_delegate)) {
161 eventHandlers.RemoveHandler(PanPositionChangedEvtKey , value);
163 Eina.Log.Error($"Error removing proxy for event {key}");
167 ///<summary>Method to raise event PanPositionChangedEvt.</summary>
168 public void On_PanPositionChangedEvt(EventArgs e)
172 evt = (EventHandler)eventHandlers[PanPositionChangedEvtKey];
174 evt?.Invoke(this, e);
176 Efl.EventCb evt_PanPositionChangedEvt_delegate;
177 private void on_PanPositionChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
179 EventArgs args = EventArgs.Empty;
181 On_PanPositionChangedEvt(args);
182 } catch (Exception e) {
183 Eina.Log.Error(e.ToString());
184 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
188 private static object ContentChangedEvtKey = new object();
189 /// <summary>Sent after the content is set or unset using the current content object.
190 /// (Since EFL 1.22)</summary>
191 public event EventHandler<Efl.IContentContentChangedEvt_Args> ContentChangedEvt
195 string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED";
196 if (AddNativeEventHandler(efl.Libs.Efl, key, this.evt_ContentChangedEvt_delegate)) {
197 eventHandlers.AddHandler(ContentChangedEvtKey , value);
199 Eina.Log.Error($"Error adding proxy for event {key}");
204 string key = "_EFL_CONTENT_EVENT_CONTENT_CHANGED";
205 if (RemoveNativeEventHandler(key, this.evt_ContentChangedEvt_delegate)) {
206 eventHandlers.RemoveHandler(ContentChangedEvtKey , value);
208 Eina.Log.Error($"Error removing proxy for event {key}");
212 ///<summary>Method to raise event ContentChangedEvt.</summary>
213 public void On_ContentChangedEvt(Efl.IContentContentChangedEvt_Args e)
215 EventHandler<Efl.IContentContentChangedEvt_Args> evt;
217 evt = (EventHandler<Efl.IContentContentChangedEvt_Args>)eventHandlers[ContentChangedEvtKey];
219 evt?.Invoke(this, e);
221 Efl.EventCb evt_ContentChangedEvt_delegate;
222 private void on_ContentChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event.NativeStruct evt)
224 Efl.IContentContentChangedEvt_Args args = new Efl.IContentContentChangedEvt_Args();
225 args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Gfx.IEntityConcrete);
227 On_ContentChangedEvt(args);
228 } catch (Exception e) {
229 Eina.Log.Error(e.ToString());
230 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
234 ///<summary>Register the Eo event wrappers making the bridge to C# events. Internal usage only.</summary>
235 protected override void RegisterEventProxies()
237 base.RegisterEventProxies();
238 evt_PanContentChangedEvt_delegate = new Efl.EventCb(on_PanContentChangedEvt_NativeCallback);
239 evt_PanViewportChangedEvt_delegate = new Efl.EventCb(on_PanViewportChangedEvt_NativeCallback);
240 evt_PanPositionChangedEvt_delegate = new Efl.EventCb(on_PanPositionChangedEvt_NativeCallback);
241 evt_ContentChangedEvt_delegate = new Efl.EventCb(on_ContentChangedEvt_NativeCallback);
243 /// <summary>Position</summary>
244 /// <returns></returns>
245 virtual public Eina.Position2D GetPanPosition() {
246 var _ret_var = Efl.Ui.PanNativeInherit.efl_ui_pan_position_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
247 Eina.Error.RaiseIfUnhandledException();
250 /// <summary>Position</summary>
251 /// <param name="position"></param>
252 /// <returns></returns>
253 virtual public void SetPanPosition( Eina.Position2D position) {
254 Eina.Position2D.NativeStruct _in_position = position;
255 Efl.Ui.PanNativeInherit.efl_ui_pan_position_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_position);
256 Eina.Error.RaiseIfUnhandledException();
258 /// <summary>Content size</summary>
259 /// <returns></returns>
260 virtual public Eina.Size2D GetContentSize() {
261 var _ret_var = Efl.Ui.PanNativeInherit.efl_ui_pan_content_size_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
262 Eina.Error.RaiseIfUnhandledException();
265 /// <summary>The minimal position to scroll</summary>
266 /// <returns></returns>
267 virtual public Eina.Position2D GetPanPositionMin() {
268 var _ret_var = Efl.Ui.PanNativeInherit.efl_ui_pan_position_min_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
269 Eina.Error.RaiseIfUnhandledException();
272 /// <summary>The maximal position to scroll</summary>
273 /// <returns></returns>
274 virtual public Eina.Position2D GetPanPositionMax() {
275 var _ret_var = Efl.Ui.PanNativeInherit.efl_ui_pan_position_max_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
276 Eina.Error.RaiseIfUnhandledException();
279 /// <summary>Swallowed sub-object contained in this object.
280 /// (Since EFL 1.22)</summary>
281 /// <returns>The object to swallow.</returns>
282 virtual public Efl.Gfx.IEntity GetContent() {
283 var _ret_var = Efl.IContentNativeInherit.efl_content_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
284 Eina.Error.RaiseIfUnhandledException();
287 /// <summary>Swallowed sub-object contained in this object.
288 /// (Since EFL 1.22)</summary>
289 /// <param name="content">The object to swallow.</param>
290 /// <returns><c>true</c> on success, <c>false</c> otherwise</returns>
291 virtual public bool SetContent( Efl.Gfx.IEntity content) {
292 var _ret_var = Efl.IContentNativeInherit.efl_content_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), content);
293 Eina.Error.RaiseIfUnhandledException();
296 /// <summary>Unswallow the object in the current container and return it.
297 /// (Since EFL 1.22)</summary>
298 /// <returns>Unswallowed object</returns>
299 virtual public Efl.Gfx.IEntity UnsetContent() {
300 var _ret_var = Efl.IContentNativeInherit.efl_content_unset_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
301 Eina.Error.RaiseIfUnhandledException();
304 /// <summary>Position</summary>
306 public Eina.Position2D PanPosition {
307 get { return GetPanPosition(); }
308 set { SetPanPosition( value); }
310 /// <summary>Content size</summary>
312 public Eina.Size2D ContentSize {
313 get { return GetContentSize(); }
315 /// <summary>The minimal position to scroll</summary>
317 public Eina.Position2D PanPositionMin {
318 get { return GetPanPositionMin(); }
320 /// <summary>The maximal position to scroll</summary>
322 public Eina.Position2D PanPositionMax {
323 get { return GetPanPositionMax(); }
325 /// <summary>Swallowed sub-object contained in this object.
326 /// (Since EFL 1.22)</summary>
327 /// <value>The object to swallow.</value>
328 public Efl.Gfx.IEntity Content {
329 get { return GetContent(); }
330 set { SetContent( value); }
332 private static IntPtr GetEflClassStatic()
334 return Efl.Ui.Pan.efl_ui_pan_class_get();
337 public class PanNativeInherit : Efl.Canvas.GroupNativeInherit{
338 public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Elementary);
339 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
341 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
342 var methods = Efl.Eo.Globals.GetUserMethods(type);
343 if (efl_ui_pan_position_get_static_delegate == null)
344 efl_ui_pan_position_get_static_delegate = new efl_ui_pan_position_get_delegate(pan_position_get);
345 if (methods.FirstOrDefault(m => m.Name == "GetPanPosition") != null)
346 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_pan_position_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pan_position_get_static_delegate)});
347 if (efl_ui_pan_position_set_static_delegate == null)
348 efl_ui_pan_position_set_static_delegate = new efl_ui_pan_position_set_delegate(pan_position_set);
349 if (methods.FirstOrDefault(m => m.Name == "SetPanPosition") != null)
350 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_pan_position_set"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pan_position_set_static_delegate)});
351 if (efl_ui_pan_content_size_get_static_delegate == null)
352 efl_ui_pan_content_size_get_static_delegate = new efl_ui_pan_content_size_get_delegate(content_size_get);
353 if (methods.FirstOrDefault(m => m.Name == "GetContentSize") != null)
354 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_pan_content_size_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pan_content_size_get_static_delegate)});
355 if (efl_ui_pan_position_min_get_static_delegate == null)
356 efl_ui_pan_position_min_get_static_delegate = new efl_ui_pan_position_min_get_delegate(pan_position_min_get);
357 if (methods.FirstOrDefault(m => m.Name == "GetPanPositionMin") != null)
358 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_pan_position_min_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pan_position_min_get_static_delegate)});
359 if (efl_ui_pan_position_max_get_static_delegate == null)
360 efl_ui_pan_position_max_get_static_delegate = new efl_ui_pan_position_max_get_delegate(pan_position_max_get);
361 if (methods.FirstOrDefault(m => m.Name == "GetPanPositionMax") != null)
362 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_ui_pan_position_max_get"), func = Marshal.GetFunctionPointerForDelegate(efl_ui_pan_position_max_get_static_delegate)});
363 if (efl_content_get_static_delegate == null)
364 efl_content_get_static_delegate = new efl_content_get_delegate(content_get);
365 if (methods.FirstOrDefault(m => m.Name == "GetContent") != null)
366 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_get"), func = Marshal.GetFunctionPointerForDelegate(efl_content_get_static_delegate)});
367 if (efl_content_set_static_delegate == null)
368 efl_content_set_static_delegate = new efl_content_set_delegate(content_set);
369 if (methods.FirstOrDefault(m => m.Name == "SetContent") != null)
370 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_set"), func = Marshal.GetFunctionPointerForDelegate(efl_content_set_static_delegate)});
371 if (efl_content_unset_static_delegate == null)
372 efl_content_unset_static_delegate = new efl_content_unset_delegate(content_unset);
373 if (methods.FirstOrDefault(m => m.Name == "UnsetContent") != null)
374 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_content_unset"), func = Marshal.GetFunctionPointerForDelegate(efl_content_unset_static_delegate)});
375 descs.AddRange(base.GetEoOps(type));
378 public override IntPtr GetEflClass()
380 return Efl.Ui.Pan.efl_ui_pan_class_get();
382 public static new IntPtr GetEflClassStatic()
384 return Efl.Ui.Pan.efl_ui_pan_class_get();
388 private delegate Eina.Position2D.NativeStruct efl_ui_pan_position_get_delegate(System.IntPtr obj, System.IntPtr pd);
391 public delegate Eina.Position2D.NativeStruct efl_ui_pan_position_get_api_delegate(System.IntPtr obj);
392 public static Efl.Eo.FunctionWrapper<efl_ui_pan_position_get_api_delegate> efl_ui_pan_position_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_pan_position_get_api_delegate>(_Module, "efl_ui_pan_position_get");
393 private static Eina.Position2D.NativeStruct pan_position_get(System.IntPtr obj, System.IntPtr pd)
395 Eina.Log.Debug("function efl_ui_pan_position_get was called");
396 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
397 if(wrapper != null) {
398 Eina.Position2D _ret_var = default(Eina.Position2D);
400 _ret_var = ((Pan)wrapper).GetPanPosition();
401 } catch (Exception e) {
402 Eina.Log.Warning($"Callback error: {e.ToString()}");
403 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
407 return efl_ui_pan_position_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
410 private static efl_ui_pan_position_get_delegate efl_ui_pan_position_get_static_delegate;
413 private delegate void efl_ui_pan_position_set_delegate(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct position);
416 public delegate void efl_ui_pan_position_set_api_delegate(System.IntPtr obj, Eina.Position2D.NativeStruct position);
417 public static Efl.Eo.FunctionWrapper<efl_ui_pan_position_set_api_delegate> efl_ui_pan_position_set_ptr = new Efl.Eo.FunctionWrapper<efl_ui_pan_position_set_api_delegate>(_Module, "efl_ui_pan_position_set");
418 private static void pan_position_set(System.IntPtr obj, System.IntPtr pd, Eina.Position2D.NativeStruct position)
420 Eina.Log.Debug("function efl_ui_pan_position_set was called");
421 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
422 if(wrapper != null) {
423 Eina.Position2D _in_position = position;
426 ((Pan)wrapper).SetPanPosition( _in_position);
427 } catch (Exception e) {
428 Eina.Log.Warning($"Callback error: {e.ToString()}");
429 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
432 efl_ui_pan_position_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), position);
435 private static efl_ui_pan_position_set_delegate efl_ui_pan_position_set_static_delegate;
438 private delegate Eina.Size2D.NativeStruct efl_ui_pan_content_size_get_delegate(System.IntPtr obj, System.IntPtr pd);
441 public delegate Eina.Size2D.NativeStruct efl_ui_pan_content_size_get_api_delegate(System.IntPtr obj);
442 public static Efl.Eo.FunctionWrapper<efl_ui_pan_content_size_get_api_delegate> efl_ui_pan_content_size_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_pan_content_size_get_api_delegate>(_Module, "efl_ui_pan_content_size_get");
443 private static Eina.Size2D.NativeStruct content_size_get(System.IntPtr obj, System.IntPtr pd)
445 Eina.Log.Debug("function efl_ui_pan_content_size_get was called");
446 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
447 if(wrapper != null) {
448 Eina.Size2D _ret_var = default(Eina.Size2D);
450 _ret_var = ((Pan)wrapper).GetContentSize();
451 } catch (Exception e) {
452 Eina.Log.Warning($"Callback error: {e.ToString()}");
453 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
457 return efl_ui_pan_content_size_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
460 private static efl_ui_pan_content_size_get_delegate efl_ui_pan_content_size_get_static_delegate;
463 private delegate Eina.Position2D.NativeStruct efl_ui_pan_position_min_get_delegate(System.IntPtr obj, System.IntPtr pd);
466 public delegate Eina.Position2D.NativeStruct efl_ui_pan_position_min_get_api_delegate(System.IntPtr obj);
467 public static Efl.Eo.FunctionWrapper<efl_ui_pan_position_min_get_api_delegate> efl_ui_pan_position_min_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_pan_position_min_get_api_delegate>(_Module, "efl_ui_pan_position_min_get");
468 private static Eina.Position2D.NativeStruct pan_position_min_get(System.IntPtr obj, System.IntPtr pd)
470 Eina.Log.Debug("function efl_ui_pan_position_min_get was called");
471 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
472 if(wrapper != null) {
473 Eina.Position2D _ret_var = default(Eina.Position2D);
475 _ret_var = ((Pan)wrapper).GetPanPositionMin();
476 } catch (Exception e) {
477 Eina.Log.Warning($"Callback error: {e.ToString()}");
478 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
482 return efl_ui_pan_position_min_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
485 private static efl_ui_pan_position_min_get_delegate efl_ui_pan_position_min_get_static_delegate;
488 private delegate Eina.Position2D.NativeStruct efl_ui_pan_position_max_get_delegate(System.IntPtr obj, System.IntPtr pd);
491 public delegate Eina.Position2D.NativeStruct efl_ui_pan_position_max_get_api_delegate(System.IntPtr obj);
492 public static Efl.Eo.FunctionWrapper<efl_ui_pan_position_max_get_api_delegate> efl_ui_pan_position_max_get_ptr = new Efl.Eo.FunctionWrapper<efl_ui_pan_position_max_get_api_delegate>(_Module, "efl_ui_pan_position_max_get");
493 private static Eina.Position2D.NativeStruct pan_position_max_get(System.IntPtr obj, System.IntPtr pd)
495 Eina.Log.Debug("function efl_ui_pan_position_max_get was called");
496 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
497 if(wrapper != null) {
498 Eina.Position2D _ret_var = default(Eina.Position2D);
500 _ret_var = ((Pan)wrapper).GetPanPositionMax();
501 } catch (Exception e) {
502 Eina.Log.Warning($"Callback error: {e.ToString()}");
503 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
507 return efl_ui_pan_position_max_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
510 private static efl_ui_pan_position_max_get_delegate efl_ui_pan_position_max_get_static_delegate;
513 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] private delegate Efl.Gfx.IEntity efl_content_get_delegate(System.IntPtr obj, System.IntPtr pd);
516 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] public delegate Efl.Gfx.IEntity efl_content_get_api_delegate(System.IntPtr obj);
517 public static Efl.Eo.FunctionWrapper<efl_content_get_api_delegate> efl_content_get_ptr = new Efl.Eo.FunctionWrapper<efl_content_get_api_delegate>(_Module, "efl_content_get");
518 private static Efl.Gfx.IEntity content_get(System.IntPtr obj, System.IntPtr pd)
520 Eina.Log.Debug("function efl_content_get was called");
521 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
522 if(wrapper != null) {
523 Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity);
525 _ret_var = ((Pan)wrapper).GetContent();
526 } catch (Exception e) {
527 Eina.Log.Warning($"Callback error: {e.ToString()}");
528 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
532 return efl_content_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
535 private static efl_content_get_delegate efl_content_get_static_delegate;
538 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_content_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity content);
541 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_content_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] Efl.Gfx.IEntity content);
542 public static Efl.Eo.FunctionWrapper<efl_content_set_api_delegate> efl_content_set_ptr = new Efl.Eo.FunctionWrapper<efl_content_set_api_delegate>(_Module, "efl_content_set");
543 private static bool content_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.IEntity content)
545 Eina.Log.Debug("function efl_content_set was called");
546 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
547 if(wrapper != null) {
548 bool _ret_var = default(bool);
550 _ret_var = ((Pan)wrapper).SetContent( content);
551 } catch (Exception e) {
552 Eina.Log.Warning($"Callback error: {e.ToString()}");
553 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
557 return efl_content_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), content);
560 private static efl_content_set_delegate efl_content_set_static_delegate;
563 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] private delegate Efl.Gfx.IEntity efl_content_unset_delegate(System.IntPtr obj, System.IntPtr pd);
566 [return:MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalTest<Efl.Gfx.IEntityConcrete, Efl.Eo.NonOwnTag>))] public delegate Efl.Gfx.IEntity efl_content_unset_api_delegate(System.IntPtr obj);
567 public static Efl.Eo.FunctionWrapper<efl_content_unset_api_delegate> efl_content_unset_ptr = new Efl.Eo.FunctionWrapper<efl_content_unset_api_delegate>(_Module, "efl_content_unset");
568 private static Efl.Gfx.IEntity content_unset(System.IntPtr obj, System.IntPtr pd)
570 Eina.Log.Debug("function efl_content_unset was called");
571 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
572 if(wrapper != null) {
573 Efl.Gfx.IEntity _ret_var = default(Efl.Gfx.IEntity);
575 _ret_var = ((Pan)wrapper).UnsetContent();
576 } catch (Exception e) {
577 Eina.Log.Warning($"Callback error: {e.ToString()}");
578 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
582 return efl_content_unset_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
585 private static efl_content_unset_delegate efl_content_unset_static_delegate;