UI.cs 511 B

123456789101112131415161718
  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. Runtime.ValidateRefCounted(this);
  13. UI_LoadLayoutToElement(Handle, container.Handle, cache.Handle, name);
  14. }
  15. }
  16. }