UI.cs 474 B

1234567891011121314151617
  1. using System;
  2. using System.Runtime.InteropServices;
  3. using Urho.Resources;
  4. namespace Urho.Gui
  5. {
  6. partial class UI
  7. {
  8. [DllImport(Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  9. extern static void UI_LoadLayoutToElement(IntPtr handle, IntPtr to, IntPtr cache, string name);
  10. public void LoadLayoutToElement(UIElement container, ResourceCache cache, string name)
  11. {
  12. UI_LoadLayoutToElement(Handle, container.Handle, cache.Handle, name);
  13. }
  14. }
  15. }