summaryrefslogtreecommitdiff
path: root/src/bindings/mono/efl_mono/Factory.cs
blob: d3c9c13e6d5dc0064dc0e245c408b8d489784070 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#if EFL_BETA

using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Linq;
using System.ComponentModel;

namespace Efl { namespace Ui {

/// <summary>Helper factory class. Makes use of C# extension methods for easier property binding.
///
/// <code>
/// var factory = Efl.Ui.Factory&lt;Efl.Ui.Button&gt;();
/// factory.Style().Bind("Name"); // The factory Style property is bound to the Name property for the given model.
/// </code>
///
/// </summary>
public class ItemFactory<T> : Efl.Ui.CachingFactory, IDisposable
{
    /// <summary>Creates a new factory.</summary>
    public ItemFactory(Efl.Object parent = null)
        : base (parent, typeof(T))
    {
    }
}

} }

#endif