Esempio n. 1
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.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();
        }
Esempio n. 2
0
        /// <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();
        }
Esempio n. 3
0
                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))));
                    }
                }
Esempio n. 4
0
 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))));
     }
 }
Esempio n. 5
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);
            }
        }
Esempio n. 6
0
 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))));
     }
 }
Esempio n. 7
0
 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))));
     }
 }
Esempio n. 8
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);
                    }
                }
Esempio n. 9
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();
 }
Esempio n. 10
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();
 }