次の方法で共有


SKShapeNode.FromRect メソッド

定義

オーバーロード

FromRect(CGRect)

指定した四角形から図形ノードを作成します。

FromRect(CGSize)

指定したサイズを四角形として扱って、図形ノードを作成します。

FromRect(CGRect, nfloat)

指定した四角形と指定したコーナー半径から図形ノードを作成します。

FromRect(CGSize, nfloat)

指定したサイズを四角形として扱うことで、指定したコーナー半径を持つ図形ノードを作成します。

FromRect(CGRect)

指定した四角形から図形ノードを作成します。

[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

パラメーター

rect
CGRect

戻り値

属性

適用対象

FromRect(CGSize)

指定したサイズを四角形として扱って、図形ノードを作成します。

[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

パラメーター

size
CGSize

戻り値

属性

適用対象

FromRect(CGRect, nfloat)

指定した四角形と指定したコーナー半径から図形ノードを作成します。

[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

パラメーター

rect
CGRect
cornerRadius
nfloat

戻り値

属性

適用対象

FromRect(CGSize, nfloat)

指定したサイズを四角形として扱うことで、指定したコーナー半径を持つ図形ノードを作成します。

[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

パラメーター

size
CGSize
cornerRadius
nfloat

戻り値

属性

適用対象