/// <summary>Specifies how to tile an image to fill its rectangle geometry. /// Note that if <c>w</c> or <c>h</c> are smaller than the dimensions of the object, the displayed image will be tiled around the object's area. To have only one copy of the bound image drawn, <c>x</c> and <c>y</c> must be 0 and <c>w</c> and <c>h</c> need to be the exact width and height of the image object itself, respectively. /// /// Setting this property will reset the <see cref="Efl.Gfx.Fill.FillAuto"/> to <c>false</c>.</summary> /// <param name="fill">The top-left corner to start drawing from as well as the size at which the bound image will be displayed.</param> /// <returns></returns> public void SetFill(Eina.Rect fill) { var _in_fill = Eina.Rect_StructConversion.ToInternal(fill); Efl.Gfx.FillNativeInherit.efl_gfx_fill_set_ptr.Value.Delegate(this.NativeHandle, _in_fill); Eina.Error.RaiseIfUnhandledException(); }
/// <summary>Rectangular geometry that combines both position and size.</summary> /// <param name="rect">The X,Y position and W,H size, in pixels.</param> /// <returns></returns> public void SetGeometry(Eina.Rect rect) { var _in_rect = Eina.Rect_StructConversion.ToInternal(rect); Efl.Gfx.EntityNativeInherit.efl_gfx_entity_geometry_set_ptr.Value.Delegate(this.NativeHandle, _in_rect); Eina.Error.RaiseIfUnhandledException(); }
private static Eina.Rect.NativeStruct calc_parts_extends(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_layout_calc_parts_extends was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Rect _ret_var = default(Eina.Rect); try { _ret_var = ((ICalc)ws.Target).CalcPartsExtends(); } 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_parts_extends_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)))); } }
private static Eina.Rect_StructInternal focus_geometry_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_ui_focus_object_focus_geometry_get was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd); if (wrapper != null) { Eina.Rect _ret_var = default(Eina.Rect); try { _ret_var = ((CalendarItem)wrapper).GetFocusGeometry(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return(Eina.Rect_StructConversion.ToInternal(_ret_var)); } else { return(efl_ui_focus_object_focus_geometry_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)))); } }
private static void fill_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct fill) { Eina.Log.Debug("function efl_gfx_fill_set was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if (wrapper != null) { Eina.Rect _in_fill = fill; try { ((IFill)wrapper).SetFill(_in_fill); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_gfx_fill_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), fill); } }
private static Eina.Rect.NativeStruct fill_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_gfx_fill_get was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd); if (wrapper != null) { Eina.Rect _ret_var = default(Eina.Rect); try { _ret_var = ((IFill)wrapper).GetFill(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return(_ret_var); } else { return(efl_gfx_fill_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)))); } }
private static Eina.Rect_StructInternal calc_parts_extends(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_layout_calc_parts_extends was called"); Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd); if (wrapper != null) { Eina.Rect _ret_var = default(Eina.Rect); try { _ret_var = ((Calc)wrapper).CalcPartsExtends(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return(Eina.Rect_StructConversion.ToInternal(_ret_var)); } else { return(efl_layout_calc_parts_extends_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)))); } }
private static void geometry_set(System.IntPtr obj, System.IntPtr pd, Eina.Rect.NativeStruct rect) { Eina.Log.Debug("function efl_gfx_entity_geometry_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.Rect _in_rect = rect; try { ((IEntity)ws.Target).SetGeometry(_in_rect); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_gfx_entity_geometry_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), rect); } }
/// <summary>Specifies how to tile an image to fill its rectangle geometry. /// Note that if <c>w</c> or <c>h</c> are smaller than the dimensions of the object, the displayed image will be tiled around the object's area. To have only one copy of the bound image drawn, <c>x</c> and <c>y</c> must be 0 and <c>w</c> and <c>h</c> need to be the exact width and height of the image object itself, respectively. /// /// Setting this property will reset the <see cref="Efl.Gfx.IFill.FillAuto"/> to <c>false</c>.</summary> /// <param name="fill">The top-left corner to start drawing from as well as the size at which the bound image will be displayed.</param> public void SetFill(Eina.Rect fill) { Eina.Rect.NativeStruct _in_fill = fill; Efl.Gfx.IFillConcrete.NativeMethods.efl_gfx_fill_set_ptr.Value.Delegate(this.NativeHandle, _in_fill); Eina.Error.RaiseIfUnhandledException(); }
/// <summary>Rectangular geometry that combines both position and size. /// (Since EFL 1.22)</summary> /// <param name="rect">The X,Y position and W,H size, in pixels.</param> /// <returns></returns> public void SetGeometry(Eina.Rect rect) { Eina.Rect.NativeStruct _in_rect = rect; Efl.Gfx.IEntityNativeInherit.efl_gfx_entity_geometry_set_ptr.Value.Delegate(this.NativeHandle, _in_rect); Eina.Error.RaiseIfUnhandledException(); }