Class SKShapeNode

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, UIActivityItemsConfigurationProviding, UIFocusEnvironment, UIFocusItem, UIPasteConfigurationSupporting, UIResponderStandardEditActions, UIUserActivityRestoring, ObjCProtocol

public class SKShapeNode
extends SKNode
  • Constructor Details

    • SKShapeNode

      public SKShapeNode()
    • SKShapeNode

      protected SKShapeNode​(NSObject.Handle h, long handle)
    • SKShapeNode

      protected SKShapeNode​(NSObject.SkipInit skipInit)
    • SKShapeNode

      public SKShapeNode​(NSCoder coder)
  • Method Details

    • getPath

      public CGPath getPath()
    • setPath

      public void setPath​(CGPath v)
    • getStrokeColor

      public UIColor getStrokeColor()
    • setStrokeColor

      public void setStrokeColor​(UIColor v)
    • getFillColor

      public UIColor getFillColor()
    • setFillColor

      public void setFillColor​(UIColor v)
    • getBlendMode

      public SKBlendMode getBlendMode()
    • setBlendMode

      public void setBlendMode​(SKBlendMode v)
    • isAntialiased

      public boolean isAntialiased()
    • setAntialiased

      public void setAntialiased​(boolean v)
    • getLineWidth

      public double getLineWidth()
    • setLineWidth

      public void setLineWidth​(double v)
    • getGlowWidth

      public double getGlowWidth()
    • setGlowWidth

      public void setGlowWidth​(double v)
    • getLineCap

      public CGLineCap getLineCap()
    • setLineCap

      public void setLineCap​(CGLineCap v)
    • getLineJoin

      public CGLineJoin getLineJoin()
    • setLineJoin

      public void setLineJoin​(CGLineJoin v)
    • getMiterLimit

      public double getMiterLimit()
    • setMiterLimit

      public void setMiterLimit​(double v)
    • getLineLength

      public double getLineLength()
    • getFillTexture

      public SKTexture getFillTexture()
    • setFillTexture

      public void setFillTexture​(SKTexture v)
    • getFillShader

      public SKShader getFillShader()
    • setFillShader

      public void setFillShader​(SKShader v)
    • getStrokeTexture

      public SKTexture getStrokeTexture()
    • setStrokeTexture

      public void setStrokeTexture​(SKTexture v)
    • getStrokeShader

      public SKShader getStrokeShader()
    • setStrokeShader

      public void setStrokeShader​(SKShader v)
    • getAttributeValues

      public NSDictionary<NSString,​SKAttributeValue> getAttributeValues()
      Overrides:
      getAttributeValues in class SKNode
      Since:
      Available in iOS 10.0 and later.
    • setAttributeValues

      public void setAttributeValues​(NSDictionary<NSString,​SKAttributeValue> v)
      Overrides:
      setAttributeValues in class SKNode
      Since:
      Available in iOS 10.0 and later.
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • valueForAttributeNamed

      public SKAttributeValue valueForAttributeNamed​(String key)
      Overrides:
      valueForAttributeNamed in class SKNode
      Since:
      Available in iOS 10.0 and later.
    • setValue

      public void setValue​(SKAttributeValue value, String key)
      Overrides:
      setValue in class SKNode
      Since:
      Available in iOS 10.0 and later.
    • createPath

      public static SKShapeNode createPath​(CGPath path)
    • createPath

      public static SKShapeNode createPath​(CGPath path, boolean centered)
    • createRect

      public static SKShapeNode createRect​(CGRect rect)
    • createRect

      public static SKShapeNode createRect​(CGSize size)
    • createRect

      public static SKShapeNode createRect​(CGRect rect, double cornerRadius)
    • createRect

      public static SKShapeNode createRect​(CGSize size, double cornerRadius)
    • createCircle

      public static SKShapeNode createCircle​(double radius)
    • createEllipse

      public static SKShapeNode createEllipse​(CGRect rect)
    • createEllipse

      public static SKShapeNode createEllipse​(CGSize size)
    • createWithPoints

      public static SKShapeNode createWithPoints​(CGPoint points, long numPoints)
    • createWithSplinePoints

      public static SKShapeNode createWithSplinePoints​(CGPoint points, long numPoints)