Example #1
0
 private static void orientation_set(System.IntPtr obj, System.IntPtr pd, Efl.Orient dir)
 {
     Eina.Log.Debug("function efl_orientation_set was called");
     Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
     if (wrapper != null)
     {
         try {
             ((IOrientation)wrapper).SetOrientation(dir);
         } catch (Exception e) {
             Eina.Log.Warning($"Callback error: {e.ToString()}");
             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
         }
     }
     else
     {
         efl_orientation_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir);
     }
 }
Example #2
0
 private static Efl.Orient orientation_get(System.IntPtr obj, System.IntPtr pd)
 {
     Eina.Log.Debug("function efl_orientation_get was called");
     Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
     if (wrapper != null)
     {
         Efl.Orient _ret_var = default(Efl.Orient);
         try {
             _ret_var = ((IOrientation)wrapper).GetOrientation();
         } catch (Exception e) {
             Eina.Log.Warning($"Callback error: {e.ToString()}");
             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
         }
         return(_ret_var);
     }
     else
     {
         return(efl_orientation_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))));
     }
 }
Example #3
0
 /// <summary>Control the orientation of a given object.
 /// This can be used to set the rotation on an image or a window, for instance.</summary>
 /// <param name="dir">The rotation angle (CCW), see <see cref="Efl.Orient"/>.</param>
 /// <returns></returns>
 public void SetOrientation(Efl.Orient dir)
 {
     Efl.IOrientationNativeInherit.efl_orientation_set_ptr.Value.Delegate(this.NativeHandle, dir);
     Eina.Error.RaiseIfUnhandledException();
 }