public PPoint2Di(PPoint2Di other) : this(PapillonPINVOKE.new_PPoint2Di__SWIG_3(PPoint2Di.getCPtr(other)), true) { if (PapillonPINVOKE.SWIGPendingException.Pending) { throw PapillonPINVOKE.SWIGPendingException.Retrieve(); } }
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); }
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); }
public bool Contains(PPoint2Di p) { bool ret = PapillonPINVOKE.PRectanglei_Contains(swigCPtr, PPoint2Di.getCPtr(p)); if (PapillonPINVOKE.SWIGPendingException.Pending) { throw PapillonPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public float EuclideanDistance(PPoint2Di other) { float ret = PapillonPINVOKE.PPoint2Di_EuclideanDistance(swigCPtr, PPoint2Di.getCPtr(other)); if (PapillonPINVOKE.SWIGPendingException.Pending) { throw PapillonPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
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); }
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); }
public PPoint2Di ToPPoint2Di() { PPoint2Di ret = new PPoint2Di(PapillonPINVOKE.PPoint2Df_ToPPoint2Di(swigCPtr), true); return(ret); }
public PPoint2Di GetOrigin() { PPoint2Di ret = new PPoint2Di(PapillonPINVOKE.PRectanglei_GetOrigin(swigCPtr), true); return(ret); }
public PPoint2Di Scaled(int scaleBy) { PPoint2Di ret = new PPoint2Di(PapillonPINVOKE.PPoint2Di_Scaled(swigCPtr, scaleBy), true); return(ret); }
public PPoint2Di GetPoint(int index) { PPoint2Di ret = new PPoint2Di(PapillonPINVOKE.PPolygoni_GetPoint(swigCPtr, index), true); return ret; }
public static PPoint2Di Zero() { PPoint2Di ret = new PPoint2Di(PapillonPINVOKE.PPoint2Di_Zero(), false); return(ret); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PPoint2Di obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
public void SetPoint(int index, PPoint2Di pt) { PapillonPINVOKE.PPolygoni_SetPoint(swigCPtr, index, PPoint2Di.getCPtr(pt)); if (PapillonPINVOKE.SWIGPendingException.Pending) throw PapillonPINVOKE.SWIGPendingException.Retrieve(); }
public PPoint2Di GetLastPoint() { PPoint2Di ret = new PPoint2Di(PapillonPINVOKE.PPolygoni_GetLastPoint(swigCPtr), true); return ret; }
public PPoint2Di Translated(int vx, int vy) { PPoint2Di ret = new PPoint2Di(PapillonPINVOKE.PPoint2Di_Translated(swigCPtr, vx, vy), true); return(ret); }
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; }