public virtual Result CreateElement(ITexture tex, int x, int y, DockType dock, Color color, int zorder, SWIGTYPE_p_p_IImageElement element) { Result ret = new Result(IronSightEnginePINVOKE.IHUD_CreateElement__SWIG_1(swigCPtr, ITexture.getCPtr(tex), x, y, (int)dock, Color.getCPtr(color), zorder, SWIGTYPE_p_p_IImageElement.getCPtr(element)), true); // if (IronSightEnginePINVOKE.SWIGPendingException.Pending) { throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve(); } if (IronSightEnginePINVOKE.SWIGPendingException.Pending) { throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_p_IImageElement obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }