[EflSharp] Update Circle and efl cs files (#995)
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / Factory.cs
1 #define EFL_BETA
2 #if EFL_BETA
3
4 using System;
5 using System.Runtime.InteropServices;
6 using System.Collections.Generic;
7 using System.Linq;
8 using System.ComponentModel;
9
10 namespace Efl { namespace Ui {
11
12 /// <summary>Helper factory class. Makes use of C# extension methods for easier property binding.
13 ///
14 /// <code>
15 /// var factory = Efl.Ui.Factory&lt;Efl.Ui.Button&gt;();
16 /// factory.Style().Bind("Name"); // The factory Style property is bound to the Name property for the given model.
17 /// </code>
18 ///
19 /// </summary>
20 public class ItemFactory<T> : Efl.Ui.CachingFactory, IDisposable
21 {
22     /// <summary>Creates a new factory.</summary>
23     public ItemFactory(Efl.Object parent = null)
24         : base (parent, typeof(T))
25     {
26     }
27 }
28
29 } }
30
31 #endif