SKShapeNode.FromRect メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
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
戻り値
- 属性