Example #1
0
 public PSizef(PSizef other) : this(PapillonPINVOKE.new_PSizef__SWIG_3(PSizef.getCPtr(other)), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
    public static PResult FromString(string s, PSizef size)
    {
        PResult ret = new PResult(PapillonPINVOKE.PSizef_FromString(s, PSizef.getCPtr(size)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #3
0
    public PRectanglef Normalized(PSizef size)
    {
        PRectanglef ret = new PRectanglef(PapillonPINVOKE.PRectanglef_Normalized__SWIG_1(swigCPtr, PSizef.getCPtr(size)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Example #4
0
    public static PSizef Bad()
    {
        PSizef ret = new PSizef(PapillonPINVOKE.PSizef_Bad(), false);

        return(ret);
    }
Example #5
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PSizef obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Example #6
0
    public PSizef Clamped(float min, float max)
    {
        PSizef ret = new PSizef(PapillonPINVOKE.PSizef_Clamped(swigCPtr, min, max), true);

        return(ret);
    }
Example #7
0
    public PSizef Scaled(float factor)
    {
        PSizef ret = new PSizef(PapillonPINVOKE.PSizef_Scaled(swigCPtr, factor), true);

        return(ret);
    }
Example #8
0
    public PSizef ToSizef()
    {
        PSizef ret = new PSizef(PapillonPINVOKE.PSizei_ToSizef(swigCPtr), true);

        return(ret);
    }
Example #9
0
    public PSizef GetSize()
    {
        PSizef ret = new PSizef(PapillonPINVOKE.PRectanglef_GetSize(swigCPtr), true);

        return(ret);
    }