/// <summary>Calculates the minimum required size for a given layout object. /// This call will trigger an internal recalculation of all parts of the object, in order to return its minimum required dimensions for width and height. The user might choose to impose those minimum sizes, making the resulting calculation to get to values greater or equal than <c>restricted</c> in both directions. /// /// Note: At the end of this call, the object won't be automatically resized to the new dimensions, but just return the calculated sizes. The caller is the one up to change its geometry or not. /// /// Warning: Be advised that invisible parts in the object will be taken into account in this calculation. /// (Since EFL 1.22)</summary> /// <param name="restricted">The minimum size constraint as input, the returned size can not be lower than this (in both directions).</param> /// <returns>The minimum required size.</returns> public Eina.Size2D CalcSizeMin(Eina.Size2D restricted) { Eina.Size2D.NativeStruct _in_restricted = restricted; var _ret_var = Efl.Layout.ICalcConcrete.NativeMethods.efl_layout_calc_size_min_ptr.Value.Delegate(this.NativeHandle, _in_restricted); Eina.Error.RaiseIfUnhandledException(); return(_ret_var); }
private static void expandable_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct max_size) { Eina.Log.Debug("function efl_ui_scroll_alert_popup_expandable_set was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if (wrapper != null) { Eina.Size2D _in_max_size = max_size; try { ((ScrollAlertPopup)wrapper).SetExpandable(_in_max_size); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_scroll_alert_popup_expandable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), max_size); } }
private static void size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) { Eina.Log.Debug("function efl_gfx_entity_size_set was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if (wrapper != null) { Eina.Size2D _in_size = size; try { ((IEntity)wrapper).SetSize(_in_size); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_gfx_entity_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); } }
private static void min_size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct min) { Eina.Log.Debug("function efl_ui_list_view_model_min_size_set was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if (wrapper != null) { Eina.Size2D _in_min = min; try { ((IListViewModel)wrapper).SetMinSize(_in_min); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_list_view_model_min_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), min); } }
/// <summary>Set the expandable of popup. /// If the contents of the popup has min size, the popup will be increased by min size along the Y axis. If max hint is set it will be increased to the value of max hint and scrolling will occur.</summary> /// <param name="max_size">A 2D max size in pixel units.</param> virtual public void SetExpandable(Eina.Size2D max_size) { Eina.Size2D.NativeStruct _in_max_size = max_size; Efl.Ui.TextAlertPopup.NativeMethods.efl_ui_text_alert_popup_expandable_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_max_size); Eina.Error.RaiseIfUnhandledException(); }
private static void expandable_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct max_size) { Eina.Log.Debug("function efl_ui_text_alert_popup_expandable_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Size2D _in_max_size = max_size; try { ((TextAlertPopup)ws.Target).SetExpandable(_in_max_size); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_text_alert_popup_expandable_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), max_size); } }
/// <summary>Set the expandable max size of popup. /// If the given max_size is -1, then a popup appears with its size. However, if the given max_size is bigger than 0 the popup size is up to the given max_size. If popup content's min size is bigger than the given max_size the scroller appears in the popup content area.</summary> /// <param name="max_size">A 2D max size in pixel units.</param> virtual public void SetExpandable(Eina.Size2D max_size) { Eina.Size2D.NativeStruct _in_max_size = max_size; Efl.Ui.ScrollAlertPopup.NativeMethods.efl_ui_scroll_alert_popup_expandable_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)), _in_max_size); Eina.Error.RaiseIfUnhandledException(); }
/// <summary>Minimal content size.</summary> public void SetMinSize(Eina.Size2D min) { Eina.Size2D.NativeStruct _in_min = min; Efl.Ui.IListViewModelConcrete.NativeMethods.efl_ui_list_view_model_min_size_set_ptr.Value.Delegate(this.NativeHandle, _in_min); Eina.Error.RaiseIfUnhandledException(); }
private static Eina.Size2D.NativeStruct calc_size_min(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct restricted) { Eina.Log.Debug("function efl_layout_calc_size_min was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Size2D _in_restricted = restricted; Eina.Size2D _ret_var = default(Eina.Size2D); try { _ret_var = ((ICalc)ws.Target).CalcSizeMin(_in_restricted); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return(_ret_var); } else { return(efl_layout_calc_size_min_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), restricted)); } }
/// <summary>The dimensions of this object's viewport. /// This property represents the size of an image (file on disk, vector graphics, GL or 3D scene, ...) view: this is the logical size of a view, not the number of pixels in the buffer, nor its visible size on the window. /// /// For scalable scenes (vector graphics, 3D or GL), this means scaling the contents of the scene and drawing more pixels as a result; For pixmaps this means zooming and stretching up or down the backing buffer to fit this view. /// /// In most cases the view should have the same dimensions as the object on the canvas, for best quality. /// /// <see cref="Efl.Gfx.IView.SetViewSize"/> may not be implemented. If it is, it might trigger a complete recalculation of the scene, or reload of the pixel data. /// /// Refer to each implementing class specific documentation for more details.</summary> /// <param name="size">Size of the view.</param> /// <returns></returns> public void SetViewSize(Eina.Size2D size) { Eina.Size2D.NativeStruct _in_size = size; Efl.Gfx.IViewNativeInherit.efl_gfx_view_size_set_ptr.Value.Delegate(this.NativeHandle, _in_size); Eina.Error.RaiseIfUnhandledException(); }
private static void size_set(System.IntPtr obj, System.IntPtr pd, Eina.Size2D.NativeStruct size) { Eina.Log.Debug("function efl_ui_spotlight_manager_size_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Size2D _in_size = size; try { ((Manager)ws.Target).SetSize(_in_size); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_ui_spotlight_manager_size_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), size); } }
/// <summary>Will be called whenever the <see cref="Efl.Ui.Spotlight.Container.SpotlightSize"/> changes so the <see cref="Efl.Ui.Spotlight.Manager"/> can update itself.</summary> /// <param name="size">The new size of the sub-widgets.</param> virtual public void SetSize(Eina.Size2D size) { Eina.Size2D.NativeStruct _in_size = size; Efl.Ui.Spotlight.Manager.NativeMethods.efl_ui_spotlight_manager_size_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)), _in_size); Eina.Error.RaiseIfUnhandledException(); }
/// <summary>Will be called whenever the <see cref="Efl.Ui.ActiveView.Container.ActiveViewSize"/> changes so the <see cref="Efl.Ui.ActiveView.ViewManager"/> can update itself.</summary> /// <param name="size">The new size of the views.</param> virtual public void SetViewSize(Eina.Size2D size) { Eina.Size2D.NativeStruct _in_size = size; Efl.Ui.ActiveView.ViewManager.NativeMethods.efl_ui_active_view_view_manager_view_size_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_size); Eina.Error.RaiseIfUnhandledException(); }
/// <summary>Changes the size of the given object. /// Note that setting the actual size of an object might be the job of its container, so this function might have no effect. Look at <see cref="Efl.Gfx.IHint"/> instead, when manipulating widgets. /// (Since EFL 1.22)</summary> /// <param name="size">A 2D size in pixel units.</param> public void SetSize(Eina.Size2D size) { Eina.Size2D.NativeStruct _in_size = size; Efl.Gfx.IEntityConcrete.NativeMethods.efl_gfx_entity_size_set_ptr.Value.Delegate(this.NativeHandle, _in_size); Eina.Error.RaiseIfUnhandledException(); }