Compartilhar via


SKShapeNode.FromRect Método

Definição

Sobrecargas

FromRect(CGRect)

Cria um nó de forma do retângulo especificado.

FromRect(CGSize)

Cria um nó de forma tratando o tamanho especificado como um retângulo.

FromRect(CGRect, nfloat)

Cria um nó de forma do retângulo especificado e do raio de canto especificado.

FromRect(CGSize, nfloat)

Cria um nó de forma com o raio de canto especificado tratando o tamanho especificado como um retângulo.

FromRect(CGRect)

Cria um nó de forma do retângulo especificado.

[Foundation.Export("shapeNodeWithRect:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public static SpriteKit.SKShapeNode FromRect (CoreGraphics.CGRect rect);
static member FromRect : CoreGraphics.CGRect -> SpriteKit.SKShapeNode

Parâmetros

rect
CGRect

Retornos

Atributos

Aplica-se a

FromRect(CGSize)

Cria um nó de forma tratando o tamanho especificado como um retângulo.

[Foundation.Export("shapeNodeWithRectOfSize:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public static SpriteKit.SKShapeNode FromRect (CoreGraphics.CGSize size);
static member FromRect : CoreGraphics.CGSize -> SpriteKit.SKShapeNode

Parâmetros

size
CGSize

Retornos

Atributos

Aplica-se a

FromRect(CGRect, nfloat)

Cria um nó de forma do retângulo especificado e do raio de canto especificado.

[Foundation.Export("shapeNodeWithRect:cornerRadius:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public static SpriteKit.SKShapeNode FromRect (CoreGraphics.CGRect rect, nfloat cornerRadius);
static member FromRect : CoreGraphics.CGRect * nfloat -> SpriteKit.SKShapeNode

Parâmetros

rect
CGRect
cornerRadius
nfloat

Retornos

Atributos

Aplica-se a

FromRect(CGSize, nfloat)

Cria um nó de forma com o raio de canto especificado tratando o tamanho especificado como um retângulo.

[Foundation.Export("shapeNodeWithRectOfSize:cornerRadius:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public static SpriteKit.SKShapeNode FromRect (CoreGraphics.CGSize size, nfloat cornerRadius);
static member FromRect : CoreGraphics.CGSize * nfloat -> SpriteKit.SKShapeNode

Parâmetros

size
CGSize
cornerRadius
nfloat

Retornos

Atributos

Aplica-se a