Change EvasObject's API visibility to protected from internal.
[platform/core/csapi/tizenfx.git] / src / ElmSharp / ElmSharp / Rectangle.cs
1 // Copyright 2016 by Samsung Electronics, Inc.,
2 //
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.
8
9 using System;
10 using System.Diagnostics;
11
12 namespace ElmSharp
13 {
14     /// <summary>
15     /// A view used to draw a solid colored rectangle.
16     /// </summary>
17     public class Rectangle : EvasObject
18     {
19         /// <summary>
20         /// Create a new BoxView widget.
21         /// </summary>
22         public Rectangle(EvasObject parent) : base(parent)
23         {
24             Interop.Evas.evas_object_size_hint_weight_set(Handle, 1.0, 1.0);
25         }
26
27         protected override IntPtr CreateHandle(EvasObject parent)
28         {
29             IntPtr evas = Interop.Evas.evas_object_evas_get(parent.Handle);
30             return Interop.Evas.evas_object_rectangle_add(evas);
31         }
32     }
33 }