public class SKTileDefinition extends NSObject implements NSCopying, NSSecureCoding
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
SKTileDefinition(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
static SKTileDefinition |
alloc() |
static SKTileDefinition |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
encodeWithCoder(NSCoder coder) |
boolean |
flipHorizontally()
When set to YES, the tile definition's images will be flipped horizontally (i.e., the left of the image becomes the right).
|
boolean |
flipVertically()
When set to YES, the tile definition's images will be flipped vertically (i.e., the top of the image becomes the bottom).
|
static long |
hash_static() |
SKTileDefinition |
init() |
SKTileDefinition |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
SKTileDefinition |
initWithTexture(SKTexture texture)
Initilize a tile definition with an SKTexture, and set its size to the SKTexture's width/height.
|
SKTileDefinition |
initWithTextureNormalTextureSize(SKTexture texture,
SKTexture normalTexture,
CGSize size)
Initilize a tile definition with an SKTexture and the specified size.
|
SKTileDefinition |
initWithTextureSize(SKTexture texture,
CGSize size)
Initilize a tile definition with an SKTexture and the specified size.
|
SKTileDefinition |
initWithTexturesNormalTexturesSizeTimePerFrame(NSArray<? extends SKTexture> textures,
NSArray<? extends SKTexture> normalTextures,
CGSize size,
double timePerFrame)
Initilize an animated tile definition with an array of SKTextures, the specified size, and the length of time each texture should be displayed for in the animation.
|
SKTileDefinition |
initWithTexturesSizeTimePerFrame(NSArray<? extends SKTexture> textures,
CGSize size,
double timePerFrame)
Initilize an animated tile definition with an array of SKTextures, the specified size, and the length of time each texture should be displayed for in the animation.
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
java.lang.String |
name()
Client-assignable name for the tile definition.
|
static SKTileDefinition |
new_objc() |
NSArray<? extends SKTexture> |
normalTextures()
The textures to use for generating normals that lights use to light this tile.
|
long |
placementWeight()
This value is used to determine how likely this tile definition is to be chosen for placement when a SKTileGroupRule has mulitple tile definitions assigned to it.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
long |
rotation()
The rotation of the tile definition's images can be set in 90 degree increments.
|
void |
setFlipHorizontally(boolean value)
When set to YES, the tile definition's images will be flipped horizontally (i.e., the left of the image becomes the right).
|
void |
setFlipVertically(boolean value)
When set to YES, the tile definition's images will be flipped vertically (i.e., the top of the image becomes the bottom).
|
void |
setName(java.lang.String value)
Client-assignable name for the tile definition.
|
void |
setNormalTextures(NSArray<? extends SKTexture> value)
The textures to use for generating normals that lights use to light this tile.
|
void |
setPlacementWeight(long value)
This value is used to determine how likely this tile definition is to be chosen for placement when a SKTileGroupRule has mulitple tile definitions assigned to it.
|
void |
setRotation(long value)
The rotation of the tile definition's images can be set in 90 degree increments.
|
void |
setSize(CGSize value)
The size of the tile in points.
|
void |
setTextures(NSArray<? extends SKTexture> value)
The textures used to draw the tile.
|
void |
setTimePerFrame(double value)
The duration, in seconds, that each texture in the textures array is displayed before switching to the next texture in the sequence.
|
void |
setUserData(NSMutableDictionary<?,?> value)
An optional dictionary that can be used to store your own data for each tile definition.
|
static void |
setVersion_static(long aVersion) |
CGSize |
size()
The size of the tile in points.
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
NSArray<? extends SKTexture> |
textures()
The textures used to draw the tile.
|
static SKTileDefinition |
tileDefinitionWithTexture(SKTexture texture)
Create a tile definition with an SKTexture, and set its size to the SKTexture's width/height.
|
static SKTileDefinition |
tileDefinitionWithTextureNormalTextureSize(SKTexture texture,
SKTexture normalTexture,
CGSize size)
Create a tile definition with an SKTexture and the specified size.
|
static SKTileDefinition |
tileDefinitionWithTextureSize(SKTexture texture,
CGSize size)
Create a tile definition with an SKTexture and the specified size.
|
static SKTileDefinition |
tileDefinitionWithTexturesNormalTexturesSizeTimePerFrame(NSArray<? extends SKTexture> textures,
NSArray<? extends SKTexture> normalTextures,
CGSize size,
double timePerFrame)
Create an animated tile definition with an array of SKTextures, the specified size, and the length of time each texture should be displayed for in the animation.
|
static SKTileDefinition |
tileDefinitionWithTexturesSizeTimePerFrame(NSArray<? extends SKTexture> textures,
CGSize size,
double timePerFrame)
Create an animated tile definition with an array of SKTextures, the specified size, and the length of time each texture should be displayed for in the animation.
|
double |
timePerFrame()
The duration, in seconds, that each texture in the textures array is displayed before switching to the next texture in the sequence.
|
NSMutableDictionary<?,?> |
userData()
An optional dictionary that can be used to store your own data for each tile definition.
|
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static SKTileDefinition alloc()
public static SKTileDefinition allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static SKTileDefinition new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static SKTileDefinition tileDefinitionWithTexture(SKTexture texture)
texture - the texture to reference for size and contentpublic static SKTileDefinition tileDefinitionWithTextureNormalTextureSize(SKTexture texture, SKTexture normalTexture, CGSize size)
texture - the texture to reference for contentnormalTexture - the normal texture to use for generating normals for lightingsize - the size of the tile in pointspublic static SKTileDefinition tileDefinitionWithTextureSize(SKTexture texture, CGSize size)
texture - the texture to reference for contentsize - the size of the tile in pointspublic static SKTileDefinition tileDefinitionWithTexturesNormalTexturesSizeTimePerFrame(NSArray<? extends SKTexture> textures, NSArray<? extends SKTexture> normalTextures, CGSize size, double timePerFrame)
textures - the textures to reference for animated contentnormalTextures - the normal textures to use for generating normals for lightingsize - the size of the tile in pointstimePerFrame - the duration, in seconds, that each texture in the textures array is displayed before switching to the next texture in the sequencepublic static SKTileDefinition tileDefinitionWithTexturesSizeTimePerFrame(NSArray<? extends SKTexture> textures, CGSize size, double timePerFrame)
textures - the textures to reference for animated contentsize - the size of the tile in pointstimePerFrame - the duration, in seconds, that each texture in the textures array is displayed before switching to the next texture in the sequencepublic static long version_static()
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic boolean flipHorizontally()
public boolean flipVertically()
public SKTileDefinition init()
public SKTileDefinition initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic SKTileDefinition initWithTexture(SKTexture texture)
texture - the texture to reference for size and contentpublic SKTileDefinition initWithTextureNormalTextureSize(SKTexture texture, SKTexture normalTexture, CGSize size)
texture - the texture to reference for contentnormalTexture - the normal texture to use for generating normals for lightingsize - the size of the tile in pointspublic SKTileDefinition initWithTextureSize(SKTexture texture, CGSize size)
texture - the texture to reference for contentsize - the size of the tile in pointspublic SKTileDefinition initWithTexturesNormalTexturesSizeTimePerFrame(NSArray<? extends SKTexture> textures, NSArray<? extends SKTexture> normalTextures, CGSize size, double timePerFrame)
textures - the textures to reference for animated contentnormalTextures - the normal textures to use for generating normals for lightingsize - the size of the tile in pointstimePerFrame - the duration, in seconds, that each texture in the textures array is displayed before switching to the next texture in the sequencepublic SKTileDefinition initWithTexturesSizeTimePerFrame(NSArray<? extends SKTexture> textures, CGSize size, double timePerFrame)
textures - the textures to reference for animated contentsize - the size of the tile in pointstimePerFrame - the duration, in seconds, that each texture in the textures array is displayed before switching to the next texture in the sequencepublic java.lang.String name()
public NSArray<? extends SKTexture> normalTextures()
public long placementWeight()
public long rotation()
public void setFlipHorizontally(boolean value)
public void setFlipVertically(boolean value)
public void setName(java.lang.String value)
public void setNormalTextures(NSArray<? extends SKTexture> value)
public void setPlacementWeight(long value)
public void setRotation(long value)
public void setSize(CGSize value)
public void setTextures(NSArray<? extends SKTexture> value)
public void setTimePerFrame(double value)
public void setUserData(NSMutableDictionary<?,?> value)
public CGSize size()
public NSArray<? extends SKTexture> textures()
public double timePerFrame()
public NSMutableDictionary<?,?> userData()
public static boolean supportsSecureCoding()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCoding