Package org.robovm.apple.spritekit
Class SKSpriteNode
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.uikit.UIResponder
-
- org.robovm.apple.spritekit.SKNode
-
- org.robovm.apple.spritekit.SKSpriteNode
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,NSSecureCoding
,SKWarpable
,UIAccessibility
,UIFocusEnvironment
,UIFocusItem
,org.robovm.objc.ObjCProtocol
public class SKSpriteNode extends SKNode implements SKWarpable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SKSpriteNode.SKSpriteNodePtr
-
Nested classes/interfaces inherited from class org.robovm.apple.spritekit.SKNode
SKNode.SKNodePtr
-
Nested classes/interfaces inherited from class org.robovm.apple.uikit.UIResponder
UIResponder.UIResponderPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
Nested classes/interfaces inherited from class org.robovm.objc.ObjCObject
org.robovm.objc.ObjCObject.ObjCObjectPtr, org.robovm.objc.ObjCObject.Super
-
Nested classes/interfaces inherited from interface org.robovm.apple.uikit.UIAccessibility
UIAccessibility.Notifications
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description SKSpriteNode()
SKSpriteNode(java.lang.String name)
SKSpriteNode(java.lang.String name, boolean generateNormalMap)
SKSpriteNode(NSCoder aDecoder)
protected
SKSpriteNode(NSObject.Handle h, long handle)
protected
SKSpriteNode(NSObject.SkipInit skipInit)
SKSpriteNode(SKTexture texture)
SKSpriteNode(SKTexture texture, CGSize size)
SKSpriteNode(SKTexture texture, SKTexture normalMap)
SKSpriteNode(SKTexture texture, UIColor color, CGSize size)
SKSpriteNode(UIColor color, CGSize size)
-
Method Summary
-
Methods inherited from class org.robovm.apple.spritekit.SKNode
addChild, calculateAccumulatedFrame, canBecomeFocused, containsPoint, convertPointFromNode, convertPointToNode, create, create, didHintFocusMovement, didUpdateFocus, encode, enumerateChildNodes, equalsTo, findNodesByName, getAction, getAlpha, getChild, getChildren, getConstraints, getFocusBehavior, getFocusItemContainer, getFrame, getName, getNodeAtPoint, getNodesAtPoint, getParent, getParentFocusEnvironment, getPhysicsBody, getPosition, getPreferredFocusedView, getPreferredFocusEnvironments, getReachConstraints, getScene, getSpeed, getUserData, getXScale, getYScale, getZPosition, getZRotation, hasActions, insertChild, intersectsNode, isHidden, isInParentHierarchy, isPaused, isUserInteractionEnabled, moveToParent, removeAction, removeAllActions, removeAllChildren, removeChildren, removeFromParent, runAction, runAction, runAction, setAlpha, setConstraints, setFocusBehavior, setHidden, setName, setNeedsFocusUpdate, setPaused, setPhysicsBody, setPosition, setReachConstraints, setScale, setSpeed, setUserData, setUserInteractionEnabled, setValue, setXScale, setYScale, setZPosition, setZRotation, shouldUpdateFocus, supportsSecureCoding, updateFocusIfNeeded, valueForAttributeNamed
-
Methods inherited from class org.robovm.apple.uikit.UIResponder
areAccessibilityElementsHidden, becomeFirstResponder, canBecomeFirstResponder, canPerformAction, canResignFirstResponder, clearTextInputContextIdentifier, getAccessibilityActivationPoint, getAccessibilityAttributedHint, getAccessibilityAttributedLabel, getAccessibilityAttributedValue, getAccessibilityFrame, getAccessibilityHint, getAccessibilityLabel, getAccessibilityLanguage, getAccessibilityNavigationStyle, getAccessibilityPath, getAccessibilityTraits, getAccessibilityValue, getActionTarget, getInputAccessoryView, getInputAccessoryViewController, getInputAssistantItem, getInputView, getInputViewController, getKeyCommands, getNextResponder, getTextInputContextIdentifier, getTextInputMode, getUndoManager, getUserActivity, isAccessibilityElement, isAccessibilityViewModal, isFirstResponder, motionBegan, motionCancelled, motionEnded, pressesBegan, pressesCancelled, pressesChanged, pressesEnded, reloadInputViews, remoteControlReceived, resignFirstResponder, restoreUserActivityState, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedValue, setAccessibilityElement, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityTraits, setAccessibilityValue, setAccessibilityViewModal, setShouldGroupAccessibilityChildren, setUserActivity, shouldGroupAccessibilityChildren, touchesBegan, touchesCancelled, touchesEnded, touchesEstimatedPropertiesUpdated, touchesMoved, updateUserActivityState
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
SKSpriteNode
public SKSpriteNode()
-
SKSpriteNode
protected SKSpriteNode(NSObject.Handle h, long handle)
-
SKSpriteNode
protected SKSpriteNode(NSObject.SkipInit skipInit)
-
SKSpriteNode
public SKSpriteNode(SKTexture texture)
-
SKSpriteNode
public SKSpriteNode(java.lang.String name)
-
SKSpriteNode
public SKSpriteNode(NSCoder aDecoder)
-
SKSpriteNode
public SKSpriteNode(java.lang.String name, boolean generateNormalMap)
-
-
Method Detail
-
getTexture
public SKTexture getTexture()
-
setTexture
public void setTexture(SKTexture v)
-
getNormalTexture
public SKTexture getNormalTexture()
- Since:
- Available in iOS 8.0 and later.
-
setNormalTexture
public void setNormalTexture(SKTexture v)
- Since:
- Available in iOS 8.0 and later.
-
getLightingBitMask
public int getLightingBitMask()
- Since:
- Available in iOS 8.0 and later.
-
setLightingBitMask
public void setLightingBitMask(int v)
- Since:
- Available in iOS 8.0 and later.
-
getShadowCastBitMask
public int getShadowCastBitMask()
- Since:
- Available in iOS 8.0 and later.
-
setShadowCastBitMask
public void setShadowCastBitMask(int v)
- Since:
- Available in iOS 8.0 and later.
-
getShadowedBitMask
public int getShadowedBitMask()
- Since:
- Available in iOS 8.0 and later.
-
setShadowedBitMask
public void setShadowedBitMask(int v)
- Since:
- Available in iOS 8.0 and later.
-
getCenterRect
public CGRect getCenterRect()
-
setCenterRect
public void setCenterRect(CGRect v)
-
getColorBlendFactor
public double getColorBlendFactor()
-
setColorBlendFactor
public void setColorBlendFactor(double v)
-
getColor
public UIColor getColor()
-
setColor
public void setColor(UIColor v)
-
getBlendMode
public SKBlendMode getBlendMode()
-
setBlendMode
public void setBlendMode(SKBlendMode v)
-
getAnchorPoint
public CGPoint getAnchorPoint()
-
setAnchorPoint
public void setAnchorPoint(CGPoint v)
-
getSize
public CGSize getSize()
-
setSize
public void setSize(CGSize v)
-
getShader
public SKShader getShader()
- Since:
- Available in iOS 8.0 and later.
-
setShader
public void setShader(SKShader v)
- Since:
- Available in iOS 8.0 and later.
-
getAttributeValues
public NSDictionary<NSString,SKAttributeValue> getAttributeValues()
- Overrides:
getAttributeValues
in classSKNode
- Since:
- Available in iOS 10.0 and later.
-
setAttributeValues
public void setAttributeValues(NSDictionary<NSString,SKAttributeValue> v)
- Overrides:
setAttributeValues
in classSKNode
- Since:
- Available in iOS 10.0 and later.
-
getWarpGeometry
public SKWarpGeometry getWarpGeometry()
- Specified by:
getWarpGeometry
in interfaceSKWarpable
-
setWarpGeometry
public void setWarpGeometry(SKWarpGeometry v)
- Specified by:
setWarpGeometry
in interfaceSKWarpable
-
getSubdivisionLevels
public long getSubdivisionLevels()
- Specified by:
getSubdivisionLevels
in interfaceSKWarpable
-
setSubdivisionLevels
public void setSubdivisionLevels(long v)
- Specified by:
setSubdivisionLevels
in interfaceSKWarpable
-
init
protected long init(SKTexture texture)
-
init
protected long init(java.lang.String name)
-
scaleToSize
public void scaleToSize(CGSize size)
- Since:
- Available in iOS 10.0 and later.
-
valueForAttribute
public SKAttributeValue valueForAttribute(java.lang.String key)
- Since:
- Available in iOS 10.0 and later.
-
setValueForAttribute
public void setValueForAttribute(SKAttributeValue value, java.lang.String key)
- Since:
- Available in iOS 10.0 and later.
-
create
protected static long create(java.lang.String name, boolean generateNormalMap)
-
-