Exemple #1
0
            private static Efl.TaskPriority priority_get(System.IntPtr obj, System.IntPtr pd)
            {
                Eina.Log.Debug("function efl_task_priority_get was called");
                var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);

                if (ws != null)
                {
                    Efl.TaskPriority _ret_var = default(Efl.TaskPriority);
                    try
                    {
                        _ret_var = ((Task)ws.Target).GetPriority();
                    }
                    catch (Exception e)
                    {
                        Eina.Log.Warning($"Callback error: {e.ToString()}");
                        Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
                    }

                    return(_ret_var);
                }
                else
                {
                    return(efl_task_priority_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))));
                }
            }
Exemple #2
0
 private static void priority_set(System.IntPtr obj, System.IntPtr pd, Efl.TaskPriority priority)
 {
     Eina.Log.Debug("function efl_task_priority_set was called");
     Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
     if (wrapper != null)
     {
         try {
             ((Task)wrapper).SetPriority(priority);
         } catch (Exception e) {
             Eina.Log.Warning($"Callback error: {e.ToString()}");
             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
         }
     }
     else
     {
         efl_task_priority_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), priority);
     }
 }
Exemple #3
0
 /// <summary>The priority of this task.
 /// (Since EFL 1.22)</summary>
 /// <param name="priority">No description supplied.</param>
 /// <returns></returns>
 virtual public void SetPriority(Efl.TaskPriority priority)
 {
     Efl.TaskNativeInherit.efl_task_priority_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), priority);
     Eina.Error.RaiseIfUnhandledException();
 }
Exemple #4
0
 /// <summary>The priority of this task.
 /// (Since EFL 1.22)</summary>
 /// <param name="priority">Desired priority.</param>
 virtual public void SetPriority(Efl.TaskPriority priority)
 {
     Efl.Task.NativeMethods.efl_task_priority_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)), priority);
     Eina.Error.RaiseIfUnhandledException();
 }