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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
using System;
using System.Runtime.InteropServices;
namespace MyGUI.Sharp
{
public class LayerManager
{
#region Instance
private static LayerManager mInstance = new LayerManager();
public static LayerManager Instance
{
get { return mInstance; }
}
#endregion
#region AttachToLayer
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern void ExportLayerManager_AttachToLayer(
[MarshalAs(UnmanagedType.LPStr)] string _layer,
IntPtr _widget);
public void AttachToLayer(string _layer, Widget _widget)
{
ExportLayerManager_AttachToLayer(_layer, _widget.Native);
}
#endregion
#region UpWidget
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern void ExportLayerManager_UpWidget(IntPtr _widget);
public void UpWidget(Widget _widget)
{
ExportLayerManager_UpWidget(_widget.Native);
}
#endregion
}
}
|