1 // Copyright 2016 by Samsung Electronics, Inc.,
3 // This software is the confidential and proprietary information
4 // of Samsung Electronics, Inc. ("Confidential Information"). You
5 // shall not disclose such Confidential Information and shall use
6 // it only in accordance with the terms of the license agreement
7 // you entered into with Samsung.
10 using System.Diagnostics;
15 /// A view used to draw a solid colored rectangle.
17 public class Rectangle : EvasObject
20 /// Create a new BoxView widget.
22 public Rectangle(EvasObject parent) : base(parent)
24 Interop.Evas.evas_object_size_hint_weight_set(Handle, 1.0, 1.0);
27 protected override IntPtr CreateHandle(EvasObject parent)
29 IntPtr evas = Interop.Evas.evas_object_evas_get(parent.Handle);
30 return Interop.Evas.evas_object_rectangle_add(evas);