Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 /// <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&apos;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();
 }
Exemplo n.º 3
0
 /// <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();
 }
Exemplo n.º 4
0
                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);
                    }
                }