Crate objc2_sprite_kit

Crate objc2_sprite_kit 

Source
Expand description

§Bindings to the SpriteKit framework

See Apple’s docs and the general docs on framework crates for more information.

Structs§

SKActionSKAction
An SKAction object is an action that is executed by a node in the scene. Actions are most often used to change the structure and content of the node to which they are attached, but can also make other changes to the scene. When the scene processes its nodes, actions associated with those nodes are evaluated.
SKActionTimingModeSKAction
Adjust the timing of an action
SKAttributeSKAttribute
Apple’s documentation
SKAttributeTypeSKAttribute
Apple’s documentation
SKAttributeValueSKAttribute
Apple’s documentation
SKBlendModeSKNode
Blend modes that the SKNode uses to compose with the framebuffer to produce blended colors.
SKConstraintSKConstraint
SKConstraints are evaluated each frame after actions and physics. The node’s transform will be changed to staisfy the constarint
SKInterpolationModeSKKeyframeSequence
Apple’s documentation
SKKeyframeSequenceSKKeyframeSequence
Apple’s documentation
SKLabelHorizontalAlignmentModeSKLabelNode
Apple’s documentation
SKLabelVerticalAlignmentModeSKLabelNode
Apple’s documentation
SKMutableTextureSKMutableTexture and SKTexture
Apple’s documentation
SKNodeFocusBehaviorSKNode
Apple’s documentation
SKParticleRenderOrderSKEmitterNode
Apple’s documentation
SKPhysicsBodySKPhysicsBody
A SpriteKit physics body. These are the physical representations of your nodes. These specify the area and mass and any collision masking needed.
SKPhysicsContactSKPhysicsContact
Apple’s documentation
SKPhysicsJointSKPhysicsJoint
Apple’s documentation
SKPhysicsJointFixedSKPhysicsJoint
Apple’s documentation
SKPhysicsJointLimitSKPhysicsJoint
Apple’s documentation
SKPhysicsJointPinSKPhysicsJoint
Apple’s documentation
SKPhysicsJointSlidingSKPhysicsJoint
Apple’s documentation
SKPhysicsJointSpringSKPhysicsJoint
Apple’s documentation
SKPhysicsWorldSKPhysicsWorld
Apple’s documentation
SKRangeSKConstraint
SKRange object used to define a range of allowable values
SKReachConstraintsSKReachConstraints
Apple’s documentation
SKRegionSKRegion
Apple’s documentation
SKRendererSKRenderer
A renderer for displaying a SpriteKit scene in an existing Metal workflow.
SKRepeatModeSKKeyframeSequence
Apple’s documentation
SKSceneScaleModeSKScene
Apple’s documentation
SKShaderSKShader
Apple’s documentation
SKTextureSKTexture
A texture to be mapped onto SKSpriteNode instances.
SKTextureAtlasSKTextureAtlas
Apple’s documentation
SKTextureFilteringModeSKTexture
Apple’s documentation
SKTileAdjacencyMaskSKTileSet
The adjacency mask is used to specify which neighboring tiles need to be filled in for a rule to go into effect.
SKTileDefinitionSKTileDefinition
A tile definition contains the information needed to represent a single type of tile within a tile map.
SKTileDefinitionRotationSKTileDefinition
Adjust the rotation of the tile definition image, in 90 degree increments.
SKTileGroupSKTileSet
A tile group encapsulates a collection of related tile definitions that are designed to be pieced together within a tile map. How those tiles are pieced together is governed by the set of rules. When a tile group is placed in a tile map, the map evaluates the rules to determine which tiles should be placed to achieve the desired outcome.
SKTileGroupRuleSKTileSet
A tile group rule defines how a certain type of tile should be placed on the map. These tiles are like puzzle pieces, and the rules define how they should be pieced together. This is accomplished by defining which neighboring spaces need to be filled with tiles that belong to the same group, and which tiles are required to be empty. The required pattern of neighboring tiles is defined using the SKTileAdjacencyMask.
SKTileSetSKTileSet
A tile set contains all of the tile definitions that are available for use in a tile map. In addition, it also contains tile groups, which define collections of related tile definitions and the rules that govern their placement.
SKTileSetTypeSKTileSet
The tile set type is used to describe how the tiles will be arranged in a tile map.
SKTransitionSKTransition
A transition style from one scene to another.
SKTransitionDirectionSKTransition
Apple’s documentation
SKUniformSKUniform
Apple’s documentation
SKUniformTypeSKUniform
Apple’s documentation
SKWarpGeometrySKWarpGeometry
Apple’s documentation
SKWarpGeometryGridSKWarpGeometry
Apple’s documentation

Constants§

SK_VERSIONSKVersion
Apple’s documentation

Traits§

NSEventSKNodeEventSKNode
Category “SKNodeEvent” on [NSEvent].
SKPhysicsContactDelegateSKPhysicsWorld
Apple’s documentation
SKSceneDelegateSKScene
Apple’s documentation
SKViewDelegateSKView
Apple’s documentation
SKWarpableSKWarpGeometry
Apple’s documentation

Type Aliases§

SKActionTimingFunctionSKAction and block2
A custom timing function for SKActions. Input time will be linear 0.0-1.0 over the duration of the action. Return values must be 0.0-1.0 and increasing and the function must return 1.0 when the input time reaches 1.0.