コード例 #1
0
 public PPoint2Di(PPoint2Di other) : this(PapillonPINVOKE.new_PPoint2Di__SWIG_3(PPoint2Di.getCPtr(other)), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
ファイル: PRectanglei.cs プロジェクト: videoai/papillon-swig
    public bool Contains(PPoint2Di p)
    {
        bool ret = PapillonPINVOKE.PRectanglei_Contains(swigCPtr, PPoint2Di.getCPtr(p));

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #3
0
    public float EuclideanDistance(PPoint2Di other)
    {
        float ret = PapillonPINVOKE.PPoint2Di_EuclideanDistance(swigCPtr, PPoint2Di.getCPtr(other));

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #4
0
ファイル: PImage.cs プロジェクト: videoai/papillon-swig
    public PResult DrawLabel(string text, PPoint2Di centre)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImage_DrawLabel__SWIG_4(swigCPtr, text, PPoint2Di.getCPtr(centre)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #5
0
ファイル: PImage.cs プロジェクト: videoai/papillon-swig
    public PResult DrawLabel(string text, PPoint2Di centre, PColour3i labelColour, PColour3i textColor, PImage.EFont font)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImage_DrawLabel__SWIG_1(swigCPtr, text, PPoint2Di.getCPtr(centre), PColour3i.getCPtr(labelColour), PColour3i.getCPtr(textColor), (int)font), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #6
0
ファイル: PImage.cs プロジェクト: videoai/papillon-swig
    public PResult DrawString(string text, PPoint2Di origin, string fontName, int fontSize, PColour3i fontColor)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImage_DrawString__SWIG_2(swigCPtr, text, PPoint2Di.getCPtr(origin), fontName, fontSize, PColour3i.getCPtr(fontColor)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #7
0
ファイル: PImage.cs プロジェクト: videoai/papillon-swig
    public PResult DrawString(string text, PPoint2Di origin, PImage.EFont font, PColour3i color)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImage_DrawString__SWIG_1(swigCPtr, text, PPoint2Di.getCPtr(origin), (int)font, PColour3i.getCPtr(color)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #8
0
ファイル: PPolygoni.cs プロジェクト: videoai/papillon-swig
 public void SetPoint(int index, PPoint2Di pt) {
   PapillonPINVOKE.PPolygoni_SetPoint(swigCPtr, index, PPoint2Di.getCPtr(pt));
   if (PapillonPINVOKE.SWIGPendingException.Pending) throw PapillonPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #9
0
ファイル: PPolygoni.cs プロジェクト: videoai/papillon-swig
 public PPolygoni AddPoint(PPoint2Di pt) {
   PPolygoni ret = new PPolygoni(PapillonPINVOKE.PPolygoni_AddPoint__SWIG_3(swigCPtr, PPoint2Di.getCPtr(pt)), false);
   if (PapillonPINVOKE.SWIGPendingException.Pending) throw PapillonPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }