private static void direction_set(System.IntPtr obj, System.IntPtr pd, Efl.Ui.Dir dir) { Eina.Log.Debug("function efl_ui_direction_set was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if (wrapper != null) { try { ((SpinButton)wrapper).SetDirection(dir); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_direction_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), dir); } }
private static Efl.Ui.Dir direction_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_direction_get was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd); if (wrapper != null) { Efl.Ui.Dir _ret_var = default(Efl.Ui.Dir); try { _ret_var = ((Panes)wrapper).GetDirection(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return(_ret_var); } else { return(efl_ui_direction_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)))); } }
/// <summary>Control the direction of a given widget. /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. /// /// Mirroring as defined in <see cref="Efl.Ui.II18n"/> can invert the <c>horizontal</c> direction: it is <c>ltr</c> by default, but becomes <c>rtl</c> if the object is mirrored.</summary> /// <param name="dir">Direction of the widget.</param> /// <returns></returns> virtual public void SetDirection(Efl.Ui.Dir dir) { Efl.Ui.IDirectionNativeInherit.efl_ui_direction_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), dir); Eina.Error.RaiseIfUnhandledException(); }
/// <summary>Control the direction of a given widget. /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. /// /// Mirroring as defined in <see cref="Efl.Ui.I18n"/> can invert the <c>horizontal</c> direction: it is <c>ltr</c> by default, but becomes <c>rtl</c> if the object is mirrored.</summary> /// <param name="dir">Direction of the widget.</param> /// <returns></returns> public void SetDirection(Efl.Ui.Dir dir) { Efl.Ui.DirectionNativeInherit.efl_ui_direction_set_ptr.Value.Delegate(this.NativeHandle, dir); Eina.Error.RaiseIfUnhandledException(); }
/// <summary>Control the direction of a given widget. /// Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally. /// /// Mirroring as defined in <see cref="Efl.Ui.II18n"/> can invert the <c>horizontal</c> direction: it is <c>ltr</c> by default, but becomes <c>rtl</c> if the object is mirrored.</summary> /// <param name="dir">Direction of the widget.</param> public void SetDirection(Efl.Ui.Dir dir) { Efl.Ui.IDirectionConcrete.NativeMethods.efl_ui_direction_set_ptr.Value.Delegate(this.NativeHandle, dir); Eina.Error.RaiseIfUnhandledException(); }