5 public class Background : Layout
7 public Background(EvasObject parent) : base(parent)
12 public override Color Color
20 var swallowContent = GetPartContent("elm.swallow.rectangle");
21 if (swallowContent != IntPtr.Zero)
23 Interop.Evas.evas_object_color_get(swallowContent, out r, out g, out b, out a);
25 return new Color(r, g, b, a);
29 var swallowContent = GetPartContent("elm.swallow.rectangle");
30 if(swallowContent == IntPtr.Zero)
32 Interop.Elementary.elm_bg_color_set(Handle, value.R, value.G, value.B);
33 swallowContent = GetPartContent("elm.swallow.rectangle");
35 Interop.Evas.evas_object_color_set(swallowContent, value.R, value.G, value.B, value.A);
43 return Interop.Elementary.BackgroundFileGet(Handle);
47 Interop.Elementary.elm_bg_file_set(Handle, value, IntPtr.Zero);
51 public BackgroundOptions BackgroundOption
55 return (BackgroundOptions) Interop.Elementary.elm_bg_option_get(Handle);
59 Interop.Elementary.elm_bg_option_set(Handle, (Interop.Elementary.BackgroundOptions) value);
63 internal override IntPtr CreateHandle(EvasObject parent)
65 return Interop.Elementary.elm_bg_add(parent.Handle);
69 public enum BackgroundOptions