CGRect
public extension CGRect
-
init: Initialise a CGRect from a FREObject.
let rect = CGRect(argv[0])Declaration
Swift
init?(_ freObject: FREObject?)Parameters
freObjectFREObject which is of AS3 type flash.geom.Rectangle.
Return Value
CGRect?
-
toFREObject: Converts a CGRect into a FREObject of AS3 type flash.geom.Rectangle.
let fre = CGRect().toFREObject()Declaration
Swift
func toFREObject() -> FREObject?Return Value
FREObject?
View on GitHub
Install in Dash
CGRect Extension Reference