private static Efl.Gfx.ImageOrientation image_orientation_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_gfx_image_orientation_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Efl.Gfx.ImageOrientation _ret_var = default(Efl.Gfx.ImageOrientation); try { _ret_var = ((IImageOrientable)ws.Target).GetImageOrientation(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return(_ret_var); } else { return(efl_gfx_image_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)))); } }
/// <summary>Control the orientation (rotation and flipping) of a visual object. /// This can be used to set the rotation on an image or a window, for instance.</summary> /// <param name="dir">The final orientation of the object.</param> public void SetImageOrientation(Efl.Gfx.ImageOrientation dir) { Efl.Gfx.IImageOrientableConcrete.NativeMethods.efl_gfx_image_orientation_set_ptr.Value.Delegate(this.NativeHandle, dir); Eina.Error.RaiseIfUnhandledException(); }
private static void image_orientation_set(System.IntPtr obj, System.IntPtr pd, Efl.Gfx.ImageOrientation dir) { Eina.Log.Debug("function efl_gfx_image_orientation_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((IImageOrientable)ws.Target).SetImageOrientation(dir); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_gfx_image_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); } }