PropertySet2D.cs 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. // WARNING - AUTOGENERATED - DO NOT EDIT
  2. //
  3. // Generated using `sharpie urho`
  4. //
  5. // PropertySet2D.cs
  6. //
  7. // Copyright 2015 Xamarin Inc. All rights reserved.
  8. using System;
  9. using System.Runtime.InteropServices;
  10. using System.Collections.Generic;
  11. using Urho.Urho2D;
  12. using Urho.Gui;
  13. using Urho.Resources;
  14. using Urho.IO;
  15. using Urho.Navigation;
  16. using Urho.Network;
  17. namespace Urho.Urho2D
  18. {
  19. /// <summary>
  20. /// Property set.
  21. /// </summary>
  22. public unsafe partial class PropertySet2D : RefCounted
  23. {
  24. unsafe partial void OnPropertySet2DCreated ();
  25. [Preserve]
  26. public PropertySet2D (IntPtr handle) : base (handle)
  27. {
  28. OnPropertySet2DCreated ();
  29. }
  30. [Preserve]
  31. protected PropertySet2D (UrhoObjectFlag emptyFlag) : base (emptyFlag)
  32. {
  33. OnPropertySet2DCreated ();
  34. }
  35. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  36. internal static extern IntPtr PropertySet2D_PropertySet2D ();
  37. [Preserve]
  38. public PropertySet2D () : base (UrhoObjectFlag.Empty)
  39. {
  40. Runtime.Validate (typeof(PropertySet2D));
  41. handle = PropertySet2D_PropertySet2D ();
  42. Runtime.RegisterObject (this);
  43. OnPropertySet2DCreated ();
  44. }
  45. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  46. internal static extern void PropertySet2D_Load (IntPtr handle, IntPtr element);
  47. /// <summary>
  48. /// Load from XML element.
  49. /// </summary>
  50. public void Load (XmlElement element)
  51. {
  52. Runtime.ValidateRefCounted (this);
  53. PropertySet2D_Load (handle, (object)element == null ? IntPtr.Zero : element.Handle);
  54. }
  55. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  56. internal static extern bool PropertySet2D_HasProperty (IntPtr handle, string name);
  57. /// <summary>
  58. /// Return has property.
  59. /// </summary>
  60. public bool HasProperty (string name)
  61. {
  62. Runtime.ValidateRefCounted (this);
  63. return PropertySet2D_HasProperty (handle, name);
  64. }
  65. [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
  66. internal static extern IntPtr PropertySet2D_GetProperty (IntPtr handle, string name);
  67. /// <summary>
  68. /// Return property value.
  69. /// </summary>
  70. public string GetProperty (string name)
  71. {
  72. Runtime.ValidateRefCounted (this);
  73. return Marshal.PtrToStringAnsi (PropertySet2D_GetProperty (handle, name));
  74. }
  75. }
  76. }