public RectI(RectI rect) : this(IronSightEnginePINVOKE.new_RectI__SWIG_2(RectI.getCPtr(rect)), true)
 {
     if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
     {
         throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
     }
 }
    public bool Intersects(RectI r)
    {
        bool ret = IronSightEnginePINVOKE.RectI_Intersects(swigCPtr, RectI.getCPtr(r));

        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Ejemplo n.º 3
0
    public virtual Result CreateElement(ITexture tex, int x, int y, DockType dock, Color color, RectI subregion)
    {
        Result ret = new Result(IronSightEnginePINVOKE.IHUD_CreateElement__SWIG_7(swigCPtr, ITexture.getCPtr(tex), x, y, (int)dock, Color.getCPtr(color), RectI.getCPtr(subregion)), true);

        //
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Ejemplo n.º 4
0
    public IImageElement XCreateElement(ITexture tex, int x, int y, DockType dock, Color color, RectI subregion)
    {
        global::System.IntPtr cPtr = IronSightEnginePINVOKE.IHUD_XCreateElement__SWIG_3(swigCPtr, ITexture.getCPtr(tex), x, y, (int)dock, Color.getCPtr(color), RectI.getCPtr(subregion));
        IImageElement         ret  = (cPtr == global::System.IntPtr.Zero) ? null : new IImageElement(cPtr, false);

        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Ejemplo n.º 5
0
    public virtual Result CreateElement(ITexture tex, int x, int y, DockType dock, Color color, RectI subregion, int zorder, SWIGTYPE_p_p_IImageElement element, SWIGTYPE_p_void elementuser)
    {
        Result ret = new Result(IronSightEnginePINVOKE.IHUD_CreateElement__SWIG_4(swigCPtr, ITexture.getCPtr(tex), x, y, (int)dock, Color.getCPtr(color), RectI.getCPtr(subregion), zorder, SWIGTYPE_p_p_IImageElement.getCPtr(element), SWIGTYPE_p_void.getCPtr(elementuser)), true);

        //
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        if (IronSightEnginePINVOKE.SWIGPendingException.Pending)
        {
            throw IronSightEnginePINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }