private static void value_set(System.IntPtr obj, System.IntPtr pd, Efl.Time.NativeStruct newtime) { Eina.Log.Debug("function efl_datetime_manager_value_set was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if (wrapper != null) { Efl.Time _in_newtime = newtime; try { ((Manager)wrapper).SetValue(_in_newtime); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_datetime_manager_value_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), newtime); } }
private static Efl.Time.NativeStruct value_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_datetime_manager_value_get was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if (wrapper != null) { Efl.Time _ret_var = default(Efl.Time); try { _ret_var = ((Manager)wrapper).GetValue(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return(_ret_var); } else { return(efl_datetime_manager_value_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)))); } }
/// <summary>The value of a date, time for Datepicker or Timepicker. /// The value for Datepicker contains year, month, and day. (tm_year, tm_mon, and tm_mday in Efl_Time) The value for Timepicker contains hour, and min. (tm_hour, and tm_min in Efl_Time)</summary> /// <param name="newtime">Time structure containing date or time value.</param> /// <returns></returns> virtual public void SetValue(Efl.Time newtime) { Efl.Time.NativeStruct _in_newtime = newtime; Efl.Datetime.ManagerNativeInherit.efl_datetime_manager_value_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_newtime); Eina.Error.RaiseIfUnhandledException(); }