| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- // WARNING - AUTOGENERATED - DO NOT EDIT
- //
- // Generated using `sharpie urho`
- //
- // PropertySet2D.cs
- //
- // Copyright 2015 Xamarin Inc. All rights reserved.
- using System;
- using System.Runtime.InteropServices;
- using System.Collections.Generic;
- using Urho.Urho2D;
- using Urho.Gui;
- using Urho.Resources;
- using Urho.IO;
- using Urho.Navigation;
- using Urho.Network;
- namespace Urho.Urho2D
- {
- /// <summary>
- /// Property set.
- /// </summary>
- public unsafe partial class PropertySet2D : RefCounted
- {
- unsafe partial void OnPropertySet2DCreated ();
- [Preserve]
- public PropertySet2D (IntPtr handle) : base (handle)
- {
- OnPropertySet2DCreated ();
- }
- [Preserve]
- protected PropertySet2D (UrhoObjectFlag emptyFlag) : base (emptyFlag)
- {
- OnPropertySet2DCreated ();
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr PropertySet2D_PropertySet2D ();
- [Preserve]
- public PropertySet2D () : base (UrhoObjectFlag.Empty)
- {
- Runtime.Validate (typeof(PropertySet2D));
- handle = PropertySet2D_PropertySet2D ();
- Runtime.RegisterObject (this);
- OnPropertySet2DCreated ();
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern void PropertySet2D_Load (IntPtr handle, IntPtr element);
- /// <summary>
- /// Load from XML element.
- /// </summary>
- public void Load (XmlElement element)
- {
- Runtime.ValidateRefCounted (this);
- PropertySet2D_Load (handle, (object)element == null ? IntPtr.Zero : element.Handle);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern bool PropertySet2D_HasProperty (IntPtr handle, string name);
- /// <summary>
- /// Return has property.
- /// </summary>
- public bool HasProperty (string name)
- {
- Runtime.ValidateRefCounted (this);
- return PropertySet2D_HasProperty (handle, name);
- }
- [DllImport (Consts.NativeImport, CallingConvention = CallingConvention.Cdecl)]
- internal static extern IntPtr PropertySet2D_GetProperty (IntPtr handle, string name);
- /// <summary>
- /// Return property value.
- /// </summary>
- public string GetProperty (string name)
- {
- Runtime.ValidateRefCounted (this);
- return Marshal.PtrToStringAnsi (PropertySet2D_GetProperty (handle, name));
- }
- }
- }
|