Documentation
¶
Overview ¶
Package spritekit provides a fluent Go API over the macOS SpriteKit framework.
Construction ¶
New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.
Lifecycle ¶
A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.
Main-thread requirements ¶
Methods, setters, and constructors of classes Apple isolates to the main thread run there automatically; callers never need to arrange main-thread dispatch for the generated API.
Delegates ¶
A …Delegate interface is implemented by a plain Go value and installed with the matching With… setter; the package builds the Objective-C delegate object behind the scenes. Optional protocol methods are separate one-method …Handler interfaces — implement the ones you need on the same value and the framework calls them too.
Types ¶
Each base type below lists the concrete types you construct and pass where the base is accepted:
- EffectNode: Scene
- Node: AudioNode, CameraNode, CropNode, EffectNode, EmitterNode, FieldNode, LabelNode, LightNode, ReferenceNode, SK3DNode, ShapeNode, SpriteNode, TileMapNode, TransformNode, VideoNode
- PhysicsJoint: PhysicsJointFixed, PhysicsJointLimit, PhysicsJointPin, PhysicsJointSliding, PhysicsJointSpring
- Texture: MutableTexture
- WarpGeometry: WarpGeometryGrid
Index ¶
- func PreloadTextureAtlases(ctx context.Context, textureAtlases []*TextureAtlas) error
- func PreloadTextureAtlasesNamed(ctx context.Context, atlasNames []string) (result obj.Object, err error)
- func PreloadTextures(ctx context.Context, textures []*Texture) error
- type Action
- func ActionFromID(id objc.ID) *Action
- func ActionNamed(name string) *Action
- func ActionNamedDuration(name string, duration float64) *Action
- func ActionNamedFromURL(name string, url string) *Action
- func ActionNamedFromURLDuration(name string, url string, duration float64) *Action
- func AnimateWithNormalTexturesTimePerFrame(textures []*Texture, sec float64) *Action
- func AnimateWithNormalTexturesTimePerFrameResizeRestore(textures []*Texture, sec float64, resize bool, restore bool) *Action
- func AnimateWithTexturesTimePerFrame(textures []*Texture, sec float64) *Action
- func AnimateWithTexturesTimePerFrameResizeRestore(textures []*Texture, sec float64, resize bool, restore bool) *Action
- func AnimateWithWarpsTimes(warps []*WarpGeometry, times []*foundation.Number) *Action
- func AnimateWithWarpsTimesRestore(warps []*WarpGeometry, times []*foundation.Number, restore bool) *Action
- func ApplyAngularImpulseDuration(impulse float64, duration float64) *Action
- func ApplyForceAtPointDuration(force corefoundation.CGVector, point corefoundation.CGPoint, duration float64) *Action
- func ApplyForceDuration(force corefoundation.CGVector, duration float64) *Action
- func ApplyImpulseAtPointDuration(impulse corefoundation.CGVector, point corefoundation.CGPoint, ...) *Action
- func ApplyImpulseDuration(impulse corefoundation.CGVector, duration float64) *Action
- func ApplyTorqueDuration(torque float64, duration float64) *Action
- func ChangeChargeByDuration(v float32, duration float64) *Action
- func ChangeChargeToDuration(v float32, duration float64) *Action
- func ChangeMassByDuration(v float32, duration float64) *Action
- func ChangeMassToDuration(v float32, duration float64) *Action
- func ChangeObstructionByDuration(v float32, duration float64) *Action
- func ChangeObstructionToDuration(v float32, duration float64) *Action
- func ChangeOcclusionByDuration(v float32, duration float64) *Action
- func ChangeOcclusionToDuration(v float32, duration float64) *Action
- func ChangePlaybackRateByDuration(v float32, duration float64) *Action
- func ChangePlaybackRateToDuration(v float32, duration float64) *Action
- func ChangeReverbByDuration(v float32, duration float64) *Action
- func ChangeReverbToDuration(v float32, duration float64) *Action
- func ChangeVolumeByDuration(v float32, duration float64) *Action
- func ChangeVolumeToDuration(v float32, duration float64) *Action
- func ColorizeWithColorBlendFactorDuration(colorBlendFactor float64, sec float64) *Action
- func ColorizeWithColorColorBlendFactorDuration(color obj.Object, colorBlendFactor float64, duration float64) *Action
- func CustomActionWithDurationActionBlock(duration float64, block func(obj.Object, float64)) *Action
- func FadeAlphaByDuration(factor float64, duration float64) *Action
- func FadeAlphaToDuration(alpha float64, duration float64) *Action
- func FadeInWithDuration(duration float64) *Action
- func FadeOutWithDuration(duration float64) *Action
- func FalloffByDuration(falloff float32, duration float64) *Action
- func FalloffToDuration(falloff float32, duration float64) *Action
- func FollowPathAsOffsetOrientToPathDuration(path coregraphics.CGPathRef, offset bool, orient bool, duration float64) *Action
- func FollowPathAsOffsetOrientToPathSpeed(path coregraphics.CGPathRef, offset bool, orient bool, speed float64) *Action
- func FollowPathDuration(path coregraphics.CGPathRef, duration float64) *Action
- func FollowPathSpeed(path coregraphics.CGPathRef, speed float64) *Action
- func Group(actions []*Action) *Action
- func Hide() *Action
- func MoveByDuration(delta corefoundation.CGVector, duration float64) *Action
- func MoveByXYDuration(deltaX float64, deltaY float64, duration float64) *Action
- func MoveToDuration(location corefoundation.CGPoint, duration float64) *Action
- func MoveToXDuration(x_ float64, duration float64) *Action
- func MoveToYDuration(y float64, duration float64) *Action
- func NewAction() *Action
- func Pause() *Action
- func Play() *Action
- func PlaySoundFileNamedWaitForCompletion(soundFile string, wait bool) *Action
- func ReachToNodeRootNodeDuration(node *Node, root *Node, sec float64) *Action
- func ReachToNodeRootNodeVelocity(node *Node, root *Node, velocity float64) *Action
- func ReachToRootNodeDuration(position corefoundation.CGPoint, root *Node, duration float64) *Action
- func ReachToRootNodeVelocity(position corefoundation.CGPoint, root *Node, velocity float64) *Action
- func RemoveFromParent() *Action
- func RepeatActionCount(action *Action, count int) *Action
- func RepeatActionForever(action *Action) *Action
- func ResizeByWidthHeightDuration(width float64, height float64, duration float64) *Action
- func ResizeToHeightDuration(height float64, duration float64) *Action
- func ResizeToWidthDuration(width float64, duration float64) *Action
- func ResizeToWidthHeightDuration(width float64, height float64, duration float64) *Action
- func RotateByAngleDuration(radians float64, duration float64) *Action
- func RotateToAngleDuration(radians float64, duration float64) *Action
- func RotateToAngleDurationShortestUnitArc(radians float64, duration float64, shortestUnitArc bool) *Action
- func RunActionOnChildWithName(action *Action, name string) *Action
- func RunBlock(block func()) *Action
- func RunBlockQueue(block func(), queue dispatch.Queue) *Action
- func ScaleByDuration(scale float64, duration float64) *Action
- func ScaleToDuration(scale float64, duration float64) *Action
- func ScaleToSizeDuration(size corefoundation.CGSize, duration float64) *Action
- func ScaleXByYDuration(xScale float64, yScale float64, duration float64) *Action
- func ScaleXToDuration(scale float64, duration float64) *Action
- func ScaleXToYDuration(xScale float64, yScale float64, duration float64) *Action
- func ScaleYToDuration(scale float64, duration float64) *Action
- func Sequence(actions []*Action) *Action
- func SetNormalTexture(texture *Texture) *Action
- func SetNormalTextureResize(texture *Texture, resize bool) *Action
- func SetTexture(texture *Texture) *Action
- func SetTextureResize(texture *Texture, resize bool) *Action
- func SpeedByDuration(speed float64, duration float64) *Action
- func SpeedToDuration(speed float64, duration float64) *Action
- func StereoPanByDuration(v float32, duration float64) *Action
- func StereoPanToDuration(v float32, duration float64) *Action
- func Stop() *Action
- func StrengthByDuration(strength float32, duration float64) *Action
- func StrengthToDuration(strength float32, duration float64) *Action
- func Unhide() *Action
- func WaitForDuration(duration float64) *Action
- func WaitForDurationWithRange(duration float64, durationRange float64) *Action
- func WarpToDuration(warp *WarpGeometry, duration float64) *Action
- func (a *Action) Description() string
- func (a *Action) Duration() float64
- func (a *Action) IsEqual(other obj.Object) bool
- func (a *Action) IsKind(className string) bool
- func (a *Action) ReversedAction() *Action
- func (a *Action) Speed() float64
- func (a *Action) String() string
- func (a *Action) TimingMode() ActionTimingMode
- func (a *Action) WithDuration(duration float64) *Action
- func (a *Action) WithSpeed(speed float64) *Action
- func (a *Action) WithTimingFunction(timingFunction func(float32) int) *Action
- func (a *Action) WithTimingMode(timingMode ActionTimingMode) *Action
- type ActionTimingMode
- type Attribute
- type AttributeType
- type AttributeValue
- func AttributeValueFromID(id objc.ID) *AttributeValue
- func NewAttributeValue() *AttributeValue
- func ValueWithFloat(value float32) *AttributeValue
- func ValueWithVectorFloat2(value unsafe.Pointer) *AttributeValue
- func ValueWithVectorFloat3(value unsafe.Pointer) *AttributeValue
- func ValueWithVectorFloat4(value unsafe.Pointer) *AttributeValue
- func (av *AttributeValue) Description() string
- func (av *AttributeValue) FloatValue() float32
- func (av *AttributeValue) IsEqual(other obj.Object) bool
- func (av *AttributeValue) IsKind(className string) bool
- func (av *AttributeValue) String() string
- func (av *AttributeValue) VectorFloat2Value() unsafe.Pointer
- func (av *AttributeValue) VectorFloat3Value() unsafe.Pointer
- func (av *AttributeValue) VectorFloat4Value() unsafe.Pointer
- func (av *AttributeValue) WithFloatValue(floatValue float32) *AttributeValue
- func (av *AttributeValue) WithVectorFloat2Value(vectorFloat2Value unsafe.Pointer) *AttributeValue
- func (av *AttributeValue) WithVectorFloat3Value(vectorFloat3Value unsafe.Pointer) *AttributeValue
- func (av *AttributeValue) WithVectorFloat4Value(vectorFloat4Value unsafe.Pointer) *AttributeValue
- type AudioNode
- func (an *AudioNode) AutoplayLooped() bool
- func (an *AudioNode) AvAudioNode() obj.Object
- func (an *AudioNode) IsPositional() bool
- func (an *AudioNode) WithAccessibilityElement(accessibilityElement bool) *AudioNode
- func (an *AudioNode) WithAccessibilityEnabled(accessibilityEnabled bool) *AudioNode
- func (an *AudioNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *AudioNode
- func (an *AudioNode) WithAccessibilityHelp(accessibilityHelp string) *AudioNode
- func (an *AudioNode) WithAccessibilityLabel(accessibilityLabel string) *AudioNode
- func (an *AudioNode) WithAccessibilityParent(accessibilityParent obj.Object) *AudioNode
- func (an *AudioNode) WithAccessibilityRole(accessibilityRole string) *AudioNode
- func (an *AudioNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *AudioNode
- func (an *AudioNode) WithAccessibilitySubrole(accessibilitySubrole string) *AudioNode
- func (an *AudioNode) WithAlpha(alpha float64) *AudioNode
- func (an *AudioNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *AudioNode
- func (an *AudioNode) WithAutoplayLooped(autoplayLooped bool) *AudioNode
- func (an *AudioNode) WithAvAudioNode(avAudioNode obj.Object) *AudioNode
- func (an *AudioNode) WithConstraints(items ...*Constraint) *AudioNode
- func (an *AudioNode) WithHidden(hidden bool) *AudioNode
- func (an *AudioNode) WithName(name string) *AudioNode
- func (an *AudioNode) WithPaused(paused bool) *AudioNode
- func (an *AudioNode) WithPhysicsBody(physicsBody *PhysicsBody) *AudioNode
- func (an *AudioNode) WithPosition(position corefoundation.CGPoint) *AudioNode
- func (an *AudioNode) WithPositional(positional bool) *AudioNode
- func (an *AudioNode) WithReachConstraints(reachConstraints *ReachConstraints) *AudioNode
- func (an *AudioNode) WithSpeed(speed float64) *AudioNode
- func (an *AudioNode) WithUserData(userData obj.Object) *AudioNode
- func (an *AudioNode) WithUserInteractionEnabled(userInteractionEnabled bool) *AudioNode
- func (an *AudioNode) WithXScale(xScale float64) *AudioNode
- func (an *AudioNode) WithYScale(yScale float64) *AudioNode
- func (an *AudioNode) WithZPosition(zPosition float64) *AudioNode
- func (an *AudioNode) WithZRotation(zRotation float64) *AudioNode
- type BlendMode
- type CGLCPContextPriorityRequest
- type CameraNode
- func (cn *CameraNode) ContainedNodeSet() []*Node
- func (cn *CameraNode) ContainsNode(node *Node) bool
- func (cn *CameraNode) WithAccessibilityElement(accessibilityElement bool) *CameraNode
- func (cn *CameraNode) WithAccessibilityEnabled(accessibilityEnabled bool) *CameraNode
- func (cn *CameraNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *CameraNode
- func (cn *CameraNode) WithAccessibilityHelp(accessibilityHelp string) *CameraNode
- func (cn *CameraNode) WithAccessibilityLabel(accessibilityLabel string) *CameraNode
- func (cn *CameraNode) WithAccessibilityParent(accessibilityParent obj.Object) *CameraNode
- func (cn *CameraNode) WithAccessibilityRole(accessibilityRole string) *CameraNode
- func (cn *CameraNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *CameraNode
- func (cn *CameraNode) WithAccessibilitySubrole(accessibilitySubrole string) *CameraNode
- func (cn *CameraNode) WithAlpha(alpha float64) *CameraNode
- func (cn *CameraNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *CameraNode
- func (cn *CameraNode) WithConstraints(items ...*Constraint) *CameraNode
- func (cn *CameraNode) WithHidden(hidden bool) *CameraNode
- func (cn *CameraNode) WithName(name string) *CameraNode
- func (cn *CameraNode) WithPaused(paused bool) *CameraNode
- func (cn *CameraNode) WithPhysicsBody(physicsBody *PhysicsBody) *CameraNode
- func (cn *CameraNode) WithPosition(position corefoundation.CGPoint) *CameraNode
- func (cn *CameraNode) WithReachConstraints(reachConstraints *ReachConstraints) *CameraNode
- func (cn *CameraNode) WithSpeed(speed float64) *CameraNode
- func (cn *CameraNode) WithUserData(userData obj.Object) *CameraNode
- func (cn *CameraNode) WithUserInteractionEnabled(userInteractionEnabled bool) *CameraNode
- func (cn *CameraNode) WithXScale(xScale float64) *CameraNode
- func (cn *CameraNode) WithYScale(yScale float64) *CameraNode
- func (cn *CameraNode) WithZPosition(zPosition float64) *CameraNode
- func (cn *CameraNode) WithZRotation(zRotation float64) *CameraNode
- type Clockid
- type Constraint
- func ConstraintFromID(id objc.ID) *Constraint
- func DistanceToNode(range_ *Range, node *Node) *Constraint
- func DistanceToPoint(range_ *Range, point corefoundation.CGPoint) *Constraint
- func DistanceToPointInNode(range_ *Range, point corefoundation.CGPoint, node *Node) *Constraint
- func NewConstraint() *Constraint
- func OrientToNodeOffset(node *Node, radians *Range) *Constraint
- func OrientToPointInNodeOffset(point corefoundation.CGPoint, node *Node, radians *Range) *Constraint
- func OrientToPointOffset(point corefoundation.CGPoint, radians *Range) *Constraint
- func PositionX(range_ *Range) *Constraint
- func PositionXY(xRange *Range, yRange *Range) *Constraint
- func PositionY(range_ *Range) *Constraint
- func ZRotation(zRange *Range) *Constraint
- func (c *Constraint) Description() string
- func (c *Constraint) Enabled() bool
- func (c *Constraint) IsEqual(other obj.Object) bool
- func (c *Constraint) IsKind(className string) bool
- func (c *Constraint) ReferenceNode() *Node
- func (c *Constraint) String() string
- func (c *Constraint) WithEnabled(enabled bool) *Constraint
- func (c *Constraint) WithReferenceNode(referenceNode NodeProvider) *Constraint
- type CropNode
- func (cn *CropNode) MaskNode() *Node
- func (cn *CropNode) WithAccessibilityElement(accessibilityElement bool) *CropNode
- func (cn *CropNode) WithAccessibilityEnabled(accessibilityEnabled bool) *CropNode
- func (cn *CropNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *CropNode
- func (cn *CropNode) WithAccessibilityHelp(accessibilityHelp string) *CropNode
- func (cn *CropNode) WithAccessibilityLabel(accessibilityLabel string) *CropNode
- func (cn *CropNode) WithAccessibilityParent(accessibilityParent obj.Object) *CropNode
- func (cn *CropNode) WithAccessibilityRole(accessibilityRole string) *CropNode
- func (cn *CropNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *CropNode
- func (cn *CropNode) WithAccessibilitySubrole(accessibilitySubrole string) *CropNode
- func (cn *CropNode) WithAlpha(alpha float64) *CropNode
- func (cn *CropNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *CropNode
- func (cn *CropNode) WithConstraints(items ...*Constraint) *CropNode
- func (cn *CropNode) WithHidden(hidden bool) *CropNode
- func (cn *CropNode) WithMaskNode(maskNode NodeProvider) *CropNode
- func (cn *CropNode) WithName(name string) *CropNode
- func (cn *CropNode) WithPaused(paused bool) *CropNode
- func (cn *CropNode) WithPhysicsBody(physicsBody *PhysicsBody) *CropNode
- func (cn *CropNode) WithPosition(position corefoundation.CGPoint) *CropNode
- func (cn *CropNode) WithReachConstraints(reachConstraints *ReachConstraints) *CropNode
- func (cn *CropNode) WithSpeed(speed float64) *CropNode
- func (cn *CropNode) WithUserData(userData obj.Object) *CropNode
- func (cn *CropNode) WithUserInteractionEnabled(userInteractionEnabled bool) *CropNode
- func (cn *CropNode) WithXScale(xScale float64) *CropNode
- func (cn *CropNode) WithYScale(yScale float64) *CropNode
- func (cn *CropNode) WithZPosition(zPosition float64) *CropNode
- func (cn *CropNode) WithZRotation(zRotation float64) *CropNode
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EffectNode
- func (en *EffectNode) BlendMode() BlendMode
- func (en *EffectNode) Filter() obj.Object
- func (en *EffectNode) Shader() *Shader
- func (en *EffectNode) ShouldCenterFilter() bool
- func (en *EffectNode) ShouldEnableEffects() bool
- func (en *EffectNode) ShouldRasterize() bool
- func (en *EffectNode) WithAccessibilityElement(accessibilityElement bool) *EffectNode
- func (en *EffectNode) WithAccessibilityEnabled(accessibilityEnabled bool) *EffectNode
- func (en *EffectNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *EffectNode
- func (en *EffectNode) WithAccessibilityHelp(accessibilityHelp string) *EffectNode
- func (en *EffectNode) WithAccessibilityLabel(accessibilityLabel string) *EffectNode
- func (en *EffectNode) WithAccessibilityParent(accessibilityParent obj.Object) *EffectNode
- func (en *EffectNode) WithAccessibilityRole(accessibilityRole string) *EffectNode
- func (en *EffectNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *EffectNode
- func (en *EffectNode) WithAccessibilitySubrole(accessibilitySubrole string) *EffectNode
- func (en *EffectNode) WithAlpha(alpha float64) *EffectNode
- func (en *EffectNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *EffectNode
- func (en *EffectNode) WithBlendMode(blendMode BlendMode) *EffectNode
- func (en *EffectNode) WithConstraints(items ...*Constraint) *EffectNode
- func (en *EffectNode) WithFilter(filter obj.Object) *EffectNode
- func (en *EffectNode) WithHidden(hidden bool) *EffectNode
- func (en *EffectNode) WithName(name string) *EffectNode
- func (en *EffectNode) WithPaused(paused bool) *EffectNode
- func (en *EffectNode) WithPhysicsBody(physicsBody *PhysicsBody) *EffectNode
- func (en *EffectNode) WithPosition(position corefoundation.CGPoint) *EffectNode
- func (en *EffectNode) WithReachConstraints(reachConstraints *ReachConstraints) *EffectNode
- func (en *EffectNode) WithShader(shader *Shader) *EffectNode
- func (en *EffectNode) WithShouldCenterFilter(shouldCenterFilter bool) *EffectNode
- func (en *EffectNode) WithShouldEnableEffects(shouldEnableEffects bool) *EffectNode
- func (en *EffectNode) WithShouldRasterize(shouldRasterize bool) *EffectNode
- func (en *EffectNode) WithSpeed(speed float64) *EffectNode
- func (en *EffectNode) WithUserData(userData obj.Object) *EffectNode
- func (en *EffectNode) WithUserInteractionEnabled(userInteractionEnabled bool) *EffectNode
- func (en *EffectNode) WithXScale(xScale float64) *EffectNode
- func (en *EffectNode) WithYScale(yScale float64) *EffectNode
- func (en *EffectNode) WithZPosition(zPosition float64) *EffectNode
- func (en *EffectNode) WithZRotation(zRotation float64) *EffectNode
- type EffectNodeProvider
- type EmitterNode
- func (en *EmitterNode) AdvanceSimulationTime(sec float64)
- func (en *EmitterNode) EmissionAngle() float64
- func (en *EmitterNode) EmissionAngleRange() float64
- func (en *EmitterNode) FieldBitMask() uint32
- func (en *EmitterNode) NumParticlesToEmit() int
- func (en *EmitterNode) ParticleAction() *Action
- func (en *EmitterNode) ParticleAlpha() float64
- func (en *EmitterNode) ParticleAlphaRange() float64
- func (en *EmitterNode) ParticleAlphaSequence() *KeyframeSequence
- func (en *EmitterNode) ParticleAlphaSpeed() float64
- func (en *EmitterNode) ParticleBirthRate() float64
- func (en *EmitterNode) ParticleBlendMode() BlendMode
- func (en *EmitterNode) ParticleColor() obj.Object
- func (en *EmitterNode) ParticleColorAlphaRange() float64
- func (en *EmitterNode) ParticleColorAlphaSpeed() float64
- func (en *EmitterNode) ParticleColorBlendFactor() float64
- func (en *EmitterNode) ParticleColorBlendFactorRange() float64
- func (en *EmitterNode) ParticleColorBlendFactorSequence() *KeyframeSequence
- func (en *EmitterNode) ParticleColorBlendFactorSpeed() float64
- func (en *EmitterNode) ParticleColorBlueRange() float64
- func (en *EmitterNode) ParticleColorBlueSpeed() float64
- func (en *EmitterNode) ParticleColorGreenRange() float64
- func (en *EmitterNode) ParticleColorGreenSpeed() float64
- func (en *EmitterNode) ParticleColorRedRange() float64
- func (en *EmitterNode) ParticleColorRedSpeed() float64
- func (en *EmitterNode) ParticleColorSequence() *KeyframeSequence
- func (en *EmitterNode) ParticleLifetime() float64
- func (en *EmitterNode) ParticleLifetimeRange() float64
- func (en *EmitterNode) ParticlePosition() corefoundation.CGPoint
- func (en *EmitterNode) ParticlePositionRange() corefoundation.CGVector
- func (en *EmitterNode) ParticleRenderOrder() ParticleRenderOrder
- func (en *EmitterNode) ParticleRotation() float64
- func (en *EmitterNode) ParticleRotationRange() float64
- func (en *EmitterNode) ParticleRotationSpeed() float64
- func (en *EmitterNode) ParticleScale() float64
- func (en *EmitterNode) ParticleScaleRange() float64
- func (en *EmitterNode) ParticleScaleSequence() *KeyframeSequence
- func (en *EmitterNode) ParticleScaleSpeed() float64
- func (en *EmitterNode) ParticleSize() corefoundation.CGSize
- func (en *EmitterNode) ParticleSpeed() float64
- func (en *EmitterNode) ParticleSpeedRange() float64
- func (en *EmitterNode) ParticleTexture() *Texture
- func (en *EmitterNode) ParticleZPosition() float64
- func (en *EmitterNode) ParticleZPositionRange() float64
- func (en *EmitterNode) ParticleZPositionSpeed() float64
- func (en *EmitterNode) ResetSimulation()
- func (en *EmitterNode) Shader() *Shader
- func (en *EmitterNode) TargetNode() *Node
- func (en *EmitterNode) WithAccessibilityElement(accessibilityElement bool) *EmitterNode
- func (en *EmitterNode) WithAccessibilityEnabled(accessibilityEnabled bool) *EmitterNode
- func (en *EmitterNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *EmitterNode
- func (en *EmitterNode) WithAccessibilityHelp(accessibilityHelp string) *EmitterNode
- func (en *EmitterNode) WithAccessibilityLabel(accessibilityLabel string) *EmitterNode
- func (en *EmitterNode) WithAccessibilityParent(accessibilityParent obj.Object) *EmitterNode
- func (en *EmitterNode) WithAccessibilityRole(accessibilityRole string) *EmitterNode
- func (en *EmitterNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *EmitterNode
- func (en *EmitterNode) WithAccessibilitySubrole(accessibilitySubrole string) *EmitterNode
- func (en *EmitterNode) WithAlpha(alpha float64) *EmitterNode
- func (en *EmitterNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *EmitterNode
- func (en *EmitterNode) WithConstraints(items ...*Constraint) *EmitterNode
- func (en *EmitterNode) WithEmissionAngle(emissionAngle float64) *EmitterNode
- func (en *EmitterNode) WithEmissionAngleRange(emissionAngleRange float64) *EmitterNode
- func (en *EmitterNode) WithFieldBitMask(fieldBitMask uint32) *EmitterNode
- func (en *EmitterNode) WithHidden(hidden bool) *EmitterNode
- func (en *EmitterNode) WithName(name string) *EmitterNode
- func (en *EmitterNode) WithNumParticlesToEmit(numParticlesToEmit int) *EmitterNode
- func (en *EmitterNode) WithParticleAction(particleAction *Action) *EmitterNode
- func (en *EmitterNode) WithParticleAlpha(particleAlpha float64) *EmitterNode
- func (en *EmitterNode) WithParticleAlphaRange(particleAlphaRange float64) *EmitterNode
- func (en *EmitterNode) WithParticleAlphaSequence(particleAlphaSequence *KeyframeSequence) *EmitterNode
- func (en *EmitterNode) WithParticleAlphaSpeed(particleAlphaSpeed float64) *EmitterNode
- func (en *EmitterNode) WithParticleBirthRate(particleBirthRate float64) *EmitterNode
- func (en *EmitterNode) WithParticleBlendMode(particleBlendMode BlendMode) *EmitterNode
- func (en *EmitterNode) WithParticleColor(particleColor obj.Object) *EmitterNode
- func (en *EmitterNode) WithParticleColorAlphaRange(particleColorAlphaRange float64) *EmitterNode
- func (en *EmitterNode) WithParticleColorAlphaSpeed(particleColorAlphaSpeed float64) *EmitterNode
- func (en *EmitterNode) WithParticleColorBlendFactor(particleColorBlendFactor float64) *EmitterNode
- func (en *EmitterNode) WithParticleColorBlendFactorRange(particleColorBlendFactorRange float64) *EmitterNode
- func (en *EmitterNode) WithParticleColorBlendFactorSequence(particleColorBlendFactorSequence *KeyframeSequence) *EmitterNode
- func (en *EmitterNode) WithParticleColorBlendFactorSpeed(particleColorBlendFactorSpeed float64) *EmitterNode
- func (en *EmitterNode) WithParticleColorBlueRange(particleColorBlueRange float64) *EmitterNode
- func (en *EmitterNode) WithParticleColorBlueSpeed(particleColorBlueSpeed float64) *EmitterNode
- func (en *EmitterNode) WithParticleColorGreenRange(particleColorGreenRange float64) *EmitterNode
- func (en *EmitterNode) WithParticleColorGreenSpeed(particleColorGreenSpeed float64) *EmitterNode
- func (en *EmitterNode) WithParticleColorRedRange(particleColorRedRange float64) *EmitterNode
- func (en *EmitterNode) WithParticleColorRedSpeed(particleColorRedSpeed float64) *EmitterNode
- func (en *EmitterNode) WithParticleColorSequence(particleColorSequence *KeyframeSequence) *EmitterNode
- func (en *EmitterNode) WithParticleLifetime(particleLifetime float64) *EmitterNode
- func (en *EmitterNode) WithParticleLifetimeRange(particleLifetimeRange float64) *EmitterNode
- func (en *EmitterNode) WithParticlePosition(particlePosition corefoundation.CGPoint) *EmitterNode
- func (en *EmitterNode) WithParticlePositionRange(particlePositionRange corefoundation.CGVector) *EmitterNode
- func (en *EmitterNode) WithParticleRenderOrder(particleRenderOrder ParticleRenderOrder) *EmitterNode
- func (en *EmitterNode) WithParticleRotation(particleRotation float64) *EmitterNode
- func (en *EmitterNode) WithParticleRotationRange(particleRotationRange float64) *EmitterNode
- func (en *EmitterNode) WithParticleRotationSpeed(particleRotationSpeed float64) *EmitterNode
- func (en *EmitterNode) WithParticleScale(particleScale float64) *EmitterNode
- func (en *EmitterNode) WithParticleScaleRange(particleScaleRange float64) *EmitterNode
- func (en *EmitterNode) WithParticleScaleSequence(particleScaleSequence *KeyframeSequence) *EmitterNode
- func (en *EmitterNode) WithParticleScaleSpeed(particleScaleSpeed float64) *EmitterNode
- func (en *EmitterNode) WithParticleSize(particleSize corefoundation.CGSize) *EmitterNode
- func (en *EmitterNode) WithParticleSpeed(particleSpeed float64) *EmitterNode
- func (en *EmitterNode) WithParticleSpeedRange(particleSpeedRange float64) *EmitterNode
- func (en *EmitterNode) WithParticleTexture(particleTexture TextureProvider) *EmitterNode
- func (en *EmitterNode) WithParticleZPosition(particleZPosition float64) *EmitterNode
- func (en *EmitterNode) WithParticleZPositionRange(particleZPositionRange float64) *EmitterNode
- func (en *EmitterNode) WithParticleZPositionSpeed(particleZPositionSpeed float64) *EmitterNode
- func (en *EmitterNode) WithPaused(paused bool) *EmitterNode
- func (en *EmitterNode) WithPhysicsBody(physicsBody *PhysicsBody) *EmitterNode
- func (en *EmitterNode) WithPosition(position corefoundation.CGPoint) *EmitterNode
- func (en *EmitterNode) WithReachConstraints(reachConstraints *ReachConstraints) *EmitterNode
- func (en *EmitterNode) WithShader(shader *Shader) *EmitterNode
- func (en *EmitterNode) WithSpeed(speed float64) *EmitterNode
- func (en *EmitterNode) WithTargetNode(targetNode NodeProvider) *EmitterNode
- func (en *EmitterNode) WithUserData(userData obj.Object) *EmitterNode
- func (en *EmitterNode) WithUserInteractionEnabled(userInteractionEnabled bool) *EmitterNode
- func (en *EmitterNode) WithXAcceleration(xAcceleration float64) *EmitterNode
- func (en *EmitterNode) WithXScale(xScale float64) *EmitterNode
- func (en *EmitterNode) WithYAcceleration(yAcceleration float64) *EmitterNode
- func (en *EmitterNode) WithYScale(yScale float64) *EmitterNode
- func (en *EmitterNode) WithZPosition(zPosition float64) *EmitterNode
- func (en *EmitterNode) WithZRotation(zRotation float64) *EmitterNode
- func (en *EmitterNode) XAcceleration() float64
- func (en *EmitterNode) YAcceleration() float64
- type EntryID
- type EvCmd
- type FieldNode
- func CustomFieldWithEvaluationBlock(block func(unsafe.Pointer, unsafe.Pointer, float32, float32, float64) int) *FieldNode
- func DragField() *FieldNode
- func ElectricField() *FieldNode
- func FieldNodeFromID(id objc.ID) *FieldNode
- func LinearGravityFieldWithVector(direction unsafe.Pointer) *FieldNode
- func MagneticField() *FieldNode
- func NewFieldNode() *FieldNode
- func NoiseFieldWithSmoothnessAnimationSpeed(smoothness float64, speed float64) *FieldNode
- func RadialGravityField() *FieldNode
- func SpringField() *FieldNode
- func TurbulenceFieldWithSmoothnessAnimationSpeed(smoothness float64, speed float64) *FieldNode
- func VelocityFieldWithTexture(velocityTexture *Texture) *FieldNode
- func VelocityFieldWithVector(direction unsafe.Pointer) *FieldNode
- func VortexField() *FieldNode
- func (fn *FieldNode) AnimationSpeed() float32
- func (fn *FieldNode) CategoryBitMask() uint32
- func (fn *FieldNode) Direction() unsafe.Pointer
- func (fn *FieldNode) Falloff() float32
- func (fn *FieldNode) IsEnabled() bool
- func (fn *FieldNode) IsExclusive() bool
- func (fn *FieldNode) MinimumRadius() float32
- func (fn *FieldNode) Region() *Region
- func (fn *FieldNode) Smoothness() float32
- func (fn *FieldNode) Strength() float32
- func (fn *FieldNode) Texture() *Texture
- func (fn *FieldNode) WithAccessibilityElement(accessibilityElement bool) *FieldNode
- func (fn *FieldNode) WithAccessibilityEnabled(accessibilityEnabled bool) *FieldNode
- func (fn *FieldNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *FieldNode
- func (fn *FieldNode) WithAccessibilityHelp(accessibilityHelp string) *FieldNode
- func (fn *FieldNode) WithAccessibilityLabel(accessibilityLabel string) *FieldNode
- func (fn *FieldNode) WithAccessibilityParent(accessibilityParent obj.Object) *FieldNode
- func (fn *FieldNode) WithAccessibilityRole(accessibilityRole string) *FieldNode
- func (fn *FieldNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *FieldNode
- func (fn *FieldNode) WithAccessibilitySubrole(accessibilitySubrole string) *FieldNode
- func (fn *FieldNode) WithAlpha(alpha float64) *FieldNode
- func (fn *FieldNode) WithAnimationSpeed(animationSpeed float32) *FieldNode
- func (fn *FieldNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *FieldNode
- func (fn *FieldNode) WithCategoryBitMask(categoryBitMask uint32) *FieldNode
- func (fn *FieldNode) WithConstraints(items ...*Constraint) *FieldNode
- func (fn *FieldNode) WithDirection(direction unsafe.Pointer) *FieldNode
- func (fn *FieldNode) WithEnabled(enabled bool) *FieldNode
- func (fn *FieldNode) WithExclusive(exclusive bool) *FieldNode
- func (fn *FieldNode) WithFalloff(falloff float32) *FieldNode
- func (fn *FieldNode) WithHidden(hidden bool) *FieldNode
- func (fn *FieldNode) WithMinimumRadius(minimumRadius float32) *FieldNode
- func (fn *FieldNode) WithName(name string) *FieldNode
- func (fn *FieldNode) WithPaused(paused bool) *FieldNode
- func (fn *FieldNode) WithPhysicsBody(physicsBody *PhysicsBody) *FieldNode
- func (fn *FieldNode) WithPosition(position corefoundation.CGPoint) *FieldNode
- func (fn *FieldNode) WithReachConstraints(reachConstraints *ReachConstraints) *FieldNode
- func (fn *FieldNode) WithRegion(region *Region) *FieldNode
- func (fn *FieldNode) WithSmoothness(smoothness float32) *FieldNode
- func (fn *FieldNode) WithSpeed(speed float64) *FieldNode
- func (fn *FieldNode) WithStrength(strength float32) *FieldNode
- func (fn *FieldNode) WithTexture(texture TextureProvider) *FieldNode
- func (fn *FieldNode) WithUserData(userData obj.Object) *FieldNode
- func (fn *FieldNode) WithUserInteractionEnabled(userInteractionEnabled bool) *FieldNode
- func (fn *FieldNode) WithXScale(xScale float64) *FieldNode
- func (fn *FieldNode) WithYScale(yScale float64) *FieldNode
- func (fn *FieldNode) WithZPosition(zPosition float64) *FieldNode
- func (fn *FieldNode) WithZRotation(zRotation float64) *FieldNode
- type FilesecProperty
- type Flag
- type Idtype
- type InterpolationMode
- type IpcInfoObjectType
- type KeyframeSequence
- func KeyframeSequenceFromID(id objc.ID) *KeyframeSequence
- func NewKeyframeSequenceWithCapacity(numItems int) *KeyframeSequence
- func NewKeyframeSequenceWithCoder(aDecoder obj.Object) *KeyframeSequence
- func NewKeyframeSequenceWithKeyframeValuesTimes(values obj.Object, times []*foundation.Number) *KeyframeSequence
- func (ks *KeyframeSequence) AddKeyframeValueTime(value obj.Object, time_ float64)
- func (ks *KeyframeSequence) Count() int
- func (ks *KeyframeSequence) Description() string
- func (ks *KeyframeSequence) GetKeyframeTimeForIndex(index int) float64
- func (ks *KeyframeSequence) GetKeyframeValueForIndex(index int) obj.Object
- func (ks *KeyframeSequence) InterpolationMode() InterpolationMode
- func (ks *KeyframeSequence) IsEqual(other obj.Object) bool
- func (ks *KeyframeSequence) IsKind(className string) bool
- func (ks *KeyframeSequence) RemoveKeyframeAtIndex(index int)
- func (ks *KeyframeSequence) RemoveLastKeyframe()
- func (ks *KeyframeSequence) RepeatMode() RepeatMode
- func (ks *KeyframeSequence) SampleAtTime(time_ float64) obj.Object
- func (ks *KeyframeSequence) SetKeyframeTimeForIndex(time_ float64, index int)
- func (ks *KeyframeSequence) SetKeyframeValueForIndex(value obj.Object, index int)
- func (ks *KeyframeSequence) SetKeyframeValueTimeForIndex(value obj.Object, time_ float64, index int)
- func (ks *KeyframeSequence) String() string
- func (ks *KeyframeSequence) WithInterpolationMode(interpolationMode InterpolationMode) *KeyframeSequence
- func (ks *KeyframeSequence) WithRepeatMode(repeatMode RepeatMode) *KeyframeSequence
- type LabelHorizontalAlignmentMode
- type LabelNode
- func (ln *LabelNode) AttributedText() *foundation.AttributedString
- func (ln *LabelNode) BlendMode() BlendMode
- func (ln *LabelNode) Color() obj.Object
- func (ln *LabelNode) ColorBlendFactor() float64
- func (ln *LabelNode) FontColor() obj.Object
- func (ln *LabelNode) FontName() string
- func (ln *LabelNode) FontSize() float64
- func (ln *LabelNode) HorizontalAlignmentMode() LabelHorizontalAlignmentMode
- func (ln *LabelNode) NumberOfLines() int
- func (ln *LabelNode) PreferredMaxLayoutWidth() float64
- func (ln *LabelNode) Text() string
- func (ln *LabelNode) VerticalAlignmentMode() LabelVerticalAlignmentMode
- func (ln *LabelNode) WithAccessibilityElement(accessibilityElement bool) *LabelNode
- func (ln *LabelNode) WithAccessibilityEnabled(accessibilityEnabled bool) *LabelNode
- func (ln *LabelNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *LabelNode
- func (ln *LabelNode) WithAccessibilityHelp(accessibilityHelp string) *LabelNode
- func (ln *LabelNode) WithAccessibilityLabel(accessibilityLabel string) *LabelNode
- func (ln *LabelNode) WithAccessibilityParent(accessibilityParent obj.Object) *LabelNode
- func (ln *LabelNode) WithAccessibilityRole(accessibilityRole string) *LabelNode
- func (ln *LabelNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *LabelNode
- func (ln *LabelNode) WithAccessibilitySubrole(accessibilitySubrole string) *LabelNode
- func (ln *LabelNode) WithAlpha(alpha float64) *LabelNode
- func (ln *LabelNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *LabelNode
- func (ln *LabelNode) WithAttributedText(attributedText obj.Object) *LabelNode
- func (ln *LabelNode) WithBlendMode(blendMode BlendMode) *LabelNode
- func (ln *LabelNode) WithColor(color obj.Object) *LabelNode
- func (ln *LabelNode) WithColorBlendFactor(colorBlendFactor float64) *LabelNode
- func (ln *LabelNode) WithConstraints(items ...*Constraint) *LabelNode
- func (ln *LabelNode) WithFontColor(fontColor obj.Object) *LabelNode
- func (ln *LabelNode) WithFontName(fontName string) *LabelNode
- func (ln *LabelNode) WithFontSize(fontSize float64) *LabelNode
- func (ln *LabelNode) WithHidden(hidden bool) *LabelNode
- func (ln *LabelNode) WithHorizontalAlignmentMode(horizontalAlignmentMode LabelHorizontalAlignmentMode) *LabelNode
- func (ln *LabelNode) WithName(name string) *LabelNode
- func (ln *LabelNode) WithNumberOfLines(numberOfLines int) *LabelNode
- func (ln *LabelNode) WithPaused(paused bool) *LabelNode
- func (ln *LabelNode) WithPhysicsBody(physicsBody *PhysicsBody) *LabelNode
- func (ln *LabelNode) WithPosition(position corefoundation.CGPoint) *LabelNode
- func (ln *LabelNode) WithPreferredMaxLayoutWidth(preferredMaxLayoutWidth float64) *LabelNode
- func (ln *LabelNode) WithReachConstraints(reachConstraints *ReachConstraints) *LabelNode
- func (ln *LabelNode) WithSpeed(speed float64) *LabelNode
- func (ln *LabelNode) WithText(text string) *LabelNode
- func (ln *LabelNode) WithUserData(userData obj.Object) *LabelNode
- func (ln *LabelNode) WithUserInteractionEnabled(userInteractionEnabled bool) *LabelNode
- func (ln *LabelNode) WithVerticalAlignmentMode(verticalAlignmentMode LabelVerticalAlignmentMode) *LabelNode
- func (ln *LabelNode) WithXScale(xScale float64) *LabelNode
- func (ln *LabelNode) WithYScale(yScale float64) *LabelNode
- func (ln *LabelNode) WithZPosition(zPosition float64) *LabelNode
- func (ln *LabelNode) WithZRotation(zRotation float64) *LabelNode
- type LabelVerticalAlignmentMode
- type LaunchDataType
- type LightNode
- func (ln *LightNode) AmbientColor() obj.Object
- func (ln *LightNode) CategoryBitMask() uint32
- func (ln *LightNode) Falloff() float64
- func (ln *LightNode) IsEnabled() bool
- func (ln *LightNode) LightColor() obj.Object
- func (ln *LightNode) ShadowColor() obj.Object
- func (ln *LightNode) WithAccessibilityElement(accessibilityElement bool) *LightNode
- func (ln *LightNode) WithAccessibilityEnabled(accessibilityEnabled bool) *LightNode
- func (ln *LightNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *LightNode
- func (ln *LightNode) WithAccessibilityHelp(accessibilityHelp string) *LightNode
- func (ln *LightNode) WithAccessibilityLabel(accessibilityLabel string) *LightNode
- func (ln *LightNode) WithAccessibilityParent(accessibilityParent obj.Object) *LightNode
- func (ln *LightNode) WithAccessibilityRole(accessibilityRole string) *LightNode
- func (ln *LightNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *LightNode
- func (ln *LightNode) WithAccessibilitySubrole(accessibilitySubrole string) *LightNode
- func (ln *LightNode) WithAlpha(alpha float64) *LightNode
- func (ln *LightNode) WithAmbientColor(ambientColor obj.Object) *LightNode
- func (ln *LightNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *LightNode
- func (ln *LightNode) WithCategoryBitMask(categoryBitMask uint32) *LightNode
- func (ln *LightNode) WithConstraints(items ...*Constraint) *LightNode
- func (ln *LightNode) WithEnabled(enabled bool) *LightNode
- func (ln *LightNode) WithFalloff(falloff float64) *LightNode
- func (ln *LightNode) WithHidden(hidden bool) *LightNode
- func (ln *LightNode) WithLightColor(lightColor obj.Object) *LightNode
- func (ln *LightNode) WithName(name string) *LightNode
- func (ln *LightNode) WithPaused(paused bool) *LightNode
- func (ln *LightNode) WithPhysicsBody(physicsBody *PhysicsBody) *LightNode
- func (ln *LightNode) WithPosition(position corefoundation.CGPoint) *LightNode
- func (ln *LightNode) WithReachConstraints(reachConstraints *ReachConstraints) *LightNode
- func (ln *LightNode) WithShadowColor(shadowColor obj.Object) *LightNode
- func (ln *LightNode) WithSpeed(speed float64) *LightNode
- func (ln *LightNode) WithUserData(userData obj.Object) *LightNode
- func (ln *LightNode) WithUserInteractionEnabled(userInteractionEnabled bool) *LightNode
- func (ln *LightNode) WithXScale(xScale float64) *LightNode
- func (ln *LightNode) WithYScale(yScale float64) *LightNode
- func (ln *LightNode) WithZPosition(zPosition float64) *LightNode
- func (ln *LightNode) WithZRotation(zRotation float64) *LightNode
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type MpoFlags
- type MutableTexture
- type NXMouseButton
- type Node
- func (n *Node) AccessibilityChildren() obj.Object
- func (n *Node) AccessibilityFrame() corefoundation.CGRect
- func (n *Node) AccessibilityHelp() string
- func (n *Node) AccessibilityHitTest(point corefoundation.CGPoint) obj.Object
- func (n *Node) AccessibilityLabel() string
- func (n *Node) AccessibilityParent() obj.Object
- func (n *Node) AccessibilityRole() string
- func (n *Node) AccessibilityRoleDescription() string
- func (n *Node) AccessibilitySubrole() string
- func (n *Node) ActionForKey(key string) *Action
- func (n *Node) AddChild(node *Node)
- func (n *Node) Alpha() float64
- func (n *Node) AttributeValues() map[string]*AttributeValue
- func (n *Node) CalculateAccumulatedFrame() corefoundation.CGRect
- func (n *Node) ChildNodeWithName(name string) *Node
- func (n *Node) Children() []*Node
- func (n *Node) Constraints() []*Constraint
- func (n *Node) ContainsPoint(p corefoundation.CGPoint) bool
- func (n *Node) ConvertPointFromNode(point corefoundation.CGPoint, node *Node) corefoundation.CGPoint
- func (n *Node) ConvertPointToNode(point corefoundation.CGPoint, node *Node) corefoundation.CGPoint
- func (n *Node) Description() string
- func (n *Node) EnumerateChildNodesWithNameUsing(name string, block func(obj.Object, *bool))
- func (n *Node) Frame() corefoundation.CGRect
- func (n *Node) HasActions() bool
- func (n *Node) InParentHierarchy(parent *Node) bool
- func (n *Node) InsertChildAtIndex(node *Node, index int)
- func (n *Node) IntersectsNode(node *Node) bool
- func (n *Node) IsAccessibilityElement() bool
- func (n *Node) IsAccessibilityEnabled() bool
- func (n *Node) IsEqual(other obj.Object) bool
- func (n *Node) IsEqualToNode(node *Node) bool
- func (n *Node) IsHidden() bool
- func (n *Node) IsKind(className string) bool
- func (n *Node) IsPaused() bool
- func (n *Node) IsUserInteractionEnabled() bool
- func (n *Node) MoveToParent(parent *Node)
- func (n *Node) Name() string
- func (n *Node) NodeAtPoint(p corefoundation.CGPoint) *Node
- func (n *Node) NodesAtPoint(p corefoundation.CGPoint) []*Node
- func (n *Node) ObjectForKeyedSubscript(name string) []*Node
- func (n *Node) Parent() *Node
- func (n *Node) PhysicsBody() *PhysicsBody
- func (n *Node) Position() corefoundation.CGPoint
- func (n *Node) ReachConstraints() *ReachConstraints
- func (n *Node) RemoveActionForKey(key string)
- func (n *Node) RemoveAllActions()
- func (n *Node) RemoveAllChildren()
- func (n *Node) RemoveChildrenInArray(nodes []*Node)
- func (n *Node) RemoveFromParent()
- func (n *Node) RunAction(action *Action)
- func (n *Node) RunActionCompletion(ctx context.Context, action *Action) error
- func (n *Node) RunActionWithKey(action *Action, key string)
- func (n *Node) Scene() *Scene
- func (n *Node) SetAccessibilityChildren(accessibilityChildren obj.Object)
- func (n *Node) SetScale(scale float64)
- func (n *Node) SetValueForAttributeNamed(value *AttributeValue, key string)
- func (n *Node) Speed() float64
- func (n *Node) String() string
- func (n *Node) UserData() obj.Object
- func (n *Node) ValueForAttributeNamed(key string) *AttributeValue
- func (n *Node) WithAccessibilityElement(accessibilityElement bool) *Node
- func (n *Node) WithAccessibilityEnabled(accessibilityEnabled bool) *Node
- func (n *Node) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *Node
- func (n *Node) WithAccessibilityHelp(accessibilityHelp string) *Node
- func (n *Node) WithAccessibilityLabel(accessibilityLabel string) *Node
- func (n *Node) WithAccessibilityParent(accessibilityParent obj.Object) *Node
- func (n *Node) WithAccessibilityRole(accessibilityRole string) *Node
- func (n *Node) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *Node
- func (n *Node) WithAccessibilitySubrole(accessibilitySubrole string) *Node
- func (n *Node) WithAlpha(alpha float64) *Node
- func (n *Node) WithAttributeValues(attributeValues map[string]*AttributeValue) *Node
- func (n *Node) WithConstraints(items ...*Constraint) *Node
- func (n *Node) WithHidden(hidden bool) *Node
- func (n *Node) WithName(name string) *Node
- func (n *Node) WithPaused(paused bool) *Node
- func (n *Node) WithPhysicsBody(physicsBody *PhysicsBody) *Node
- func (n *Node) WithPosition(position corefoundation.CGPoint) *Node
- func (n *Node) WithReachConstraints(reachConstraints *ReachConstraints) *Node
- func (n *Node) WithSpeed(speed float64) *Node
- func (n *Node) WithUserData(userData obj.Object) *Node
- func (n *Node) WithUserInteractionEnabled(userInteractionEnabled bool) *Node
- func (n *Node) WithXScale(xScale float64) *Node
- func (n *Node) WithYScale(yScale float64) *Node
- func (n *Node) WithZPosition(zPosition float64) *Node
- func (n *Node) WithZRotation(zRotation float64) *Node
- func (n *Node) XScale() float64
- func (n *Node) YScale() float64
- func (n *Node) ZPosition() float64
- func (n *Node) ZRotation() float64
- type NodeProvider
- type OSClockid
- type OSUnfairLockFlags
- type PMPageToPaperMappingType
- type ParticleRenderOrder
- type Perm
- type PhysicsBody
- func BodyWithBodies(bodies []*PhysicsBody) *PhysicsBody
- func BodyWithCircleOfRadius(r float64) *PhysicsBody
- func BodyWithCircleOfRadiusCenter(r float64, center corefoundation.CGPoint) *PhysicsBody
- func BodyWithEdgeChainFromPath(path coregraphics.CGPathRef) *PhysicsBody
- func BodyWithEdgeFromPointToPoint(p1 corefoundation.CGPoint, p2 corefoundation.CGPoint) *PhysicsBody
- func BodyWithEdgeLoopFromPath(path coregraphics.CGPathRef) *PhysicsBody
- func BodyWithEdgeLoopFromRect(rect corefoundation.CGRect) *PhysicsBody
- func BodyWithPolygonFromPath(path coregraphics.CGPathRef) *PhysicsBody
- func BodyWithRectangleOfSize(s corefoundation.CGSize) *PhysicsBody
- func BodyWithRectangleOfSizeCenter(s corefoundation.CGSize, center corefoundation.CGPoint) *PhysicsBody
- func BodyWithTextureAlphaThresholdSize(texture *Texture, alphaThreshold float32, size corefoundation.CGSize) *PhysicsBody
- func BodyWithTextureSize(texture *Texture, size corefoundation.CGSize) *PhysicsBody
- func NewPhysicsBody() *PhysicsBody
- func PhysicsBodyFromID(id objc.ID) *PhysicsBody
- func (pb *PhysicsBody) AffectedByGravity() bool
- func (pb *PhysicsBody) AllContactedBodies() []*PhysicsBody
- func (pb *PhysicsBody) AllowsRotation() bool
- func (pb *PhysicsBody) AngularDamping() float64
- func (pb *PhysicsBody) AngularVelocity() float64
- func (pb *PhysicsBody) ApplyAngularImpulse(impulse float64)
- func (pb *PhysicsBody) ApplyForce(force corefoundation.CGVector)
- func (pb *PhysicsBody) ApplyForceAtPoint(force corefoundation.CGVector, point corefoundation.CGPoint)
- func (pb *PhysicsBody) ApplyImpulse(impulse corefoundation.CGVector)
- func (pb *PhysicsBody) ApplyImpulseAtPoint(impulse corefoundation.CGVector, point corefoundation.CGPoint)
- func (pb *PhysicsBody) ApplyTorque(torque float64)
- func (pb *PhysicsBody) Area() float64
- func (pb *PhysicsBody) CategoryBitMask() uint32
- func (pb *PhysicsBody) Charge() float64
- func (pb *PhysicsBody) CollisionBitMask() uint32
- func (pb *PhysicsBody) ContactTestBitMask() uint32
- func (pb *PhysicsBody) Density() float64
- func (pb *PhysicsBody) Description() string
- func (pb *PhysicsBody) FieldBitMask() uint32
- func (pb *PhysicsBody) Friction() float64
- func (pb *PhysicsBody) IsDynamic() bool
- func (pb *PhysicsBody) IsEqual(other obj.Object) bool
- func (pb *PhysicsBody) IsKind(className string) bool
- func (pb *PhysicsBody) IsResting() bool
- func (pb *PhysicsBody) Joints() []*PhysicsJoint
- func (pb *PhysicsBody) LinearDamping() float64
- func (pb *PhysicsBody) Mass() float64
- func (pb *PhysicsBody) Node() *Node
- func (pb *PhysicsBody) Pinned() bool
- func (pb *PhysicsBody) Restitution() float64
- func (pb *PhysicsBody) String() string
- func (pb *PhysicsBody) UsesPreciseCollisionDetection() bool
- func (pb *PhysicsBody) Velocity() corefoundation.CGVector
- func (pb *PhysicsBody) WithAffectedByGravity(affectedByGravity bool) *PhysicsBody
- func (pb *PhysicsBody) WithAllowsRotation(allowsRotation bool) *PhysicsBody
- func (pb *PhysicsBody) WithAngularDamping(angularDamping float64) *PhysicsBody
- func (pb *PhysicsBody) WithAngularVelocity(angularVelocity float64) *PhysicsBody
- func (pb *PhysicsBody) WithCategoryBitMask(categoryBitMask uint32) *PhysicsBody
- func (pb *PhysicsBody) WithCharge(charge float64) *PhysicsBody
- func (pb *PhysicsBody) WithCollisionBitMask(collisionBitMask uint32) *PhysicsBody
- func (pb *PhysicsBody) WithContactTestBitMask(contactTestBitMask uint32) *PhysicsBody
- func (pb *PhysicsBody) WithDensity(density float64) *PhysicsBody
- func (pb *PhysicsBody) WithDynamic(dynamic bool) *PhysicsBody
- func (pb *PhysicsBody) WithFieldBitMask(fieldBitMask uint32) *PhysicsBody
- func (pb *PhysicsBody) WithFriction(friction float64) *PhysicsBody
- func (pb *PhysicsBody) WithLinearDamping(linearDamping float64) *PhysicsBody
- func (pb *PhysicsBody) WithMass(mass float64) *PhysicsBody
- func (pb *PhysicsBody) WithPinned(pinned bool) *PhysicsBody
- func (pb *PhysicsBody) WithResting(resting bool) *PhysicsBody
- func (pb *PhysicsBody) WithRestitution(restitution float64) *PhysicsBody
- func (pb *PhysicsBody) WithUsesPreciseCollisionDetection(usesPreciseCollisionDetection bool) *PhysicsBody
- func (pb *PhysicsBody) WithVelocity(velocity corefoundation.CGVector) *PhysicsBody
- type PhysicsContact
- func (pc *PhysicsContact) BodyA() *PhysicsBody
- func (pc *PhysicsContact) BodyB() *PhysicsBody
- func (pc *PhysicsContact) CollisionImpulse() float64
- func (pc *PhysicsContact) ContactNormal() corefoundation.CGVector
- func (pc *PhysicsContact) ContactPoint() corefoundation.CGPoint
- func (pc *PhysicsContact) Description() string
- func (pc *PhysicsContact) IsEqual(other obj.Object) bool
- func (pc *PhysicsContact) IsKind(className string) bool
- func (pc *PhysicsContact) String() string
- type PhysicsContactDelegate
- type PhysicsContactDelegateDidBeginContactHandler
- type PhysicsContactDelegateDidEndContactHandler
- type PhysicsJoint
- func (pj *PhysicsJoint) BodyA() *PhysicsBody
- func (pj *PhysicsJoint) BodyB() *PhysicsBody
- func (pj *PhysicsJoint) Description() string
- func (pj *PhysicsJoint) IsEqual(other obj.Object) bool
- func (pj *PhysicsJoint) IsKind(className string) bool
- func (pj *PhysicsJoint) ReactionForce() corefoundation.CGVector
- func (pj *PhysicsJoint) ReactionTorque() float64
- func (pj *PhysicsJoint) String() string
- func (pj *PhysicsJoint) WithBodyA(bodyA *PhysicsBody) *PhysicsJoint
- func (pj *PhysicsJoint) WithBodyB(bodyB *PhysicsBody) *PhysicsJoint
- type PhysicsJointFixed
- type PhysicsJointLimit
- type PhysicsJointPin
- func (pjp *PhysicsJointPin) FrictionTorque() float64
- func (pjp *PhysicsJointPin) LowerAngleLimit() float64
- func (pjp *PhysicsJointPin) RotationSpeed() float64
- func (pjp *PhysicsJointPin) ShouldEnableLimits() bool
- func (pjp *PhysicsJointPin) UpperAngleLimit() float64
- func (pjp *PhysicsJointPin) WithBodyA(bodyA *PhysicsBody) *PhysicsJointPin
- func (pjp *PhysicsJointPin) WithBodyB(bodyB *PhysicsBody) *PhysicsJointPin
- func (pjp *PhysicsJointPin) WithFrictionTorque(frictionTorque float64) *PhysicsJointPin
- func (pjp *PhysicsJointPin) WithLowerAngleLimit(lowerAngleLimit float64) *PhysicsJointPin
- func (pjp *PhysicsJointPin) WithRotationSpeed(rotationSpeed float64) *PhysicsJointPin
- func (pjp *PhysicsJointPin) WithShouldEnableLimits(shouldEnableLimits bool) *PhysicsJointPin
- func (pjp *PhysicsJointPin) WithUpperAngleLimit(upperAngleLimit float64) *PhysicsJointPin
- type PhysicsJointProvider
- type PhysicsJointSliding
- func (pjs *PhysicsJointSliding) LowerDistanceLimit() float64
- func (pjs *PhysicsJointSliding) ShouldEnableLimits() bool
- func (pjs *PhysicsJointSliding) UpperDistanceLimit() float64
- func (pjs *PhysicsJointSliding) WithBodyA(bodyA *PhysicsBody) *PhysicsJointSliding
- func (pjs *PhysicsJointSliding) WithBodyB(bodyB *PhysicsBody) *PhysicsJointSliding
- func (pjs *PhysicsJointSliding) WithLowerDistanceLimit(lowerDistanceLimit float64) *PhysicsJointSliding
- func (pjs *PhysicsJointSliding) WithShouldEnableLimits(shouldEnableLimits bool) *PhysicsJointSliding
- func (pjs *PhysicsJointSliding) WithUpperDistanceLimit(upperDistanceLimit float64) *PhysicsJointSliding
- type PhysicsJointSpring
- func (pjs *PhysicsJointSpring) Damping() float64
- func (pjs *PhysicsJointSpring) Frequency() float64
- func (pjs *PhysicsJointSpring) WithBodyA(bodyA *PhysicsBody) *PhysicsJointSpring
- func (pjs *PhysicsJointSpring) WithBodyB(bodyB *PhysicsBody) *PhysicsJointSpring
- func (pjs *PhysicsJointSpring) WithDamping(damping float64) *PhysicsJointSpring
- func (pjs *PhysicsJointSpring) WithFrequency(frequency float64) *PhysicsJointSpring
- type PhysicsWorld
- func (pw *PhysicsWorld) AddJoint(joint *PhysicsJoint)
- func (pw *PhysicsWorld) BodyAlongRayStartEnd(start corefoundation.CGPoint, end corefoundation.CGPoint) *PhysicsBody
- func (pw *PhysicsWorld) BodyAtPoint(point corefoundation.CGPoint) *PhysicsBody
- func (pw *PhysicsWorld) BodyInRect(rect corefoundation.CGRect) *PhysicsBody
- func (pw *PhysicsWorld) Description() string
- func (pw *PhysicsWorld) EnumerateBodiesAtPointUsing(point corefoundation.CGPoint, block func(obj.Object, *bool))
- func (pw *PhysicsWorld) EnumerateBodiesInRectUsing(rect corefoundation.CGRect, block func(obj.Object, *bool))
- func (pw *PhysicsWorld) Gravity() corefoundation.CGVector
- func (pw *PhysicsWorld) IsEqual(other obj.Object) bool
- func (pw *PhysicsWorld) IsKind(className string) bool
- func (pw *PhysicsWorld) RemoveAllJoints()
- func (pw *PhysicsWorld) RemoveJoint(joint *PhysicsJoint)
- func (pw *PhysicsWorld) SampleFieldsAt(position unsafe.Pointer) unsafe.Pointer
- func (pw *PhysicsWorld) Speed() float64
- func (pw *PhysicsWorld) String() string
- func (pw *PhysicsWorld) WithContactDelegate(contactDelegate PhysicsContactDelegate) *PhysicsWorld
- func (pw *PhysicsWorld) WithGravity(gravity corefoundation.CGVector) *PhysicsWorld
- func (pw *PhysicsWorld) WithSpeed(speed float64) *PhysicsWorld
- type PtrauthKey
- type QosClass
- type Range
- func NewRangeWithLowerLimitUpperLimit(lower float64, upper float64) *Range
- func RangeFromID(id objc.ID) *Range
- func RangeWithConstantValue(value float64) *Range
- func RangeWithLowerLimit(lower float64) *Range
- func RangeWithLowerLimitUpperLimit(lower float64, upper float64) *Range
- func RangeWithNoLimits() *Range
- func RangeWithUpperLimit(upper float64) *Range
- func RangeWithValueVariance(value float64, variance float64) *Range
- func (r *Range) Description() string
- func (r *Range) IsEqual(other obj.Object) bool
- func (r *Range) IsKind(className string) bool
- func (r *Range) LowerLimit() float64
- func (r *Range) String() string
- func (r *Range) UpperLimit() float64
- func (r *Range) WithLowerLimit(lowerLimit float64) *Range
- func (r *Range) WithUpperLimit(upperLimit float64) *Range
- type ReachConstraints
- func (rc *ReachConstraints) Description() string
- func (rc *ReachConstraints) IsEqual(other obj.Object) bool
- func (rc *ReachConstraints) IsKind(className string) bool
- func (rc *ReachConstraints) LowerAngleLimit() float64
- func (rc *ReachConstraints) String() string
- func (rc *ReachConstraints) UpperAngleLimit() float64
- func (rc *ReachConstraints) WithLowerAngleLimit(lowerAngleLimit float64) *ReachConstraints
- func (rc *ReachConstraints) WithUpperAngleLimit(upperAngleLimit float64) *ReachConstraints
- type ReferenceNode
- func NewReferenceNodeWithCoder(aDecoder obj.Object) *ReferenceNode
- func NewReferenceNodeWithFileNamed(fileName string) *ReferenceNode
- func NewReferenceNodeWithURL(url string) *ReferenceNode
- func ReferenceNodeFromID(id objc.ID) *ReferenceNode
- func ReferenceNodeWithFileNamed(fileName string) *ReferenceNode
- func ReferenceNodeWithURL(referenceURL string) *ReferenceNode
- func (rn *ReferenceNode) DidLoadReferenceNode(node *Node)
- func (rn *ReferenceNode) ResolveReferenceNode()
- func (rn *ReferenceNode) WithAccessibilityElement(accessibilityElement bool) *ReferenceNode
- func (rn *ReferenceNode) WithAccessibilityEnabled(accessibilityEnabled bool) *ReferenceNode
- func (rn *ReferenceNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *ReferenceNode
- func (rn *ReferenceNode) WithAccessibilityHelp(accessibilityHelp string) *ReferenceNode
- func (rn *ReferenceNode) WithAccessibilityLabel(accessibilityLabel string) *ReferenceNode
- func (rn *ReferenceNode) WithAccessibilityParent(accessibilityParent obj.Object) *ReferenceNode
- func (rn *ReferenceNode) WithAccessibilityRole(accessibilityRole string) *ReferenceNode
- func (rn *ReferenceNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *ReferenceNode
- func (rn *ReferenceNode) WithAccessibilitySubrole(accessibilitySubrole string) *ReferenceNode
- func (rn *ReferenceNode) WithAlpha(alpha float64) *ReferenceNode
- func (rn *ReferenceNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *ReferenceNode
- func (rn *ReferenceNode) WithConstraints(items ...*Constraint) *ReferenceNode
- func (rn *ReferenceNode) WithHidden(hidden bool) *ReferenceNode
- func (rn *ReferenceNode) WithName(name string) *ReferenceNode
- func (rn *ReferenceNode) WithPaused(paused bool) *ReferenceNode
- func (rn *ReferenceNode) WithPhysicsBody(physicsBody *PhysicsBody) *ReferenceNode
- func (rn *ReferenceNode) WithPosition(position corefoundation.CGPoint) *ReferenceNode
- func (rn *ReferenceNode) WithReachConstraints(reachConstraints *ReachConstraints) *ReferenceNode
- func (rn *ReferenceNode) WithSpeed(speed float64) *ReferenceNode
- func (rn *ReferenceNode) WithUserData(userData obj.Object) *ReferenceNode
- func (rn *ReferenceNode) WithUserInteractionEnabled(userInteractionEnabled bool) *ReferenceNode
- func (rn *ReferenceNode) WithXScale(xScale float64) *ReferenceNode
- func (rn *ReferenceNode) WithYScale(yScale float64) *ReferenceNode
- func (rn *ReferenceNode) WithZPosition(zPosition float64) *ReferenceNode
- func (rn *ReferenceNode) WithZRotation(zRotation float64) *ReferenceNode
- type Region
- func (r *Region) ContainsPoint(point corefoundation.CGPoint) bool
- func (r *Region) Description() string
- func (r *Region) InverseRegion() *Region
- func (r *Region) IsEqual(other obj.Object) bool
- func (r *Region) IsKind(className string) bool
- func (r *Region) Path() coregraphics.CGPathRef
- func (r *Region) RegionByDifferenceFromRegion(region *Region) *Region
- func (r *Region) RegionByIntersection(region *Region) *Region
- func (r *Region) RegionByUnion(region *Region) *Region
- func (r *Region) String() string
- type Renderer
- func (r *Renderer) Description() string
- func (r *Renderer) IgnoresSiblingOrder() bool
- func (r *Renderer) IsEqual(other obj.Object) bool
- func (r *Renderer) IsKind(className string) bool
- func (r *Renderer) Scene() *Scene
- func (r *Renderer) ShouldCullNonVisibleNodes() bool
- func (r *Renderer) ShowsDrawCount() bool
- func (r *Renderer) ShowsFields() bool
- func (r *Renderer) ShowsNodeCount() bool
- func (r *Renderer) ShowsPhysics() bool
- func (r *Renderer) ShowsQuadCount() bool
- func (r *Renderer) String() string
- func (r *Renderer) UpdateAtTime(currentTime float64)
- func (r *Renderer) WithIgnoresSiblingOrder(ignoresSiblingOrder bool) *Renderer
- func (r *Renderer) WithScene(scene *Scene) *Renderer
- func (r *Renderer) WithShouldCullNonVisibleNodes(shouldCullNonVisibleNodes bool) *Renderer
- func (r *Renderer) WithShowsDrawCount(showsDrawCount bool) *Renderer
- func (r *Renderer) WithShowsFields(showsFields bool) *Renderer
- func (r *Renderer) WithShowsNodeCount(showsNodeCount bool) *Renderer
- func (r *Renderer) WithShowsPhysics(showsPhysics bool) *Renderer
- func (r *Renderer) WithShowsQuadCount(showsQuadCount bool) *Renderer
- type RepeatMode
- type SK3DNode
- func (sdn *SK3DNode) AutoenablesDefaultLighting() bool
- func (sdn *SK3DNode) HitTestOptions(point corefoundation.CGPoint, options map[string]obj.Object) []obj.Object
- func (sdn *SK3DNode) IsPlaying() bool
- func (sdn *SK3DNode) Loops() bool
- func (sdn *SK3DNode) PointOfView() obj.Object
- func (sdn *SK3DNode) ProjectPoint(point unsafe.Pointer) unsafe.Pointer
- func (sdn *SK3DNode) SceneTime() float64
- func (sdn *SK3DNode) ScnScene() obj.Object
- func (sdn *SK3DNode) UnprojectPoint(point unsafe.Pointer) unsafe.Pointer
- func (sdn *SK3DNode) ViewportSize() corefoundation.CGSize
- func (sdn *SK3DNode) WithAccessibilityElement(accessibilityElement bool) *SK3DNode
- func (sdn *SK3DNode) WithAccessibilityEnabled(accessibilityEnabled bool) *SK3DNode
- func (sdn *SK3DNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *SK3DNode
- func (sdn *SK3DNode) WithAccessibilityHelp(accessibilityHelp string) *SK3DNode
- func (sdn *SK3DNode) WithAccessibilityLabel(accessibilityLabel string) *SK3DNode
- func (sdn *SK3DNode) WithAccessibilityParent(accessibilityParent obj.Object) *SK3DNode
- func (sdn *SK3DNode) WithAccessibilityRole(accessibilityRole string) *SK3DNode
- func (sdn *SK3DNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *SK3DNode
- func (sdn *SK3DNode) WithAccessibilitySubrole(accessibilitySubrole string) *SK3DNode
- func (sdn *SK3DNode) WithAlpha(alpha float64) *SK3DNode
- func (sdn *SK3DNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *SK3DNode
- func (sdn *SK3DNode) WithAutoenablesDefaultLighting(autoenablesDefaultLighting bool) *SK3DNode
- func (sdn *SK3DNode) WithConstraints(items ...*Constraint) *SK3DNode
- func (sdn *SK3DNode) WithHidden(hidden bool) *SK3DNode
- func (sdn *SK3DNode) WithLoops(loops bool) *SK3DNode
- func (sdn *SK3DNode) WithName(name string) *SK3DNode
- func (sdn *SK3DNode) WithPaused(paused bool) *SK3DNode
- func (sdn *SK3DNode) WithPhysicsBody(physicsBody *PhysicsBody) *SK3DNode
- func (sdn *SK3DNode) WithPlaying(playing bool) *SK3DNode
- func (sdn *SK3DNode) WithPointOfView(pointOfView obj.Object) *SK3DNode
- func (sdn *SK3DNode) WithPosition(position corefoundation.CGPoint) *SK3DNode
- func (sdn *SK3DNode) WithReachConstraints(reachConstraints *ReachConstraints) *SK3DNode
- func (sdn *SK3DNode) WithSceneTime(sceneTime float64) *SK3DNode
- func (sdn *SK3DNode) WithScnScene(scnScene obj.Object) *SK3DNode
- func (sdn *SK3DNode) WithSpeed(speed float64) *SK3DNode
- func (sdn *SK3DNode) WithUserData(userData obj.Object) *SK3DNode
- func (sdn *SK3DNode) WithUserInteractionEnabled(userInteractionEnabled bool) *SK3DNode
- func (sdn *SK3DNode) WithViewportSize(viewportSize corefoundation.CGSize) *SK3DNode
- func (sdn *SK3DNode) WithXScale(xScale float64) *SK3DNode
- func (sdn *SK3DNode) WithYScale(yScale float64) *SK3DNode
- func (sdn *SK3DNode) WithZPosition(zPosition float64) *SK3DNode
- func (sdn *SK3DNode) WithZRotation(zRotation float64) *SK3DNode
- type Scene
- func (s *Scene) AnchorPoint() corefoundation.CGPoint
- func (s *Scene) AudioEngine() obj.Object
- func (s *Scene) BackgroundColor() obj.Object
- func (s *Scene) Camera() *CameraNode
- func (s *Scene) ConvertPointFromView(point corefoundation.CGPoint) corefoundation.CGPoint
- func (s *Scene) ConvertPointToView(point corefoundation.CGPoint) corefoundation.CGPoint
- func (s *Scene) DidApplyConstraints()
- func (s *Scene) DidChangeSize(oldSize corefoundation.CGSize)
- func (s *Scene) DidEvaluateActions()
- func (s *Scene) DidFinishUpdate()
- func (s *Scene) DidMoveToView(view *View)
- func (s *Scene) DidSimulatePhysics()
- func (s *Scene) Listener() *Node
- func (s *Scene) PhysicsWorld() *PhysicsWorld
- func (s *Scene) ScaleMode() SceneScaleMode
- func (s *Scene) SceneDidLoad()
- func (s *Scene) Size() corefoundation.CGSize
- func (s *Scene) Update(currentTime float64)
- func (s *Scene) View() *View
- func (s *Scene) WillMoveFromView(view *View)
- func (s *Scene) WithAccessibilityElement(accessibilityElement bool) *Scene
- func (s *Scene) WithAccessibilityEnabled(accessibilityEnabled bool) *Scene
- func (s *Scene) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *Scene
- func (s *Scene) WithAccessibilityHelp(accessibilityHelp string) *Scene
- func (s *Scene) WithAccessibilityLabel(accessibilityLabel string) *Scene
- func (s *Scene) WithAccessibilityParent(accessibilityParent obj.Object) *Scene
- func (s *Scene) WithAccessibilityRole(accessibilityRole string) *Scene
- func (s *Scene) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *Scene
- func (s *Scene) WithAccessibilitySubrole(accessibilitySubrole string) *Scene
- func (s *Scene) WithAlpha(alpha float64) *Scene
- func (s *Scene) WithAnchorPoint(anchorPoint corefoundation.CGPoint) *Scene
- func (s *Scene) WithAttributeValues(attributeValues map[string]*AttributeValue) *Scene
- func (s *Scene) WithBackgroundColor(backgroundColor obj.Object) *Scene
- func (s *Scene) WithBlendMode(blendMode BlendMode) *Scene
- func (s *Scene) WithCamera(camera *CameraNode) *Scene
- func (s *Scene) WithConstraints(items ...*Constraint) *Scene
- func (s *Scene) WithDelegate(delegate SceneDelegate) *Scene
- func (s *Scene) WithFilter(filter obj.Object) *Scene
- func (s *Scene) WithHidden(hidden bool) *Scene
- func (s *Scene) WithListener(listener NodeProvider) *Scene
- func (s *Scene) WithName(name string) *Scene
- func (s *Scene) WithPaused(paused bool) *Scene
- func (s *Scene) WithPhysicsBody(physicsBody *PhysicsBody) *Scene
- func (s *Scene) WithPosition(position corefoundation.CGPoint) *Scene
- func (s *Scene) WithReachConstraints(reachConstraints *ReachConstraints) *Scene
- func (s *Scene) WithScaleMode(scaleMode SceneScaleMode) *Scene
- func (s *Scene) WithShader(shader *Shader) *Scene
- func (s *Scene) WithShouldCenterFilter(shouldCenterFilter bool) *Scene
- func (s *Scene) WithShouldEnableEffects(shouldEnableEffects bool) *Scene
- func (s *Scene) WithShouldRasterize(shouldRasterize bool) *Scene
- func (s *Scene) WithSize(size corefoundation.CGSize) *Scene
- func (s *Scene) WithSpeed(speed float64) *Scene
- func (s *Scene) WithUserData(userData obj.Object) *Scene
- func (s *Scene) WithUserInteractionEnabled(userInteractionEnabled bool) *Scene
- func (s *Scene) WithXScale(xScale float64) *Scene
- func (s *Scene) WithYScale(yScale float64) *Scene
- func (s *Scene) WithZPosition(zPosition float64) *Scene
- func (s *Scene) WithZRotation(zRotation float64) *Scene
- type SceneDelegate
- type SceneDelegateDidApplyConstraintsForSceneHandler
- type SceneDelegateDidEvaluateActionsForSceneHandler
- type SceneDelegateDidFinishUpdateForSceneHandler
- type SceneDelegateDidSimulatePhysicsForSceneHandler
- type SceneDelegateUpdateForSceneHandler
- type SceneScaleMode
- type Shader
- func NewShaderWithSource(source string) *Shader
- func NewShaderWithSourceUniforms(source string, uniforms []*Uniform) *Shader
- func SKShaderShader() *Shader
- func ShaderFromID(id objc.ID) *Shader
- func ShaderWithFileNamed(name string) *Shader
- func ShaderWithSource(source string) *Shader
- func ShaderWithSourceUniforms(source string, uniforms []*Uniform) *Shader
- func (s *Shader) AddUniform(uniform *Uniform)
- func (s *Shader) Attributes() []*Attribute
- func (s *Shader) Description() string
- func (s *Shader) IsEqual(other obj.Object) bool
- func (s *Shader) IsKind(className string) bool
- func (s *Shader) RemoveUniformNamed(name string)
- func (s *Shader) Source() string
- func (s *Shader) String() string
- func (s *Shader) UniformNamed(name string) *Uniform
- func (s *Shader) Uniforms() []*Uniform
- func (s *Shader) WithAttributes(items ...*Attribute) *Shader
- func (s *Shader) WithSource(source string) *Shader
- func (s *Shader) WithUniforms(items ...*Uniform) *Shader
- type ShapeNode
- func NewShapeNode() *ShapeNode
- func ShapeNodeFromID(id objc.ID) *ShapeNode
- func ShapeNodeWithCircleOfRadius(radius float64) *ShapeNode
- func ShapeNodeWithEllipseInRect(rect corefoundation.CGRect) *ShapeNode
- func ShapeNodeWithEllipseOfSize(size corefoundation.CGSize) *ShapeNode
- func ShapeNodeWithPath(path coregraphics.CGPathRef) *ShapeNode
- func ShapeNodeWithPathCentered(path coregraphics.CGPathRef, centered bool) *ShapeNode
- func ShapeNodeWithPointsCount(points *corefoundation.CGPoint, numPoints int) *ShapeNode
- func ShapeNodeWithRect(rect corefoundation.CGRect) *ShapeNode
- func ShapeNodeWithRectCornerRadius(rect corefoundation.CGRect, cornerRadius float64) *ShapeNode
- func ShapeNodeWithRectOfSize(size corefoundation.CGSize) *ShapeNode
- func ShapeNodeWithRectOfSizeCornerRadius(size corefoundation.CGSize, cornerRadius float64) *ShapeNode
- func ShapeNodeWithSplinePointsCount(points *corefoundation.CGPoint, numPoints int) *ShapeNode
- func (sn *ShapeNode) BlendMode() BlendMode
- func (sn *ShapeNode) FillColor() obj.Object
- func (sn *ShapeNode) FillShader() *Shader
- func (sn *ShapeNode) FillTexture() *Texture
- func (sn *ShapeNode) GlowWidth() float64
- func (sn *ShapeNode) IsAntialiased() bool
- func (sn *ShapeNode) LineLength() float64
- func (sn *ShapeNode) LineWidth() float64
- func (sn *ShapeNode) MiterLimit() float64
- func (sn *ShapeNode) Path() coregraphics.CGPathRef
- func (sn *ShapeNode) StrokeColor() obj.Object
- func (sn *ShapeNode) StrokeShader() *Shader
- func (sn *ShapeNode) StrokeTexture() *Texture
- func (sn *ShapeNode) WithAccessibilityElement(accessibilityElement bool) *ShapeNode
- func (sn *ShapeNode) WithAccessibilityEnabled(accessibilityEnabled bool) *ShapeNode
- func (sn *ShapeNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *ShapeNode
- func (sn *ShapeNode) WithAccessibilityHelp(accessibilityHelp string) *ShapeNode
- func (sn *ShapeNode) WithAccessibilityLabel(accessibilityLabel string) *ShapeNode
- func (sn *ShapeNode) WithAccessibilityParent(accessibilityParent obj.Object) *ShapeNode
- func (sn *ShapeNode) WithAccessibilityRole(accessibilityRole string) *ShapeNode
- func (sn *ShapeNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *ShapeNode
- func (sn *ShapeNode) WithAccessibilitySubrole(accessibilitySubrole string) *ShapeNode
- func (sn *ShapeNode) WithAlpha(alpha float64) *ShapeNode
- func (sn *ShapeNode) WithAntialiased(antialiased bool) *ShapeNode
- func (sn *ShapeNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *ShapeNode
- func (sn *ShapeNode) WithBlendMode(blendMode BlendMode) *ShapeNode
- func (sn *ShapeNode) WithConstraints(items ...*Constraint) *ShapeNode
- func (sn *ShapeNode) WithFillColor(fillColor obj.Object) *ShapeNode
- func (sn *ShapeNode) WithFillShader(fillShader *Shader) *ShapeNode
- func (sn *ShapeNode) WithFillTexture(fillTexture TextureProvider) *ShapeNode
- func (sn *ShapeNode) WithGlowWidth(glowWidth float64) *ShapeNode
- func (sn *ShapeNode) WithHidden(hidden bool) *ShapeNode
- func (sn *ShapeNode) WithLineWidth(lineWidth float64) *ShapeNode
- func (sn *ShapeNode) WithMiterLimit(miterLimit float64) *ShapeNode
- func (sn *ShapeNode) WithName(name string) *ShapeNode
- func (sn *ShapeNode) WithPath(path coregraphics.CGPathRef) *ShapeNode
- func (sn *ShapeNode) WithPaused(paused bool) *ShapeNode
- func (sn *ShapeNode) WithPhysicsBody(physicsBody *PhysicsBody) *ShapeNode
- func (sn *ShapeNode) WithPosition(position corefoundation.CGPoint) *ShapeNode
- func (sn *ShapeNode) WithReachConstraints(reachConstraints *ReachConstraints) *ShapeNode
- func (sn *ShapeNode) WithSpeed(speed float64) *ShapeNode
- func (sn *ShapeNode) WithStrokeColor(strokeColor obj.Object) *ShapeNode
- func (sn *ShapeNode) WithStrokeShader(strokeShader *Shader) *ShapeNode
- func (sn *ShapeNode) WithStrokeTexture(strokeTexture TextureProvider) *ShapeNode
- func (sn *ShapeNode) WithUserData(userData obj.Object) *ShapeNode
- func (sn *ShapeNode) WithUserInteractionEnabled(userInteractionEnabled bool) *ShapeNode
- func (sn *ShapeNode) WithXScale(xScale float64) *ShapeNode
- func (sn *ShapeNode) WithYScale(yScale float64) *ShapeNode
- func (sn *ShapeNode) WithZPosition(zPosition float64) *ShapeNode
- func (sn *ShapeNode) WithZRotation(zRotation float64) *ShapeNode
- type SpriteNode
- func NewSpriteNodeWithCoder(aDecoder obj.Object) *SpriteNode
- func NewSpriteNodeWithColorSize(color obj.Object, size corefoundation.CGSize) *SpriteNode
- func NewSpriteNodeWithImageNamed(name string) *SpriteNode
- func NewSpriteNodeWithTexture(texture *Texture) *SpriteNode
- func NewSpriteNodeWithTextureColorSize(texture *Texture, color obj.Object, size corefoundation.CGSize) *SpriteNode
- func SpriteNodeFromID(id objc.ID) *SpriteNode
- func SpriteNodeWithColorSize(color obj.Object, size corefoundation.CGSize) *SpriteNode
- func SpriteNodeWithImageNamed(name string) *SpriteNode
- func SpriteNodeWithImageNamedNormalMapped(name string, generateNormalMap bool) *SpriteNode
- func SpriteNodeWithTexture(texture *Texture) *SpriteNode
- func SpriteNodeWithTextureNormalMap(texture *Texture, normalMap *Texture) *SpriteNode
- func SpriteNodeWithTextureSize(texture *Texture, size corefoundation.CGSize) *SpriteNode
- func (sn *SpriteNode) AnchorPoint() corefoundation.CGPoint
- func (sn *SpriteNode) BlendMode() BlendMode
- func (sn *SpriteNode) CenterRect() corefoundation.CGRect
- func (sn *SpriteNode) Color() obj.Object
- func (sn *SpriteNode) ColorBlendFactor() float64
- func (sn *SpriteNode) LightingBitMask() uint32
- func (sn *SpriteNode) NormalTexture() *Texture
- func (sn *SpriteNode) ScaleToSize(size corefoundation.CGSize)
- func (sn *SpriteNode) Shader() *Shader
- func (sn *SpriteNode) ShadowCastBitMask() uint32
- func (sn *SpriteNode) ShadowedBitMask() uint32
- func (sn *SpriteNode) Size() corefoundation.CGSize
- func (sn *SpriteNode) Texture() *Texture
- func (sn *SpriteNode) WithAccessibilityElement(accessibilityElement bool) *SpriteNode
- func (sn *SpriteNode) WithAccessibilityEnabled(accessibilityEnabled bool) *SpriteNode
- func (sn *SpriteNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *SpriteNode
- func (sn *SpriteNode) WithAccessibilityHelp(accessibilityHelp string) *SpriteNode
- func (sn *SpriteNode) WithAccessibilityLabel(accessibilityLabel string) *SpriteNode
- func (sn *SpriteNode) WithAccessibilityParent(accessibilityParent obj.Object) *SpriteNode
- func (sn *SpriteNode) WithAccessibilityRole(accessibilityRole string) *SpriteNode
- func (sn *SpriteNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *SpriteNode
- func (sn *SpriteNode) WithAccessibilitySubrole(accessibilitySubrole string) *SpriteNode
- func (sn *SpriteNode) WithAlpha(alpha float64) *SpriteNode
- func (sn *SpriteNode) WithAnchorPoint(anchorPoint corefoundation.CGPoint) *SpriteNode
- func (sn *SpriteNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *SpriteNode
- func (sn *SpriteNode) WithBlendMode(blendMode BlendMode) *SpriteNode
- func (sn *SpriteNode) WithCenterRect(centerRect corefoundation.CGRect) *SpriteNode
- func (sn *SpriteNode) WithColor(color obj.Object) *SpriteNode
- func (sn *SpriteNode) WithColorBlendFactor(colorBlendFactor float64) *SpriteNode
- func (sn *SpriteNode) WithConstraints(items ...*Constraint) *SpriteNode
- func (sn *SpriteNode) WithHidden(hidden bool) *SpriteNode
- func (sn *SpriteNode) WithLightingBitMask(lightingBitMask uint32) *SpriteNode
- func (sn *SpriteNode) WithName(name string) *SpriteNode
- func (sn *SpriteNode) WithNormalTexture(normalTexture TextureProvider) *SpriteNode
- func (sn *SpriteNode) WithPaused(paused bool) *SpriteNode
- func (sn *SpriteNode) WithPhysicsBody(physicsBody *PhysicsBody) *SpriteNode
- func (sn *SpriteNode) WithPosition(position corefoundation.CGPoint) *SpriteNode
- func (sn *SpriteNode) WithReachConstraints(reachConstraints *ReachConstraints) *SpriteNode
- func (sn *SpriteNode) WithShader(shader *Shader) *SpriteNode
- func (sn *SpriteNode) WithShadowCastBitMask(shadowCastBitMask uint32) *SpriteNode
- func (sn *SpriteNode) WithShadowedBitMask(shadowedBitMask uint32) *SpriteNode
- func (sn *SpriteNode) WithSize(size corefoundation.CGSize) *SpriteNode
- func (sn *SpriteNode) WithSpeed(speed float64) *SpriteNode
- func (sn *SpriteNode) WithTexture(texture TextureProvider) *SpriteNode
- func (sn *SpriteNode) WithUserData(userData obj.Object) *SpriteNode
- func (sn *SpriteNode) WithUserInteractionEnabled(userInteractionEnabled bool) *SpriteNode
- func (sn *SpriteNode) WithXScale(xScale float64) *SpriteNode
- func (sn *SpriteNode) WithYScale(yScale float64) *SpriteNode
- func (sn *SpriteNode) WithZPosition(zPosition float64) *SpriteNode
- func (sn *SpriteNode) WithZRotation(zRotation float64) *SpriteNode
- type Tag
- type Texture
- func TextureFromID(id objc.ID) *Texture
- func TextureNoiseWithSmoothnessSizeGrayscale(smoothness float64, size corefoundation.CGSize, grayscale bool) *Texture
- func TextureVectorNoiseWithSmoothnessSize(smoothness float64, size corefoundation.CGSize) *Texture
- func TextureWithCGImage(image coregraphics.CGImageRef) *Texture
- func TextureWithDataSize(pixelData []byte, size corefoundation.CGSize) *Texture
- func TextureWithDataSizeFlipped(pixelData []byte, size corefoundation.CGSize, flipped bool) *Texture
- func TextureWithDataSizeRowLengthAlignment(pixelData []byte, size corefoundation.CGSize, rowLength int, alignment int) *Texture
- func TextureWithImage(image obj.Object) *Texture
- func TextureWithImageNamed(name string) *Texture
- func TextureWithRectInTexture(rect corefoundation.CGRect, texture *Texture) *Texture
- func (t *Texture) CGImage() coregraphics.CGImageRef
- func (t *Texture) Description() string
- func (t *Texture) FilteringMode() TextureFilteringMode
- func (t *Texture) IsEqual(other obj.Object) bool
- func (t *Texture) IsKind(className string) bool
- func (t *Texture) Preload(ctx context.Context) error
- func (t *Texture) Size() corefoundation.CGSize
- func (t *Texture) String() string
- func (t *Texture) TextureByApplyingCIFilter(filter obj.Object) *Texture
- func (t *Texture) TextureByGeneratingNormalMap() *Texture
- func (t *Texture) TextureByGeneratingNormalMapWithSmoothnessContrast(smoothness float64, contrast float64) *Texture
- func (t *Texture) TextureRect() corefoundation.CGRect
- func (t *Texture) UsesMipmaps() bool
- func (t *Texture) WithFilteringMode(filteringMode TextureFilteringMode) *Texture
- func (t *Texture) WithUsesMipmaps(usesMipmaps bool) *Texture
- type TextureAtlas
- func (ta *TextureAtlas) Description() string
- func (ta *TextureAtlas) IsEqual(other obj.Object) bool
- func (ta *TextureAtlas) IsKind(className string) bool
- func (ta *TextureAtlas) Preload(ctx context.Context) error
- func (ta *TextureAtlas) String() string
- func (ta *TextureAtlas) TextureNamed(name string) *Texture
- func (ta *TextureAtlas) TextureNames() []string
- type TextureFilteringMode
- type TextureProvider
- type TileAdjacencyMask
- type TileDefinition
- func NewTileDefinitionWithTexture(texture *Texture) *TileDefinition
- func NewTileDefinitionWithTextureNormalTextureSize(texture *Texture, normalTexture *Texture, size corefoundation.CGSize) *TileDefinition
- func NewTileDefinitionWithTextureSize(texture *Texture, size corefoundation.CGSize) *TileDefinition
- func NewTileDefinitionWithTexturesNormalTexturesSizeTimePerFrame(textures []*Texture, normalTextures []*Texture, size corefoundation.CGSize, ...) *TileDefinition
- func NewTileDefinitionWithTexturesSizeTimePerFrame(textures []*Texture, size corefoundation.CGSize, timePerFrame float64) *TileDefinition
- func TileDefinitionFromID(id objc.ID) *TileDefinition
- func TileDefinitionWithTexture(texture *Texture) *TileDefinition
- func TileDefinitionWithTextureNormalTextureSize(texture *Texture, normalTexture *Texture, size corefoundation.CGSize) *TileDefinition
- func TileDefinitionWithTextureSize(texture *Texture, size corefoundation.CGSize) *TileDefinition
- func TileDefinitionWithTexturesNormalTexturesSizeTimePerFrame(textures []*Texture, normalTextures []*Texture, size corefoundation.CGSize, ...) *TileDefinition
- func TileDefinitionWithTexturesSizeTimePerFrame(textures []*Texture, size corefoundation.CGSize, timePerFrame float64) *TileDefinition
- func (td *TileDefinition) Description() string
- func (td *TileDefinition) FlipHorizontally() bool
- func (td *TileDefinition) FlipVertically() bool
- func (td *TileDefinition) IsEqual(other obj.Object) bool
- func (td *TileDefinition) IsKind(className string) bool
- func (td *TileDefinition) Name() string
- func (td *TileDefinition) NormalTextures() []*Texture
- func (td *TileDefinition) PlacementWeight() int
- func (td *TileDefinition) Rotation() TileDefinitionRotation
- func (td *TileDefinition) Size() corefoundation.CGSize
- func (td *TileDefinition) String() string
- func (td *TileDefinition) Textures() []*Texture
- func (td *TileDefinition) TimePerFrame() float64
- func (td *TileDefinition) UserData() obj.Object
- func (td *TileDefinition) WithFlipHorizontally(flipHorizontally bool) *TileDefinition
- func (td *TileDefinition) WithFlipVertically(flipVertically bool) *TileDefinition
- func (td *TileDefinition) WithName(name string) *TileDefinition
- func (td *TileDefinition) WithNormalTextures(items ...TextureProvider) *TileDefinition
- func (td *TileDefinition) WithPlacementWeight(placementWeight int) *TileDefinition
- func (td *TileDefinition) WithRotation(rotation TileDefinitionRotation) *TileDefinition
- func (td *TileDefinition) WithSize(size corefoundation.CGSize) *TileDefinition
- func (td *TileDefinition) WithTextures(items ...TextureProvider) *TileDefinition
- func (td *TileDefinition) WithTimePerFrame(timePerFrame float64) *TileDefinition
- func (td *TileDefinition) WithUserData(userData obj.Object) *TileDefinition
- type TileDefinitionRotation
- type TileGroup
- func EmptyTileGroup() *TileGroup
- func NewTileGroupWithRules(rules []*TileGroupRule) *TileGroup
- func NewTileGroupWithTileDefinition(tileDefinition *TileDefinition) *TileGroup
- func TileGroupFromID(id objc.ID) *TileGroup
- func TileGroupWithRules(rules []*TileGroupRule) *TileGroup
- func TileGroupWithTileDefinition(tileDefinition *TileDefinition) *TileGroup
- func (tg *TileGroup) Description() string
- func (tg *TileGroup) IsEqual(other obj.Object) bool
- func (tg *TileGroup) IsKind(className string) bool
- func (tg *TileGroup) Name() string
- func (tg *TileGroup) Rules() []*TileGroupRule
- func (tg *TileGroup) String() string
- func (tg *TileGroup) WithName(name string) *TileGroup
- func (tg *TileGroup) WithRules(items ...*TileGroupRule) *TileGroup
- type TileGroupRule
- func NewTileGroupRuleWithAdjacencyTileDefinitions(adjacency TileAdjacencyMask, tileDefinitions []*TileDefinition) *TileGroupRule
- func TileGroupRuleFromID(id objc.ID) *TileGroupRule
- func TileGroupRuleWithAdjacencyTileDefinitions(adjacency TileAdjacencyMask, tileDefinitions []*TileDefinition) *TileGroupRule
- func (tgr *TileGroupRule) Adjacency() TileAdjacencyMask
- func (tgr *TileGroupRule) Description() string
- func (tgr *TileGroupRule) IsEqual(other obj.Object) bool
- func (tgr *TileGroupRule) IsKind(className string) bool
- func (tgr *TileGroupRule) Name() string
- func (tgr *TileGroupRule) String() string
- func (tgr *TileGroupRule) TileDefinitions() []*TileDefinition
- func (tgr *TileGroupRule) WithAdjacency(adjacency TileAdjacencyMask) *TileGroupRule
- func (tgr *TileGroupRule) WithName(name string) *TileGroupRule
- func (tgr *TileGroupRule) WithTileDefinitions(items ...*TileDefinition) *TileGroupRule
- type TileMapNode
- func NewTileMapNodeWithTileSetColumnsRowsTileSize(tileSet *TileSet, columns int, rows int, tileSize corefoundation.CGSize) *TileMapNode
- func NewTileMapNodeWithTileSetColumnsRowsTileSizeFillWithTileGroup(tileSet *TileSet, columns int, rows int, tileSize corefoundation.CGSize, ...) *TileMapNode
- func NewTileMapNodeWithTileSetColumnsRowsTileSizeTileGroupLayout(tileSet *TileSet, columns int, rows int, tileSize corefoundation.CGSize, ...) *TileMapNode
- func TileMapNodeFromID(id objc.ID) *TileMapNode
- func TileMapNodeWithTileSetColumnsRowsTileSize(tileSet *TileSet, columns int, rows int, tileSize corefoundation.CGSize) *TileMapNode
- func TileMapNodeWithTileSetColumnsRowsTileSizeFillWithTileGroup(tileSet *TileSet, columns int, rows int, tileSize corefoundation.CGSize, ...) *TileMapNode
- func TileMapNodeWithTileSetColumnsRowsTileSizeTileGroupLayout(tileSet *TileSet, columns int, rows int, tileSize corefoundation.CGSize, ...) *TileMapNode
- func (tmn *TileMapNode) AnchorPoint() corefoundation.CGPoint
- func (tmn *TileMapNode) BlendMode() BlendMode
- func (tmn *TileMapNode) CenterOfTileAtColumnRow(column int, row int) corefoundation.CGPoint
- func (tmn *TileMapNode) Color() obj.Object
- func (tmn *TileMapNode) ColorBlendFactor() float64
- func (tmn *TileMapNode) EnableAutomapping() bool
- func (tmn *TileMapNode) Fill(tileGroup *TileGroup)
- func (tmn *TileMapNode) LightingBitMask() uint32
- func (tmn *TileMapNode) MapSize() corefoundation.CGSize
- func (tmn *TileMapNode) NumberOfColumns() int
- func (tmn *TileMapNode) NumberOfRows() int
- func (tmn *TileMapNode) SetTileGroupAndTileDefinitionForColumnRow(tileGroup *TileGroup, tileDefinition *TileDefinition, column int, row int)
- func (tmn *TileMapNode) SetTileGroupForColumnRow(tileGroup *TileGroup, column int, row int)
- func (tmn *TileMapNode) Shader() *Shader
- func (tmn *TileMapNode) TileColumnIndexFromPosition(position corefoundation.CGPoint) int
- func (tmn *TileMapNode) TileDefinitionAtColumnRow(column int, row int) *TileDefinition
- func (tmn *TileMapNode) TileGroupAtColumnRow(column int, row int) *TileGroup
- func (tmn *TileMapNode) TileRowIndexFromPosition(position corefoundation.CGPoint) int
- func (tmn *TileMapNode) TileSet() *TileSet
- func (tmn *TileMapNode) TileSize() corefoundation.CGSize
- func (tmn *TileMapNode) WithAccessibilityElement(accessibilityElement bool) *TileMapNode
- func (tmn *TileMapNode) WithAccessibilityEnabled(accessibilityEnabled bool) *TileMapNode
- func (tmn *TileMapNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *TileMapNode
- func (tmn *TileMapNode) WithAccessibilityHelp(accessibilityHelp string) *TileMapNode
- func (tmn *TileMapNode) WithAccessibilityLabel(accessibilityLabel string) *TileMapNode
- func (tmn *TileMapNode) WithAccessibilityParent(accessibilityParent obj.Object) *TileMapNode
- func (tmn *TileMapNode) WithAccessibilityRole(accessibilityRole string) *TileMapNode
- func (tmn *TileMapNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *TileMapNode
- func (tmn *TileMapNode) WithAccessibilitySubrole(accessibilitySubrole string) *TileMapNode
- func (tmn *TileMapNode) WithAlpha(alpha float64) *TileMapNode
- func (tmn *TileMapNode) WithAnchorPoint(anchorPoint corefoundation.CGPoint) *TileMapNode
- func (tmn *TileMapNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *TileMapNode
- func (tmn *TileMapNode) WithBlendMode(blendMode BlendMode) *TileMapNode
- func (tmn *TileMapNode) WithColor(color obj.Object) *TileMapNode
- func (tmn *TileMapNode) WithColorBlendFactor(colorBlendFactor float64) *TileMapNode
- func (tmn *TileMapNode) WithConstraints(items ...*Constraint) *TileMapNode
- func (tmn *TileMapNode) WithEnableAutomapping(enableAutomapping bool) *TileMapNode
- func (tmn *TileMapNode) WithHidden(hidden bool) *TileMapNode
- func (tmn *TileMapNode) WithLightingBitMask(lightingBitMask uint32) *TileMapNode
- func (tmn *TileMapNode) WithName(name string) *TileMapNode
- func (tmn *TileMapNode) WithNumberOfColumns(numberOfColumns int) *TileMapNode
- func (tmn *TileMapNode) WithNumberOfRows(numberOfRows int) *TileMapNode
- func (tmn *TileMapNode) WithPaused(paused bool) *TileMapNode
- func (tmn *TileMapNode) WithPhysicsBody(physicsBody *PhysicsBody) *TileMapNode
- func (tmn *TileMapNode) WithPosition(position corefoundation.CGPoint) *TileMapNode
- func (tmn *TileMapNode) WithReachConstraints(reachConstraints *ReachConstraints) *TileMapNode
- func (tmn *TileMapNode) WithShader(shader *Shader) *TileMapNode
- func (tmn *TileMapNode) WithSpeed(speed float64) *TileMapNode
- func (tmn *TileMapNode) WithTileSet(tileSet *TileSet) *TileMapNode
- func (tmn *TileMapNode) WithTileSize(tileSize corefoundation.CGSize) *TileMapNode
- func (tmn *TileMapNode) WithUserData(userData obj.Object) *TileMapNode
- func (tmn *TileMapNode) WithUserInteractionEnabled(userInteractionEnabled bool) *TileMapNode
- func (tmn *TileMapNode) WithXScale(xScale float64) *TileMapNode
- func (tmn *TileMapNode) WithYScale(yScale float64) *TileMapNode
- func (tmn *TileMapNode) WithZPosition(zPosition float64) *TileMapNode
- func (tmn *TileMapNode) WithZRotation(zRotation float64) *TileMapNode
- type TileSet
- func NewTileSetWithTileGroups(tileGroups []*TileGroup) *TileSet
- func NewTileSetWithTileGroupsTileSetType(tileGroups []*TileGroup, tileSetType TileSetType) *TileSet
- func TileSetFromID(id objc.ID) *TileSet
- func TileSetFromURL(url string) *TileSet
- func TileSetNamed(name string) *TileSet
- func TileSetWithTileGroups(tileGroups []*TileGroup) *TileSet
- func TileSetWithTileGroupsTileSetType(tileGroups []*TileGroup, tileSetType TileSetType) *TileSet
- func (ts *TileSet) DefaultTileGroup() *TileGroup
- func (ts *TileSet) DefaultTileSize() corefoundation.CGSize
- func (ts *TileSet) Description() string
- func (ts *TileSet) IsEqual(other obj.Object) bool
- func (ts *TileSet) IsKind(className string) bool
- func (ts *TileSet) Name() string
- func (ts *TileSet) String() string
- func (ts *TileSet) TileGroups() []*TileGroup
- func (ts *TileSet) Type() TileSetType
- func (ts *TileSet) WithDefaultTileGroup(defaultTileGroup *TileGroup) *TileSet
- func (ts *TileSet) WithDefaultTileSize(defaultTileSize corefoundation.CGSize) *TileSet
- func (ts *TileSet) WithName(name string) *TileSet
- func (ts *TileSet) WithTileGroups(items ...*TileGroup) *TileSet
- func (ts *TileSet) WithType(type_ TileSetType) *TileSet
- type TileSetType
- type TransformNode
- func (tn *TransformNode) EulerAngles() unsafe.Pointer
- func (tn *TransformNode) Quaternion() unsafe.Pointer
- func (tn *TransformNode) RotationMatrix() unsafe.Pointer
- func (tn *TransformNode) SetEulerAngles(euler unsafe.Pointer)
- func (tn *TransformNode) SetQuaternion(quaternion unsafe.Pointer)
- func (tn *TransformNode) SetRotationMatrix(rotationMatrix unsafe.Pointer)
- func (tn *TransformNode) WithAccessibilityElement(accessibilityElement bool) *TransformNode
- func (tn *TransformNode) WithAccessibilityEnabled(accessibilityEnabled bool) *TransformNode
- func (tn *TransformNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *TransformNode
- func (tn *TransformNode) WithAccessibilityHelp(accessibilityHelp string) *TransformNode
- func (tn *TransformNode) WithAccessibilityLabel(accessibilityLabel string) *TransformNode
- func (tn *TransformNode) WithAccessibilityParent(accessibilityParent obj.Object) *TransformNode
- func (tn *TransformNode) WithAccessibilityRole(accessibilityRole string) *TransformNode
- func (tn *TransformNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *TransformNode
- func (tn *TransformNode) WithAccessibilitySubrole(accessibilitySubrole string) *TransformNode
- func (tn *TransformNode) WithAlpha(alpha float64) *TransformNode
- func (tn *TransformNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *TransformNode
- func (tn *TransformNode) WithConstraints(items ...*Constraint) *TransformNode
- func (tn *TransformNode) WithHidden(hidden bool) *TransformNode
- func (tn *TransformNode) WithName(name string) *TransformNode
- func (tn *TransformNode) WithPaused(paused bool) *TransformNode
- func (tn *TransformNode) WithPhysicsBody(physicsBody *PhysicsBody) *TransformNode
- func (tn *TransformNode) WithPosition(position corefoundation.CGPoint) *TransformNode
- func (tn *TransformNode) WithReachConstraints(reachConstraints *ReachConstraints) *TransformNode
- func (tn *TransformNode) WithSpeed(speed float64) *TransformNode
- func (tn *TransformNode) WithUserData(userData obj.Object) *TransformNode
- func (tn *TransformNode) WithUserInteractionEnabled(userInteractionEnabled bool) *TransformNode
- func (tn *TransformNode) WithXRotation(xRotation float64) *TransformNode
- func (tn *TransformNode) WithXScale(xScale float64) *TransformNode
- func (tn *TransformNode) WithYRotation(yRotation float64) *TransformNode
- func (tn *TransformNode) WithYScale(yScale float64) *TransformNode
- func (tn *TransformNode) WithZPosition(zPosition float64) *TransformNode
- func (tn *TransformNode) WithZRotation(zRotation float64) *TransformNode
- func (tn *TransformNode) XRotation() float64
- func (tn *TransformNode) YRotation() float64
- type Transition
- func CrossFadeWithDuration(sec float64) *Transition
- func DoorsCloseHorizontalWithDuration(sec float64) *Transition
- func DoorsCloseVerticalWithDuration(sec float64) *Transition
- func DoorsOpenHorizontalWithDuration(sec float64) *Transition
- func DoorsOpenVerticalWithDuration(sec float64) *Transition
- func DoorwayWithDuration(sec float64) *Transition
- func FadeWithColorDuration(color obj.Object, sec float64) *Transition
- func FadeWithDuration(sec float64) *Transition
- func FlipHorizontalWithDuration(sec float64) *Transition
- func FlipVerticalWithDuration(sec float64) *Transition
- func MoveInWithDirectionDuration(direction TransitionDirection, sec float64) *Transition
- func NewTransition() *Transition
- func PushWithDirectionDuration(direction TransitionDirection, sec float64) *Transition
- func RevealWithDirectionDuration(direction TransitionDirection, sec float64) *Transition
- func TransitionFromID(id objc.ID) *Transition
- func TransitionWithCIFilterDuration(filter obj.Object, sec float64) *Transition
- func (t *Transition) Description() string
- func (t *Transition) IsEqual(other obj.Object) bool
- func (t *Transition) IsKind(className string) bool
- func (t *Transition) PausesIncomingScene() bool
- func (t *Transition) PausesOutgoingScene() bool
- func (t *Transition) String() string
- func (t *Transition) WithPausesIncomingScene(pausesIncomingScene bool) *Transition
- func (t *Transition) WithPausesOutgoingScene(pausesOutgoingScene bool) *Transition
- type TransitionDirection
- type Type
- type UIFocusItem
- type Uniform
- func NewUniformWithName(name string) *Uniform
- func NewUniformWithNameFloat(name string, value float32) *Uniform
- func NewUniformWithNameFloatMatrix2(name string, value unsafe.Pointer) *Uniform
- func NewUniformWithNameFloatMatrix3(name string, value unsafe.Pointer) *Uniform
- func NewUniformWithNameFloatMatrix4(name string, value unsafe.Pointer) *Uniform
- func NewUniformWithNameFloatVector2(name string, value unsafe.Pointer) *Uniform
- func NewUniformWithNameFloatVector3(name string, value unsafe.Pointer) *Uniform
- func NewUniformWithNameFloatVector4(name string, value unsafe.Pointer) *Uniform
- func NewUniformWithNameMatrixFloat2x2(name string, value unsafe.Pointer) *Uniform
- func NewUniformWithNameMatrixFloat3x3(name string, value unsafe.Pointer) *Uniform
- func NewUniformWithNameMatrixFloat4x4(name string, value unsafe.Pointer) *Uniform
- func NewUniformWithNameTexture(name string, texture *Texture) *Uniform
- func NewUniformWithNameVectorFloat2(name string, value unsafe.Pointer) *Uniform
- func NewUniformWithNameVectorFloat3(name string, value unsafe.Pointer) *Uniform
- func NewUniformWithNameVectorFloat4(name string, value unsafe.Pointer) *Uniform
- func UniformFromID(id objc.ID) *Uniform
- func UniformWithName(name string) *Uniform
- func UniformWithNameFloat(name string, value float32) *Uniform
- func UniformWithNameFloatMatrix2(name string, value unsafe.Pointer) *Uniform
- func UniformWithNameFloatMatrix3(name string, value unsafe.Pointer) *Uniform
- func UniformWithNameFloatMatrix4(name string, value unsafe.Pointer) *Uniform
- func UniformWithNameFloatVector2(name string, value unsafe.Pointer) *Uniform
- func UniformWithNameFloatVector3(name string, value unsafe.Pointer) *Uniform
- func UniformWithNameFloatVector4(name string, value unsafe.Pointer) *Uniform
- func UniformWithNameMatrixFloat2x2(name string, value unsafe.Pointer) *Uniform
- func UniformWithNameMatrixFloat3x3(name string, value unsafe.Pointer) *Uniform
- func UniformWithNameMatrixFloat4x4(name string, value unsafe.Pointer) *Uniform
- func UniformWithNameTexture(name string, texture *Texture) *Uniform
- func UniformWithNameVectorFloat2(name string, value unsafe.Pointer) *Uniform
- func UniformWithNameVectorFloat3(name string, value unsafe.Pointer) *Uniform
- func UniformWithNameVectorFloat4(name string, value unsafe.Pointer) *Uniform
- func (u *Uniform) Description() string
- func (u *Uniform) FloatMatrix2Value() unsafe.Pointer
- func (u *Uniform) FloatMatrix3Value() unsafe.Pointer
- func (u *Uniform) FloatMatrix4Value() unsafe.Pointer
- func (u *Uniform) FloatValue() float32
- func (u *Uniform) FloatVector2Value() unsafe.Pointer
- func (u *Uniform) FloatVector3Value() unsafe.Pointer
- func (u *Uniform) FloatVector4Value() unsafe.Pointer
- func (u *Uniform) IsEqual(other obj.Object) bool
- func (u *Uniform) IsKind(className string) bool
- func (u *Uniform) MatrixFloat2x2Value() unsafe.Pointer
- func (u *Uniform) MatrixFloat3x3Value() unsafe.Pointer
- func (u *Uniform) MatrixFloat4x4Value() unsafe.Pointer
- func (u *Uniform) Name() string
- func (u *Uniform) String() string
- func (u *Uniform) TextureValue() *Texture
- func (u *Uniform) UniformType() UniformType
- func (u *Uniform) VectorFloat2Value() unsafe.Pointer
- func (u *Uniform) VectorFloat3Value() unsafe.Pointer
- func (u *Uniform) VectorFloat4Value() unsafe.Pointer
- func (u *Uniform) WithFloatMatrix2Value(floatMatrix2Value unsafe.Pointer) *Uniform
- func (u *Uniform) WithFloatMatrix3Value(floatMatrix3Value unsafe.Pointer) *Uniform
- func (u *Uniform) WithFloatMatrix4Value(floatMatrix4Value unsafe.Pointer) *Uniform
- func (u *Uniform) WithFloatValue(floatValue float32) *Uniform
- func (u *Uniform) WithFloatVector2Value(floatVector2Value unsafe.Pointer) *Uniform
- func (u *Uniform) WithFloatVector3Value(floatVector3Value unsafe.Pointer) *Uniform
- func (u *Uniform) WithFloatVector4Value(floatVector4Value unsafe.Pointer) *Uniform
- func (u *Uniform) WithMatrixFloat2x2Value(matrixFloat2x2Value unsafe.Pointer) *Uniform
- func (u *Uniform) WithMatrixFloat3x3Value(matrixFloat3x3Value unsafe.Pointer) *Uniform
- func (u *Uniform) WithMatrixFloat4x4Value(matrixFloat4x4Value unsafe.Pointer) *Uniform
- func (u *Uniform) WithTextureValue(textureValue TextureProvider) *Uniform
- func (u *Uniform) WithVectorFloat2Value(vectorFloat2Value unsafe.Pointer) *Uniform
- func (u *Uniform) WithVectorFloat3Value(vectorFloat3Value unsafe.Pointer) *Uniform
- func (u *Uniform) WithVectorFloat4Value(vectorFloat4Value unsafe.Pointer) *Uniform
- type UniformType
- type VideoNode
- func NewVideoNodeWithAVPlayer(player obj.Object) *VideoNode
- func NewVideoNodeWithCoder(aDecoder obj.Object) *VideoNode
- func NewVideoNodeWithFileNamed(videoFile string) *VideoNode
- func NewVideoNodeWithURL(url string) *VideoNode
- func NewVideoNodeWithVideoFileNamed(videoFile string) *VideoNode
- func NewVideoNodeWithVideoURL(url string) *VideoNode
- func VideoNodeFromID(id objc.ID) *VideoNode
- func VideoNodeWithAVPlayer(player obj.Object) *VideoNode
- func VideoNodeWithFileNamed(videoFile string) *VideoNode
- func VideoNodeWithURL(videoURL string) *VideoNode
- func VideoNodeWithVideoFileNamed(videoFile string) *VideoNode
- func VideoNodeWithVideoURL(videoURL string) *VideoNode
- func (vn *VideoNode) AnchorPoint() corefoundation.CGPoint
- func (vn *VideoNode) Pause()
- func (vn *VideoNode) Play()
- func (vn *VideoNode) Size() corefoundation.CGSize
- func (vn *VideoNode) WithAccessibilityElement(accessibilityElement bool) *VideoNode
- func (vn *VideoNode) WithAccessibilityEnabled(accessibilityEnabled bool) *VideoNode
- func (vn *VideoNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *VideoNode
- func (vn *VideoNode) WithAccessibilityHelp(accessibilityHelp string) *VideoNode
- func (vn *VideoNode) WithAccessibilityLabel(accessibilityLabel string) *VideoNode
- func (vn *VideoNode) WithAccessibilityParent(accessibilityParent obj.Object) *VideoNode
- func (vn *VideoNode) WithAccessibilityRole(accessibilityRole string) *VideoNode
- func (vn *VideoNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *VideoNode
- func (vn *VideoNode) WithAccessibilitySubrole(accessibilitySubrole string) *VideoNode
- func (vn *VideoNode) WithAlpha(alpha float64) *VideoNode
- func (vn *VideoNode) WithAnchorPoint(anchorPoint corefoundation.CGPoint) *VideoNode
- func (vn *VideoNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *VideoNode
- func (vn *VideoNode) WithConstraints(items ...*Constraint) *VideoNode
- func (vn *VideoNode) WithHidden(hidden bool) *VideoNode
- func (vn *VideoNode) WithName(name string) *VideoNode
- func (vn *VideoNode) WithPaused(paused bool) *VideoNode
- func (vn *VideoNode) WithPhysicsBody(physicsBody *PhysicsBody) *VideoNode
- func (vn *VideoNode) WithPosition(position corefoundation.CGPoint) *VideoNode
- func (vn *VideoNode) WithReachConstraints(reachConstraints *ReachConstraints) *VideoNode
- func (vn *VideoNode) WithSize(size corefoundation.CGSize) *VideoNode
- func (vn *VideoNode) WithSpeed(speed float64) *VideoNode
- func (vn *VideoNode) WithUserData(userData obj.Object) *VideoNode
- func (vn *VideoNode) WithUserInteractionEnabled(userInteractionEnabled bool) *VideoNode
- func (vn *VideoNode) WithXScale(xScale float64) *VideoNode
- func (vn *VideoNode) WithYScale(yScale float64) *VideoNode
- func (vn *VideoNode) WithZPosition(zPosition float64) *VideoNode
- func (vn *VideoNode) WithZRotation(zRotation float64) *VideoNode
- type View
- func (v_ *View) AllowsTransparency() bool
- func (v_ *View) ConvertPointFromScene(point corefoundation.CGPoint, scene *Scene) corefoundation.CGPoint
- func (v_ *View) ConvertPointToScene(point corefoundation.CGPoint, scene *Scene) corefoundation.CGPoint
- func (v_ *View) Delegate() *foundation.Object
- func (v_ *View) Description() string
- func (v_ *View) DisableDepthStencilBuffer() bool
- func (v_ *View) FrameInterval() int
- func (v_ *View) IgnoresSiblingOrder() bool
- func (v_ *View) IsAsynchronous() bool
- func (v_ *View) IsEqual(other obj.Object) bool
- func (v_ *View) IsKind(className string) bool
- func (v_ *View) IsPaused() bool
- func (v_ *View) PreferredFrameRate() float32
- func (v_ *View) PreferredFramesPerSecond() int
- func (v_ *View) PresentScene(scene *Scene)
- func (v_ *View) PresentSceneTransition(scene *Scene, transition *Transition)
- func (v_ *View) Scene() *Scene
- func (v_ *View) ShouldCullNonVisibleNodes() bool
- func (v_ *View) ShowsDrawCount() bool
- func (v_ *View) ShowsFPS() bool
- func (v_ *View) ShowsFields() bool
- func (v_ *View) ShowsNodeCount() bool
- func (v_ *View) ShowsPhysics() bool
- func (v_ *View) ShowsQuadCount() bool
- func (v_ *View) String() string
- func (v_ *View) TextureFromNode(node *Node) *Texture
- func (v_ *View) TextureFromNodeCrop(node *Node, crop corefoundation.CGRect) *Texture
- func (v_ *View) WithAllowsTransparency(allowsTransparency bool) *View
- func (v_ *View) WithAsynchronous(asynchronous bool) *View
- func (v_ *View) WithDelegate(delegate obj.Object) *View
- func (v_ *View) WithDisableDepthStencilBuffer(disableDepthStencilBuffer bool) *View
- func (v_ *View) WithFrameInterval(frameInterval int) *View
- func (v_ *View) WithIgnoresSiblingOrder(ignoresSiblingOrder bool) *View
- func (v_ *View) WithPaused(paused bool) *View
- func (v_ *View) WithPreferredFrameRate(preferredFrameRate float32) *View
- func (v_ *View) WithPreferredFramesPerSecond(preferredFramesPerSecond int) *View
- func (v_ *View) WithShouldCullNonVisibleNodes(shouldCullNonVisibleNodes bool) *View
- func (v_ *View) WithShowsDrawCount(showsDrawCount bool) *View
- func (v_ *View) WithShowsFPS(showsFPS bool) *View
- func (v_ *View) WithShowsFields(showsFields bool) *View
- func (v_ *View) WithShowsNodeCount(showsNodeCount bool) *View
- func (v_ *View) WithShowsPhysics(showsPhysics bool) *View
- func (v_ *View) WithShowsQuadCount(showsQuadCount bool) *View
- type ViewDelegate
- type ViewDelegateViewShouldRenderAtTimeHandler
- type VirtualMemoryGuardExceptionCode
- type WarpGeometry
- type WarpGeometryGrid
- func Grid() *WarpGeometryGrid
- func GridWithColumnsRows(cols int, rows int) *WarpGeometryGrid
- func GridWithColumnsRowsSourcePositionsDestPositions(cols int, rows int, sourcePositions unsafe.Pointer, ...) *WarpGeometryGrid
- func NewWarpGeometryGridWithCoder(aDecoder obj.Object) *WarpGeometryGrid
- func NewWarpGeometryGridWithColumnsRowsSourcePositionsDestPositions(cols int, rows int, sourcePositions unsafe.Pointer, ...) *WarpGeometryGrid
- func WarpGeometryGridFromID(id objc.ID) *WarpGeometryGrid
- func (wgg *WarpGeometryGrid) DestPositionAtIndex(index int) unsafe.Pointer
- func (wgg *WarpGeometryGrid) GridByReplacingDestPositions(destPositions unsafe.Pointer) *WarpGeometryGrid
- func (wgg *WarpGeometryGrid) GridByReplacingSourcePositions(sourcePositions unsafe.Pointer) *WarpGeometryGrid
- func (wgg *WarpGeometryGrid) NumberOfColumns() int
- func (wgg *WarpGeometryGrid) NumberOfRows() int
- func (wgg *WarpGeometryGrid) SourcePositionAtIndex(index int) unsafe.Pointer
- func (wgg *WarpGeometryGrid) VertexCount() int
- type WarpGeometryProvider
- type Warpable
- type XpcListenerCreateFlags
- type XpcSessionCreateFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PreloadTextureAtlases ¶ added in v0.17.0
func PreloadTextureAtlases(ctx context.Context, textureAtlases []*TextureAtlas) error
PreloadTextureAtlases loads the textures of multiple atlas objects into memory, calling a completion handler after the task completes.
PreloadTextureAtlases blocks until the operation completes or ctx is cancelled.
func PreloadTextureAtlasesNamed ¶ added in v0.17.0
func PreloadTextureAtlasesNamed(ctx context.Context, atlasNames []string) (result obj.Object, err error)
PreloadTextureAtlasesNamed loads the textures of multiple atlases into memory, calling a completion handler after the task completes.
PreloadTextureAtlasesNamed blocks until the operation completes or ctx is cancelled.
Types ¶
type Action ¶ added in v0.17.0
Action is an idiomatic wrapper over the Objective-C class SKAction.
An object that is run by a node to change its structure or content.
func ActionFromID ¶ added in v0.17.0
ActionFromID adopts an existing Objective-C object as a Action (nil for 0), retaining it and registering a release finalizer.
func ActionNamed ¶ added in v0.17.0
ActionNamed creates an action of the given name from an action file.
func ActionNamedDuration ¶ added in v0.17.0
ActionNamedDuration creates an action of the given name from an action file with a new duration.
func ActionNamedFromURL ¶ added in v0.17.0
ActionNamedFromURL creates an action of the given name from an action file.
func ActionNamedFromURLDuration ¶ added in v0.17.0
ActionNamedFromURLDuration creates an action of the given name from an action file with a new duration.
func AnimateWithNormalTexturesTimePerFrame ¶ added in v0.17.0
AnimateWithNormalTexturesTimePerFrame wraps the corresponding Objective-C method.
func AnimateWithNormalTexturesTimePerFrameResizeRestore ¶ added in v0.17.0
func AnimateWithNormalTexturesTimePerFrameResizeRestore(textures []*Texture, sec float64, resize bool, restore bool) *Action
AnimateWithNormalTexturesTimePerFrameResizeRestore wraps the corresponding Objective-C method.
func AnimateWithTexturesTimePerFrame ¶ added in v0.17.0
AnimateWithTexturesTimePerFrame creates an action that animates changes to a sprite’s texture
func AnimateWithTexturesTimePerFrameResizeRestore ¶ added in v0.17.0
func AnimateWithTexturesTimePerFrameResizeRestore(textures []*Texture, sec float64, resize bool, restore bool) *Action
AnimateWithTexturesTimePerFrameResizeRestore creates an action that animates changes to a sprite’s texture
func AnimateWithWarpsTimes ¶ added in v0.17.0
func AnimateWithWarpsTimes(warps []*WarpGeometry, times []*foundation.Number) *Action
AnimateWithWarpsTimes wraps the corresponding Objective-C method.
func AnimateWithWarpsTimesRestore ¶ added in v0.17.0
func AnimateWithWarpsTimesRestore(warps []*WarpGeometry, times []*foundation.Number, restore bool) *Action
AnimateWithWarpsTimesRestore wraps the corresponding Objective-C method.
func ApplyAngularImpulseDuration ¶ added in v0.17.0
ApplyAngularImpulseDuration applies angular impulse duration.
func ApplyForceAtPointDuration ¶ added in v0.17.0
func ApplyForceAtPointDuration(force corefoundation.CGVector, point corefoundation.CGPoint, duration float64) *Action
ApplyForceAtPointDuration applies force at point duration.
func ApplyForceDuration ¶ added in v0.17.0
func ApplyForceDuration(force corefoundation.CGVector, duration float64) *Action
ApplyForceDuration applies force duration.
func ApplyImpulseAtPointDuration ¶ added in v0.17.0
func ApplyImpulseAtPointDuration(impulse corefoundation.CGVector, point corefoundation.CGPoint, duration float64) *Action
ApplyImpulseAtPointDuration applies impulse at point duration.
func ApplyImpulseDuration ¶ added in v0.17.0
func ApplyImpulseDuration(impulse corefoundation.CGVector, duration float64) *Action
ApplyImpulseDuration applies impulse duration.
func ApplyTorqueDuration ¶ added in v0.17.0
ApplyTorqueDuration applies torque duration.
func ChangeChargeByDuration ¶ added in v0.17.0
ChangeChargeByDuration wraps the corresponding Objective-C method.
func ChangeChargeToDuration ¶ added in v0.17.0
ChangeChargeToDuration wraps the corresponding Objective-C method.
func ChangeMassByDuration ¶ added in v0.17.0
ChangeMassByDuration wraps the corresponding Objective-C method.
func ChangeMassToDuration ¶ added in v0.17.0
ChangeMassToDuration wraps the corresponding Objective-C method.
func ChangeObstructionByDuration ¶ added in v0.17.0
ChangeObstructionByDuration wraps the corresponding Objective-C method.
func ChangeObstructionToDuration ¶ added in v0.17.0
ChangeObstructionToDuration wraps the corresponding Objective-C method.
func ChangeOcclusionByDuration ¶ added in v0.17.0
ChangeOcclusionByDuration wraps the corresponding Objective-C method.
func ChangeOcclusionToDuration ¶ added in v0.17.0
ChangeOcclusionToDuration wraps the corresponding Objective-C method.
func ChangePlaybackRateByDuration ¶ added in v0.17.0
ChangePlaybackRateByDuration wraps the corresponding Objective-C method.
func ChangePlaybackRateToDuration ¶ added in v0.17.0
ChangePlaybackRateToDuration wraps the corresponding Objective-C method.
func ChangeReverbByDuration ¶ added in v0.17.0
ChangeReverbByDuration wraps the corresponding Objective-C method.
func ChangeReverbToDuration ¶ added in v0.17.0
ChangeReverbToDuration wraps the corresponding Objective-C method.
func ChangeVolumeByDuration ¶ added in v0.17.0
ChangeVolumeByDuration wraps the corresponding Objective-C method.
func ChangeVolumeToDuration ¶ added in v0.17.0
ChangeVolumeToDuration wraps the corresponding Objective-C method.
func ColorizeWithColorBlendFactorDuration ¶ added in v0.17.0
ColorizeWithColorBlendFactorDuration wraps the corresponding Objective-C method.
func ColorizeWithColorColorBlendFactorDuration ¶ added in v0.17.0
func ColorizeWithColorColorBlendFactorDuration(color obj.Object, colorBlendFactor float64, duration float64) *Action
ColorizeWithColorColorBlendFactorDuration creates an animation that animates a sprite’s color and blend factor
func CustomActionWithDurationActionBlock ¶ added in v0.17.0
CustomActionWithDurationActionBlock creates an action that executes a block over a duration
func FadeAlphaByDuration ¶ added in v0.17.0
FadeAlphaByDuration creates an action that adjusts the alpha value of a node by a relative value
func FadeAlphaToDuration ¶ added in v0.17.0
FadeAlphaToDuration creates an action that adjusts the alpha value of a node to a new value
func FadeInWithDuration ¶ added in v0.17.0
FadeInWithDuration creates an action that changes the alpha value of the node to 1.0
func FadeOutWithDuration ¶ added in v0.17.0
FadeOutWithDuration creates an action that changes the alpha value of the node to 0.0
func FalloffByDuration ¶ added in v0.17.0
FalloffByDuration creates an action that sets the falloff of a field
func FalloffToDuration ¶ added in v0.17.0
FalloffToDuration creates an action that sets the falloff of a field
func FollowPathAsOffsetOrientToPathDuration ¶ added in v0.17.0
func FollowPathAsOffsetOrientToPathDuration(path coregraphics.CGPathRef, offset bool, orient bool, duration float64) *Action
FollowPathAsOffsetOrientToPathDuration creates an action that moves the node along a path
func FollowPathAsOffsetOrientToPathSpeed ¶ added in v0.17.0
func FollowPathAsOffsetOrientToPathSpeed(path coregraphics.CGPathRef, offset bool, orient bool, speed float64) *Action
FollowPathAsOffsetOrientToPathSpeed wraps the corresponding Objective-C method.
func FollowPathDuration ¶ added in v0.17.0
func FollowPathDuration(path coregraphics.CGPathRef, duration float64) *Action
FollowPathDuration creates an action that moves the node along a relative path, orienting the node to the path
func FollowPathSpeed ¶ added in v0.17.0
func FollowPathSpeed(path coregraphics.CGPathRef, speed float64) *Action
FollowPathSpeed creates an action that moves the node along a relative path, orienting the node to the path
func Group ¶ added in v0.17.0
Group creates an action that runs a collection of actions concurrently When the action executes, the actions that comprise the group all start immediately and run in parallel. The duration of the group action is the longest duration among the collection of actions. If an action in the group has a duration less than the group’s duration, the action completes, then idles until the group completes the remaining actions. This matters most when creating a repeating action that repeats a group.
func MoveByDuration ¶ added in v0.17.0
func MoveByDuration(delta corefoundation.CGVector, duration float64) *Action
MoveByDuration creates an action that moves a node relative to its current position
func MoveByXYDuration ¶ added in v0.17.0
MoveByXYDuration moves by xy duration.
func MoveToDuration ¶ added in v0.17.0
func MoveToDuration(location corefoundation.CGPoint, duration float64) *Action
MoveToDuration creates an action that moves a node to a new position
func MoveToXDuration ¶ added in v0.17.0
MoveToXDuration moves to x duration.
func MoveToYDuration ¶ added in v0.17.0
MoveToYDuration moves to y duration.
func PlaySoundFileNamedWaitForCompletion ¶ added in v0.17.0
PlaySoundFileNamedWaitForCompletion creates an action that plays a sound The file name must be the name or path of a file of a platform supported audio file format. Use a LinearPCM format audio file with 8 or 16 bits per channel for best performance
func ReachToNodeRootNodeDuration ¶ added in v0.17.0
ReachToNodeRootNodeDuration creates an action that performs an inverse kinematic reach. This action must be run on a descendent of the rootNode for animation to occur. Running this action on the rootNode itself will not cause any animation to occur.
func ReachToNodeRootNodeVelocity ¶ added in v0.17.0
ReachToNodeRootNodeVelocity creates an action that performs an inverse kinematic reach. This action must be run on a descendent of the rootNode for animation to occur. Running this action on the rootNode itself will not cause any animation to occur.
func ReachToRootNodeDuration ¶ added in v0.17.0
func ReachToRootNodeDuration(position corefoundation.CGPoint, root *Node, duration float64) *Action
ReachToRootNodeDuration creates an action that performs an inverse kinematic reach. This action must be run on a descendent of the rootNode for animation to occur. Running this action on the rootNode itself will not cause any animation to occur.
func ReachToRootNodeVelocity ¶ added in v0.17.0
func ReachToRootNodeVelocity(position corefoundation.CGPoint, root *Node, velocity float64) *Action
ReachToRootNodeVelocity creates an action that performs an inverse kinematic reach. This action must be run on a descendent of the rootNode for animation to occur. Running this action on the rootNode itself will not cause any animation to occur.
func RemoveFromParent ¶ added in v0.17.0
func RemoveFromParent() *Action
RemoveFromParent creates an action that removes the node from its parent
func RepeatActionCount ¶ added in v0.17.0
RepeatActionCount creates an action that repeats another action a specified number of times
func RepeatActionForever ¶ added in v0.17.0
RepeatActionForever creates an action that repeats forever
func ResizeByWidthHeightDuration ¶ added in v0.17.0
ResizeByWidthHeightDuration creates an action that adjusts the size of a sprite
func ResizeToHeightDuration ¶ added in v0.17.0
ResizeToHeightDuration wraps the corresponding Objective-C method.
func ResizeToWidthDuration ¶ added in v0.17.0
ResizeToWidthDuration wraps the corresponding Objective-C method.
func ResizeToWidthHeightDuration ¶ added in v0.17.0
ResizeToWidthHeightDuration creates an action that changes the width and height of a sprite to a new absolute value
func RotateByAngleDuration ¶ added in v0.17.0
RotateByAngleDuration creates an action that rotates the node by a relative value
func RotateToAngleDuration ¶ added in v0.17.0
RotateToAngleDuration creates an action that rotates the node counterclockwise to an absolute angle
func RotateToAngleDurationShortestUnitArc ¶ added in v0.17.0
func RotateToAngleDurationShortestUnitArc(radians float64, duration float64, shortestUnitArc bool) *Action
RotateToAngleDurationShortestUnitArc creates an action that rotates the node to an absolute value
func RunActionOnChildWithName ¶ added in v0.17.0
RunActionOnChildWithName creates an action that runs an action on a named child object
func RunBlock ¶ added in v0.17.0
func RunBlock(block func()) *Action
RunBlock creates an action that executes a block
func RunBlockQueue ¶ added in v0.17.0
RunBlockQueue creates an action that executes a block
func ScaleByDuration ¶ added in v0.17.0
ScaleByDuration creates an action that changes the x and y scale values of a node by a relative value
func ScaleToDuration ¶ added in v0.17.0
ScaleToDuration creates an action that changes the x and y scale values of a node by a relative value
func ScaleToSizeDuration ¶ added in v0.17.0
func ScaleToSizeDuration(size corefoundation.CGSize, duration float64) *Action
ScaleToSizeDuration adjust the sprite's xScale & yScale to achieve the desired size (in parent's coordinate space)
func ScaleXByYDuration ¶ added in v0.17.0
ScaleXByYDuration wraps the corresponding Objective-C method.
func ScaleXToDuration ¶ added in v0.17.0
ScaleXToDuration wraps the corresponding Objective-C method.
func ScaleXToYDuration ¶ added in v0.17.0
ScaleXToYDuration wraps the corresponding Objective-C method.
func ScaleYToDuration ¶ added in v0.17.0
ScaleYToDuration wraps the corresponding Objective-C method.
func Sequence ¶ added in v0.17.0
Sequence creates an action that runs a collection of actions sequentially When the action executes, the first action in the sequence starts and runs to completion. Subsequent actions in the sequence run in a similar fashion until all of the actions in the sequence have executed. The duration of the sequence action is the sum of the durations of the actions in the sequence. This action is reversible; it creates a new sequence action that reverses the order of the actions. Each action in the reversed sequence is itself reversed. For example, if an action sequence is {1,2,3}, the reversed sequence would be {3R,2R,1R}.
func SetNormalTexture ¶ added in v0.17.0
SetNormalTexture wraps the corresponding Objective-C method.
func SetNormalTextureResize ¶ added in v0.17.0
SetNormalTextureResize wraps the corresponding Objective-C method.
func SetTexture ¶ added in v0.17.0
SetTexture creates an action that changes a sprite’s texture
func SetTextureResize ¶ added in v0.17.0
SetTextureResize creates an action that changes a sprite’s texture, possibly resizing the sprite
func SpeedByDuration ¶ added in v0.17.0
SpeedByDuration creates an action that changes how fast the node executes actions by a relative value
func SpeedToDuration ¶ added in v0.17.0
SpeedToDuration creates an action that changes how fast the node executes actions
func StereoPanByDuration ¶ added in v0.17.0
StereoPanByDuration wraps the corresponding Objective-C method.
func StereoPanToDuration ¶ added in v0.17.0
StereoPanToDuration wraps the corresponding Objective-C method.
func StrengthByDuration ¶ added in v0.17.0
StrengthByDuration creates an action that sets the strength of a field
func StrengthToDuration ¶ added in v0.17.0
StrengthToDuration creates an action that sets the strength of a field
func WaitForDuration ¶ added in v0.17.0
WaitForDuration creates an action that idles for a specified period of time
func WaitForDurationWithRange ¶ added in v0.17.0
WaitForDurationWithRange creates an action that idles for a randomized period of time
func WarpToDuration ¶ added in v0.17.0
func WarpToDuration(warp *WarpGeometry, duration float64) *Action
WarpToDuration wraps the corresponding Objective-C method.
func (*Action) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Action) Duration ¶ added in v0.17.0
Duration returns the duration required to complete an action, in seconds.
func (*Action) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Action) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Action) ReversedAction ¶ added in v0.17.0
ReversedAction creates an action that reverses the behavior of another action
func (*Action) Speed ¶ added in v0.17.0
Speed returns a speed factor that modifies how fast an action runs. Default value is 1.0
func (*Action) String ¶ added in v0.17.0
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*Action) TimingMode ¶ added in v0.17.0
func (a *Action) TimingMode() ActionTimingMode
TimingMode returns the timing mode used to execute an action
func (*Action) WithDuration ¶ added in v0.17.0
WithDuration sets the duration required to complete an action.
func (*Action) WithSpeed ¶ added in v0.17.0
WithSpeed sets a speed factor that modifies how fast an action runs.
func (*Action) WithTimingFunction ¶ added in v0.18.0
WithTimingFunction sets a block used to customize the timing function.
func (*Action) WithTimingMode ¶ added in v0.17.0
func (a *Action) WithTimingMode(timingMode ActionTimingMode) *Action
WithTimingMode sets a setting that controls the speed curve of an animation.
type ActionTimingMode ¶ added in v0.17.0
type ActionTimingMode int64
The modes that an action can use to adjust the apparent timing of the action.
const ( // Specifies linear pacing. Linear pacing causes an animation to occur evenly over its duration. ActionTimingLinear ActionTimingMode = 0 // Specifies ease-in pacing. Ease-in pacing causes the animation to begin slowly and then speed up as it progresses. ActionTimingEaseIn ActionTimingMode = 1 // Specifies ease-out pacing. Ease-out pacing causes the animation to begin quickly and then slow as it completes. ActionTimingEaseOut ActionTimingMode = 2 // Specifies ease-in ease-out pacing. An ease-in ease-out animation begins slowly, accelerates through the middle of its duration, and then slows again before completing. ActionTimingEaseInEaseOut ActionTimingMode = 3 )
func (ActionTimingMode) String ¶ added in v0.17.0
func (e ActionTimingMode) String() string
String returns the ActionTimingMode constant's name, or its numeric form when the value is not a known constant.
type Attribute ¶ added in v0.17.0
Attribute is an idiomatic wrapper over the Objective-C class SKAttribute.
A specification for dynamic per-node data used with a custom shader.
func AttributeFromID ¶ added in v0.17.0
AttributeFromID adopts an existing Objective-C object as a Attribute (nil for 0), retaining it and registering a release finalizer.
func AttributeWithNameType ¶ added in v0.17.0
func AttributeWithNameType(name string, type_ AttributeType) *Attribute
AttributeWithNameType wraps the corresponding Objective-C method.
func NewAttributeWithNameType ¶ added in v0.17.0
func NewAttributeWithNameType(name string, type_ AttributeType) *Attribute
NewAttributeWithNameType creates and initializes a new attribute object of a specified type with a name that can be referenced within the shader.
func (*Attribute) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Attribute) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Attribute) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Attribute) String ¶ added in v0.17.0
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*Attribute) Type ¶ added in v0.17.0
func (a *Attribute) Type() AttributeType
Type returns the type.
type AttributeType ¶ added in v0.17.0
type AttributeType int64
Options that specify an attribute’s data type.
const ( AttributeTypeNone AttributeType = 0 AttributeTypeFloat AttributeType = 1 AttributeTypeVectorFloat2 AttributeType = 2 AttributeTypeVectorFloat3 AttributeType = 3 AttributeTypeVectorFloat4 AttributeType = 4 AttributeTypeHalfFloat AttributeType = 5 AttributeTypeVectorHalfFloat2 AttributeType = 6 AttributeTypeVectorHalfFloat3 AttributeType = 7 AttributeTypeVectorHalfFloat4 AttributeType = 8 )
func (AttributeType) String ¶ added in v0.17.0
func (e AttributeType) String() string
String returns the AttributeType constant's name, or its numeric form when the value is not a known constant.
type AttributeValue ¶ added in v0.17.0
AttributeValue is an idiomatic wrapper over the Objective-C class SKAttributeValue.
A container for dynamic shader data associated with a node.
func AttributeValueFromID ¶ added in v0.17.0
func AttributeValueFromID(id objc.ID) *AttributeValue
AttributeValueFromID adopts an existing Objective-C object as a AttributeValue (nil for 0), retaining it and registering a release finalizer.
func NewAttributeValue ¶ added in v0.17.0
func NewAttributeValue() *AttributeValue
NewAttributeValue creates a new AttributeValue.
func ValueWithFloat ¶ added in v0.17.0
func ValueWithFloat(value float32) *AttributeValue
ValueWithFloat creates and initializes a new attribute value object that holds a floating point number.
func ValueWithVectorFloat2 ¶ added in v0.17.0
func ValueWithVectorFloat2(value unsafe.Pointer) *AttributeValue
ValueWithVectorFloat2 creates and initializes a new attribute value object that holds a vector of two floating point numbers.
func ValueWithVectorFloat3 ¶ added in v0.17.0
func ValueWithVectorFloat3(value unsafe.Pointer) *AttributeValue
ValueWithVectorFloat3 creates and initializes a new attribute value object that holds a vector of three floating point numbers.
func ValueWithVectorFloat4 ¶ added in v0.17.0
func ValueWithVectorFloat4(value unsafe.Pointer) *AttributeValue
ValueWithVectorFloat4 creates and initializes a new attribute value object that holds a vector of four floating point numbers.
func (*AttributeValue) Description ¶ added in v0.17.0
func (av *AttributeValue) Description() string
Description returns the object's -description text.
func (*AttributeValue) FloatValue ¶ added in v0.17.0
func (av *AttributeValue) FloatValue() float32
FloatValue returns the float value.
func (*AttributeValue) IsEqual ¶ added in v0.17.0
func (av *AttributeValue) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*AttributeValue) IsKind ¶ added in v0.17.0
func (av *AttributeValue) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*AttributeValue) String ¶ added in v0.17.0
func (av *AttributeValue) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*AttributeValue) VectorFloat2Value ¶ added in v0.18.0
func (av *AttributeValue) VectorFloat2Value() unsafe.Pointer
VectorFloat2Value returns the vector float2 value.
func (*AttributeValue) VectorFloat3Value ¶ added in v0.18.0
func (av *AttributeValue) VectorFloat3Value() unsafe.Pointer
VectorFloat3Value returns the vector float3 value.
func (*AttributeValue) VectorFloat4Value ¶ added in v0.18.0
func (av *AttributeValue) VectorFloat4Value() unsafe.Pointer
VectorFloat4Value returns the vector float4 value.
func (*AttributeValue) WithFloatValue ¶ added in v0.17.0
func (av *AttributeValue) WithFloatValue(floatValue float32) *AttributeValue
WithFloatValue sets the receiver’s floating point value.
func (*AttributeValue) WithVectorFloat2Value ¶ added in v0.17.0
func (av *AttributeValue) WithVectorFloat2Value(vectorFloat2Value unsafe.Pointer) *AttributeValue
WithVectorFloat2Value sets the receiver’s value as a vector of two floating-point numbers.
func (*AttributeValue) WithVectorFloat3Value ¶ added in v0.17.0
func (av *AttributeValue) WithVectorFloat3Value(vectorFloat3Value unsafe.Pointer) *AttributeValue
WithVectorFloat3Value sets the receiver’s value as a vector of three floating point numbers.
func (*AttributeValue) WithVectorFloat4Value ¶ added in v0.17.0
func (av *AttributeValue) WithVectorFloat4Value(vectorFloat4Value unsafe.Pointer) *AttributeValue
WithVectorFloat4Value sets the receiver’s value as a vector of four floating point numbers.
type AudioNode ¶ added in v0.17.0
type AudioNode struct {
Node
}
AudioNode is an idiomatic wrapper over the Objective-C class SKAudioNode.
It embeds Node, promoting that type's methods.
A node that plays audio.
func AudioNodeFromID ¶ added in v0.17.0
AudioNodeFromID adopts an existing Objective-C object as a AudioNode (nil for 0), retaining it and registering a release finalizer.
func NewAudioNodeWithAVAudioNode ¶ added in v0.17.0
NewAudioNodeWithAVAudioNode initializes an audio node from an AVFoundation audio node.
func NewAudioNodeWithCoder ¶ added in v0.17.0
NewAudioNodeWithCoder tells you when to initialize an audio node that has been unarchived.
func NewAudioNodeWithFileNamed ¶ added in v0.17.0
NewAudioNodeWithFileNamed initializes an audio node from an audio asset with the specified filename.
func NewAudioNodeWithURL ¶ added in v0.17.0
NewAudioNodeWithURL initializes an audio node from an audio asset with the specified URL.
func (*AudioNode) AutoplayLooped ¶ added in v0.17.0
AutoplayLooped reports whether the node is to automatically play sound when added to a scene. If autoplaysLooped is false, the node and its sound must be explicitly scheduled and played using the scene's engine. If true, the node will automatically play sound when added to a scene. Defaults to true.
func (*AudioNode) AvAudioNode ¶ added in v0.17.0
AvAudioNode sets or gets the current AVAudioNode used by this instance.
func (*AudioNode) IsPositional ¶ added in v0.17.0
IsPositional reports whether marks the audio source as positional so that the audio mix considers relative position and velocity with regards to the scene's current listener node.
func (*AudioNode) WithAccessibilityElement ¶ added in v0.17.0
WithAccessibilityElement sets a toggle you implement to indicate to the system whether this user interface element should be exposed to the user.
func (*AudioNode) WithAccessibilityEnabled ¶ added in v0.17.0
WithAccessibilityEnabled sets a toggle you implement to indicate to the system whether this user interface element should respond to user input.
func (*AudioNode) WithAccessibilityFrame ¶ added in v0.17.0
func (an *AudioNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *AudioNode
WithAccessibilityFrame sets the size of this user interface element, in screen points.
func (*AudioNode) WithAccessibilityHelp ¶ added in v0.17.0
WithAccessibilityHelp sets the help description of this user interface element; for example, the text shown in a tooltip.
func (*AudioNode) WithAccessibilityLabel ¶ added in v0.17.0
WithAccessibilityLabel sets a short description of this user interface element.
func (*AudioNode) WithAccessibilityParent ¶ added in v0.17.0
WithAccessibilityParent sets the user interface element that contains this element.
func (*AudioNode) WithAccessibilityRole ¶ added in v0.17.0
WithAccessibilityRole sets a string value describing the user interface element type; for example, a button.
func (*AudioNode) WithAccessibilityRoleDescription ¶ added in v0.17.0
func (an *AudioNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *AudioNode
WithAccessibilityRoleDescription sets a string value describing the user interface element name and type; for example, the Buy button.
func (*AudioNode) WithAccessibilitySubrole ¶ added in v0.17.0
WithAccessibilitySubrole sets a string that defines this user interface element’s subrole; for example, a full-screen button.
func (*AudioNode) WithAlpha ¶ added in v0.17.0
WithAlpha sets the transparency value applied to the node’s contents.
func (*AudioNode) WithAttributeValues ¶ added in v0.17.0
func (an *AudioNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *AudioNode
WithAttributeValues sets the values of each attribute associated with the node’s attached shader.
func (*AudioNode) WithAutoplayLooped ¶ added in v0.17.0
WithAutoplayLooped sets a Boolean value that indicates whether the audio should play in a loop when the node is added to the scene.
func (*AudioNode) WithAvAudioNode ¶ added in v0.17.0
WithAvAudioNode sets the audio node’s current audio asset.
func (*AudioNode) WithConstraints ¶ added in v0.17.0
func (an *AudioNode) WithConstraints(items ...*Constraint) *AudioNode
WithConstraints sets a list of constraints to apply to the node.
func (*AudioNode) WithHidden ¶ added in v0.17.0
WithHidden sets a Boolean value that determines whether a node and its descendants are rendered.
func (*AudioNode) WithPaused ¶ added in v0.17.0
WithPaused sets a Boolean value that determines whether actions on the node and its descendants are processed.
func (*AudioNode) WithPhysicsBody ¶ added in v0.17.0
func (an *AudioNode) WithPhysicsBody(physicsBody *PhysicsBody) *AudioNode
WithPhysicsBody sets the physics body associated with the node.
func (*AudioNode) WithPosition ¶ added in v0.17.0
func (an *AudioNode) WithPosition(position corefoundation.CGPoint) *AudioNode
WithPosition sets the position of the node in its parent’s coordinate system.
func (*AudioNode) WithPositional ¶ added in v0.17.0
WithPositional sets a Boolean property that indicates whether the node’s audio is altered based on the position of the node.
func (*AudioNode) WithReachConstraints ¶ added in v0.17.0
func (an *AudioNode) WithReachConstraints(reachConstraints *ReachConstraints) *AudioNode
WithReachConstraints sets the reach constraints to apply to the node when executing a reach action.
func (*AudioNode) WithSpeed ¶ added in v0.17.0
WithSpeed sets a speed modifier applied to all actions executed by a node and its descendants.
func (*AudioNode) WithUserData ¶ added in v0.17.0
WithUserData sets a dictionary containing arbitrary data.
func (*AudioNode) WithUserInteractionEnabled ¶ added in v0.17.0
WithUserInteractionEnabled sets a Boolean value that indicates whether the node receives touch events.
func (*AudioNode) WithXScale ¶ added in v0.17.0
WithXScale sets a scaling factor that multiplies the width of a node and its children.
func (*AudioNode) WithYScale ¶ added in v0.17.0
WithYScale sets a scaling factor that multiplies the height of a node and its children.
func (*AudioNode) WithZPosition ¶ added in v0.17.0
WithZPosition sets the height of the node relative to its parent.
func (*AudioNode) WithZRotation ¶ added in v0.17.0
WithZRotation sets the Euler rotation about the z axis (in radians).
type BlendMode ¶ added in v0.17.0
type BlendMode int64
The modes that describe how the source and destination pixel colors are used to calculate the new destination color.
const ( // The source and destination colors are blended by multiplying the source alpha value. BlendModeAlpha BlendMode = 0 // The source and destination colors are added together. BlendModeAdd BlendMode = 1 // The source color is subtracted from the destination color. BlendModeSubtract BlendMode = 2 // The source color is multiplied by the destination color. BlendModeMultiply BlendMode = 3 // The source color is multiplied by the destination color and then doubled. BlendModeMultiplyX2 BlendMode = 4 // The source color is added to the destination color times the inverted source color. BlendModeScreen BlendMode = 5 // The source color replaces the destination color. BlendModeReplace BlendMode = 6 BlendModeMultiplyAlpha BlendMode = 7 )
type CGLCPContextPriorityRequest ¶
type CGLCPContextPriorityRequest int32
const ( KCGLCPContextPriorityRequestHigh CGLCPContextPriorityRequest = 0 KCGLCPContextPriorityRequestNormal CGLCPContextPriorityRequest = 1 KCGLCPContextPriorityRequestLow CGLCPContextPriorityRequest = 2 )
func (CGLCPContextPriorityRequest) String ¶
func (e CGLCPContextPriorityRequest) String() string
String returns the CGLCPContextPriorityRequest constant's name, or its numeric form when the value is not a known constant.
type CameraNode ¶ added in v0.17.0
type CameraNode struct {
Node
}
CameraNode is an idiomatic wrapper over the Objective-C class SKCameraNode.
It embeds Node, promoting that type's methods.
A node that determines which parts of the scene are visible within a view.
func CameraNodeFromID ¶ added in v0.17.0
func CameraNodeFromID(id objc.ID) *CameraNode
CameraNodeFromID adopts an existing Objective-C object as a CameraNode (nil for 0), retaining it and registering a release finalizer.
func NewCameraNode ¶ added in v0.17.0
func NewCameraNode() *CameraNode
NewCameraNode creates a new CameraNode.
func (*CameraNode) ContainedNodeSet ¶ added in v0.17.0
func (cn *CameraNode) ContainedNodeSet() []*Node
ContainedNodeSet returns finds nodes that are visible in the camera’s viewport. The order of the returned elements is unspecified.
func (*CameraNode) ContainsNode ¶ added in v0.17.0
func (cn *CameraNode) ContainsNode(node *Node) bool
ContainsNode checks to see if a node is visible in the camera’s viewport.
func (*CameraNode) WithAccessibilityElement ¶ added in v0.17.0
func (cn *CameraNode) WithAccessibilityElement(accessibilityElement bool) *CameraNode
WithAccessibilityElement sets a toggle you implement to indicate to the system whether this user interface element should be exposed to the user.
func (*CameraNode) WithAccessibilityEnabled ¶ added in v0.17.0
func (cn *CameraNode) WithAccessibilityEnabled(accessibilityEnabled bool) *CameraNode
WithAccessibilityEnabled sets a toggle you implement to indicate to the system whether this user interface element should respond to user input.
func (*CameraNode) WithAccessibilityFrame ¶ added in v0.17.0
func (cn *CameraNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *CameraNode
WithAccessibilityFrame sets the size of this user interface element, in screen points.
func (*CameraNode) WithAccessibilityHelp ¶ added in v0.17.0
func (cn *CameraNode) WithAccessibilityHelp(accessibilityHelp string) *CameraNode
WithAccessibilityHelp sets the help description of this user interface element; for example, the text shown in a tooltip.
func (*CameraNode) WithAccessibilityLabel ¶ added in v0.17.0
func (cn *CameraNode) WithAccessibilityLabel(accessibilityLabel string) *CameraNode
WithAccessibilityLabel sets a short description of this user interface element.
func (*CameraNode) WithAccessibilityParent ¶ added in v0.17.0
func (cn *CameraNode) WithAccessibilityParent(accessibilityParent obj.Object) *CameraNode
WithAccessibilityParent sets the user interface element that contains this element.
func (*CameraNode) WithAccessibilityRole ¶ added in v0.17.0
func (cn *CameraNode) WithAccessibilityRole(accessibilityRole string) *CameraNode
WithAccessibilityRole sets a string value describing the user interface element type; for example, a button.
func (*CameraNode) WithAccessibilityRoleDescription ¶ added in v0.17.0
func (cn *CameraNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *CameraNode
WithAccessibilityRoleDescription sets a string value describing the user interface element name and type; for example, the Buy button.
func (*CameraNode) WithAccessibilitySubrole ¶ added in v0.17.0
func (cn *CameraNode) WithAccessibilitySubrole(accessibilitySubrole string) *CameraNode
WithAccessibilitySubrole sets a string that defines this user interface element’s subrole; for example, a full-screen button.
func (*CameraNode) WithAlpha ¶ added in v0.17.0
func (cn *CameraNode) WithAlpha(alpha float64) *CameraNode
WithAlpha sets the transparency value applied to the node’s contents.
func (*CameraNode) WithAttributeValues ¶ added in v0.17.0
func (cn *CameraNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *CameraNode
WithAttributeValues sets the values of each attribute associated with the node’s attached shader.
func (*CameraNode) WithConstraints ¶ added in v0.17.0
func (cn *CameraNode) WithConstraints(items ...*Constraint) *CameraNode
WithConstraints sets a list of constraints to apply to the node.
func (*CameraNode) WithHidden ¶ added in v0.17.0
func (cn *CameraNode) WithHidden(hidden bool) *CameraNode
WithHidden sets a Boolean value that determines whether a node and its descendants are rendered.
func (*CameraNode) WithName ¶ added in v0.17.0
func (cn *CameraNode) WithName(name string) *CameraNode
WithName sets the node’s assignable name.
func (*CameraNode) WithPaused ¶ added in v0.17.0
func (cn *CameraNode) WithPaused(paused bool) *CameraNode
WithPaused sets a Boolean value that determines whether actions on the node and its descendants are processed.
func (*CameraNode) WithPhysicsBody ¶ added in v0.17.0
func (cn *CameraNode) WithPhysicsBody(physicsBody *PhysicsBody) *CameraNode
WithPhysicsBody sets the physics body associated with the node.
func (*CameraNode) WithPosition ¶ added in v0.17.0
func (cn *CameraNode) WithPosition(position corefoundation.CGPoint) *CameraNode
WithPosition sets the position of the node in its parent’s coordinate system.
func (*CameraNode) WithReachConstraints ¶ added in v0.17.0
func (cn *CameraNode) WithReachConstraints(reachConstraints *ReachConstraints) *CameraNode
WithReachConstraints sets the reach constraints to apply to the node when executing a reach action.
func (*CameraNode) WithSpeed ¶ added in v0.17.0
func (cn *CameraNode) WithSpeed(speed float64) *CameraNode
WithSpeed sets a speed modifier applied to all actions executed by a node and its descendants.
func (*CameraNode) WithUserData ¶ added in v0.17.0
func (cn *CameraNode) WithUserData(userData obj.Object) *CameraNode
WithUserData sets a dictionary containing arbitrary data.
func (*CameraNode) WithUserInteractionEnabled ¶ added in v0.17.0
func (cn *CameraNode) WithUserInteractionEnabled(userInteractionEnabled bool) *CameraNode
WithUserInteractionEnabled sets a Boolean value that indicates whether the node receives touch events.
func (*CameraNode) WithXScale ¶ added in v0.17.0
func (cn *CameraNode) WithXScale(xScale float64) *CameraNode
WithXScale sets a scaling factor that multiplies the width of a node and its children.
func (*CameraNode) WithYScale ¶ added in v0.17.0
func (cn *CameraNode) WithYScale(yScale float64) *CameraNode
WithYScale sets a scaling factor that multiplies the height of a node and its children.
func (*CameraNode) WithZPosition ¶ added in v0.17.0
func (cn *CameraNode) WithZPosition(zPosition float64) *CameraNode
WithZPosition sets the height of the node relative to its parent.
func (*CameraNode) WithZRotation ¶ added in v0.17.0
func (cn *CameraNode) WithZRotation(zRotation float64) *CameraNode
WithZRotation sets the Euler rotation about the z axis (in radians).
type Constraint ¶ added in v0.17.0
Constraint is an idiomatic wrapper over the Objective-C class SKConstraint.
A specification for constraining a node’s position or rotation.
func ConstraintFromID ¶ added in v0.17.0
func ConstraintFromID(id objc.ID) *Constraint
ConstraintFromID adopts an existing Objective-C object as a Constraint (nil for 0), retaining it and registering a release finalizer.
func DistanceToNode ¶ added in v0.17.0
func DistanceToNode(range_ *Range, node *Node) *Constraint
DistanceToNode creates a constraint that keeps a node within a certain distance of another node.
func DistanceToPoint ¶ added in v0.17.0
func DistanceToPoint(range_ *Range, point corefoundation.CGPoint) *Constraint
DistanceToPoint creates a constraint that keeps a node within a certain distance of a point.
func DistanceToPointInNode ¶ added in v0.17.0
func DistanceToPointInNode(range_ *Range, point corefoundation.CGPoint, node *Node) *Constraint
DistanceToPointInNode creates a constraint that keeps a node within a certain distance of a point in another node’s coordinate system.
func NewConstraint ¶ added in v0.17.0
func NewConstraint() *Constraint
NewConstraint creates a new Constraint.
func OrientToNodeOffset ¶ added in v0.17.0
func OrientToNodeOffset(node *Node, radians *Range) *Constraint
OrientToNodeOffset creates a constraint that forces a node to rotate to face another node.
func OrientToPointInNodeOffset ¶ added in v0.17.0
func OrientToPointInNodeOffset(point corefoundation.CGPoint, node *Node, radians *Range) *Constraint
OrientToPointInNodeOffset creates a constraint that forces a node to rotate to face a point in another node’s coordinate system.
func OrientToPointOffset ¶ added in v0.17.0
func OrientToPointOffset(point corefoundation.CGPoint, radians *Range) *Constraint
OrientToPointOffset creates a constraint that forces a node to rotate to face a fixed point.
func PositionX ¶ added in v0.17.0
func PositionX(range_ *Range) *Constraint
PositionX creates a constraint that restricts the x-coordinate of a node’s position.
func PositionXY ¶ added in v0.17.0
func PositionXY(xRange *Range, yRange *Range) *Constraint
PositionXY creates a constraint that restricts both coordinates of a node’s position.
func PositionY ¶ added in v0.17.0
func PositionY(range_ *Range) *Constraint
PositionY creates a constraint that restricts the y-coordinate of a node’s position.
func ZRotation ¶ added in v0.17.0
func ZRotation(zRange *Range) *Constraint
ZRotation creates a constraint that limits the orientation of a node.
func (*Constraint) Description ¶ added in v0.17.0
func (c *Constraint) Description() string
Description returns the object's -description text.
func (*Constraint) Enabled ¶ added in v0.17.0
func (c *Constraint) Enabled() bool
Enabled wraps the corresponding Objective-C method.
func (*Constraint) IsEqual ¶ added in v0.17.0
func (c *Constraint) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Constraint) IsKind ¶ added in v0.17.0
func (c *Constraint) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Constraint) ReferenceNode ¶ added in v0.17.0
func (c *Constraint) ReferenceNode() *Node
ReferenceNode returns the reference node.
func (*Constraint) String ¶ added in v0.17.0
func (c *Constraint) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*Constraint) WithEnabled ¶ added in v0.17.0
func (c *Constraint) WithEnabled(enabled bool) *Constraint
WithEnabled sets a Boolean value that specifies whether the constraint is applied.
func (*Constraint) WithReferenceNode ¶ added in v0.17.0
func (c *Constraint) WithReferenceNode(referenceNode NodeProvider) *Constraint
WithReferenceNode sets the node whose coordinate system should be used to apply the constraint.
type CropNode ¶ added in v0.17.0
type CropNode struct {
Node
}
CropNode is an idiomatic wrapper over the Objective-C class SKCropNode.
It embeds Node, promoting that type's methods.
A node that masks pixels drawn by its children so that only some pixels are seen.
func CropNodeFromID ¶ added in v0.17.0
CropNodeFromID adopts an existing Objective-C object as a CropNode (nil for 0), retaining it and registering a release finalizer.
func NewCropNode ¶ added in v0.17.0
func NewCropNode() *CropNode
NewCropNode creates a new CropNode.
func (*CropNode) WithAccessibilityElement ¶ added in v0.17.0
WithAccessibilityElement sets a toggle you implement to indicate to the system whether this user interface element should be exposed to the user.
func (*CropNode) WithAccessibilityEnabled ¶ added in v0.17.0
WithAccessibilityEnabled sets a toggle you implement to indicate to the system whether this user interface element should respond to user input.
func (*CropNode) WithAccessibilityFrame ¶ added in v0.17.0
func (cn *CropNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *CropNode
WithAccessibilityFrame sets the size of this user interface element, in screen points.
func (*CropNode) WithAccessibilityHelp ¶ added in v0.17.0
WithAccessibilityHelp sets the help description of this user interface element; for example, the text shown in a tooltip.
func (*CropNode) WithAccessibilityLabel ¶ added in v0.17.0
WithAccessibilityLabel sets a short description of this user interface element.
func (*CropNode) WithAccessibilityParent ¶ added in v0.17.0
WithAccessibilityParent sets the user interface element that contains this element.
func (*CropNode) WithAccessibilityRole ¶ added in v0.17.0
WithAccessibilityRole sets a string value describing the user interface element type; for example, a button.
func (*CropNode) WithAccessibilityRoleDescription ¶ added in v0.17.0
WithAccessibilityRoleDescription sets a string value describing the user interface element name and type; for example, the Buy button.
func (*CropNode) WithAccessibilitySubrole ¶ added in v0.17.0
WithAccessibilitySubrole sets a string that defines this user interface element’s subrole; for example, a full-screen button.
func (*CropNode) WithAlpha ¶ added in v0.17.0
WithAlpha sets the transparency value applied to the node’s contents.
func (*CropNode) WithAttributeValues ¶ added in v0.17.0
func (cn *CropNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *CropNode
WithAttributeValues sets the values of each attribute associated with the node’s attached shader.
func (*CropNode) WithConstraints ¶ added in v0.17.0
func (cn *CropNode) WithConstraints(items ...*Constraint) *CropNode
WithConstraints sets a list of constraints to apply to the node.
func (*CropNode) WithHidden ¶ added in v0.17.0
WithHidden sets a Boolean value that determines whether a node and its descendants are rendered.
func (*CropNode) WithMaskNode ¶ added in v0.17.0
func (cn *CropNode) WithMaskNode(maskNode NodeProvider) *CropNode
WithMaskNode sets the node used to determine the crop node’s mask.
func (*CropNode) WithPaused ¶ added in v0.17.0
WithPaused sets a Boolean value that determines whether actions on the node and its descendants are processed.
func (*CropNode) WithPhysicsBody ¶ added in v0.17.0
func (cn *CropNode) WithPhysicsBody(physicsBody *PhysicsBody) *CropNode
WithPhysicsBody sets the physics body associated with the node.
func (*CropNode) WithPosition ¶ added in v0.17.0
func (cn *CropNode) WithPosition(position corefoundation.CGPoint) *CropNode
WithPosition sets the position of the node in its parent’s coordinate system.
func (*CropNode) WithReachConstraints ¶ added in v0.17.0
func (cn *CropNode) WithReachConstraints(reachConstraints *ReachConstraints) *CropNode
WithReachConstraints sets the reach constraints to apply to the node when executing a reach action.
func (*CropNode) WithSpeed ¶ added in v0.17.0
WithSpeed sets a speed modifier applied to all actions executed by a node and its descendants.
func (*CropNode) WithUserData ¶ added in v0.17.0
WithUserData sets a dictionary containing arbitrary data.
func (*CropNode) WithUserInteractionEnabled ¶ added in v0.17.0
WithUserInteractionEnabled sets a Boolean value that indicates whether the node receives touch events.
func (*CropNode) WithXScale ¶ added in v0.17.0
WithXScale sets a scaling factor that multiplies the width of a node and its children.
func (*CropNode) WithYScale ¶ added in v0.17.0
WithYScale sets a scaling factor that multiplies the height of a node and its children.
func (*CropNode) WithZPosition ¶ added in v0.17.0
WithZPosition sets the height of the node relative to its parent.
func (*CropNode) WithZRotation ¶ added in v0.17.0
WithZRotation sets the Euler rotation about the z axis (in radians).
type DispatchAutoreleaseFrequency ¶ added in v0.17.0
type DispatchAutoreleaseFrequency uint64
const ( DispatchAutoreleaseFrequencyInherit DispatchAutoreleaseFrequency = 0 DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1 DispatchAutoreleaseFrequencyNever DispatchAutoreleaseFrequency = 2 )
func (DispatchAutoreleaseFrequency) String ¶ added in v0.17.0
func (e DispatchAutoreleaseFrequency) String() string
String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.
type DispatchBlockFlags ¶ added in v0.17.0
type DispatchBlockFlags uint64
Bitmask — values may be combined with |.
const ( DispatchBlockFlagsBarrier DispatchBlockFlags = 1 DispatchBlockFlagsDetached DispatchBlockFlags = 2 DispatchBlockFlagsAssignCurrent DispatchBlockFlags = 4 DispatchBlockFlagsNoQosClass DispatchBlockFlags = 8 DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16 DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32 )
func (DispatchBlockFlags) String ¶ added in v0.17.0
func (e DispatchBlockFlags) String() string
String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.
type EffectNode ¶ added in v0.17.0
type EffectNode struct {
Node
}
EffectNode is an idiomatic wrapper over the Objective-C class SKEffectNode.
EffectNode is an abstract base — you do not construct it directly. Construct one of Scene and pass it where a EffectNode is accepted.
A node that renders its children into a separate buffer, optionally applying an effect, before drawing the final result.
func EffectNodeFromID ¶ added in v0.17.0
func EffectNodeFromID(id objc.ID) *EffectNode
EffectNodeFromID adopts an existing Objective-C object as a EffectNode (nil for 0), retaining it and registering a release finalizer.
func (*EffectNode) BlendMode ¶ added in v0.17.0
func (en *EffectNode) BlendMode() BlendMode
BlendMode sets the blend mode to use when composing the effect with the final framebuffer.
func (*EffectNode) Filter ¶ added in v0.17.0
func (en *EffectNode) Filter() obj.Object
Filter returns a CIFilter to be used as an effect Any CIFilter that requires only a single "inputImage" and produces an "outputImage" is allowed. The filter is applied to all children of the SKEffectNode. If the filter is nil, the children of this node is flattened before being drawn as long as the SKEffectNode is enabled.
func (*EffectNode) Shader ¶ added in v0.17.0
func (en *EffectNode) Shader() *Shader
Shader returns the shader.
func (*EffectNode) ShouldCenterFilter ¶ added in v0.17.0
func (en *EffectNode) ShouldCenterFilter() bool
ShouldCenterFilter wraps the corresponding Objective-C method.
func (*EffectNode) ShouldEnableEffects ¶ added in v0.17.0
func (en *EffectNode) ShouldEnableEffects() bool
ShouldEnableEffects reports whether enable the SKEffectNode. The SKEffectNode has no effect when appliesEffects is not enabled, this is useful for setting up an effect to use later on. Defaults to true.
func (*EffectNode) ShouldRasterize ¶ added in v0.17.0
func (en *EffectNode) ShouldRasterize() bool
ShouldRasterize reports whether enable the rasterization on the SKEffectNode. The SKEffectNode's output is rasterized and cached internally. This cache is reused when rendering. When the SKEffectNode's children change, the cache is updated, but changing properties on the CIFilter does *not* cause an update (you must disable rasterization and then re-enable it for the changes to apply). This is more expensive than not rasterizing if the node's children change frequently, only enable this option if you know the children is largely static.
func (*EffectNode) WithAccessibilityElement ¶ added in v0.17.0
func (en *EffectNode) WithAccessibilityElement(accessibilityElement bool) *EffectNode
WithAccessibilityElement sets a toggle you implement to indicate to the system whether this user interface element should be exposed to the user.
func (*EffectNode) WithAccessibilityEnabled ¶ added in v0.17.0
func (en *EffectNode) WithAccessibilityEnabled(accessibilityEnabled bool) *EffectNode
WithAccessibilityEnabled sets a toggle you implement to indicate to the system whether this user interface element should respond to user input.
func (*EffectNode) WithAccessibilityFrame ¶ added in v0.17.0
func (en *EffectNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *EffectNode
WithAccessibilityFrame sets the size of this user interface element, in screen points.
func (*EffectNode) WithAccessibilityHelp ¶ added in v0.17.0
func (en *EffectNode) WithAccessibilityHelp(accessibilityHelp string) *EffectNode
WithAccessibilityHelp sets the help description of this user interface element; for example, the text shown in a tooltip.
func (*EffectNode) WithAccessibilityLabel ¶ added in v0.17.0
func (en *EffectNode) WithAccessibilityLabel(accessibilityLabel string) *EffectNode
WithAccessibilityLabel sets a short description of this user interface element.
func (*EffectNode) WithAccessibilityParent ¶ added in v0.17.0
func (en *EffectNode) WithAccessibilityParent(accessibilityParent obj.Object) *EffectNode
WithAccessibilityParent sets the user interface element that contains this element.
func (*EffectNode) WithAccessibilityRole ¶ added in v0.17.0
func (en *EffectNode) WithAccessibilityRole(accessibilityRole string) *EffectNode
WithAccessibilityRole sets a string value describing the user interface element type; for example, a button.
func (*EffectNode) WithAccessibilityRoleDescription ¶ added in v0.17.0
func (en *EffectNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *EffectNode
WithAccessibilityRoleDescription sets a string value describing the user interface element name and type; for example, the Buy button.
func (*EffectNode) WithAccessibilitySubrole ¶ added in v0.17.0
func (en *EffectNode) WithAccessibilitySubrole(accessibilitySubrole string) *EffectNode
WithAccessibilitySubrole sets a string that defines this user interface element’s subrole; for example, a full-screen button.
func (*EffectNode) WithAlpha ¶ added in v0.17.0
func (en *EffectNode) WithAlpha(alpha float64) *EffectNode
WithAlpha sets the transparency value applied to the node’s contents.
func (*EffectNode) WithAttributeValues ¶ added in v0.17.0
func (en *EffectNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *EffectNode
WithAttributeValues sets the values of each attribute associated with the node’s attached shader.
func (*EffectNode) WithBlendMode ¶ added in v0.17.0
func (en *EffectNode) WithBlendMode(blendMode BlendMode) *EffectNode
WithBlendMode sets the blend mode used to draw the node’s contents into its parent’s framebuffer.
func (*EffectNode) WithConstraints ¶ added in v0.17.0
func (en *EffectNode) WithConstraints(items ...*Constraint) *EffectNode
WithConstraints sets a list of constraints to apply to the node.
func (*EffectNode) WithFilter ¶ added in v0.17.0
func (en *EffectNode) WithFilter(filter obj.Object) *EffectNode
WithFilter sets the Core Image filter to apply.
func (*EffectNode) WithHidden ¶ added in v0.17.0
func (en *EffectNode) WithHidden(hidden bool) *EffectNode
WithHidden sets a Boolean value that determines whether a node and its descendants are rendered.
func (*EffectNode) WithName ¶ added in v0.17.0
func (en *EffectNode) WithName(name string) *EffectNode
WithName sets the node’s assignable name.
func (*EffectNode) WithPaused ¶ added in v0.17.0
func (en *EffectNode) WithPaused(paused bool) *EffectNode
WithPaused sets a Boolean value that determines whether actions on the node and its descendants are processed.
func (*EffectNode) WithPhysicsBody ¶ added in v0.17.0
func (en *EffectNode) WithPhysicsBody(physicsBody *PhysicsBody) *EffectNode
WithPhysicsBody sets the physics body associated with the node.
func (*EffectNode) WithPosition ¶ added in v0.17.0
func (en *EffectNode) WithPosition(position corefoundation.CGPoint) *EffectNode
WithPosition sets the position of the node in its parent’s coordinate system.
func (*EffectNode) WithReachConstraints ¶ added in v0.17.0
func (en *EffectNode) WithReachConstraints(reachConstraints *ReachConstraints) *EffectNode
WithReachConstraints sets the reach constraints to apply to the node when executing a reach action.
func (*EffectNode) WithShader ¶ added in v0.17.0
func (en *EffectNode) WithShader(shader *Shader) *EffectNode
WithShader sets a custom shader that is called when the effect node is blended into the parent’s framebuffer.
func (*EffectNode) WithShouldCenterFilter ¶ added in v0.17.0
func (en *EffectNode) WithShouldCenterFilter(shouldCenterFilter bool) *EffectNode
WithShouldCenterFilter sets a Boolean value that determines whether the effect node automatically sets the filter’s image center.
func (*EffectNode) WithShouldEnableEffects ¶ added in v0.17.0
func (en *EffectNode) WithShouldEnableEffects(shouldEnableEffects bool) *EffectNode
WithShouldEnableEffects sets a Boolean value that determines whether the effect node applies the filter to its children as they are drawn.
func (*EffectNode) WithShouldRasterize ¶ added in v0.17.0
func (en *EffectNode) WithShouldRasterize(shouldRasterize bool) *EffectNode
WithShouldRasterize sets a Boolean value that indicates whether the results of rendering the child nodes should be cached.
func (*EffectNode) WithSpeed ¶ added in v0.17.0
func (en *EffectNode) WithSpeed(speed float64) *EffectNode
WithSpeed sets a speed modifier applied to all actions executed by a node and its descendants.
func (*EffectNode) WithUserData ¶ added in v0.17.0
func (en *EffectNode) WithUserData(userData obj.Object) *EffectNode
WithUserData sets a dictionary containing arbitrary data.
func (*EffectNode) WithUserInteractionEnabled ¶ added in v0.17.0
func (en *EffectNode) WithUserInteractionEnabled(userInteractionEnabled bool) *EffectNode
WithUserInteractionEnabled sets a Boolean value that indicates whether the node receives touch events.
func (*EffectNode) WithXScale ¶ added in v0.17.0
func (en *EffectNode) WithXScale(xScale float64) *EffectNode
WithXScale sets a scaling factor that multiplies the width of a node and its children.
func (*EffectNode) WithYScale ¶ added in v0.17.0
func (en *EffectNode) WithYScale(yScale float64) *EffectNode
WithYScale sets a scaling factor that multiplies the height of a node and its children.
func (*EffectNode) WithZPosition ¶ added in v0.17.0
func (en *EffectNode) WithZPosition(zPosition float64) *EffectNode
WithZPosition sets the height of the node relative to its parent.
func (*EffectNode) WithZRotation ¶ added in v0.17.0
func (en *EffectNode) WithZRotation(zRotation float64) *EffectNode
WithZRotation sets the Euler rotation about the z axis (in radians).
type EffectNodeProvider ¶ added in v0.17.0
EffectNodeProvider is accepted wherever a SKEffectNode (or one of its subclasses) is expected.
type EmitterNode ¶ added in v0.17.0
type EmitterNode struct {
Node
}
EmitterNode is an idiomatic wrapper over the Objective-C class SKEmitterNode.
It embeds Node, promoting that type's methods.
A source of various particle effects.
func EmitterNodeFromID ¶ added in v0.17.0
func EmitterNodeFromID(id objc.ID) *EmitterNode
EmitterNodeFromID adopts an existing Objective-C object as a EmitterNode (nil for 0), retaining it and registering a release finalizer.
func NewEmitterNode ¶ added in v0.17.0
func NewEmitterNode() *EmitterNode
NewEmitterNode creates a new EmitterNode.
func (*EmitterNode) AdvanceSimulationTime ¶ added in v0.17.0
func (en *EmitterNode) AdvanceSimulationTime(sec float64)
AdvanceSimulationTime advances the emitter particle simulation.
func (*EmitterNode) EmissionAngle ¶ added in v0.17.0
func (en *EmitterNode) EmissionAngle() float64
EmissionAngle returns the angle at which to emit each new particle, in radians. Defaults to 0.0.
func (*EmitterNode) EmissionAngleRange ¶ added in v0.17.0
func (en *EmitterNode) EmissionAngleRange() float64
EmissionAngleRange returns the random variance about the angle at which to emit each new particle, in radians. Defaults to 0.0.
func (*EmitterNode) FieldBitMask ¶ added in v0.17.0
func (en *EmitterNode) FieldBitMask() uint32
FieldBitMask defines what logical 'categories' of fields this particles emitted respond to. Defaults to all bits set (all categories). Can be forced off via affectedByGravity.
func (*EmitterNode) NumParticlesToEmit ¶ added in v0.17.0
func (en *EmitterNode) NumParticlesToEmit() int
NumParticlesToEmit returns the number of particles that will be emitted. If set to 0, there is no limit. Defaults to 0.
func (*EmitterNode) ParticleAction ¶ added in v0.17.0
func (en *EmitterNode) ParticleAction() *Action
ParticleAction specifies an action executed by new particles.
func (*EmitterNode) ParticleAlpha ¶ added in v0.17.0
func (en *EmitterNode) ParticleAlpha() float64
ParticleAlpha returns the starting alpha for each particle. Defaults to 1.0.
func (*EmitterNode) ParticleAlphaRange ¶ added in v0.17.0
func (en *EmitterNode) ParticleAlphaRange() float64
ParticleAlphaRange returns the random variance about the starting alpha for each particle. Defaults to 1.0.
func (*EmitterNode) ParticleAlphaSequence ¶ added in v0.17.0
func (en *EmitterNode) ParticleAlphaSequence() *KeyframeSequence
ParticleAlphaSequence returns the particle alpha sequence.
func (*EmitterNode) ParticleAlphaSpeed ¶ added in v0.17.0
func (en *EmitterNode) ParticleAlphaSpeed() float64
ParticleAlphaSpeed returns the rate at which to modify the alpha for each particle. Defaults to 1.0.
func (*EmitterNode) ParticleBirthRate ¶ added in v0.17.0
func (en *EmitterNode) ParticleBirthRate() float64
ParticleBirthRate returns the rate at which new particles are generated, in particles per second. Defaults to 0.0.
func (*EmitterNode) ParticleBlendMode ¶ added in v0.17.0
func (en *EmitterNode) ParticleBlendMode() BlendMode
ParticleBlendMode returns the blend mode for each particle. Defaults to SKBlendModeAlpha.
func (*EmitterNode) ParticleColor ¶ added in v0.17.0
func (en *EmitterNode) ParticleColor() obj.Object
ParticleColor returns the starting color for each particle. Defaults to clear.
func (*EmitterNode) ParticleColorAlphaRange ¶ added in v0.17.0
func (en *EmitterNode) ParticleColorAlphaRange() float64
ParticleColorAlphaRange returns the particle color alpha range.
func (*EmitterNode) ParticleColorAlphaSpeed ¶ added in v0.17.0
func (en *EmitterNode) ParticleColorAlphaSpeed() float64
ParticleColorAlphaSpeed returns the particle color alpha speed.
func (*EmitterNode) ParticleColorBlendFactor ¶ added in v0.17.0
func (en *EmitterNode) ParticleColorBlendFactor() float64
ParticleColorBlendFactor returns the starting color blend for each particle. Behaves the same as SKSpriteNode. Defaults to 0.0.
func (*EmitterNode) ParticleColorBlendFactorRange ¶ added in v0.17.0
func (en *EmitterNode) ParticleColorBlendFactorRange() float64
ParticleColorBlendFactorRange returns the random variance about the starting color blend for each particle. Defaults to 0.0.
func (*EmitterNode) ParticleColorBlendFactorSequence ¶ added in v0.17.0
func (en *EmitterNode) ParticleColorBlendFactorSequence() *KeyframeSequence
ParticleColorBlendFactorSequence returns the particle color blend factor sequence.
func (*EmitterNode) ParticleColorBlendFactorSpeed ¶ added in v0.17.0
func (en *EmitterNode) ParticleColorBlendFactorSpeed() float64
ParticleColorBlendFactorSpeed returns the rate at which to modify the color blend for each particle. Defaults to 0.0.
func (*EmitterNode) ParticleColorBlueRange ¶ added in v0.17.0
func (en *EmitterNode) ParticleColorBlueRange() float64
ParticleColorBlueRange returns the particle color blue range.
func (*EmitterNode) ParticleColorBlueSpeed ¶ added in v0.17.0
func (en *EmitterNode) ParticleColorBlueSpeed() float64
ParticleColorBlueSpeed returns the particle color blue speed.
func (*EmitterNode) ParticleColorGreenRange ¶ added in v0.17.0
func (en *EmitterNode) ParticleColorGreenRange() float64
ParticleColorGreenRange returns the particle color green range.
func (*EmitterNode) ParticleColorGreenSpeed ¶ added in v0.17.0
func (en *EmitterNode) ParticleColorGreenSpeed() float64
ParticleColorGreenSpeed returns the particle color green speed.
func (*EmitterNode) ParticleColorRedRange ¶ added in v0.17.0
func (en *EmitterNode) ParticleColorRedRange() float64
ParticleColorRedRange returns the random variance about each color component for each particle. Defaults to 0.0.
func (*EmitterNode) ParticleColorRedSpeed ¶ added in v0.17.0
func (en *EmitterNode) ParticleColorRedSpeed() float64
ParticleColorRedSpeed returns the rate at which to modify each color component for each particle (per second).
func (*EmitterNode) ParticleColorSequence ¶ added in v0.17.0
func (en *EmitterNode) ParticleColorSequence() *KeyframeSequence
ParticleColorSequence returns the particle color sequence.
func (*EmitterNode) ParticleLifetime ¶ added in v0.17.0
func (en *EmitterNode) ParticleLifetime() float64
ParticleLifetime returns the lifetime of each particle, in seconds. Defaults to 0.0.
func (*EmitterNode) ParticleLifetimeRange ¶ added in v0.17.0
func (en *EmitterNode) ParticleLifetimeRange() float64
ParticleLifetimeRange returns the random variance about the lifetime of each particle, in seconds. Defaults to 0.0.
func (*EmitterNode) ParticlePosition ¶ added in v0.17.0
func (en *EmitterNode) ParticlePosition() corefoundation.CGPoint
ParticlePosition returns the starting position for each particle in the emitter's coordinate space. Defaults to (0.0, 0,0).
func (*EmitterNode) ParticlePositionRange ¶ added in v0.17.0
func (en *EmitterNode) ParticlePositionRange() corefoundation.CGVector
ParticlePositionRange returns the random variance about the starting position for each particle in the emitter's coordinate space. Defaults to (0.0, 0,0).
func (*EmitterNode) ParticleRenderOrder ¶ added in v0.17.0
func (en *EmitterNode) ParticleRenderOrder() ParticleRenderOrder
ParticleRenderOrder returns the order in which particles will be rendered. Defaults to SKParticleRenderOrderOldestLast.
func (*EmitterNode) ParticleRotation ¶ added in v0.17.0
func (en *EmitterNode) ParticleRotation() float64
ParticleRotation returns the starting z-rotation for each particle. Defaults to 0.0.
func (*EmitterNode) ParticleRotationRange ¶ added in v0.17.0
func (en *EmitterNode) ParticleRotationRange() float64
ParticleRotationRange returns the random variance about the starting z-rotation for each particle. Defaults to 0.0.
func (*EmitterNode) ParticleRotationSpeed ¶ added in v0.17.0
func (en *EmitterNode) ParticleRotationSpeed() float64
ParticleRotationSpeed returns the rate at which to modify the z-rotation for each particle. Defaults to 0.0.
func (*EmitterNode) ParticleScale ¶ added in v0.17.0
func (en *EmitterNode) ParticleScale() float64
ParticleScale returns the starting scale for each particle. Defaults to 1.0.
func (*EmitterNode) ParticleScaleRange ¶ added in v0.17.0
func (en *EmitterNode) ParticleScaleRange() float64
ParticleScaleRange returns the random variance about the starting scale for each particle. Defaults to 0.0.
func (*EmitterNode) ParticleScaleSequence ¶ added in v0.17.0
func (en *EmitterNode) ParticleScaleSequence() *KeyframeSequence
ParticleScaleSequence returns the particle scale sequence.
func (*EmitterNode) ParticleScaleSpeed ¶ added in v0.17.0
func (en *EmitterNode) ParticleScaleSpeed() float64
ParticleScaleSpeed returns the rate at which to modify the scale for each particle. Defaults to 0.0.
func (*EmitterNode) ParticleSize ¶ added in v0.17.0
func (en *EmitterNode) ParticleSize() corefoundation.CGSize
ParticleSize returns the starting size for each particle. If set to CGSizeZero (the default) the particles will start at the size of the texture assigned to particleTexture. Note that particleScale and particleScaleRange will also have an effect on the effective size of each new particle.
func (*EmitterNode) ParticleSpeed ¶ added in v0.17.0
func (en *EmitterNode) ParticleSpeed() float64
ParticleSpeed returns the starting speed for each particle along its emission vector. Defaults to 0.0.
func (*EmitterNode) ParticleSpeedRange ¶ added in v0.17.0
func (en *EmitterNode) ParticleSpeedRange() float64
ParticleSpeedRange returns the random variance about the starting speed for each particle along its emission vector. Defaults to 0.0.
func (*EmitterNode) ParticleTexture ¶ added in v0.17.0
func (en *EmitterNode) ParticleTexture() *Texture
ParticleTexture returns the texture to be used for the particles.
func (*EmitterNode) ParticleZPosition ¶ added in v0.17.0
func (en *EmitterNode) ParticleZPosition() float64
ParticleZPosition returns the starting z-position for each particle. Defaults to 0.0.
func (*EmitterNode) ParticleZPositionRange ¶ added in v0.17.0
func (en *EmitterNode) ParticleZPositionRange() float64
ParticleZPositionRange returns the random variance about the starting z-position for each particle. Defaults to 0.0.
func (*EmitterNode) ParticleZPositionSpeed ¶ added in v0.17.0
func (en *EmitterNode) ParticleZPositionSpeed() float64
ParticleZPositionSpeed returns the rate at which to modify the z-position for each particle. Defaults to 0.0.
func (*EmitterNode) ResetSimulation ¶ added in v0.17.0
func (en *EmitterNode) ResetSimulation()
ResetSimulation removes all existing particles and restarts the simulation.
func (*EmitterNode) Shader ¶ added in v0.17.0
func (en *EmitterNode) Shader() *Shader
Shader returns the shader.
func (*EmitterNode) TargetNode ¶ added in v0.17.0
func (en *EmitterNode) TargetNode() *Node
TargetNode returns normally the particles are rendered as if they were a child of the SKEmitterNode, they can also be rendered as if they were a child of any other node in the scene by setting the targetNode property. Defaults to nil (standard behavior).
func (*EmitterNode) WithAccessibilityElement ¶ added in v0.17.0
func (en *EmitterNode) WithAccessibilityElement(accessibilityElement bool) *EmitterNode
WithAccessibilityElement sets a toggle you implement to indicate to the system whether this user interface element should be exposed to the user.
func (*EmitterNode) WithAccessibilityEnabled ¶ added in v0.17.0
func (en *EmitterNode) WithAccessibilityEnabled(accessibilityEnabled bool) *EmitterNode
WithAccessibilityEnabled sets a toggle you implement to indicate to the system whether this user interface element should respond to user input.
func (*EmitterNode) WithAccessibilityFrame ¶ added in v0.17.0
func (en *EmitterNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *EmitterNode
WithAccessibilityFrame sets the size of this user interface element, in screen points.
func (*EmitterNode) WithAccessibilityHelp ¶ added in v0.17.0
func (en *EmitterNode) WithAccessibilityHelp(accessibilityHelp string) *EmitterNode
WithAccessibilityHelp sets the help description of this user interface element; for example, the text shown in a tooltip.
func (*EmitterNode) WithAccessibilityLabel ¶ added in v0.17.0
func (en *EmitterNode) WithAccessibilityLabel(accessibilityLabel string) *EmitterNode
WithAccessibilityLabel sets a short description of this user interface element.
func (*EmitterNode) WithAccessibilityParent ¶ added in v0.17.0
func (en *EmitterNode) WithAccessibilityParent(accessibilityParent obj.Object) *EmitterNode
WithAccessibilityParent sets the user interface element that contains this element.
func (*EmitterNode) WithAccessibilityRole ¶ added in v0.17.0
func (en *EmitterNode) WithAccessibilityRole(accessibilityRole string) *EmitterNode
WithAccessibilityRole sets a string value describing the user interface element type; for example, a button.
func (*EmitterNode) WithAccessibilityRoleDescription ¶ added in v0.17.0
func (en *EmitterNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *EmitterNode
WithAccessibilityRoleDescription sets a string value describing the user interface element name and type; for example, the Buy button.
func (*EmitterNode) WithAccessibilitySubrole ¶ added in v0.17.0
func (en *EmitterNode) WithAccessibilitySubrole(accessibilitySubrole string) *EmitterNode
WithAccessibilitySubrole sets a string that defines this user interface element’s subrole; for example, a full-screen button.
func (*EmitterNode) WithAlpha ¶ added in v0.17.0
func (en *EmitterNode) WithAlpha(alpha float64) *EmitterNode
WithAlpha sets the transparency value applied to the node’s contents.
func (*EmitterNode) WithAttributeValues ¶ added in v0.17.0
func (en *EmitterNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *EmitterNode
WithAttributeValues sets the values of each attribute associated with the node’s attached shader.
func (*EmitterNode) WithConstraints ¶ added in v0.17.0
func (en *EmitterNode) WithConstraints(items ...*Constraint) *EmitterNode
WithConstraints sets a list of constraints to apply to the node.
func (*EmitterNode) WithEmissionAngle ¶ added in v0.17.0
func (en *EmitterNode) WithEmissionAngle(emissionAngle float64) *EmitterNode
WithEmissionAngle sets the average initial direction of a particle, expressed as an angle in radians.
func (*EmitterNode) WithEmissionAngleRange ¶ added in v0.17.0
func (en *EmitterNode) WithEmissionAngleRange(emissionAngleRange float64) *EmitterNode
WithEmissionAngleRange sets the range of allowed random values for a particle’s initial direction, expressed as an angle in radians.
func (*EmitterNode) WithFieldBitMask ¶ added in v0.17.0
func (en *EmitterNode) WithFieldBitMask(fieldBitMask uint32) *EmitterNode
WithFieldBitMask sets a mask that defines which categories of physics fields can exert forces on the particles.
func (*EmitterNode) WithHidden ¶ added in v0.17.0
func (en *EmitterNode) WithHidden(hidden bool) *EmitterNode
WithHidden sets a Boolean value that determines whether a node and its descendants are rendered.
func (*EmitterNode) WithName ¶ added in v0.17.0
func (en *EmitterNode) WithName(name string) *EmitterNode
WithName sets the node’s assignable name.
func (*EmitterNode) WithNumParticlesToEmit ¶ added in v0.17.0
func (en *EmitterNode) WithNumParticlesToEmit(numParticlesToEmit int) *EmitterNode
WithNumParticlesToEmit sets the number of particles the emitter should emit before stopping.
func (*EmitterNode) WithParticleAction ¶ added in v0.17.0
func (en *EmitterNode) WithParticleAction(particleAction *Action) *EmitterNode
WithParticleAction sets an action executed by new particles.
func (*EmitterNode) WithParticleAlpha ¶ added in v0.17.0
func (en *EmitterNode) WithParticleAlpha(particleAlpha float64) *EmitterNode
WithParticleAlpha sets the average starting alpha value for a particle.
func (*EmitterNode) WithParticleAlphaRange ¶ added in v0.17.0
func (en *EmitterNode) WithParticleAlphaRange(particleAlphaRange float64) *EmitterNode
WithParticleAlphaRange sets the range of allowed random values for a particle’s starting alpha value.
func (*EmitterNode) WithParticleAlphaSequence ¶ added in v0.17.0
func (en *EmitterNode) WithParticleAlphaSequence(particleAlphaSequence *KeyframeSequence) *EmitterNode
WithParticleAlphaSequence sets the sequence used to specify the alpha value of a particle over its lifetime.
func (*EmitterNode) WithParticleAlphaSpeed ¶ added in v0.17.0
func (en *EmitterNode) WithParticleAlphaSpeed(particleAlphaSpeed float64) *EmitterNode
WithParticleAlphaSpeed sets the rate at which the alpha value of a particle changes per second.
func (*EmitterNode) WithParticleBirthRate ¶ added in v0.17.0
func (en *EmitterNode) WithParticleBirthRate(particleBirthRate float64) *EmitterNode
WithParticleBirthRate sets the rate at which new particles are created.
func (*EmitterNode) WithParticleBlendMode ¶ added in v0.17.0
func (en *EmitterNode) WithParticleBlendMode(particleBlendMode BlendMode) *EmitterNode
WithParticleBlendMode sets the blending mode used to blend particles into the framebuffer.
func (*EmitterNode) WithParticleColor ¶ added in v0.17.0
func (en *EmitterNode) WithParticleColor(particleColor obj.Object) *EmitterNode
WithParticleColor sets the average initial color for a particle.
func (*EmitterNode) WithParticleColorAlphaRange ¶ added in v0.17.0
func (en *EmitterNode) WithParticleColorAlphaRange(particleColorAlphaRange float64) *EmitterNode
WithParticleColorAlphaRange sets the range of allowed random values for the alpha component of a particle’s initial color.
func (*EmitterNode) WithParticleColorAlphaSpeed ¶ added in v0.17.0
func (en *EmitterNode) WithParticleColorAlphaSpeed(particleColorAlphaSpeed float64) *EmitterNode
WithParticleColorAlphaSpeed sets the rate at which the alpha component of a particle’s color changes per second.
func (*EmitterNode) WithParticleColorBlendFactor ¶ added in v0.17.0
func (en *EmitterNode) WithParticleColorBlendFactor(particleColorBlendFactor float64) *EmitterNode
WithParticleColorBlendFactor sets the average starting value for the color blend factor.
func (*EmitterNode) WithParticleColorBlendFactorRange ¶ added in v0.17.0
func (en *EmitterNode) WithParticleColorBlendFactorRange(particleColorBlendFactorRange float64) *EmitterNode
WithParticleColorBlendFactorRange sets the range of allowed random values for a particle’s starting color blend factor.
func (*EmitterNode) WithParticleColorBlendFactorSequence ¶ added in v0.17.0
func (en *EmitterNode) WithParticleColorBlendFactorSequence(particleColorBlendFactorSequence *KeyframeSequence) *EmitterNode
WithParticleColorBlendFactorSequence sets the sequence used to specify the color blend factor of a particle over its lifetime.
func (*EmitterNode) WithParticleColorBlendFactorSpeed ¶ added in v0.17.0
func (en *EmitterNode) WithParticleColorBlendFactorSpeed(particleColorBlendFactorSpeed float64) *EmitterNode
WithParticleColorBlendFactorSpeed sets the rate at which the color blend factor changes per second.
func (*EmitterNode) WithParticleColorBlueRange ¶ added in v0.17.0
func (en *EmitterNode) WithParticleColorBlueRange(particleColorBlueRange float64) *EmitterNode
WithParticleColorBlueRange sets the range of allowed random values for the blue component of a particle’s initial color.
func (*EmitterNode) WithParticleColorBlueSpeed ¶ added in v0.17.0
func (en *EmitterNode) WithParticleColorBlueSpeed(particleColorBlueSpeed float64) *EmitterNode
WithParticleColorBlueSpeed sets the rate at which the blue component of a particle’s color changes per second.
func (*EmitterNode) WithParticleColorGreenRange ¶ added in v0.17.0
func (en *EmitterNode) WithParticleColorGreenRange(particleColorGreenRange float64) *EmitterNode
WithParticleColorGreenRange sets the range of allowed random values for the green component of a particle’s initial color.
func (*EmitterNode) WithParticleColorGreenSpeed ¶ added in v0.17.0
func (en *EmitterNode) WithParticleColorGreenSpeed(particleColorGreenSpeed float64) *EmitterNode
WithParticleColorGreenSpeed sets the rate at which the green component of a particle’s color changes per second.
func (*EmitterNode) WithParticleColorRedRange ¶ added in v0.17.0
func (en *EmitterNode) WithParticleColorRedRange(particleColorRedRange float64) *EmitterNode
WithParticleColorRedRange sets the range of allowed random values for the red component of a particle’s initial color.
func (*EmitterNode) WithParticleColorRedSpeed ¶ added in v0.17.0
func (en *EmitterNode) WithParticleColorRedSpeed(particleColorRedSpeed float64) *EmitterNode
WithParticleColorRedSpeed sets the rate at which the red component of a particle’s color changes per second.
func (*EmitterNode) WithParticleColorSequence ¶ added in v0.17.0
func (en *EmitterNode) WithParticleColorSequence(particleColorSequence *KeyframeSequence) *EmitterNode
WithParticleColorSequence sets the sequence used to specify the color components of a particle over its lifetime.
func (*EmitterNode) WithParticleLifetime ¶ added in v0.17.0
func (en *EmitterNode) WithParticleLifetime(particleLifetime float64) *EmitterNode
WithParticleLifetime sets the average lifetime of a particle, in seconds.
func (*EmitterNode) WithParticleLifetimeRange ¶ added in v0.17.0
func (en *EmitterNode) WithParticleLifetimeRange(particleLifetimeRange float64) *EmitterNode
WithParticleLifetimeRange sets the range of allowed random values for a particle’s lifetime.
func (*EmitterNode) WithParticlePosition ¶ added in v0.17.0
func (en *EmitterNode) WithParticlePosition(particlePosition corefoundation.CGPoint) *EmitterNode
WithParticlePosition sets the average starting position for a particle.
func (*EmitterNode) WithParticlePositionRange ¶ added in v0.17.0
func (en *EmitterNode) WithParticlePositionRange(particlePositionRange corefoundation.CGVector) *EmitterNode
WithParticlePositionRange sets the range of allowed random values for a particle’s position.
func (*EmitterNode) WithParticleRenderOrder ¶ added in v0.17.0
func (en *EmitterNode) WithParticleRenderOrder(particleRenderOrder ParticleRenderOrder) *EmitterNode
WithParticleRenderOrder sets the order in which the emitter’s particles are rendered.
func (*EmitterNode) WithParticleRotation ¶ added in v0.17.0
func (en *EmitterNode) WithParticleRotation(particleRotation float64) *EmitterNode
WithParticleRotation sets the average initial rotation of a particle, expressed as an angle in radians.
func (*EmitterNode) WithParticleRotationRange ¶ added in v0.17.0
func (en *EmitterNode) WithParticleRotationRange(particleRotationRange float64) *EmitterNode
WithParticleRotationRange sets the range of allowed random values for a particle’s initial rotation, expressed as an angle in radians.
func (*EmitterNode) WithParticleRotationSpeed ¶ added in v0.17.0
func (en *EmitterNode) WithParticleRotationSpeed(particleRotationSpeed float64) *EmitterNode
WithParticleRotationSpeed sets the speed at which a particle rotates, expressed in radians per second.
func (*EmitterNode) WithParticleScale ¶ added in v0.17.0
func (en *EmitterNode) WithParticleScale(particleScale float64) *EmitterNode
WithParticleScale sets the average initial scale factor of a particle.
func (*EmitterNode) WithParticleScaleRange ¶ added in v0.17.0
func (en *EmitterNode) WithParticleScaleRange(particleScaleRange float64) *EmitterNode
WithParticleScaleRange sets the range of allowed random values for a particle’s initial scale.
func (*EmitterNode) WithParticleScaleSequence ¶ added in v0.17.0
func (en *EmitterNode) WithParticleScaleSequence(particleScaleSequence *KeyframeSequence) *EmitterNode
WithParticleScaleSequence sets the sequence used to specify the scale factor of a particle over its lifetime.
func (*EmitterNode) WithParticleScaleSpeed ¶ added in v0.17.0
func (en *EmitterNode) WithParticleScaleSpeed(particleScaleSpeed float64) *EmitterNode
WithParticleScaleSpeed sets the rate at which a particle’s scale factor changes per second.
func (*EmitterNode) WithParticleSize ¶ added in v0.17.0
func (en *EmitterNode) WithParticleSize(particleSize corefoundation.CGSize) *EmitterNode
WithParticleSize sets the starting size of each particle.
func (*EmitterNode) WithParticleSpeed ¶ added in v0.17.0
func (en *EmitterNode) WithParticleSpeed(particleSpeed float64) *EmitterNode
WithParticleSpeed sets the average initial speed of a new particle, in points per second.
func (*EmitterNode) WithParticleSpeedRange ¶ added in v0.17.0
func (en *EmitterNode) WithParticleSpeedRange(particleSpeedRange float64) *EmitterNode
WithParticleSpeedRange sets the range of allowed random values for a particle’s initial speed.
func (*EmitterNode) WithParticleTexture ¶ added in v0.17.0
func (en *EmitterNode) WithParticleTexture(particleTexture TextureProvider) *EmitterNode
WithParticleTexture sets the texture to use to render a particle.
func (*EmitterNode) WithParticleZPosition ¶ added in v0.17.0
func (en *EmitterNode) WithParticleZPosition(particleZPosition float64) *EmitterNode
WithParticleZPosition sets the average starting depth of a particle.
func (*EmitterNode) WithParticleZPositionRange ¶ added in v0.17.0
func (en *EmitterNode) WithParticleZPositionRange(particleZPositionRange float64) *EmitterNode
WithParticleZPositionRange sets the range of allowed random values for a particle’s depth.
func (*EmitterNode) WithParticleZPositionSpeed ¶ added in v0.17.0
func (en *EmitterNode) WithParticleZPositionSpeed(particleZPositionSpeed float64) *EmitterNode
WithParticleZPositionSpeed sets the speed at which the particle’s depth changes.
func (*EmitterNode) WithPaused ¶ added in v0.17.0
func (en *EmitterNode) WithPaused(paused bool) *EmitterNode
WithPaused sets a Boolean value that determines whether actions on the node and its descendants are processed.
func (*EmitterNode) WithPhysicsBody ¶ added in v0.17.0
func (en *EmitterNode) WithPhysicsBody(physicsBody *PhysicsBody) *EmitterNode
WithPhysicsBody sets the physics body associated with the node.
func (*EmitterNode) WithPosition ¶ added in v0.17.0
func (en *EmitterNode) WithPosition(position corefoundation.CGPoint) *EmitterNode
WithPosition sets the position of the node in its parent’s coordinate system.
func (*EmitterNode) WithReachConstraints ¶ added in v0.17.0
func (en *EmitterNode) WithReachConstraints(reachConstraints *ReachConstraints) *EmitterNode
WithReachConstraints sets the reach constraints to apply to the node when executing a reach action.
func (*EmitterNode) WithShader ¶ added in v0.17.0
func (en *EmitterNode) WithShader(shader *Shader) *EmitterNode
WithShader sets a custom shader used to determine how particles are rendered.
func (*EmitterNode) WithSpeed ¶ added in v0.17.0
func (en *EmitterNode) WithSpeed(speed float64) *EmitterNode
WithSpeed sets a speed modifier applied to all actions executed by a node and its descendants.
func (*EmitterNode) WithTargetNode ¶ added in v0.17.0
func (en *EmitterNode) WithTargetNode(targetNode NodeProvider) *EmitterNode
WithTargetNode sets the target node that renders the emitter’s particles.
func (*EmitterNode) WithUserData ¶ added in v0.17.0
func (en *EmitterNode) WithUserData(userData obj.Object) *EmitterNode
WithUserData sets a dictionary containing arbitrary data.
func (*EmitterNode) WithUserInteractionEnabled ¶ added in v0.17.0
func (en *EmitterNode) WithUserInteractionEnabled(userInteractionEnabled bool) *EmitterNode
WithUserInteractionEnabled sets a Boolean value that indicates whether the node receives touch events.
func (*EmitterNode) WithXAcceleration ¶ added in v0.17.0
func (en *EmitterNode) WithXAcceleration(xAcceleration float64) *EmitterNode
WithXAcceleration sets the acceleration to apply to a particle’s horizontal velocity.
func (*EmitterNode) WithXScale ¶ added in v0.17.0
func (en *EmitterNode) WithXScale(xScale float64) *EmitterNode
WithXScale sets a scaling factor that multiplies the width of a node and its children.
func (*EmitterNode) WithYAcceleration ¶ added in v0.17.0
func (en *EmitterNode) WithYAcceleration(yAcceleration float64) *EmitterNode
WithYAcceleration sets the acceleration to apply to a particle’s vertical velocity.
func (*EmitterNode) WithYScale ¶ added in v0.17.0
func (en *EmitterNode) WithYScale(yScale float64) *EmitterNode
WithYScale sets a scaling factor that multiplies the height of a node and its children.
func (*EmitterNode) WithZPosition ¶ added in v0.17.0
func (en *EmitterNode) WithZPosition(zPosition float64) *EmitterNode
WithZPosition sets the height of the node relative to its parent.
func (*EmitterNode) WithZRotation ¶ added in v0.17.0
func (en *EmitterNode) WithZRotation(zRotation float64) *EmitterNode
WithZRotation sets the Euler rotation about the z axis (in radians).
func (*EmitterNode) XAcceleration ¶ added in v0.17.0
func (en *EmitterNode) XAcceleration() float64
XAcceleration returns the acceleration to apply to each particles velocity. Useful for simulating effects such as wind or gravity. Defaults to 0.0.
func (*EmitterNode) YAcceleration ¶ added in v0.17.0
func (en *EmitterNode) YAcceleration() float64
YAcceleration returns the y acceleration.
type FieldNode ¶ added in v0.17.0
type FieldNode struct {
Node
}
FieldNode is an idiomatic wrapper over the Objective-C class SKFieldNode.
It embeds Node, promoting that type's methods.
A node that applies physics effects to nearby nodes.
func CustomFieldWithEvaluationBlock ¶ added in v0.18.0
func CustomFieldWithEvaluationBlock(block func(unsafe.Pointer, unsafe.Pointer, float32, float32, float64) int) *FieldNode
CustomFieldWithEvaluationBlock creates a field node that calculates and applies a custom force to the physics body.
func DragField ¶ added in v0.17.0
func DragField() *FieldNode
DragField creates a field node that applies a force that resists the motion of physics bodies.
func ElectricField ¶ added in v0.17.0
func ElectricField() *FieldNode
ElectricField creates a field node that applies an electrical force proportional to the electrical charge of physics bodies.
func FieldNodeFromID ¶ added in v0.17.0
FieldNodeFromID adopts an existing Objective-C object as a FieldNode (nil for 0), retaining it and registering a release finalizer.
func LinearGravityFieldWithVector ¶ added in v0.17.0
LinearGravityFieldWithVector creates a field node that accelerates physics bodies in a specific direction.
func MagneticField ¶ added in v0.17.0
func MagneticField() *FieldNode
MagneticField creates a field node that applies a magnetic force based on the velocity and electrical charge of the physics bodies.
func NewFieldNode ¶ added in v0.17.0
func NewFieldNode() *FieldNode
NewFieldNode creates a new FieldNode.
func NoiseFieldWithSmoothnessAnimationSpeed ¶ added in v0.17.0
NoiseFieldWithSmoothnessAnimationSpeed creates a field node that applies a randomized acceleration to physics bodies.
func RadialGravityField ¶ added in v0.17.0
func RadialGravityField() *FieldNode
RadialGravityField creates a field node that accelerates physics bodies toward the field node.
func SpringField ¶ added in v0.17.0
func SpringField() *FieldNode
SpringField creates a field node that applies a spring-like force that pulls physics bodies toward the field node.
func TurbulenceFieldWithSmoothnessAnimationSpeed ¶ added in v0.17.0
TurbulenceFieldWithSmoothnessAnimationSpeed creates a field node that applies a randomized acceleration to physics bodies.
func VelocityFieldWithTexture ¶ added in v0.17.0
VelocityFieldWithTexture creates a field node that sets the velocity of physics bodies that enter the node’s area based on the pixel values of a texture.
func VelocityFieldWithVector ¶ added in v0.17.0
VelocityFieldWithVector creates a field node that gives physics bodies a constant velocity.
func VortexField ¶ added in v0.17.0
func VortexField() *FieldNode
VortexField creates a field node that applies a perpendicular force to physics bodies.
func (*FieldNode) AnimationSpeed ¶ added in v0.17.0
AnimationSpeed returns fields that can be animated can have non zero values. A value of 2 will animated twice as fast as a value of 1.
func (*FieldNode) CategoryBitMask ¶ added in v0.17.0
CategoryBitMask returns logical categories the field belongs to. Default is all categories. These categories correspond to fieldBitMasks, and can be used to enforce that a particular field applies to a particular category of objects.
func (*FieldNode) Direction ¶ added in v0.18.0
Direction returns directed fields' directions can be accessed here. If the field is non-directional, a zero vector will be returned
func (*FieldNode) Falloff ¶ added in v0.17.0
Falloff returns the falloff exponent used to calculate field strength at a distance. Falloff starts at the minimum radius. The default exponent is zero, which results in a uniform field with no falloff.
func (*FieldNode) IsEnabled ¶ added in v0.17.0
IsEnabled reports whether if enabled, a field has an effect. default true
func (*FieldNode) IsExclusive ¶ added in v0.17.0
IsExclusive reports whether if a field is exclusive, it suppresses any other field in its region of effect. If two or more exclusive fields overlap, it is undefined which one of them will take effect
func (*FieldNode) MinimumRadius ¶ added in v0.17.0
MinimumRadius returns minimum radius of effect. Default is very small.
func (*FieldNode) Region ¶ added in v0.17.0
Region returns the region property is the domain of the field's effect. No force is applied to objects outside the region.
func (*FieldNode) Smoothness ¶ added in v0.17.0
Smoothness returns fields without a smoothness component will return 0
func (*FieldNode) Texture ¶ added in v0.17.0
Texture returns fields constructed with a texture can be uppdated by assigning a new texture
func (*FieldNode) WithAccessibilityElement ¶ added in v0.17.0
WithAccessibilityElement sets a toggle you implement to indicate to the system whether this user interface element should be exposed to the user.
func (*FieldNode) WithAccessibilityEnabled ¶ added in v0.17.0
WithAccessibilityEnabled sets a toggle you implement to indicate to the system whether this user interface element should respond to user input.
func (*FieldNode) WithAccessibilityFrame ¶ added in v0.17.0
func (fn *FieldNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *FieldNode
WithAccessibilityFrame sets the size of this user interface element, in screen points.
func (*FieldNode) WithAccessibilityHelp ¶ added in v0.17.0
WithAccessibilityHelp sets the help description of this user interface element; for example, the text shown in a tooltip.
func (*FieldNode) WithAccessibilityLabel ¶ added in v0.17.0
WithAccessibilityLabel sets a short description of this user interface element.
func (*FieldNode) WithAccessibilityParent ¶ added in v0.17.0
WithAccessibilityParent sets the user interface element that contains this element.
func (*FieldNode) WithAccessibilityRole ¶ added in v0.17.0
WithAccessibilityRole sets a string value describing the user interface element type; for example, a button.
func (*FieldNode) WithAccessibilityRoleDescription ¶ added in v0.17.0
func (fn *FieldNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *FieldNode
WithAccessibilityRoleDescription sets a string value describing the user interface element name and type; for example, the Buy button.
func (*FieldNode) WithAccessibilitySubrole ¶ added in v0.17.0
WithAccessibilitySubrole sets a string that defines this user interface element’s subrole; for example, a full-screen button.
func (*FieldNode) WithAlpha ¶ added in v0.17.0
WithAlpha sets the transparency value applied to the node’s contents.
func (*FieldNode) WithAnimationSpeed ¶ added in v0.17.0
WithAnimationSpeed sets the rate at which a noise or turbulence field node changes.
func (*FieldNode) WithAttributeValues ¶ added in v0.17.0
func (fn *FieldNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *FieldNode
WithAttributeValues sets the values of each attribute associated with the node’s attached shader.
func (*FieldNode) WithCategoryBitMask ¶ added in v0.17.0
WithCategoryBitMask sets a mask that defines which categories this field belongs to.
func (*FieldNode) WithConstraints ¶ added in v0.17.0
func (fn *FieldNode) WithConstraints(items ...*Constraint) *FieldNode
WithConstraints sets a list of constraints to apply to the node.
func (*FieldNode) WithDirection ¶ added in v0.17.0
WithDirection sets the direction of a velocity field node.
func (*FieldNode) WithEnabled ¶ added in v0.17.0
WithEnabled sets a Boolean value that indicates whether the field is active.
func (*FieldNode) WithExclusive ¶ added in v0.17.0
WithExclusive sets a Boolean value that indicates whether the field node should override all other field nodes that might otherwise affect physics bodies.
func (*FieldNode) WithFalloff ¶ added in v0.17.0
WithFalloff sets the exponent that defines the rate of decay for the strength of the field as the distance increases between the node and the physics body being affected.
func (*FieldNode) WithHidden ¶ added in v0.17.0
WithHidden sets a Boolean value that determines whether a node and its descendants are rendered.
func (*FieldNode) WithMinimumRadius ¶ added in v0.17.0
WithMinimumRadius sets the minimum value for distance-based effects.
func (*FieldNode) WithPaused ¶ added in v0.17.0
WithPaused sets a Boolean value that determines whether actions on the node and its descendants are processed.
func (*FieldNode) WithPhysicsBody ¶ added in v0.17.0
func (fn *FieldNode) WithPhysicsBody(physicsBody *PhysicsBody) *FieldNode
WithPhysicsBody sets the physics body associated with the node.
func (*FieldNode) WithPosition ¶ added in v0.17.0
func (fn *FieldNode) WithPosition(position corefoundation.CGPoint) *FieldNode
WithPosition sets the position of the node in its parent’s coordinate system.
func (*FieldNode) WithReachConstraints ¶ added in v0.17.0
func (fn *FieldNode) WithReachConstraints(reachConstraints *ReachConstraints) *FieldNode
WithReachConstraints sets the reach constraints to apply to the node when executing a reach action.
func (*FieldNode) WithRegion ¶ added in v0.17.0
WithRegion sets the area (relative to the node’s origin) that the field affects.
func (*FieldNode) WithSmoothness ¶ added in v0.17.0
WithSmoothness sets the smoothness of the noise used to generate the forces.
func (*FieldNode) WithSpeed ¶ added in v0.17.0
WithSpeed sets a speed modifier applied to all actions executed by a node and its descendants.
func (*FieldNode) WithStrength ¶ added in v0.17.0
WithStrength sets the strength of the field.
func (*FieldNode) WithTexture ¶ added in v0.17.0
func (fn *FieldNode) WithTexture(texture TextureProvider) *FieldNode
WithTexture sets a normal texture that specifies the velocities at different points in a velocity field node.
func (*FieldNode) WithUserData ¶ added in v0.17.0
WithUserData sets a dictionary containing arbitrary data.
func (*FieldNode) WithUserInteractionEnabled ¶ added in v0.17.0
WithUserInteractionEnabled sets a Boolean value that indicates whether the node receives touch events.
func (*FieldNode) WithXScale ¶ added in v0.17.0
WithXScale sets a scaling factor that multiplies the width of a node and its children.
func (*FieldNode) WithYScale ¶ added in v0.17.0
WithYScale sets a scaling factor that multiplies the height of a node and its children.
func (*FieldNode) WithZPosition ¶ added in v0.17.0
WithZPosition sets the height of the node relative to its parent.
func (*FieldNode) WithZRotation ¶ added in v0.17.0
WithZRotation sets the Euler rotation about the z axis (in radians).
type FilesecProperty ¶ added in v0.17.0
type FilesecProperty int32
const ( FilesecPropertyOwner FilesecProperty = 1 FilesecPropertyGroup FilesecProperty = 2 FilesecPropertyUUID FilesecProperty = 3 FilesecPropertyMode FilesecProperty = 4 FilesecPropertyACL FilesecProperty = 5 FilesecPropertyGrpuuid FilesecProperty = 6 FilesecPropertyACLRaw FilesecProperty = 100 FilesecPropertyACLAllocsize FilesecProperty = 101 )
func (FilesecProperty) String ¶ added in v0.17.0
func (e FilesecProperty) String() string
String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.
type InterpolationMode ¶ added in v0.17.0
type InterpolationMode int64
The modes used to interpolate between keyframes in the sequence.
const ( // Values between two keyframes are interpolated linearly. InterpolationModeLinear InterpolationMode = 1 // Values between two keyframes using a spline curve. InterpolationModeSpline InterpolationMode = 2 // Values between two keyframes are not interpolated. Instead, the value is that of the most recent keyframe. InterpolationModeStep InterpolationMode = 3 )
func (InterpolationMode) String ¶ added in v0.17.0
func (e InterpolationMode) String() string
String returns the InterpolationMode constant's name, or its numeric form when the value is not a known constant.
type IpcInfoObjectType ¶ added in v0.17.0
type IpcInfoObjectType uint32
const ( IpcInfoObjectTypeNone IpcInfoObjectType = 0 IpcInfoObjectTypeThreadControl IpcInfoObjectType = 1 IpcInfoObjectTypeTaskControl IpcInfoObjectType = 2 IpcInfoObjectTypeHost IpcInfoObjectType = 3 IpcInfoObjectTypeHostPriv IpcInfoObjectType = 4 IpcInfoObjectTypeProcessor IpcInfoObjectType = 5 IpcInfoObjectTypeProcessorSet IpcInfoObjectType = 6 IpcInfoObjectTypeProcessorSetName IpcInfoObjectType = 7 IpcInfoObjectTypeTimer IpcInfoObjectType = 8 IpcInfoObjectTypePortSubstOnce IpcInfoObjectType = 9 IpcInfoObjectTypeMig IpcInfoObjectType = 10 IpcInfoObjectTypeMemoryObject IpcInfoObjectType = 11 IpcInfoObjectTypeXmmPager IpcInfoObjectType = 12 IpcInfoObjectTypeXmmKernel IpcInfoObjectType = 13 IpcInfoObjectTypeXmmReply IpcInfoObjectType = 14 IpcInfoObjectTypeUndReply IpcInfoObjectType = 15 IpcInfoObjectTypeHostNotify IpcInfoObjectType = 16 IpcInfoObjectTypeHostSecurity IpcInfoObjectType = 17 IpcInfoObjectTypeLedger IpcInfoObjectType = 18 IpcInfoObjectTypeMainDevice IpcInfoObjectType = 19 IpcInfoObjectTypeTaskName IpcInfoObjectType = 20 IpcInfoObjectTypeSubsystem IpcInfoObjectType = 21 IpcInfoObjectTypeIODoneQueue IpcInfoObjectType = 22 IpcInfoObjectTypeSemaphore IpcInfoObjectType = 23 IpcInfoObjectTypeLockSet IpcInfoObjectType = 24 IpcInfoObjectTypeClock IpcInfoObjectType = 25 IpcInfoObjectTypeClockCtrl IpcInfoObjectType = 26 IpcInfoObjectTypeIokitIdent IpcInfoObjectType = 27 IpcInfoObjectTypeNamedEntry IpcInfoObjectType = 28 IpcInfoObjectTypeIokitConnect IpcInfoObjectType = 29 IpcInfoObjectTypeIokitObject IpcInfoObjectType = 30 IpcInfoObjectTypeUpl IpcInfoObjectType = 31 IpcInfoObjectTypeMemObjControl IpcInfoObjectType = 32 IpcInfoObjectTypeAuSessionport IpcInfoObjectType = 33 IpcInfoObjectTypeFileport IpcInfoObjectType = 34 IpcInfoObjectTypeLabelh IpcInfoObjectType = 35 IpcInfoObjectTypeTaskResume IpcInfoObjectType = 36 IpcInfoObjectTypeVoucher IpcInfoObjectType = 37 IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38 IpcInfoObjectTypeWorkInterval IpcInfoObjectType = 39 IpcInfoObjectTypeUxHandler IpcInfoObjectType = 40 IpcInfoObjectTypeUextObject IpcInfoObjectType = 41 IpcInfoObjectTypeArcadeReg IpcInfoObjectType = 42 IpcInfoObjectTypeEventlink IpcInfoObjectType = 43 IpcInfoObjectTypeTaskInspect IpcInfoObjectType = 44 IpcInfoObjectTypeTaskRead IpcInfoObjectType = 45 IpcInfoObjectTypeThreadInspect IpcInfoObjectType = 46 IpcInfoObjectTypeThreadRead IpcInfoObjectType = 47 IpcInfoObjectTypeSuidCred IpcInfoObjectType = 48 IpcInfoObjectTypeHypervisor IpcInfoObjectType = 49 IpcInfoObjectTypeTaskIDToken IpcInfoObjectType = 50 IpcInfoObjectTypeTaskFatal IpcInfoObjectType = 51 IpcInfoObjectTypeKcdata IpcInfoObjectType = 52 IpcInfoObjectTypeExclavesResource IpcInfoObjectType = 53 IpcInfoObjectTypeThreadResume IpcInfoObjectType = 54 IpcInfoObjectTypeUnknown IpcInfoObjectType = 4294967295 )
func (IpcInfoObjectType) String ¶ added in v0.17.0
func (e IpcInfoObjectType) String() string
String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.
type KeyframeSequence ¶ added in v0.17.0
KeyframeSequence is an idiomatic wrapper over the Objective-C class SKKeyframeSequence.
An object that performs interpolation between values specified at different times (keyframes).
func KeyframeSequenceFromID ¶ added in v0.17.0
func KeyframeSequenceFromID(id objc.ID) *KeyframeSequence
KeyframeSequenceFromID adopts an existing Objective-C object as a KeyframeSequence (nil for 0), retaining it and registering a release finalizer.
func NewKeyframeSequenceWithCapacity ¶ added in v0.17.0
func NewKeyframeSequenceWithCapacity(numItems int) *KeyframeSequence
NewKeyframeSequenceWithCapacity initializes a new keyframe sequence.
func NewKeyframeSequenceWithCoder ¶ added in v0.17.0
func NewKeyframeSequenceWithCoder(aDecoder obj.Object) *KeyframeSequence
NewKeyframeSequenceWithCoder support coding and decoding via NSKeyedArchiver.
func NewKeyframeSequenceWithKeyframeValuesTimes ¶ added in v0.17.0
func NewKeyframeSequenceWithKeyframeValuesTimes(values obj.Object, times []*foundation.Number) *KeyframeSequence
NewKeyframeSequenceWithKeyframeValuesTimes initializes a keyframe sequence with an initial set of values and times.
func (*KeyframeSequence) AddKeyframeValueTime ¶ added in v0.17.0
func (ks *KeyframeSequence) AddKeyframeValueTime(value obj.Object, time_ float64)
AddKeyframeValueTime adds a keyframe to the sequence.
func (*KeyframeSequence) Count ¶ added in v0.17.0
func (ks *KeyframeSequence) Count() int
Count returns the number of keyframes in the sequence.
func (*KeyframeSequence) Description ¶ added in v0.17.0
func (ks *KeyframeSequence) Description() string
Description returns the object's -description text.
func (*KeyframeSequence) GetKeyframeTimeForIndex ¶ added in v0.17.0
func (ks *KeyframeSequence) GetKeyframeTimeForIndex(index int) float64
GetKeyframeTimeForIndex gets the time for a keyframe in the sequence.
func (*KeyframeSequence) GetKeyframeValueForIndex ¶ added in v0.17.0
func (ks *KeyframeSequence) GetKeyframeValueForIndex(index int) obj.Object
GetKeyframeValueForIndex gets the value for a keyframe in the sequence.
func (*KeyframeSequence) InterpolationMode ¶ added in v0.17.0
func (ks *KeyframeSequence) InterpolationMode() InterpolationMode
InterpolationMode returns the interpolation mode.
func (*KeyframeSequence) IsEqual ¶ added in v0.17.0
func (ks *KeyframeSequence) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*KeyframeSequence) IsKind ¶ added in v0.17.0
func (ks *KeyframeSequence) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*KeyframeSequence) RemoveKeyframeAtIndex ¶ added in v0.17.0
func (ks *KeyframeSequence) RemoveKeyframeAtIndex(index int)
RemoveKeyframeAtIndex removes a keyframe from the sequence.
func (*KeyframeSequence) RemoveLastKeyframe ¶ added in v0.17.0
func (ks *KeyframeSequence) RemoveLastKeyframe()
RemoveLastKeyframe removes the last value in the sequence.
func (*KeyframeSequence) RepeatMode ¶ added in v0.17.0
func (ks *KeyframeSequence) RepeatMode() RepeatMode
RepeatMode returns the repeat mode.
func (*KeyframeSequence) SampleAtTime ¶ added in v0.17.0
func (ks *KeyframeSequence) SampleAtTime(time_ float64) obj.Object
SampleAtTime calculates the sample at a particular time.
func (*KeyframeSequence) SetKeyframeTimeForIndex ¶ added in v0.17.0
func (ks *KeyframeSequence) SetKeyframeTimeForIndex(time_ float64, index int)
SetKeyframeTimeForIndex changes the time for a specific keyframe.
func (*KeyframeSequence) SetKeyframeValueForIndex ¶ added in v0.17.0
func (ks *KeyframeSequence) SetKeyframeValueForIndex(value obj.Object, index int)
SetKeyframeValueForIndex changes the value for a specific keyframe.
func (*KeyframeSequence) SetKeyframeValueTimeForIndex ¶ added in v0.17.0
func (ks *KeyframeSequence) SetKeyframeValueTimeForIndex(value obj.Object, time_ float64, index int)
SetKeyframeValueTimeForIndex replaces a keyframe in the sequence with a new keyframe.
func (*KeyframeSequence) String ¶ added in v0.17.0
func (ks *KeyframeSequence) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*KeyframeSequence) WithInterpolationMode ¶ added in v0.17.0
func (ks *KeyframeSequence) WithInterpolationMode(interpolationMode InterpolationMode) *KeyframeSequence
WithInterpolationMode sets the mode used to determine how values for times between the keyframes are calculated.
func (*KeyframeSequence) WithRepeatMode ¶ added in v0.17.0
func (ks *KeyframeSequence) WithRepeatMode(repeatMode RepeatMode) *KeyframeSequence
WithRepeatMode sets the mode used to determine how the keyframe sequence repeats.
type LabelHorizontalAlignmentMode ¶ added in v0.17.0
type LabelHorizontalAlignmentMode int64
Options for aligning text horizontally.
const ( // Centers the text horizontally on the node’s origin. LabelHorizontalAlignmentModeCenter LabelHorizontalAlignmentMode = 0 // Positions the text so that the left side of the text is on the node’s origin. LabelHorizontalAlignmentModeLeft LabelHorizontalAlignmentMode = 1 // Positions the text so that the right side of the text is on the node’s origin. LabelHorizontalAlignmentModeRight LabelHorizontalAlignmentMode = 2 )
func (LabelHorizontalAlignmentMode) String ¶ added in v0.17.0
func (e LabelHorizontalAlignmentMode) String() string
String returns the LabelHorizontalAlignmentMode constant's name, or its numeric form when the value is not a known constant.
type LabelNode ¶ added in v0.17.0
type LabelNode struct {
Node
}
LabelNode is an idiomatic wrapper over the Objective-C class SKLabelNode.
It embeds Node, promoting that type's methods.
A graphical element that draws text.
func LabelNodeFromID ¶ added in v0.17.0
LabelNodeFromID adopts an existing Objective-C object as a LabelNode (nil for 0), retaining it and registering a release finalizer.
func LabelNodeWithAttributedText ¶ added in v0.17.0
LabelNodeWithAttributedText initializes a new label object with an attributed text string.
func LabelNodeWithFontNamed ¶ added in v0.17.0
LabelNodeWithFontNamed initializes a new label object.
func LabelNodeWithText ¶ added in v0.17.0
LabelNodeWithText initializes a new label object with a text string.
func NewLabelNodeWithFontNamed ¶ added in v0.17.0
NewLabelNodeWithFontNamed initializes a new label object with a specified font.
func (*LabelNode) AttributedText ¶ added in v0.17.0
func (ln *LabelNode) AttributedText() *foundation.AttributedString
AttributedText returns the attributed text.
func (*LabelNode) BlendMode ¶ added in v0.17.0
BlendMode sets the blend mode to use when composing the sprite with the final framebuffer.
func (*LabelNode) Color ¶ added in v0.17.0
Color returns color to be blended with the text based on the colorBlendFactor
func (*LabelNode) ColorBlendFactor ¶ added in v0.17.0
ColorBlendFactor returns controls the blending between the rendered text and a color. The valid interval of values is from 0.0 up to and including 1.0. A value above or below that interval is clamped to the minimum (0.0) if below or the maximum (1.0) if above.
func (*LabelNode) FontColor ¶ added in v0.17.0
FontColor returns base color that the text is rendered with (if supported by the font)
func (*LabelNode) HorizontalAlignmentMode ¶ added in v0.17.0
func (ln *LabelNode) HorizontalAlignmentMode() LabelHorizontalAlignmentMode
HorizontalAlignmentMode returns the horizontal alignment mode.
func (*LabelNode) NumberOfLines ¶ added in v0.17.0
NumberOfLines determines the number of lines to draw. The default value is 1 (single line). A value of 0 means no limit. If the height of the text reaches the # of lines the text will be truncated using the line break mode.
func (*LabelNode) PreferredMaxLayoutWidth ¶ added in v0.17.0
PreferredMaxLayoutWidth returns if nonzero, this is used when determining layout width for multiline labels. Default is zero.
func (*LabelNode) VerticalAlignmentMode ¶ added in v0.17.0
func (ln *LabelNode) VerticalAlignmentMode() LabelVerticalAlignmentMode
VerticalAlignmentMode returns the vertical alignment mode.
func (*LabelNode) WithAccessibilityElement ¶ added in v0.17.0
WithAccessibilityElement sets a toggle you implement to indicate to the system whether this user interface element should be exposed to the user.
func (*LabelNode) WithAccessibilityEnabled ¶ added in v0.17.0
WithAccessibilityEnabled sets a toggle you implement to indicate to the system whether this user interface element should respond to user input.
func (*LabelNode) WithAccessibilityFrame ¶ added in v0.17.0
func (ln *LabelNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *LabelNode
WithAccessibilityFrame sets the size of this user interface element, in screen points.
func (*LabelNode) WithAccessibilityHelp ¶ added in v0.17.0
WithAccessibilityHelp sets the help description of this user interface element; for example, the text shown in a tooltip.
func (*LabelNode) WithAccessibilityLabel ¶ added in v0.17.0
WithAccessibilityLabel sets a short description of this user interface element.
func (*LabelNode) WithAccessibilityParent ¶ added in v0.17.0
WithAccessibilityParent sets the user interface element that contains this element.
func (*LabelNode) WithAccessibilityRole ¶ added in v0.17.0
WithAccessibilityRole sets a string value describing the user interface element type; for example, a button.
func (*LabelNode) WithAccessibilityRoleDescription ¶ added in v0.17.0
func (ln *LabelNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *LabelNode
WithAccessibilityRoleDescription sets a string value describing the user interface element name and type; for example, the Buy button.
func (*LabelNode) WithAccessibilitySubrole ¶ added in v0.17.0
WithAccessibilitySubrole sets a string that defines this user interface element’s subrole; for example, a full-screen button.
func (*LabelNode) WithAlpha ¶ added in v0.17.0
WithAlpha sets the transparency value applied to the node’s contents.
func (*LabelNode) WithAttributeValues ¶ added in v0.17.0
func (ln *LabelNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *LabelNode
WithAttributeValues sets the values of each attribute associated with the node’s attached shader.
func (*LabelNode) WithAttributedText ¶ added in v0.17.0
WithAttributedText sets the attributed string displayed by the label.
func (*LabelNode) WithBlendMode ¶ added in v0.17.0
WithBlendMode sets the blend mode used to draw the label into the parent’s framebuffer.
func (*LabelNode) WithColor ¶ added in v0.17.0
WithColor sets an alternative to the font color that can be used for animations.
func (*LabelNode) WithColorBlendFactor ¶ added in v0.17.0
WithColorBlendFactor sets a floating-point value that describes how the color is blended with the font color.
func (*LabelNode) WithConstraints ¶ added in v0.17.0
func (ln *LabelNode) WithConstraints(items ...*Constraint) *LabelNode
WithConstraints sets a list of constraints to apply to the node.
func (*LabelNode) WithFontColor ¶ added in v0.17.0
WithFontColor sets the color of the label.
func (*LabelNode) WithFontName ¶ added in v0.17.0
WithFontName sets the font used for the text in the label.
func (*LabelNode) WithFontSize ¶ added in v0.17.0
WithFontSize sets the size of the font used in the label.
func (*LabelNode) WithHidden ¶ added in v0.17.0
WithHidden sets a Boolean value that determines whether a node and its descendants are rendered.
func (*LabelNode) WithHorizontalAlignmentMode ¶ added in v0.17.0
func (ln *LabelNode) WithHorizontalAlignmentMode(horizontalAlignmentMode LabelHorizontalAlignmentMode) *LabelNode
WithHorizontalAlignmentMode sets the horizontal position of the text within the node.
func (*LabelNode) WithNumberOfLines ¶ added in v0.17.0
WithNumberOfLines sets determines the number of lines to draw.
func (*LabelNode) WithPaused ¶ added in v0.17.0
WithPaused sets a Boolean value that determines whether actions on the node and its descendants are processed.
func (*LabelNode) WithPhysicsBody ¶ added in v0.17.0
func (ln *LabelNode) WithPhysicsBody(physicsBody *PhysicsBody) *LabelNode
WithPhysicsBody sets the physics body associated with the node.
func (*LabelNode) WithPosition ¶ added in v0.17.0
func (ln *LabelNode) WithPosition(position corefoundation.CGPoint) *LabelNode
WithPosition sets the position of the node in its parent’s coordinate system.
func (*LabelNode) WithPreferredMaxLayoutWidth ¶ added in v0.17.0
WithPreferredMaxLayoutWidth sets the width, in screen points, after which line-break mode should be applied.
func (*LabelNode) WithReachConstraints ¶ added in v0.17.0
func (ln *LabelNode) WithReachConstraints(reachConstraints *ReachConstraints) *LabelNode
WithReachConstraints sets the reach constraints to apply to the node when executing a reach action.
func (*LabelNode) WithSpeed ¶ added in v0.17.0
WithSpeed sets a speed modifier applied to all actions executed by a node and its descendants.
func (*LabelNode) WithText ¶ added in v0.17.0
WithText sets the string that the label node displays.
func (*LabelNode) WithUserData ¶ added in v0.17.0
WithUserData sets a dictionary containing arbitrary data.
func (*LabelNode) WithUserInteractionEnabled ¶ added in v0.17.0
WithUserInteractionEnabled sets a Boolean value that indicates whether the node receives touch events.
func (*LabelNode) WithVerticalAlignmentMode ¶ added in v0.17.0
func (ln *LabelNode) WithVerticalAlignmentMode(verticalAlignmentMode LabelVerticalAlignmentMode) *LabelNode
WithVerticalAlignmentMode sets the vertical position of the text within the node.
func (*LabelNode) WithXScale ¶ added in v0.17.0
WithXScale sets a scaling factor that multiplies the width of a node and its children.
func (*LabelNode) WithYScale ¶ added in v0.17.0
WithYScale sets a scaling factor that multiplies the height of a node and its children.
func (*LabelNode) WithZPosition ¶ added in v0.17.0
WithZPosition sets the height of the node relative to its parent.
func (*LabelNode) WithZRotation ¶ added in v0.17.0
WithZRotation sets the Euler rotation about the z axis (in radians).
type LabelVerticalAlignmentMode ¶ added in v0.17.0
type LabelVerticalAlignmentMode int64
Options for aligning text vertically.
const ( // Positions the text so that the font’s baseline lies on the node’s origin. LabelVerticalAlignmentModeBaseline LabelVerticalAlignmentMode = 0 // Centers the text vertically on the node’s origin. LabelVerticalAlignmentModeCenter LabelVerticalAlignmentMode = 1 // Positions the text so that the top of the text is on the node’s origin. LabelVerticalAlignmentModeTop LabelVerticalAlignmentMode = 2 // Positions the text so that the bottom of the text is on the node’s origin. LabelVerticalAlignmentModeBottom LabelVerticalAlignmentMode = 3 )
func (LabelVerticalAlignmentMode) String ¶ added in v0.17.0
func (e LabelVerticalAlignmentMode) String() string
String returns the LabelVerticalAlignmentMode constant's name, or its numeric form when the value is not a known constant.
type LaunchDataType ¶ added in v0.17.0
type LaunchDataType int32
const ( LaunchDataTypeDictionary LaunchDataType = 1 LaunchDataTypeArray LaunchDataType = 2 LaunchDataTypeFd LaunchDataType = 3 LaunchDataTypeInteger LaunchDataType = 4 LaunchDataTypeReal LaunchDataType = 5 LaunchDataTypeBool LaunchDataType = 6 LaunchDataTypeString LaunchDataType = 7 LaunchDataTypeOpaque LaunchDataType = 8 LaunchDataTypeErrno LaunchDataType = 9 LaunchDataTypeMachport LaunchDataType = 10 )
func (LaunchDataType) String ¶ added in v0.17.0
func (e LaunchDataType) String() string
String returns the LaunchDataType constant's name, or its numeric form when the value is not a known constant.
type LightNode ¶ added in v0.17.0
type LightNode struct {
Node
}
LightNode is an idiomatic wrapper over the Objective-C class SKLightNode.
It embeds Node, promoting that type's methods.
A node that lights surrounding nodes.
func LightNodeFromID ¶ added in v0.17.0
LightNodeFromID adopts an existing Objective-C object as a LightNode (nil for 0), retaining it and registering a release finalizer.
func NewLightNode ¶ added in v0.17.0
func NewLightNode() *LightNode
NewLightNode creates a new LightNode.
func (*LightNode) AmbientColor ¶ added in v0.17.0
AmbientColor returns ambient color of the light source, defaults to black. If you had only a single light in the scene with an ambient color of opaque white and a light color of black, it would appear as if the scene was rendered without lighting. The alpha component of the color is ignored. The color is not affected by falloff or surface normals.
func (*LightNode) CategoryBitMask ¶ added in v0.17.0
CategoryBitMask returns the category of the light, which determines the group(s) a light belongs to. Any node that has its corresponding light and shadow bitmasks set to an overlapping value will be lit, shadow casting or shadowed by this light.
func (*LightNode) Falloff ¶ added in v0.17.0
Falloff returns falloff in intensity of the light over distance, defaults to 1. The falloff does not affect the ambient color nor the shadow color.
func (*LightNode) IsEnabled ¶ added in v0.17.0
IsEnabled reports whether enables or disables lighting contribution from this light node. Set to true; sprites using this light will be lit with the ambient color and the light color, with a falloff in intensity according to the falloff property. Set to false; this light does not contribute any lighting. If no lights are active on a sprite it will be drawn normally, as if not lit. The default value is true.
func (*LightNode) LightColor ¶ added in v0.17.0
LightColor returns diffuse and Specular color of the light source, defaults to opaque white. The alpha component of the color is ignored. If using shaders bind a uniform to this property to use scene based custom lighting.
func (*LightNode) ShadowColor ¶ added in v0.17.0
ShadowColor returns color of the shadow casted on occluded objects, defaults to half opacity black. The alpha component of the color is used for blending with the regions that are in shadow.
func (*LightNode) WithAccessibilityElement ¶ added in v0.17.0
WithAccessibilityElement sets a toggle you implement to indicate to the system whether this user interface element should be exposed to the user.
func (*LightNode) WithAccessibilityEnabled ¶ added in v0.17.0
WithAccessibilityEnabled sets a toggle you implement to indicate to the system whether this user interface element should respond to user input.
func (*LightNode) WithAccessibilityFrame ¶ added in v0.17.0
func (ln *LightNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *LightNode
WithAccessibilityFrame sets the size of this user interface element, in screen points.
func (*LightNode) WithAccessibilityHelp ¶ added in v0.17.0
WithAccessibilityHelp sets the help description of this user interface element; for example, the text shown in a tooltip.
func (*LightNode) WithAccessibilityLabel ¶ added in v0.17.0
WithAccessibilityLabel sets a short description of this user interface element.
func (*LightNode) WithAccessibilityParent ¶ added in v0.17.0
WithAccessibilityParent sets the user interface element that contains this element.
func (*LightNode) WithAccessibilityRole ¶ added in v0.17.0
WithAccessibilityRole sets a string value describing the user interface element type; for example, a button.
func (*LightNode) WithAccessibilityRoleDescription ¶ added in v0.17.0
func (ln *LightNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *LightNode
WithAccessibilityRoleDescription sets a string value describing the user interface element name and type; for example, the Buy button.
func (*LightNode) WithAccessibilitySubrole ¶ added in v0.17.0
WithAccessibilitySubrole sets a string that defines this user interface element’s subrole; for example, a full-screen button.
func (*LightNode) WithAlpha ¶ added in v0.17.0
WithAlpha sets the transparency value applied to the node’s contents.
func (*LightNode) WithAmbientColor ¶ added in v0.17.0
WithAmbientColor sets the ambient color of the light.
func (*LightNode) WithAttributeValues ¶ added in v0.17.0
func (ln *LightNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *LightNode
WithAttributeValues sets the values of each attribute associated with the node’s attached shader.
func (*LightNode) WithCategoryBitMask ¶ added in v0.17.0
WithCategoryBitMask sets a mask that defines which categories this light belongs to.
func (*LightNode) WithConstraints ¶ added in v0.17.0
func (ln *LightNode) WithConstraints(items ...*Constraint) *LightNode
WithConstraints sets a list of constraints to apply to the node.
func (*LightNode) WithEnabled ¶ added in v0.17.0
WithEnabled sets a Boolean value that indicates whether the node is casting light.
func (*LightNode) WithFalloff ¶ added in v0.17.0
WithFalloff sets the exponent for the rate of decay of the light source.
func (*LightNode) WithHidden ¶ added in v0.17.0
WithHidden sets a Boolean value that determines whether a node and its descendants are rendered.
func (*LightNode) WithLightColor ¶ added in v0.17.0
WithLightColor sets the diffuse and specular color of the light source.
func (*LightNode) WithPaused ¶ added in v0.17.0
WithPaused sets a Boolean value that determines whether actions on the node and its descendants are processed.
func (*LightNode) WithPhysicsBody ¶ added in v0.17.0
func (ln *LightNode) WithPhysicsBody(physicsBody *PhysicsBody) *LightNode
WithPhysicsBody sets the physics body associated with the node.
func (*LightNode) WithPosition ¶ added in v0.17.0
func (ln *LightNode) WithPosition(position corefoundation.CGPoint) *LightNode
WithPosition sets the position of the node in its parent’s coordinate system.
func (*LightNode) WithReachConstraints ¶ added in v0.17.0
func (ln *LightNode) WithReachConstraints(reachConstraints *ReachConstraints) *LightNode
WithReachConstraints sets the reach constraints to apply to the node when executing a reach action.
func (*LightNode) WithShadowColor ¶ added in v0.17.0
WithShadowColor sets the color of any shadow cast by a sprite.
func (*LightNode) WithSpeed ¶ added in v0.17.0
WithSpeed sets a speed modifier applied to all actions executed by a node and its descendants.
func (*LightNode) WithUserData ¶ added in v0.17.0
WithUserData sets a dictionary containing arbitrary data.
func (*LightNode) WithUserInteractionEnabled ¶ added in v0.17.0
WithUserInteractionEnabled sets a Boolean value that indicates whether the node receives touch events.
func (*LightNode) WithXScale ¶ added in v0.17.0
WithXScale sets a scaling factor that multiplies the width of a node and its children.
func (*LightNode) WithYScale ¶ added in v0.17.0
WithYScale sets a scaling factor that multiplies the height of a node and its children.
func (*LightNode) WithZPosition ¶ added in v0.17.0
WithZPosition sets the height of the node relative to its parent.
func (*LightNode) WithZRotation ¶ added in v0.17.0
WithZRotation sets the Euler rotation about the z axis (in radians).
type MDLabelDomain ¶
type MDLabelDomain int32
These constants are used to specify a domain to MDLabelCreate().
const ( KMDLabelUserDomain MDLabelDomain = 0 KMDLabelLocalDomain MDLabelDomain = 1 )
func (MDLabelDomain) String ¶
func (e MDLabelDomain) String() string
String returns the MDLabelDomain constant's name, or its numeric form when the value is not a known constant.
type MDQueryOptionFlags ¶
type MDQueryOptionFlags int32
const ( KMDQuerySynchronous MDQueryOptionFlags = 1 KMDQueryWantsUpdates MDQueryOptionFlags = 4 KMDQueryAllowFSTranslation MDQueryOptionFlags = 8 )
func (MDQueryOptionFlags) String ¶
func (e MDQueryOptionFlags) String() string
String returns the MDQueryOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MDQuerySortOptionFlags ¶
type MDQuerySortOptionFlags int32
const (
KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)
func (MDQuerySortOptionFlags) String ¶
func (e MDQuerySortOptionFlags) String() string
String returns the MDQuerySortOptionFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlags ¶ added in v0.17.0
type MachVMRangeFlags uint64
Bitmask — values may be combined with |.
const (
MachVMRangeFlagsNone MachVMRangeFlags = 0
)
func (MachVMRangeFlags) String ¶ added in v0.17.0
func (e MachVMRangeFlags) String() string
String returns the MachVMRangeFlags constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeFlavor ¶ added in v0.17.0
type MachVMRangeFlavor uint32
const ( MachVMRangeFlavorInvalid MachVMRangeFlavor = 0 MachVMRangeFlavorV1 MachVMRangeFlavor = 1 )
func (MachVMRangeFlavor) String ¶ added in v0.17.0
func (e MachVMRangeFlavor) String() string
String returns the MachVMRangeFlavor constant's name, or its numeric form when the value is not a known constant.
type MachVMRangeTag ¶ added in v0.17.0
type MachVMRangeTag uint16
const ( MachVMRangeTagDefault MachVMRangeTag = 0 MachVMRangeTagData MachVMRangeTag = 1 MachVMRangeTagFixed MachVMRangeTag = 2 )
func (MachVMRangeTag) String ¶ added in v0.17.0
func (e MachVMRangeTag) String() string
String returns the MachVMRangeTag constant's name, or its numeric form when the value is not a known constant.
type MpoFlags ¶ added in v0.17.0
type MpoFlags uint32
Bitmask — values may be combined with |.
const ( MpoFlagsPort MpoFlags = 0 MpoFlagsServicePort MpoFlags = 1024 MpoFlagsConnectionPort MpoFlags = 2048 MpoFlagsReplyPort MpoFlags = 4096 MpoFlagsWeakReplyPort MpoFlags = 16384 MpoFlagsNotificationPort MpoFlags = 17408 MpoFlagsExceptionPort MpoFlags = 32768 MpoFlagsConnectionPortWithPortArray MpoFlags = 65536 )
type MutableTexture ¶ added in v0.17.0
type MutableTexture struct {
Texture
}
MutableTexture is an idiomatic wrapper over the Objective-C class SKMutableTexture.
It embeds Texture, promoting that type's methods.
A texture whose contents can be dynamically updated.
func MutableTextureFromID ¶ added in v0.17.0
func MutableTextureFromID(id objc.ID) *MutableTexture
MutableTextureFromID adopts an existing Objective-C object as a MutableTexture (nil for 0), retaining it and registering a release finalizer.
func MutableTextureWithSize ¶ added in v0.17.0
func MutableTextureWithSize(size corefoundation.CGSize) *MutableTexture
MutableTextureWithSize creates an empty texture with a specific size.
func NewMutableTextureWithSize ¶ added in v0.17.0
func NewMutableTextureWithSize(size corefoundation.CGSize) *MutableTexture
NewMutableTextureWithSize initializes an empty texture with a specific size.
func NewMutableTextureWithSizePixelFormat ¶ added in v0.17.0
func NewMutableTextureWithSizePixelFormat(size corefoundation.CGSize, format int) *MutableTexture
NewMutableTextureWithSizePixelFormat initializes an empty texture with a specific size and format.
func (*MutableTexture) ModifyPixelDataWith ¶ added in v0.18.0
func (mt *MutableTexture) ModifyPixelDataWith(block func(unsafe.Pointer, int))
ModifyPixelDataWith modifies the contents of a mutable texture.
func (*MutableTexture) WithFilteringMode ¶ added in v0.17.0
func (mt *MutableTexture) WithFilteringMode(filteringMode TextureFilteringMode) *MutableTexture
WithFilteringMode sets the filtering mode used when the size of a sprite drawn with the texture is not drawn at the texture’s native size.
func (*MutableTexture) WithUsesMipmaps ¶ added in v0.17.0
func (mt *MutableTexture) WithUsesMipmaps(usesMipmaps bool) *MutableTexture
WithUsesMipmaps sets a Boolean value that indicates whether the texture attempts to generate mipmaps.
type NXMouseButton ¶
type NXMouseButton int32
const ( NX_OneButton NXMouseButton = 0 NX_LeftButton NXMouseButton = 1 NX_RightButton NXMouseButton = 2 )
func (NXMouseButton) String ¶
func (e NXMouseButton) String() string
String returns the NXMouseButton constant's name, or its numeric form when the value is not a known constant.
type Node ¶ added in v0.17.0
Node is an idiomatic wrapper over the Objective-C class SKNode.
Node is an abstract base — you do not construct it directly. Construct one of AudioNode, CameraNode, CropNode, EffectNode, EmitterNode, FieldNode, LabelNode, LightNode, ReferenceNode, SK3DNode, ShapeNode, SpriteNode, TileMapNode, TransformNode, VideoNode and pass it where a Node is accepted.
The base class of all SpriteKit nodes.
func NewNodeWithCoder ¶ added in v0.17.0
NewNodeWithCoder called when a node is initialized from an .sks file.
func NodeFromID ¶ added in v0.17.0
NodeFromID adopts an existing Objective-C object as a Node (nil for 0), retaining it and registering a release finalizer.
func NodeWithFileNamed ¶ added in v0.17.0
NodeWithFileNamed creates a new node by loading an archive file from the game’s main bundle.
func NodeWithFileNamedSecurelyWithClassesAnd ¶ added in v0.17.0
func NodeWithFileNamedSecurelyWithClassesAnd(filename string, classes []obj.Object) (result *Node, err error)
NodeWithFileNamedSecurelyWithClassesAnd wraps the corresponding Objective-C method.
func (*Node) AccessibilityChildren ¶ added in v0.17.0
AccessibilityChildren returns the accessibility children.
func (*Node) AccessibilityFrame ¶ added in v0.17.0
func (n *Node) AccessibilityFrame() corefoundation.CGRect
AccessibilityFrame returns the accessibility frame.
func (*Node) AccessibilityHelp ¶ added in v0.17.0
AccessibilityHelp returns the accessibility help.
func (*Node) AccessibilityHitTest ¶ added in v0.17.0
func (n *Node) AccessibilityHitTest(point corefoundation.CGPoint) obj.Object
AccessibilityHitTest returns the frontmost user interface element in the element hierarchy.
func (*Node) AccessibilityLabel ¶ added in v0.17.0
AccessibilityLabel returns the accessibility label.
func (*Node) AccessibilityParent ¶ added in v0.17.0
AccessibilityParent returns the accessibility parent.
func (*Node) AccessibilityRole ¶ added in v0.17.0
AccessibilityRole returns the accessibility role.
func (*Node) AccessibilityRoleDescription ¶ added in v0.17.0
AccessibilityRoleDescription returns the accessibility role description.
func (*Node) AccessibilitySubrole ¶ added in v0.17.0
AccessibilitySubrole returns the accessibility subrole.
func (*Node) ActionForKey ¶ added in v0.17.0
ActionForKey returns an action associated with a specific key.
func (*Node) AddChild ¶ added in v0.17.0
AddChild adds a node to the end of the receiver’s list of child nodes.
func (*Node) Alpha ¶ added in v0.17.0
Alpha returns alpha of this node (multiplied by the output color to give the final result)
func (*Node) AttributeValues ¶ added in v0.17.0
func (n *Node) AttributeValues() map[string]*AttributeValue
AttributeValues returns optional dictionary of SKAttributeValues Attributes can be used with custom SKShaders. DEPRECATED: Attributes are only available for node classes supporting SKShader (see SKSpriteNode etc.).
func (*Node) CalculateAccumulatedFrame ¶ added in v0.17.0
func (n *Node) CalculateAccumulatedFrame() corefoundation.CGRect
CalculateAccumulatedFrame returns a rectangle in the parent’s coordinate system that contains the position and size of itself and all child nodes.
func (*Node) ChildNodeWithName ¶ added in v0.17.0
ChildNodeWithName searches the children of the receiving node for a node with a specific name.
func (*Node) Children ¶ added in v0.17.0
Children returns the children of this node.
Children returns the collection as a Go slice.
func (*Node) Constraints ¶ added in v0.17.0
func (n *Node) Constraints() []*Constraint
Constraints returns optional array of SKConstraints Constraints are evaluated each frame after actions and physics. The node's transform will be changed to satisfy the constraint.
Constraints returns the collection as a Go slice.
func (*Node) ContainsPoint ¶ added in v0.17.0
func (n *Node) ContainsPoint(p corefoundation.CGPoint) bool
ContainsPoint returns a Boolean value that indicates whether a point lies inside the parent’s coordinate system.
func (*Node) ConvertPointFromNode ¶ added in v0.17.0
func (n *Node) ConvertPointFromNode(point corefoundation.CGPoint, node *Node) corefoundation.CGPoint
ConvertPointFromNode converts a point from the coordinate system of another node in the node tree to the coordinate system of this node.
func (*Node) ConvertPointToNode ¶ added in v0.17.0
func (n *Node) ConvertPointToNode(point corefoundation.CGPoint, node *Node) corefoundation.CGPoint
ConvertPointToNode converts a point in this node’s coordinate system to the coordinate system of another node in the node tree.
func (*Node) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Node) EnumerateChildNodesWithNameUsing ¶ added in v0.17.0
EnumerateChildNodesWithNameUsing searches the children of the receiving node to perform processing for nodes that share a name.
func (*Node) Frame ¶ added in v0.17.0
func (n *Node) Frame() corefoundation.CGRect
Frame returns the frame.
func (*Node) HasActions ¶ added in v0.17.0
HasActions reports whether returns a Boolean value that indicates whether the node is executing actions.
func (*Node) InParentHierarchy ¶ added in v0.17.0
InParentHierarchy returns a Boolean value that indicates whether the node is a descendant of the target node.
func (*Node) InsertChildAtIndex ¶ added in v0.17.0
InsertChildAtIndex inserts a node into a specific position in the receiver’s list of child nodes.
func (*Node) IntersectsNode ¶ added in v0.17.0
IntersectsNode returns a Boolean value that indicates whether this node intersects the specified node.
func (*Node) IsAccessibilityElement ¶ added in v0.17.0
IsAccessibilityElement reports whether the object is accessibility element.
func (*Node) IsAccessibilityEnabled ¶ added in v0.17.0
IsAccessibilityEnabled reports whether the object is accessibility enabled.
func (*Node) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Node) IsEqualToNode ¶ added in v0.17.0
IsEqualToNode compares the parameter node to the receiving node.
func (*Node) IsHidden ¶ added in v0.17.0
IsHidden reports whether controls whether or not the node and its children are rendered.
func (*Node) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Node) IsPaused ¶ added in v0.17.0
IsPaused reports whether controls whether or not the node's actions is updated or paused.
func (*Node) IsUserInteractionEnabled ¶ added in v0.17.0
IsUserInteractionEnabled reports whether controls whether or not the node receives touch events
func (*Node) MoveToParent ¶ added in v0.17.0
MoveToParent moves the node to a new parent node in the scene.
func (*Node) Name ¶ added in v0.17.0
Name returns the client assignable name. In general, this should be unique among peers in the scene graph.
func (*Node) NodeAtPoint ¶ added in v0.17.0
func (n *Node) NodeAtPoint(p corefoundation.CGPoint) *Node
NodeAtPoint returns the deepest visible descendant that intersects a point.
func (*Node) NodesAtPoint ¶ added in v0.17.0
func (n *Node) NodesAtPoint(p corefoundation.CGPoint) []*Node
NodesAtPoint returns an array of all visible descendants that intersect a point.
func (*Node) ObjectForKeyedSubscript ¶ added in v0.17.0
ObjectForKeyedSubscript returns an array of nodes that match the name parameter.
func (*Node) Parent ¶ added in v0.17.0
Parent returns the parent of the node. If this is nil the node has not been added to another group and is thus the root node of its own graph.
func (*Node) PhysicsBody ¶ added in v0.17.0
func (n *Node) PhysicsBody() *PhysicsBody
PhysicsBody returns physics body attached to the node, with synchronized scale, rotation, and position
func (*Node) Position ¶ added in v0.17.0
func (n *Node) Position() corefoundation.CGPoint
Position returns the position of the node in the parent's coordinate system
func (*Node) ReachConstraints ¶ added in v0.17.0
func (n *Node) ReachConstraints() *ReachConstraints
ReachConstraints returns kinematic constraints, used in IK solving
func (*Node) RemoveActionForKey ¶ added in v0.17.0
RemoveActionForKey removes an action associated with a specific key.
func (*Node) RemoveAllActions ¶ added in v0.17.0
func (n *Node) RemoveAllActions()
RemoveAllActions ends and removes all actions from the node.
func (*Node) RemoveAllChildren ¶ added in v0.17.0
func (n *Node) RemoveAllChildren()
RemoveAllChildren removes all of the node’s children.
func (*Node) RemoveChildrenInArray ¶ added in v0.17.0
RemoveChildrenInArray removes a list of children from the receiving node.
func (*Node) RemoveFromParent ¶ added in v0.17.0
func (n *Node) RemoveFromParent()
RemoveFromParent removes the receiving node from its parent.
func (*Node) RunAction ¶ added in v0.17.0
RunAction adds an action to the list of actions executed by the node.
func (*Node) RunActionCompletion ¶ added in v0.17.0
RunActionCompletion adds an action to the list of actions executed by the node and schedules the argument block to be run upon completion of the action.
RunActionCompletion blocks until the operation completes or ctx is cancelled.
func (*Node) RunActionWithKey ¶ added in v0.17.0
RunActionWithKey adds an identifiable action to the list of actions executed by the node.
func (*Node) SetAccessibilityChildren ¶ added in v0.17.0
SetAccessibilityChildren wraps the corresponding Objective-C method.
func (*Node) SetScale ¶ added in v0.17.0
SetScale sets the xScale and yScale properties of the node.
func (*Node) SetValueForAttributeNamed ¶ added in v0.17.0
func (n *Node) SetValueForAttributeNamed(value *AttributeValue, key string)
SetValueForAttributeNamed sets an attribute value for an attached shader
func (*Node) Speed ¶ added in v0.17.0
Speed returns the speed multiplier applied to all actions run on this node. Inherited by its children.
func (*Node) String ¶ added in v0.17.0
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*Node) UserData ¶ added in v0.17.0
UserData returns an optional dictionary that can be used to store your own data in a node. Defaults to nil.
func (*Node) ValueForAttributeNamed ¶ added in v0.17.0
func (n *Node) ValueForAttributeNamed(key string) *AttributeValue
ValueForAttributeNamed the value of a shader attribute.
func (*Node) WithAccessibilityElement ¶ added in v0.17.0
WithAccessibilityElement sets a toggle you implement to indicate to the system whether this user interface element should be exposed to the user.
func (*Node) WithAccessibilityEnabled ¶ added in v0.17.0
WithAccessibilityEnabled sets a toggle you implement to indicate to the system whether this user interface element should respond to user input.
func (*Node) WithAccessibilityFrame ¶ added in v0.17.0
func (n *Node) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *Node
WithAccessibilityFrame sets the size of this user interface element, in screen points.
func (*Node) WithAccessibilityHelp ¶ added in v0.17.0
WithAccessibilityHelp sets the help description of this user interface element; for example, the text shown in a tooltip.
func (*Node) WithAccessibilityLabel ¶ added in v0.17.0
WithAccessibilityLabel sets a short description of this user interface element.
func (*Node) WithAccessibilityParent ¶ added in v0.17.0
WithAccessibilityParent sets the user interface element that contains this element.
func (*Node) WithAccessibilityRole ¶ added in v0.17.0
WithAccessibilityRole sets a string value describing the user interface element type; for example, a button.
func (*Node) WithAccessibilityRoleDescription ¶ added in v0.17.0
WithAccessibilityRoleDescription sets a string value describing the user interface element name and type; for example, the Buy button.
func (*Node) WithAccessibilitySubrole ¶ added in v0.17.0
WithAccessibilitySubrole sets a string that defines this user interface element’s subrole; for example, a full-screen button.
func (*Node) WithAlpha ¶ added in v0.17.0
WithAlpha sets the transparency value applied to the node’s contents.
func (*Node) WithAttributeValues ¶ added in v0.17.0
func (n *Node) WithAttributeValues(attributeValues map[string]*AttributeValue) *Node
WithAttributeValues sets the values of each attribute associated with the node’s attached shader.
func (*Node) WithConstraints ¶ added in v0.17.0
func (n *Node) WithConstraints(items ...*Constraint) *Node
WithConstraints sets a list of constraints to apply to the node.
func (*Node) WithHidden ¶ added in v0.17.0
WithHidden sets a Boolean value that determines whether a node and its descendants are rendered.
func (*Node) WithPaused ¶ added in v0.17.0
WithPaused sets a Boolean value that determines whether actions on the node and its descendants are processed.
func (*Node) WithPhysicsBody ¶ added in v0.17.0
func (n *Node) WithPhysicsBody(physicsBody *PhysicsBody) *Node
WithPhysicsBody sets the physics body associated with the node.
func (*Node) WithPosition ¶ added in v0.17.0
func (n *Node) WithPosition(position corefoundation.CGPoint) *Node
WithPosition sets the position of the node in its parent’s coordinate system.
func (*Node) WithReachConstraints ¶ added in v0.17.0
func (n *Node) WithReachConstraints(reachConstraints *ReachConstraints) *Node
WithReachConstraints sets the reach constraints to apply to the node when executing a reach action.
func (*Node) WithSpeed ¶ added in v0.17.0
WithSpeed sets a speed modifier applied to all actions executed by a node and its descendants.
func (*Node) WithUserData ¶ added in v0.17.0
WithUserData sets a dictionary containing arbitrary data.
func (*Node) WithUserInteractionEnabled ¶ added in v0.17.0
WithUserInteractionEnabled sets a Boolean value that indicates whether the node receives touch events.
func (*Node) WithXScale ¶ added in v0.17.0
WithXScale sets a scaling factor that multiplies the width of a node and its children.
func (*Node) WithYScale ¶ added in v0.17.0
WithYScale sets a scaling factor that multiplies the height of a node and its children.
func (*Node) WithZPosition ¶ added in v0.17.0
WithZPosition sets the height of the node relative to its parent.
func (*Node) WithZRotation ¶ added in v0.17.0
WithZRotation sets the Euler rotation about the z axis (in radians).
type NodeProvider ¶ added in v0.17.0
NodeProvider is accepted wherever a SKNode (or one of its subclasses) is expected.
type OSUnfairLockFlags ¶ added in v0.17.0
type OSUnfairLockFlags uint32
Bitmask — values may be combined with |.
const ( OSUnfairLockFlagsNone OSUnfairLockFlags = 0 OSUnfairLockFlagsAdaptiveSpin OSUnfairLockFlags = 262144 )
func (OSUnfairLockFlags) String ¶ added in v0.17.0
func (e OSUnfairLockFlags) String() string
String returns the OSUnfairLockFlags constant's name, or its numeric form when the value is not a known constant.
type PMPageToPaperMappingType ¶
type PMPageToPaperMappingType int32
const ( KPMPageToPaperMappingNone PMPageToPaperMappingType = 1 KPMPageToPaperMappingScaleToFit PMPageToPaperMappingType = 2 )
func (PMPageToPaperMappingType) String ¶
func (e PMPageToPaperMappingType) String() string
String returns the PMPageToPaperMappingType constant's name, or its numeric form when the value is not a known constant.
type ParticleRenderOrder ¶ added in v0.17.0
type ParticleRenderOrder uint64
The order to use when the emitter’s particles are rendered.
const ( // The particles are rendered from newest to oldest. This is the default value. ParticleRenderOrderOldestLast ParticleRenderOrder = 0 // The particles are rendered from oldest to newest. ParticleRenderOrderOldestFirst ParticleRenderOrder = 1 // The particles can be rendered in any order. SpriteKit may choose to reorder the particles to improve rendering performance. ParticleRenderOrderDontCare ParticleRenderOrder = 2 )
func (ParticleRenderOrder) String ¶ added in v0.17.0
func (e ParticleRenderOrder) String() string
String returns the ParticleRenderOrder constant's name, or its numeric form when the value is not a known constant.
type Perm ¶ added in v0.17.0
type Perm int32
const ( PermReadData Perm = 2 PermListDirectory Perm = 2 PermWriteData Perm = 4 PermAddFile Perm = 4 PermExecute Perm = 8 PermSearch Perm = 8 PermDelete Perm = 16 PermAppendData Perm = 32 PermAddSubdirectory Perm = 32 PermDeleteChild Perm = 64 PermReadAttributes Perm = 128 PermWriteAttributes Perm = 256 PermReadExtattributes Perm = 512 PermWriteExtattributes Perm = 1024 PermReadSecurity Perm = 2048 PermWriteSecurity Perm = 4096 PermChangeOwner Perm = 8192 PermSynchronize Perm = 1048576 )
type PhysicsBody ¶ added in v0.17.0
PhysicsBody is an idiomatic wrapper over the Objective-C class SKPhysicsBody.
An object that adds physics simulation to a node.
func BodyWithBodies ¶ added in v0.17.0
func BodyWithBodies(bodies []*PhysicsBody) *PhysicsBody
BodyWithBodies creates a physics body that’s shaped like a union of the argument physics bodies.
func BodyWithCircleOfRadius ¶ added in v0.17.0
func BodyWithCircleOfRadius(r float64) *PhysicsBody
BodyWithCircleOfRadius creates a circular physics body centered on the owning node’s origin.
func BodyWithCircleOfRadiusCenter ¶ added in v0.17.0
func BodyWithCircleOfRadiusCenter(r float64, center corefoundation.CGPoint) *PhysicsBody
BodyWithCircleOfRadiusCenter creates a circular physics body centered on an arbitrary point.
func BodyWithEdgeChainFromPath ¶ added in v0.17.0
func BodyWithEdgeChainFromPath(path coregraphics.CGPathRef) *PhysicsBody
BodyWithEdgeChainFromPath creates an edge chain from a path.
func BodyWithEdgeFromPointToPoint ¶ added in v0.17.0
func BodyWithEdgeFromPointToPoint(p1 corefoundation.CGPoint, p2 corefoundation.CGPoint) *PhysicsBody
BodyWithEdgeFromPointToPoint creates an edge between two points.
func BodyWithEdgeLoopFromPath ¶ added in v0.17.0
func BodyWithEdgeLoopFromPath(path coregraphics.CGPathRef) *PhysicsBody
BodyWithEdgeLoopFromPath creates an edge loop from a path.
func BodyWithEdgeLoopFromRect ¶ added in v0.17.0
func BodyWithEdgeLoopFromRect(rect corefoundation.CGRect) *PhysicsBody
BodyWithEdgeLoopFromRect creates an edge loop from a rectangle.
func BodyWithPolygonFromPath ¶ added in v0.17.0
func BodyWithPolygonFromPath(path coregraphics.CGPathRef) *PhysicsBody
BodyWithPolygonFromPath creates a polygonal physics body.
func BodyWithRectangleOfSize ¶ added in v0.17.0
func BodyWithRectangleOfSize(s corefoundation.CGSize) *PhysicsBody
BodyWithRectangleOfSize creates a rectangular physics body centered on the owning node’s origin.
func BodyWithRectangleOfSizeCenter ¶ added in v0.17.0
func BodyWithRectangleOfSizeCenter(s corefoundation.CGSize, center corefoundation.CGPoint) *PhysicsBody
BodyWithRectangleOfSizeCenter creates a rectangular physics body centered on an arbitrary point.
func BodyWithTextureAlphaThresholdSize ¶ added in v0.17.0
func BodyWithTextureAlphaThresholdSize(texture *Texture, alphaThreshold float32, size corefoundation.CGSize) *PhysicsBody
BodyWithTextureAlphaThresholdSize creates a physics body from the contents of a texture, capturing only the texels that exceed a specified transparency value.
func BodyWithTextureSize ¶ added in v0.17.0
func BodyWithTextureSize(texture *Texture, size corefoundation.CGSize) *PhysicsBody
BodyWithTextureSize creates a physics body from the contents of a texture.
func NewPhysicsBody ¶ added in v0.17.0
func NewPhysicsBody() *PhysicsBody
NewPhysicsBody creates a new PhysicsBody.
func PhysicsBodyFromID ¶ added in v0.17.0
func PhysicsBodyFromID(id objc.ID) *PhysicsBody
PhysicsBodyFromID adopts an existing Objective-C object as a PhysicsBody (nil for 0), retaining it and registering a release finalizer.
func (*PhysicsBody) AffectedByGravity ¶ added in v0.17.0
func (pb *PhysicsBody) AffectedByGravity() bool
AffectedByGravity reports whether bodies are affected by field forces such as gravity if this property is set and the field's category mask is set appropriately. The default value is true. If this is set a force is applied to the object based on the mass. Set the field force vector in the scene to modify the strength of the force.
func (*PhysicsBody) AllContactedBodies ¶ added in v0.17.0
func (pb *PhysicsBody) AllContactedBodies() []*PhysicsBody
AllContactedBodies returns the physics bodies that this physics body is in contact with.
AllContactedBodies returns the collection as a Go slice.
func (*PhysicsBody) AllowsRotation ¶ added in v0.17.0
func (pb *PhysicsBody) AllowsRotation() bool
AllowsRotation wraps the corresponding Objective-C method.
func (*PhysicsBody) AngularDamping ¶ added in v0.17.0
func (pb *PhysicsBody) AngularDamping() float64
AngularDamping returns optionally reduce the body's angular velocity each frame to simulate rotational friction. (0.0 - 1.0). Defaults to 0.1
func (*PhysicsBody) AngularVelocity ¶ added in v0.17.0
func (pb *PhysicsBody) AngularVelocity() float64
AngularVelocity returns the angular velocity.
func (*PhysicsBody) ApplyAngularImpulse ¶ added in v0.17.0
func (pb *PhysicsBody) ApplyAngularImpulse(impulse float64)
ApplyAngularImpulse applies an impulse that imparts angular momentum to an object.
func (*PhysicsBody) ApplyForce ¶ added in v0.17.0
func (pb *PhysicsBody) ApplyForce(force corefoundation.CGVector)
ApplyForce applies a force to the center of gravity of a physics body.
func (*PhysicsBody) ApplyForceAtPoint ¶ added in v0.17.0
func (pb *PhysicsBody) ApplyForceAtPoint(force corefoundation.CGVector, point corefoundation.CGPoint)
ApplyForceAtPoint applies a force to a specific point of a physics body.
func (*PhysicsBody) ApplyImpulse ¶ added in v0.17.0
func (pb *PhysicsBody) ApplyImpulse(impulse corefoundation.CGVector)
ApplyImpulse applies an impulse to the center of gravity of a physics body.
func (*PhysicsBody) ApplyImpulseAtPoint ¶ added in v0.17.0
func (pb *PhysicsBody) ApplyImpulseAtPoint(impulse corefoundation.CGVector, point corefoundation.CGPoint)
ApplyImpulseAtPoint applies an impulse to a specific point of a physics body.
func (*PhysicsBody) ApplyTorque ¶ added in v0.17.0
func (pb *PhysicsBody) ApplyTorque(torque float64)
ApplyTorque applies torque to an object.
func (*PhysicsBody) Area ¶ added in v0.17.0
func (pb *PhysicsBody) Area() float64
Area returns the area of the body. The unit is arbitrary, as long as the relative areas are consistent throughout the application.
func (*PhysicsBody) CategoryBitMask ¶ added in v0.17.0
func (pb *PhysicsBody) CategoryBitMask() uint32
CategoryBitMask defines what logical 'categories' this body belongs to. Defaults to all bits set (all categories).
func (*PhysicsBody) Charge ¶ added in v0.17.0
func (pb *PhysicsBody) Charge() float64
Charge specifies the charge on the body. Charge determines the degree to which a body is affected by electric and magnetic fields. Note that this is a unitless quantity, it is up to the developer to set charge and field strength appropriately. Defaults to 0.0
func (*PhysicsBody) CollisionBitMask ¶ added in v0.17.0
func (pb *PhysicsBody) CollisionBitMask() uint32
CollisionBitMask defines what logical 'categories' of bodies this body responds to collisions with. Defaults to all bits set (all categories).
func (*PhysicsBody) ContactTestBitMask ¶ added in v0.17.0
func (pb *PhysicsBody) ContactTestBitMask() uint32
ContactTestBitMask defines what logical 'categories' of bodies this body generates intersection notifications with. Defaults to all bits cleared (no categories).
func (*PhysicsBody) Density ¶ added in v0.17.0
func (pb *PhysicsBody) Density() float64
Density returns the density of the body. The unit is arbitrary, as long as the relative densities are consistent throughout the application. Note that density and mass are inherently related (they are directly proportional), so changing one also changes the other. Both are provided so either can be used depending on what is more relevant to your usage.
func (*PhysicsBody) Description ¶ added in v0.17.0
func (pb *PhysicsBody) Description() string
Description returns the object's -description text.
func (*PhysicsBody) FieldBitMask ¶ added in v0.17.0
func (pb *PhysicsBody) FieldBitMask() uint32
FieldBitMask defines what logical 'categories' of fields this body responds to. Defaults to all bits set (all categories). Can be forced off via affectedByGravity.
func (*PhysicsBody) Friction ¶ added in v0.17.0
func (pb *PhysicsBody) Friction() float64
Friction determines the 'roughness' for the surface of the physics body (0.0 - 1.0). Defaults to 0.2
func (*PhysicsBody) IsDynamic ¶ added in v0.17.0
func (pb *PhysicsBody) IsDynamic() bool
IsDynamic reports whether the object is dynamic.
func (*PhysicsBody) IsEqual ¶ added in v0.17.0
func (pb *PhysicsBody) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*PhysicsBody) IsKind ¶ added in v0.17.0
func (pb *PhysicsBody) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*PhysicsBody) IsResting ¶ added in v0.17.0
func (pb *PhysicsBody) IsResting() bool
IsResting reports whether if the physics simulation has determined that this body is at rest it may set the resting property to true. Resting bodies do not participate in the simulation until some collision with a non-resting object, or an impulse is applied, that unrests it. If all bodies in the world are resting then the simulation as a whole is "at rest".
func (*PhysicsBody) Joints ¶ added in v0.17.0
func (pb *PhysicsBody) Joints() []*PhysicsJoint
Joints returns the joints.
Joints returns the collection as a Go slice.
func (*PhysicsBody) LinearDamping ¶ added in v0.17.0
func (pb *PhysicsBody) LinearDamping() float64
LinearDamping returns optionally reduce the body's linear velocity each frame to simulate fluid/air friction. Value should be zero or greater. Defaults to 0.1. Used in conjunction with per frame impulses, an object can be made to move at a constant speed. For example, if an object 64 points in size and default density and a linearDamping of 25 will slide across the screen in a few seconds if an impulse of magnitude 10 is applied every update.
func (*PhysicsBody) Mass ¶ added in v0.17.0
func (pb *PhysicsBody) Mass() float64
Mass returns the mass of the body. The unit is arbitrary, as long as the relative masses are consistent throughout the application. Note that density and mass are inherently related (they are directly proportional), so changing one also changes the other. Both are provided so either can be used depending on what is more relevant to your usage.
func (*PhysicsBody) Node ¶ added in v0.17.0
func (pb *PhysicsBody) Node() *Node
Node returns the representedObject this physicsBody is currently bound to, or nil if it is not.
func (*PhysicsBody) Pinned ¶ added in v0.17.0
func (pb *PhysicsBody) Pinned() bool
Pinned wraps the corresponding Objective-C method.
func (*PhysicsBody) Restitution ¶ added in v0.17.0
func (pb *PhysicsBody) Restitution() float64
Restitution determines the 'bounciness' of the physics body (0.0 - 1.0). Defaults to 0.2
func (*PhysicsBody) String ¶ added in v0.17.0
func (pb *PhysicsBody) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*PhysicsBody) UsesPreciseCollisionDetection ¶ added in v0.17.0
func (pb *PhysicsBody) UsesPreciseCollisionDetection() bool
UsesPreciseCollisionDetection wraps the corresponding Objective-C method.
func (*PhysicsBody) Velocity ¶ added in v0.17.0
func (pb *PhysicsBody) Velocity() corefoundation.CGVector
Velocity returns the velocity.
func (*PhysicsBody) WithAffectedByGravity ¶ added in v0.17.0
func (pb *PhysicsBody) WithAffectedByGravity(affectedByGravity bool) *PhysicsBody
WithAffectedByGravity sets a Boolean value that indicates whether this physics body is affected by the physics world’s gravity.
func (*PhysicsBody) WithAllowsRotation ¶ added in v0.17.0
func (pb *PhysicsBody) WithAllowsRotation(allowsRotation bool) *PhysicsBody
WithAllowsRotation sets a Boolean value that indicates whether the physics body is affected by angular forces and impulses applied to it.
func (*PhysicsBody) WithAngularDamping ¶ added in v0.17.0
func (pb *PhysicsBody) WithAngularDamping(angularDamping float64) *PhysicsBody
WithAngularDamping sets a property that reduces the body’s rotational velocity.
func (*PhysicsBody) WithAngularVelocity ¶ added in v0.17.0
func (pb *PhysicsBody) WithAngularVelocity(angularVelocity float64) *PhysicsBody
WithAngularVelocity sets the physics body’s angular speed.
func (*PhysicsBody) WithCategoryBitMask ¶ added in v0.17.0
func (pb *PhysicsBody) WithCategoryBitMask(categoryBitMask uint32) *PhysicsBody
WithCategoryBitMask sets a mask that defines which categories this physics body belongs to.
func (*PhysicsBody) WithCharge ¶ added in v0.17.0
func (pb *PhysicsBody) WithCharge(charge float64) *PhysicsBody
WithCharge sets the electrical charge of the physics body.
func (*PhysicsBody) WithCollisionBitMask ¶ added in v0.17.0
func (pb *PhysicsBody) WithCollisionBitMask(collisionBitMask uint32) *PhysicsBody
WithCollisionBitMask sets a mask that defines which categories of physics bodies can collide with this physics body.
func (*PhysicsBody) WithContactTestBitMask ¶ added in v0.17.0
func (pb *PhysicsBody) WithContactTestBitMask(contactTestBitMask uint32) *PhysicsBody
WithContactTestBitMask sets a mask that defines which categories of physics bodies cause intersection notifications with this physics body.
func (*PhysicsBody) WithDensity ¶ added in v0.17.0
func (pb *PhysicsBody) WithDensity(density float64) *PhysicsBody
WithDensity sets the density of the object, in kilograms per square meter.
func (*PhysicsBody) WithDynamic ¶ added in v0.17.0
func (pb *PhysicsBody) WithDynamic(dynamic bool) *PhysicsBody
WithDynamic sets a Boolean value that indicates whether the physics body is moved by the physics simulation.
func (*PhysicsBody) WithFieldBitMask ¶ added in v0.17.0
func (pb *PhysicsBody) WithFieldBitMask(fieldBitMask uint32) *PhysicsBody
WithFieldBitMask sets a mask that defines which categories of physics fields can exert forces on this physics body.
func (*PhysicsBody) WithFriction ¶ added in v0.17.0
func (pb *PhysicsBody) WithFriction(friction float64) *PhysicsBody
WithFriction sets the roughness of the surface of the physics body.
func (*PhysicsBody) WithLinearDamping ¶ added in v0.17.0
func (pb *PhysicsBody) WithLinearDamping(linearDamping float64) *PhysicsBody
WithLinearDamping sets a property that reduces the body’s linear velocity.
func (*PhysicsBody) WithMass ¶ added in v0.17.0
func (pb *PhysicsBody) WithMass(mass float64) *PhysicsBody
WithMass sets the mass of the body, in kilograms.
func (*PhysicsBody) WithPinned ¶ added in v0.17.0
func (pb *PhysicsBody) WithPinned(pinned bool) *PhysicsBody
WithPinned sets a Boolean value that indicates whether the physics body’s node is pinned to its parent node.
func (*PhysicsBody) WithResting ¶ added in v0.17.0
func (pb *PhysicsBody) WithResting(resting bool) *PhysicsBody
WithResting sets a Boolean property that indicates whether the object is at rest within the physics simulation.
func (*PhysicsBody) WithRestitution ¶ added in v0.17.0
func (pb *PhysicsBody) WithRestitution(restitution float64) *PhysicsBody
WithRestitution sets the bounciness of the physics body.
func (*PhysicsBody) WithUsesPreciseCollisionDetection ¶ added in v0.17.0
func (pb *PhysicsBody) WithUsesPreciseCollisionDetection(usesPreciseCollisionDetection bool) *PhysicsBody
WithUsesPreciseCollisionDetection sets a Boolean value that determines whether the physics world uses an iterative collision detection algorithm.
func (*PhysicsBody) WithVelocity ¶ added in v0.17.0
func (pb *PhysicsBody) WithVelocity(velocity corefoundation.CGVector) *PhysicsBody
WithVelocity sets the physics body’s velocity vector, measured in meters per second.
type PhysicsContact ¶ added in v0.17.0
PhysicsContact is an idiomatic wrapper over the Objective-C class SKPhysicsContact.
A description of the contact between two physics bodies.
func NewPhysicsContact ¶ added in v0.17.0
func NewPhysicsContact() *PhysicsContact
NewPhysicsContact creates a new PhysicsContact.
func PhysicsContactFromID ¶ added in v0.17.0
func PhysicsContactFromID(id objc.ID) *PhysicsContact
PhysicsContactFromID adopts an existing Objective-C object as a PhysicsContact (nil for 0), retaining it and registering a release finalizer.
func (*PhysicsContact) BodyA ¶ added in v0.17.0
func (pc *PhysicsContact) BodyA() *PhysicsBody
BodyA returns the body a.
func (*PhysicsContact) BodyB ¶ added in v0.17.0
func (pc *PhysicsContact) BodyB() *PhysicsBody
BodyB returns the body b.
func (*PhysicsContact) CollisionImpulse ¶ added in v0.17.0
func (pc *PhysicsContact) CollisionImpulse() float64
CollisionImpulse returns the collision impulse.
func (*PhysicsContact) ContactNormal ¶ added in v0.17.0
func (pc *PhysicsContact) ContactNormal() corefoundation.CGVector
ContactNormal returns the contact normal.
func (*PhysicsContact) ContactPoint ¶ added in v0.17.0
func (pc *PhysicsContact) ContactPoint() corefoundation.CGPoint
ContactPoint returns the contact point.
func (*PhysicsContact) Description ¶ added in v0.17.0
func (pc *PhysicsContact) Description() string
Description returns the object's -description text.
func (*PhysicsContact) IsEqual ¶ added in v0.17.0
func (pc *PhysicsContact) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*PhysicsContact) IsKind ¶ added in v0.17.0
func (pc *PhysicsContact) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*PhysicsContact) String ¶ added in v0.17.0
func (pc *PhysicsContact) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type PhysicsContactDelegate ¶ added in v0.17.0
type PhysicsContactDelegate interface {
}
PhysicsContactDelegate receives the callbacks of the Objective-C protocol SKPhysicsContactDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (PhysicsContactDelegate…Handler): implement the ones you need on the same value and the framework will call them too.
type PhysicsContactDelegateDidBeginContactHandler ¶ added in v0.17.0
type PhysicsContactDelegateDidBeginContactHandler interface {
DidBeginContact(contact *PhysicsContact)
}
PhysicsContactDelegateDidBeginContactHandler is the optional SKPhysicsContactDelegate method didBeginContact:. Implement it on a PhysicsContactDelegate value to receive that callback; a value without it is simply never sent one.
type PhysicsContactDelegateDidEndContactHandler ¶ added in v0.17.0
type PhysicsContactDelegateDidEndContactHandler interface {
DidEndContact(contact *PhysicsContact)
}
PhysicsContactDelegateDidEndContactHandler is the optional SKPhysicsContactDelegate method didEndContact:. Implement it on a PhysicsContactDelegate value to receive that callback; a value without it is simply never sent one.
type PhysicsJoint ¶ added in v0.17.0
PhysicsJoint is an idiomatic wrapper over the Objective-C class SKPhysicsJoint.
PhysicsJoint is an abstract base — you do not construct it directly. Construct one of PhysicsJointFixed, PhysicsJointLimit, PhysicsJointPin, PhysicsJointSliding, PhysicsJointSpring and pass it where a PhysicsJoint is accepted.
The abstract superclass for objects that connect physics bodies.
func PhysicsJointFromID ¶ added in v0.17.0
func PhysicsJointFromID(id objc.ID) *PhysicsJoint
PhysicsJointFromID adopts an existing Objective-C object as a PhysicsJoint (nil for 0), retaining it and registering a release finalizer.
func (*PhysicsJoint) BodyA ¶ added in v0.17.0
func (pj *PhysicsJoint) BodyA() *PhysicsBody
BodyA returns the body a.
func (*PhysicsJoint) BodyB ¶ added in v0.17.0
func (pj *PhysicsJoint) BodyB() *PhysicsBody
BodyB returns the body b.
func (*PhysicsJoint) Description ¶ added in v0.17.0
func (pj *PhysicsJoint) Description() string
Description returns the object's -description text.
func (*PhysicsJoint) IsEqual ¶ added in v0.17.0
func (pj *PhysicsJoint) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*PhysicsJoint) IsKind ¶ added in v0.17.0
func (pj *PhysicsJoint) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*PhysicsJoint) ReactionForce ¶ added in v0.17.0
func (pj *PhysicsJoint) ReactionForce() corefoundation.CGVector
ReactionForce returns the reaction force.
func (*PhysicsJoint) ReactionTorque ¶ added in v0.17.0
func (pj *PhysicsJoint) ReactionTorque() float64
ReactionTorque returns the reaction torque.
func (*PhysicsJoint) String ¶ added in v0.17.0
func (pj *PhysicsJoint) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*PhysicsJoint) WithBodyA ¶ added in v0.17.0
func (pj *PhysicsJoint) WithBodyA(bodyA *PhysicsBody) *PhysicsJoint
WithBodyA sets the first body connected by the joint.
func (*PhysicsJoint) WithBodyB ¶ added in v0.17.0
func (pj *PhysicsJoint) WithBodyB(bodyB *PhysicsBody) *PhysicsJoint
WithBodyB sets the second body connected by the joint.
type PhysicsJointFixed ¶ added in v0.17.0
type PhysicsJointFixed struct {
PhysicsJoint
}
PhysicsJointFixed is an idiomatic wrapper over the Objective-C class SKPhysicsJointFixed.
It embeds PhysicsJoint, promoting that type's methods.
A joint that fuses two physics bodies together at a reference point.
func JointWithBodyABodyBAnchor ¶ added in v0.17.0
func JointWithBodyABodyBAnchor(bodyA *PhysicsBody, bodyB *PhysicsBody, anchor corefoundation.CGPoint) *PhysicsJointFixed
JointWithBodyABodyBAnchor creates a new fixed joint.
func NewPhysicsJointFixed ¶ added in v0.17.0
func NewPhysicsJointFixed() *PhysicsJointFixed
NewPhysicsJointFixed creates a new PhysicsJointFixed.
func PhysicsJointFixedFromID ¶ added in v0.17.0
func PhysicsJointFixedFromID(id objc.ID) *PhysicsJointFixed
PhysicsJointFixedFromID adopts an existing Objective-C object as a PhysicsJointFixed (nil for 0), retaining it and registering a release finalizer.
func (*PhysicsJointFixed) WithBodyA ¶ added in v0.17.0
func (pjf *PhysicsJointFixed) WithBodyA(bodyA *PhysicsBody) *PhysicsJointFixed
WithBodyA sets the first body connected by the joint.
func (*PhysicsJointFixed) WithBodyB ¶ added in v0.17.0
func (pjf *PhysicsJointFixed) WithBodyB(bodyB *PhysicsBody) *PhysicsJointFixed
WithBodyB sets the second body connected by the joint.
type PhysicsJointLimit ¶ added in v0.17.0
type PhysicsJointLimit struct {
PhysicsJoint
}
PhysicsJointLimit is an idiomatic wrapper over the Objective-C class SKPhysicsJointLimit.
It embeds PhysicsJoint, promoting that type's methods.
A joint that imposes a maximum distance between two physics bodies, as if they were connected by a rope.
func JointWithBodyABodyBAnchorAAnchorB ¶ added in v0.17.0
func JointWithBodyABodyBAnchorAAnchorB(bodyA *PhysicsBody, bodyB *PhysicsBody, anchorA corefoundation.CGPoint, anchorB corefoundation.CGPoint) *PhysicsJointLimit
JointWithBodyABodyBAnchorAAnchorB creates a new limit joint.
func NewPhysicsJointLimit ¶ added in v0.17.0
func NewPhysicsJointLimit() *PhysicsJointLimit
NewPhysicsJointLimit creates a new PhysicsJointLimit.
func PhysicsJointLimitFromID ¶ added in v0.17.0
func PhysicsJointLimitFromID(id objc.ID) *PhysicsJointLimit
PhysicsJointLimitFromID adopts an existing Objective-C object as a PhysicsJointLimit (nil for 0), retaining it and registering a release finalizer.
func (*PhysicsJointLimit) MaxLength ¶ added in v0.17.0
func (pjl *PhysicsJointLimit) MaxLength() float64
MaxLength returns the max length.
func (*PhysicsJointLimit) WithBodyA ¶ added in v0.17.0
func (pjl *PhysicsJointLimit) WithBodyA(bodyA *PhysicsBody) *PhysicsJointLimit
WithBodyA sets the first body connected by the joint.
func (*PhysicsJointLimit) WithBodyB ¶ added in v0.17.0
func (pjl *PhysicsJointLimit) WithBodyB(bodyB *PhysicsBody) *PhysicsJointLimit
WithBodyB sets the second body connected by the joint.
func (*PhysicsJointLimit) WithMaxLength ¶ added in v0.17.0
func (pjl *PhysicsJointLimit) WithMaxLength(maxLength float64) *PhysicsJointLimit
WithMaxLength sets the maximum distance allowed between the two physics bodies connected by the limit joint.
type PhysicsJointPin ¶ added in v0.17.0
type PhysicsJointPin struct {
PhysicsJoint
}
PhysicsJointPin is an idiomatic wrapper over the Objective-C class SKPhysicsJointPin.
It embeds PhysicsJoint, promoting that type's methods.
A joint that pins together two physics bodies, allowing independent rotation.
func NewPhysicsJointPin ¶ added in v0.17.0
func NewPhysicsJointPin() *PhysicsJointPin
NewPhysicsJointPin creates a new PhysicsJointPin.
func PhysicsJointPinFromID ¶ added in v0.17.0
func PhysicsJointPinFromID(id objc.ID) *PhysicsJointPin
PhysicsJointPinFromID adopts an existing Objective-C object as a PhysicsJointPin (nil for 0), retaining it and registering a release finalizer.
func SKPhysicsJointPinJointWithBodyABodyBAnchor ¶
func SKPhysicsJointPinJointWithBodyABodyBAnchor(bodyA *PhysicsBody, bodyB *PhysicsBody, anchor corefoundation.CGPoint) *PhysicsJointPin
SKPhysicsJointPinJointWithBodyABodyBAnchor creates a new pin joint.
func (*PhysicsJointPin) FrictionTorque ¶ added in v0.17.0
func (pjp *PhysicsJointPin) FrictionTorque() float64
FrictionTorque returns the friction torque.
func (*PhysicsJointPin) LowerAngleLimit ¶ added in v0.17.0
func (pjp *PhysicsJointPin) LowerAngleLimit() float64
LowerAngleLimit returns the lower angle limit.
func (*PhysicsJointPin) RotationSpeed ¶ added in v0.17.0
func (pjp *PhysicsJointPin) RotationSpeed() float64
RotationSpeed returns the rotation speed.
func (*PhysicsJointPin) ShouldEnableLimits ¶ added in v0.17.0
func (pjp *PhysicsJointPin) ShouldEnableLimits() bool
ShouldEnableLimits wraps the corresponding Objective-C method.
func (*PhysicsJointPin) UpperAngleLimit ¶ added in v0.17.0
func (pjp *PhysicsJointPin) UpperAngleLimit() float64
UpperAngleLimit returns the upper angle limit.
func (*PhysicsJointPin) WithBodyA ¶ added in v0.17.0
func (pjp *PhysicsJointPin) WithBodyA(bodyA *PhysicsBody) *PhysicsJointPin
WithBodyA sets the first body connected by the joint.
func (*PhysicsJointPin) WithBodyB ¶ added in v0.17.0
func (pjp *PhysicsJointPin) WithBodyB(bodyB *PhysicsBody) *PhysicsJointPin
WithBodyB sets the second body connected by the joint.
func (*PhysicsJointPin) WithFrictionTorque ¶ added in v0.17.0
func (pjp *PhysicsJointPin) WithFrictionTorque(frictionTorque float64) *PhysicsJointPin
WithFrictionTorque sets the resistance applied by the pin joint to spinning around the anchor point.
func (*PhysicsJointPin) WithLowerAngleLimit ¶ added in v0.17.0
func (pjp *PhysicsJointPin) WithLowerAngleLimit(lowerAngleLimit float64) *PhysicsJointPin
WithLowerAngleLimit sets the smallest angle allowed for the pin joint, in radians.
func (*PhysicsJointPin) WithRotationSpeed ¶ added in v0.17.0
func (pjp *PhysicsJointPin) WithRotationSpeed(rotationSpeed float64) *PhysicsJointPin
WithRotationSpeed sets the speed, in radians per second, at which the physics bodies are driven around the pin joint.
func (*PhysicsJointPin) WithShouldEnableLimits ¶ added in v0.17.0
func (pjp *PhysicsJointPin) WithShouldEnableLimits(shouldEnableLimits bool) *PhysicsJointPin
WithShouldEnableLimits sets a Boolean value that indicates whether the pin joint’s rotation is limited to a specific range of values.
func (*PhysicsJointPin) WithUpperAngleLimit ¶ added in v0.17.0
func (pjp *PhysicsJointPin) WithUpperAngleLimit(upperAngleLimit float64) *PhysicsJointPin
WithUpperAngleLimit sets the largest angle allowed for the pin joint, in radians.
type PhysicsJointProvider ¶ added in v0.17.0
PhysicsJointProvider is accepted wherever a SKPhysicsJoint (or one of its subclasses) is expected.
type PhysicsJointSliding ¶ added in v0.17.0
type PhysicsJointSliding struct {
PhysicsJoint
}
PhysicsJointSliding is an idiomatic wrapper over the Objective-C class SKPhysicsJointSliding.
It embeds PhysicsJoint, promoting that type's methods.
A joint that allows two physics bodies to slide along an axis.
func JointWithBodyABodyBAnchorAxis ¶ added in v0.17.0
func JointWithBodyABodyBAnchorAxis(bodyA *PhysicsBody, bodyB *PhysicsBody, anchor corefoundation.CGPoint, axis corefoundation.CGVector) *PhysicsJointSliding
JointWithBodyABodyBAnchorAxis creates a new sliding joint.
func NewPhysicsJointSliding ¶ added in v0.17.0
func NewPhysicsJointSliding() *PhysicsJointSliding
NewPhysicsJointSliding creates a new PhysicsJointSliding.
func PhysicsJointSlidingFromID ¶ added in v0.17.0
func PhysicsJointSlidingFromID(id objc.ID) *PhysicsJointSliding
PhysicsJointSlidingFromID adopts an existing Objective-C object as a PhysicsJointSliding (nil for 0), retaining it and registering a release finalizer.
func (*PhysicsJointSliding) LowerDistanceLimit ¶ added in v0.17.0
func (pjs *PhysicsJointSliding) LowerDistanceLimit() float64
LowerDistanceLimit returns the lower distance limit.
func (*PhysicsJointSliding) ShouldEnableLimits ¶ added in v0.17.0
func (pjs *PhysicsJointSliding) ShouldEnableLimits() bool
ShouldEnableLimits wraps the corresponding Objective-C method.
func (*PhysicsJointSliding) UpperDistanceLimit ¶ added in v0.17.0
func (pjs *PhysicsJointSliding) UpperDistanceLimit() float64
UpperDistanceLimit returns the upper distance limit.
func (*PhysicsJointSliding) WithBodyA ¶ added in v0.17.0
func (pjs *PhysicsJointSliding) WithBodyA(bodyA *PhysicsBody) *PhysicsJointSliding
WithBodyA sets the first body connected by the joint.
func (*PhysicsJointSliding) WithBodyB ¶ added in v0.17.0
func (pjs *PhysicsJointSliding) WithBodyB(bodyB *PhysicsBody) *PhysicsJointSliding
WithBodyB sets the second body connected by the joint.
func (*PhysicsJointSliding) WithLowerDistanceLimit ¶ added in v0.17.0
func (pjs *PhysicsJointSliding) WithLowerDistanceLimit(lowerDistanceLimit float64) *PhysicsJointSliding
WithLowerDistanceLimit sets the smallest distance allowed for the sliding joint.
func (*PhysicsJointSliding) WithShouldEnableLimits ¶ added in v0.17.0
func (pjs *PhysicsJointSliding) WithShouldEnableLimits(shouldEnableLimits bool) *PhysicsJointSliding
WithShouldEnableLimits sets a Boolean value that indicates whether the sliding joint is restricted so that the objects may only slide a finite distance from the initial anchor point.
func (*PhysicsJointSliding) WithUpperDistanceLimit ¶ added in v0.17.0
func (pjs *PhysicsJointSliding) WithUpperDistanceLimit(upperDistanceLimit float64) *PhysicsJointSliding
WithUpperDistanceLimit sets the largest distance allowed for the sliding joint.
type PhysicsJointSpring ¶ added in v0.17.0
type PhysicsJointSpring struct {
PhysicsJoint
}
PhysicsJointSpring is an idiomatic wrapper over the Objective-C class SKPhysicsJointSpring.
It embeds PhysicsJoint, promoting that type's methods.
A joint that simulates a spring connecting two physics bodies.
func NewPhysicsJointSpring ¶ added in v0.17.0
func NewPhysicsJointSpring() *PhysicsJointSpring
NewPhysicsJointSpring creates a new PhysicsJointSpring.
func PhysicsJointSpringFromID ¶ added in v0.17.0
func PhysicsJointSpringFromID(id objc.ID) *PhysicsJointSpring
PhysicsJointSpringFromID adopts an existing Objective-C object as a PhysicsJointSpring (nil for 0), retaining it and registering a release finalizer.
func SKPhysicsJointSpringJointWithBodyABodyBAnchorAAnchorB ¶
func SKPhysicsJointSpringJointWithBodyABodyBAnchorAAnchorB(bodyA *PhysicsBody, bodyB *PhysicsBody, anchorA corefoundation.CGPoint, anchorB corefoundation.CGPoint) *PhysicsJointSpring
SKPhysicsJointSpringJointWithBodyABodyBAnchorAAnchorB creates a new spring joint.
func (*PhysicsJointSpring) Damping ¶ added in v0.17.0
func (pjs *PhysicsJointSpring) Damping() float64
Damping returns the damping.
func (*PhysicsJointSpring) Frequency ¶ added in v0.17.0
func (pjs *PhysicsJointSpring) Frequency() float64
Frequency returns the frequency.
func (*PhysicsJointSpring) WithBodyA ¶ added in v0.17.0
func (pjs *PhysicsJointSpring) WithBodyA(bodyA *PhysicsBody) *PhysicsJointSpring
WithBodyA sets the first body connected by the joint.
func (*PhysicsJointSpring) WithBodyB ¶ added in v0.17.0
func (pjs *PhysicsJointSpring) WithBodyB(bodyB *PhysicsBody) *PhysicsJointSpring
WithBodyB sets the second body connected by the joint.
func (*PhysicsJointSpring) WithDamping ¶ added in v0.17.0
func (pjs *PhysicsJointSpring) WithDamping(damping float64) *PhysicsJointSpring
WithDamping sets defines how the spring’s motion should be damped due to the forces of friction.
func (*PhysicsJointSpring) WithFrequency ¶ added in v0.17.0
func (pjs *PhysicsJointSpring) WithFrequency(frequency float64) *PhysicsJointSpring
WithFrequency sets defines the frequency or stiffness characteristics of the spring.
type PhysicsWorld ¶ added in v0.17.0
PhysicsWorld is an idiomatic wrapper over the Objective-C class SKPhysicsWorld.
The driver of the physics engine in a scene; it exposes the ability for you to configure and query the physics system.
func NewPhysicsWorld ¶ added in v0.17.0
func NewPhysicsWorld() *PhysicsWorld
NewPhysicsWorld creates a new PhysicsWorld.
func PhysicsWorldFromID ¶ added in v0.17.0
func PhysicsWorldFromID(id objc.ID) *PhysicsWorld
PhysicsWorldFromID adopts an existing Objective-C object as a PhysicsWorld (nil for 0), retaining it and registering a release finalizer.
func (*PhysicsWorld) AddJoint ¶ added in v0.17.0
func (pw *PhysicsWorld) AddJoint(joint *PhysicsJoint)
AddJoint adds a joint to the physics world.
func (*PhysicsWorld) BodyAlongRayStartEnd ¶ added in v0.17.0
func (pw *PhysicsWorld) BodyAlongRayStartEnd(start corefoundation.CGPoint, end corefoundation.CGPoint) *PhysicsBody
BodyAlongRayStartEnd searches for the first physics body that intersects a ray.
func (*PhysicsWorld) BodyAtPoint ¶ added in v0.17.0
func (pw *PhysicsWorld) BodyAtPoint(point corefoundation.CGPoint) *PhysicsBody
BodyAtPoint searches for the first physics body that contains a point.
func (*PhysicsWorld) BodyInRect ¶ added in v0.17.0
func (pw *PhysicsWorld) BodyInRect(rect corefoundation.CGRect) *PhysicsBody
BodyInRect searches for the first physics body that intersects the specified rectangle.
func (*PhysicsWorld) Description ¶ added in v0.17.0
func (pw *PhysicsWorld) Description() string
Description returns the object's -description text.
func (*PhysicsWorld) EnumerateBodiesAtPointUsing ¶ added in v0.17.0
func (pw *PhysicsWorld) EnumerateBodiesAtPointUsing(point corefoundation.CGPoint, block func(obj.Object, *bool))
EnumerateBodiesAtPointUsing enumerates all the physics bodies in the scene that contain a point.
func (*PhysicsWorld) EnumerateBodiesInRectUsing ¶ added in v0.17.0
func (pw *PhysicsWorld) EnumerateBodiesInRectUsing(rect corefoundation.CGRect, block func(obj.Object, *bool))
EnumerateBodiesInRectUsing enumerates all the physics bodies in the scene that intersect the specified rectangle.
func (*PhysicsWorld) Gravity ¶ added in v0.17.0
func (pw *PhysicsWorld) Gravity() corefoundation.CGVector
Gravity returns a global 2D vector specifying the field force acceleration due to gravity. The unit is meters per second so standard earth gravity would be { 0.0, +/-9.8 }.
func (*PhysicsWorld) IsEqual ¶ added in v0.17.0
func (pw *PhysicsWorld) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*PhysicsWorld) IsKind ¶ added in v0.17.0
func (pw *PhysicsWorld) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*PhysicsWorld) RemoveAllJoints ¶ added in v0.17.0
func (pw *PhysicsWorld) RemoveAllJoints()
RemoveAllJoints removes all joints from the physics world.
func (*PhysicsWorld) RemoveJoint ¶ added in v0.17.0
func (pw *PhysicsWorld) RemoveJoint(joint *PhysicsJoint)
RemoveJoint removes a specific joint from the physics world.
func (*PhysicsWorld) SampleFieldsAt ¶ added in v0.18.0
func (pw *PhysicsWorld) SampleFieldsAt(position unsafe.Pointer) unsafe.Pointer
SampleFieldsAt samples all of the field nodes in the scene and returns the summation of their forces at that point.
func (*PhysicsWorld) Speed ¶ added in v0.17.0
func (pw *PhysicsWorld) Speed() float64
Speed returns the speed.
func (*PhysicsWorld) String ¶ added in v0.17.0
func (pw *PhysicsWorld) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*PhysicsWorld) WithContactDelegate ¶ added in v0.17.0
func (pw *PhysicsWorld) WithContactDelegate(contactDelegate PhysicsContactDelegate) *PhysicsWorld
WithContactDelegate sets a delegate that is called when two physics bodies come in contact with each other.
func (*PhysicsWorld) WithGravity ¶ added in v0.17.0
func (pw *PhysicsWorld) WithGravity(gravity corefoundation.CGVector) *PhysicsWorld
WithGravity sets a vector that specifies the gravitational acceleration applied to physics bodies in the physics world.
func (*PhysicsWorld) WithSpeed ¶ added in v0.17.0
func (pw *PhysicsWorld) WithSpeed(speed float64) *PhysicsWorld
WithSpeed sets the rate at which the simulation executes.
type PtrauthKey ¶ added in v0.17.0
type PtrauthKey int32
const ( Ptrauth_key_none PtrauthKey = -1 Ptrauth_key_asia PtrauthKey = 0 Ptrauth_key_asib PtrauthKey = 1 Ptrauth_key_asda PtrauthKey = 2 Ptrauth_key_asdb PtrauthKey = 3 Ptrauth_key_process_independent_code PtrauthKey = 0 Ptrauth_key_process_dependent_code PtrauthKey = 1 Ptrauth_key_process_independent_data PtrauthKey = 2 Ptrauth_key_process_dependent_data PtrauthKey = 3 Ptrauth_key_return_address PtrauthKey = 1 Ptrauth_key_frame_pointer PtrauthKey = 3 Ptrauth_key_function_pointer PtrauthKey = 0 Ptrauth_key_block_function PtrauthKey = 0 Ptrauth_key_cxx_vtable_pointer PtrauthKey = 2 Ptrauth_key_method_list_pointer PtrauthKey = 2 Ptrauth_key_objc_isa_pointer PtrauthKey = 2 Ptrauth_key_objc_super_pointer PtrauthKey = 2 Ptrauth_key_objc_sel_pointer PtrauthKey = 3 Ptrauth_key_objc_class_ro_pointer PtrauthKey = 2 Ptrauth_key_block_descriptor_pointer PtrauthKey = 2 Ptrauth_key_init_fini_pointer PtrauthKey = 0 )
func (PtrauthKey) String ¶ added in v0.17.0
func (e PtrauthKey) String() string
String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.
type Range ¶ added in v0.17.0
Range is an idiomatic wrapper over the Objective-C class SKRange.
A definition of a range of floating-point values.
func NewRangeWithLowerLimitUpperLimit ¶ added in v0.17.0
NewRangeWithLowerLimitUpperLimit initializes a new range object.
func RangeFromID ¶ added in v0.17.0
RangeFromID adopts an existing Objective-C object as a Range (nil for 0), retaining it and registering a release finalizer.
func RangeWithConstantValue ¶ added in v0.17.0
RangeWithConstantValue creates and initializes a new range object that specifies a constant value.
func RangeWithLowerLimit ¶ added in v0.17.0
RangeWithLowerLimit creates and initializes a new range object that specifies only a minimum value.
func RangeWithLowerLimitUpperLimit ¶ added in v0.17.0
RangeWithLowerLimitUpperLimit creates and initializes a new range object.
func RangeWithNoLimits ¶ added in v0.17.0
func RangeWithNoLimits() *Range
RangeWithNoLimits creates and initializes a new range object that encompasses all possible values.
func RangeWithUpperLimit ¶ added in v0.17.0
RangeWithUpperLimit creates and initializes a new range object that specifies only a maximum value.
func RangeWithValueVariance ¶ added in v0.17.0
RangeWithValueVariance creates and initializes a new range object using a value and a maximum distance from that value.
func (*Range) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Range) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Range) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Range) LowerLimit ¶ added in v0.17.0
LowerLimit returns the lower limit.
func (*Range) String ¶ added in v0.17.0
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*Range) UpperLimit ¶ added in v0.17.0
UpperLimit returns the upper limit.
func (*Range) WithLowerLimit ¶ added in v0.17.0
WithLowerLimit sets the minimum possible value.
func (*Range) WithUpperLimit ¶ added in v0.17.0
WithUpperLimit sets the maximum possible value.
type ReachConstraints ¶ added in v0.17.0
ReachConstraints is an idiomatic wrapper over the Objective-C class SKReachConstraints.
A specification of the degree of freedom when solving inverse kinematics.
func NewReachConstraintsWithLowerAngleLimitUpperAngleLimit ¶ added in v0.17.0
func NewReachConstraintsWithLowerAngleLimitUpperAngleLimit(lowerAngleLimit float64, upperAngleLimit float64) *ReachConstraints
NewReachConstraintsWithLowerAngleLimitUpperAngleLimit initializes a new reach constraint object.
func ReachConstraintsFromID ¶ added in v0.17.0
func ReachConstraintsFromID(id objc.ID) *ReachConstraints
ReachConstraintsFromID adopts an existing Objective-C object as a ReachConstraints (nil for 0), retaining it and registering a release finalizer.
func (*ReachConstraints) Description ¶ added in v0.17.0
func (rc *ReachConstraints) Description() string
Description returns the object's -description text.
func (*ReachConstraints) IsEqual ¶ added in v0.17.0
func (rc *ReachConstraints) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*ReachConstraints) IsKind ¶ added in v0.17.0
func (rc *ReachConstraints) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*ReachConstraints) LowerAngleLimit ¶ added in v0.17.0
func (rc *ReachConstraints) LowerAngleLimit() float64
LowerAngleLimit returns lower angle limit in radians
func (*ReachConstraints) String ¶ added in v0.17.0
func (rc *ReachConstraints) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*ReachConstraints) UpperAngleLimit ¶ added in v0.17.0
func (rc *ReachConstraints) UpperAngleLimit() float64
UpperAngleLimit returns upper angle limit in radians
func (*ReachConstraints) WithLowerAngleLimit ¶ added in v0.17.0
func (rc *ReachConstraints) WithLowerAngleLimit(lowerAngleLimit float64) *ReachConstraints
WithLowerAngleLimit sets the minimum angle that the node can have after it is rotated by a reach event.
func (*ReachConstraints) WithUpperAngleLimit ¶ added in v0.17.0
func (rc *ReachConstraints) WithUpperAngleLimit(upperAngleLimit float64) *ReachConstraints
WithUpperAngleLimit sets the maximum angle that the node can have after it is rotated by a reach event.
type ReferenceNode ¶ added in v0.17.0
type ReferenceNode struct {
Node
}
ReferenceNode is an idiomatic wrapper over the Objective-C class SKReferenceNode.
It embeds Node, promoting that type's methods.
A node that’s defined in an archived .sks file.
func NewReferenceNodeWithCoder ¶ added in v0.17.0
func NewReferenceNodeWithCoder(aDecoder obj.Object) *ReferenceNode
NewReferenceNodeWithCoder a method that initializes a reference node from an archive.
func NewReferenceNodeWithFileNamed ¶ added in v0.17.0
func NewReferenceNodeWithFileNamed(fileName string) *ReferenceNode
NewReferenceNodeWithFileNamed initializes a reference node from a file in the app’s main bundle.
func NewReferenceNodeWithURL ¶ added in v0.17.0
func NewReferenceNodeWithURL(url string) *ReferenceNode
NewReferenceNodeWithURL initializes a reference node from a URL.
func ReferenceNodeFromID ¶ added in v0.17.0
func ReferenceNodeFromID(id objc.ID) *ReferenceNode
ReferenceNodeFromID adopts an existing Objective-C object as a ReferenceNode (nil for 0), retaining it and registering a release finalizer.
func ReferenceNodeWithFileNamed ¶ added in v0.17.0
func ReferenceNodeWithFileNamed(fileName string) *ReferenceNode
ReferenceNodeWithFileNamed creates a reference node from a file in the app’s main bundle.
func ReferenceNodeWithURL ¶ added in v0.17.0
func ReferenceNodeWithURL(referenceURL string) *ReferenceNode
ReferenceNodeWithURL creates a reference node from a URL.
func (*ReferenceNode) DidLoadReferenceNode ¶ added in v0.17.0
func (rn *ReferenceNode) DidLoadReferenceNode(node *Node)
DidLoadReferenceNode a method called by SpriteKit after the reference node’s contents are loaded.
func (*ReferenceNode) ResolveReferenceNode ¶ added in v0.17.0
func (rn *ReferenceNode) ResolveReferenceNode()
ResolveReferenceNode loads the reference node’s content and adds it as a new child node.
func (*ReferenceNode) WithAccessibilityElement ¶ added in v0.17.0
func (rn *ReferenceNode) WithAccessibilityElement(accessibilityElement bool) *ReferenceNode
WithAccessibilityElement sets a toggle you implement to indicate to the system whether this user interface element should be exposed to the user.
func (*ReferenceNode) WithAccessibilityEnabled ¶ added in v0.17.0
func (rn *ReferenceNode) WithAccessibilityEnabled(accessibilityEnabled bool) *ReferenceNode
WithAccessibilityEnabled sets a toggle you implement to indicate to the system whether this user interface element should respond to user input.
func (*ReferenceNode) WithAccessibilityFrame ¶ added in v0.17.0
func (rn *ReferenceNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *ReferenceNode
WithAccessibilityFrame sets the size of this user interface element, in screen points.
func (*ReferenceNode) WithAccessibilityHelp ¶ added in v0.17.0
func (rn *ReferenceNode) WithAccessibilityHelp(accessibilityHelp string) *ReferenceNode
WithAccessibilityHelp sets the help description of this user interface element; for example, the text shown in a tooltip.
func (*ReferenceNode) WithAccessibilityLabel ¶ added in v0.17.0
func (rn *ReferenceNode) WithAccessibilityLabel(accessibilityLabel string) *ReferenceNode
WithAccessibilityLabel sets a short description of this user interface element.
func (*ReferenceNode) WithAccessibilityParent ¶ added in v0.17.0
func (rn *ReferenceNode) WithAccessibilityParent(accessibilityParent obj.Object) *ReferenceNode
WithAccessibilityParent sets the user interface element that contains this element.
func (*ReferenceNode) WithAccessibilityRole ¶ added in v0.17.0
func (rn *ReferenceNode) WithAccessibilityRole(accessibilityRole string) *ReferenceNode
WithAccessibilityRole sets a string value describing the user interface element type; for example, a button.
func (*ReferenceNode) WithAccessibilityRoleDescription ¶ added in v0.17.0
func (rn *ReferenceNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *ReferenceNode
WithAccessibilityRoleDescription sets a string value describing the user interface element name and type; for example, the Buy button.
func (*ReferenceNode) WithAccessibilitySubrole ¶ added in v0.17.0
func (rn *ReferenceNode) WithAccessibilitySubrole(accessibilitySubrole string) *ReferenceNode
WithAccessibilitySubrole sets a string that defines this user interface element’s subrole; for example, a full-screen button.
func (*ReferenceNode) WithAlpha ¶ added in v0.17.0
func (rn *ReferenceNode) WithAlpha(alpha float64) *ReferenceNode
WithAlpha sets the transparency value applied to the node’s contents.
func (*ReferenceNode) WithAttributeValues ¶ added in v0.17.0
func (rn *ReferenceNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *ReferenceNode
WithAttributeValues sets the values of each attribute associated with the node’s attached shader.
func (*ReferenceNode) WithConstraints ¶ added in v0.17.0
func (rn *ReferenceNode) WithConstraints(items ...*Constraint) *ReferenceNode
WithConstraints sets a list of constraints to apply to the node.
func (*ReferenceNode) WithHidden ¶ added in v0.17.0
func (rn *ReferenceNode) WithHidden(hidden bool) *ReferenceNode
WithHidden sets a Boolean value that determines whether a node and its descendants are rendered.
func (*ReferenceNode) WithName ¶ added in v0.17.0
func (rn *ReferenceNode) WithName(name string) *ReferenceNode
WithName sets the node’s assignable name.
func (*ReferenceNode) WithPaused ¶ added in v0.17.0
func (rn *ReferenceNode) WithPaused(paused bool) *ReferenceNode
WithPaused sets a Boolean value that determines whether actions on the node and its descendants are processed.
func (*ReferenceNode) WithPhysicsBody ¶ added in v0.17.0
func (rn *ReferenceNode) WithPhysicsBody(physicsBody *PhysicsBody) *ReferenceNode
WithPhysicsBody sets the physics body associated with the node.
func (*ReferenceNode) WithPosition ¶ added in v0.17.0
func (rn *ReferenceNode) WithPosition(position corefoundation.CGPoint) *ReferenceNode
WithPosition sets the position of the node in its parent’s coordinate system.
func (*ReferenceNode) WithReachConstraints ¶ added in v0.17.0
func (rn *ReferenceNode) WithReachConstraints(reachConstraints *ReachConstraints) *ReferenceNode
WithReachConstraints sets the reach constraints to apply to the node when executing a reach action.
func (*ReferenceNode) WithSpeed ¶ added in v0.17.0
func (rn *ReferenceNode) WithSpeed(speed float64) *ReferenceNode
WithSpeed sets a speed modifier applied to all actions executed by a node and its descendants.
func (*ReferenceNode) WithUserData ¶ added in v0.17.0
func (rn *ReferenceNode) WithUserData(userData obj.Object) *ReferenceNode
WithUserData sets a dictionary containing arbitrary data.
func (*ReferenceNode) WithUserInteractionEnabled ¶ added in v0.17.0
func (rn *ReferenceNode) WithUserInteractionEnabled(userInteractionEnabled bool) *ReferenceNode
WithUserInteractionEnabled sets a Boolean value that indicates whether the node receives touch events.
func (*ReferenceNode) WithXScale ¶ added in v0.17.0
func (rn *ReferenceNode) WithXScale(xScale float64) *ReferenceNode
WithXScale sets a scaling factor that multiplies the width of a node and its children.
func (*ReferenceNode) WithYScale ¶ added in v0.17.0
func (rn *ReferenceNode) WithYScale(yScale float64) *ReferenceNode
WithYScale sets a scaling factor that multiplies the height of a node and its children.
func (*ReferenceNode) WithZPosition ¶ added in v0.17.0
func (rn *ReferenceNode) WithZPosition(zPosition float64) *ReferenceNode
WithZPosition sets the height of the node relative to its parent.
func (*ReferenceNode) WithZRotation ¶ added in v0.17.0
func (rn *ReferenceNode) WithZRotation(zRotation float64) *ReferenceNode
WithZRotation sets the Euler rotation about the z axis (in radians).
type Region ¶ added in v0.17.0
Region is an idiomatic wrapper over the Objective-C class SKRegion.
The definition of an arbitrary area.
func InfiniteRegion ¶ added in v0.17.0
func InfiniteRegion() *Region
InfiniteRegion returns a region that defines a region that includes all points.
func NewRegionWithPath ¶ added in v0.17.0
func NewRegionWithPath(path coregraphics.CGPathRef) *Region
NewRegionWithPath initializes a new region using a Core Graphics path.
func NewRegionWithRadius ¶ added in v0.17.0
NewRegionWithRadius initializes a new region with a circular area.
func NewRegionWithSize ¶ added in v0.17.0
func NewRegionWithSize(size corefoundation.CGSize) *Region
NewRegionWithSize initializes a new region with a rectangular area.
func RegionFromID ¶ added in v0.17.0
RegionFromID adopts an existing Objective-C object as a Region (nil for 0), retaining it and registering a release finalizer.
func (*Region) ContainsPoint ¶ added in v0.17.0
func (r *Region) ContainsPoint(point corefoundation.CGPoint) bool
ContainsPoint returns a Boolean value that indicates whether a particular point is contained in the region.
func (*Region) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Region) InverseRegion ¶ added in v0.17.0
InverseRegion returns a new region that is the mathematical inverse of an existing region.
func (*Region) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Region) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Region) Path ¶ added in v0.17.0
func (r *Region) Path() coregraphics.CGPathRef
Path returns the path.
func (*Region) RegionByDifferenceFromRegion ¶ added in v0.17.0
RegionByDifferenceFromRegion returns a new region created by subtracting the contents of another region from this region.
func (*Region) RegionByIntersection ¶ added in v0.17.0
RegionByIntersection returns a new region created by intersecting the contents of this region with another region.
func (*Region) RegionByUnion ¶ added in v0.17.0
RegionByUnion returns a new region created by combining the contents of this region with another region.
type Renderer ¶ added in v0.17.0
Renderer is an idiomatic wrapper over the Objective-C class SKRenderer.
An object that renders a scene into a custom Metal rendering pipeline and drives the scene update cycle.
func NewRenderer ¶ added in v0.17.0
func NewRenderer() *Renderer
NewRenderer creates a new Renderer.
func RendererFromID ¶ added in v0.17.0
RendererFromID adopts an existing Objective-C object as a Renderer (nil for 0), retaining it and registering a release finalizer.
func (*Renderer) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Renderer) IgnoresSiblingOrder ¶ added in v0.17.0
IgnoresSiblingOrder reports whether ignores sibling and traversal order to sort the rendered contents of a scene into the most efficient batching possible. This will require zPosition to be used in the scenes to properly guarantee elements are in front or behind each other. This defaults to false, meaning that sibling order overrides efficiency heuristics in the rendering of the scenes in the view. Setting this to true for a complex scene may substantially increase performance, but care must be taken as only zPosition determines render order before the efficiency heuristics are used.
func (*Renderer) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Renderer) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Renderer) Scene ¶ added in v0.17.0
Scene returns the currently presented scene, otherwise nil. If in a transition, the 'incoming' scene is returned.
func (*Renderer) ShouldCullNonVisibleNodes ¶ added in v0.17.0
ShouldCullNonVisibleNodes reports whether a boolean that indicated whether non-visible nodes should be automatically culled when rendering.
func (*Renderer) ShowsDrawCount ¶ added in v0.17.0
ShowsDrawCount reports whether toggles display of performance stats when rendering. All default to false.
func (*Renderer) ShowsFields ¶ added in v0.17.0
ShowsFields wraps the corresponding Objective-C method.
func (*Renderer) ShowsNodeCount ¶ added in v0.17.0
ShowsNodeCount wraps the corresponding Objective-C method.
func (*Renderer) ShowsPhysics ¶ added in v0.17.0
ShowsPhysics wraps the corresponding Objective-C method.
func (*Renderer) ShowsQuadCount ¶ added in v0.17.0
ShowsQuadCount wraps the corresponding Objective-C method.
func (*Renderer) String ¶ added in v0.17.0
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*Renderer) UpdateAtTime ¶ added in v0.17.0
UpdateAtTime update the scene at the specified system time.
func (*Renderer) WithIgnoresSiblingOrder ¶ added in v0.17.0
WithIgnoresSiblingOrder sets ignores sibling and traversal order to sort the rendered contents of a scene into the most efficient batching possible. This will require zPosition to be used in the scenes to properly guarantee elements are in front or behind each other. This defaults to NO, meaning that sibling order overrides efficiency heuristics in the rendering of the scenes in the view. Setting this to YES for a complex scene may substantially increase performance, but care must be taken as only zPosition determines render order before the efficiency heuristics are used.
func (*Renderer) WithScene ¶ added in v0.17.0
WithScene sets the scene this renderer will draw into the Metal command buffer.
func (*Renderer) WithShouldCullNonVisibleNodes ¶ added in v0.17.0
WithShouldCullNonVisibleNodes sets a boolean that indicated whether non-visible nodes should be automatically culled when rendering.
func (*Renderer) WithShowsDrawCount ¶ added in v0.17.0
WithShowsDrawCount sets a Boolean value that indicates whether the view displays the number of drawing passes it needed to render the view.
func (*Renderer) WithShowsFields ¶ added in v0.17.0
WithShowsFields sets a Boolean value that indicates whether the view displays information about physics fields in the scene.
func (*Renderer) WithShowsNodeCount ¶ added in v0.17.0
WithShowsNodeCount sets a Boolean value that indicates whether the view displays an overlay that shows physics bodies that are visible in the scene.
func (*Renderer) WithShowsPhysics ¶ added in v0.17.0
WithShowsPhysics sets a Boolean value that indicates whether the view displays physics-related debugging information.
func (*Renderer) WithShowsQuadCount ¶ added in v0.17.0
WithShowsQuadCount sets a Boolean value that indicates whether the view displays the number of rectangles used to render the scene.
type RepeatMode ¶ added in v0.17.0
type RepeatMode int64
The modes used to determine how the sequence repeats.
const ( // When a sample is calculated, the time value is clamped to the range of time values found in the sequence. For example, if the last keyframe’s time value is 0.5, a sample at any time value from 0.5 to 1.0 returns the last keyframe’s value. RepeatModeClamp RepeatMode = 1 // When a sample is calculated, the sequence loops back to the beginning of the sequence. For example, if the last keyframe’s time value is 0.5, then a sample at any time value from 0.5 to 1.0 returns the same value as the sequence did from 0.0 to 0.5. RepeatModeLoop RepeatMode = 2 )
func (RepeatMode) String ¶ added in v0.17.0
func (e RepeatMode) String() string
String returns the RepeatMode constant's name, or its numeric form when the value is not a known constant.
type SK3DNode ¶
type SK3DNode struct {
Node
}
SK3DNode is an idiomatic wrapper over the Objective-C class SK3DNode.
It embeds Node, promoting that type's methods.
3D SceneKit content drawn as a flattened sprite.
func NewSK3DNodeWithCoder ¶ added in v0.17.0
NewSK3DNodeWithCoder tells you when to initialize a 3D node that has been unarchived.
func NewSK3DNodeWithViewportSize ¶ added in v0.17.0
func NewSK3DNodeWithViewportSize(viewportSize corefoundation.CGSize) *SK3DNode
NewSK3DNodeWithViewportSize initializes a new 3D node.
func NodeWithViewportSize ¶ added in v0.17.0
func NodeWithViewportSize(viewportSize corefoundation.CGSize) *SK3DNode
NodeWithViewportSize creates and initializes a new 3D node.
func SK3DNodeFromID ¶
SK3DNodeFromID adopts an existing Objective-C object as a SK3DNode (nil for 0), retaining it and registering a release finalizer.
func (*SK3DNode) AutoenablesDefaultLighting ¶
AutoenablesDefaultLighting reports whether the receiver should automatically light up scenes that have no light source. The default is false. When enabled, a diffuse light is automatically added and placed while rendering scenes that have no light or only ambient lights.
func (*SK3DNode) HitTestOptions ¶
func (sdn *SK3DNode) HitTestOptions(point corefoundation.CGPoint, options map[string]obj.Object) []obj.Object
HitTestOptions searches the Scene Kit scene for objects corresponding to a point in the rendered image.
func (*SK3DNode) Loops ¶
Loops reports whether the receiver restarts playback when it reaches the end of its content. Default: true. true when the receiver restarts playback when it finishes.
func (*SK3DNode) PointOfView ¶
PointOfView specifies the point of view used to render the scene. A point of view must have either a camera or a spot light attached.
func (*SK3DNode) ProjectPoint ¶
ProjectPoint projects a point from the 3D world coordinate system of the SceneKit scene to the 2D viewport coordinate system of the SpriteKit node.
func (*SK3DNode) UnprojectPoint ¶
UnprojectPoint unprojects a point from the SpriteKit node’s 2D viewport coordinate system to the 3D world coordinate system of the SceneKit scene.
func (*SK3DNode) ViewportSize ¶
func (sdn *SK3DNode) ViewportSize() corefoundation.CGSize
ViewportSize returns the viewport size that the 3D content will be rendered with
func (*SK3DNode) WithAccessibilityElement ¶ added in v0.17.0
WithAccessibilityElement sets a toggle you implement to indicate to the system whether this user interface element should be exposed to the user.
func (*SK3DNode) WithAccessibilityEnabled ¶ added in v0.17.0
WithAccessibilityEnabled sets a toggle you implement to indicate to the system whether this user interface element should respond to user input.
func (*SK3DNode) WithAccessibilityFrame ¶ added in v0.17.0
func (sdn *SK3DNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *SK3DNode
WithAccessibilityFrame sets the size of this user interface element, in screen points.
func (*SK3DNode) WithAccessibilityHelp ¶ added in v0.17.0
WithAccessibilityHelp sets the help description of this user interface element; for example, the text shown in a tooltip.
func (*SK3DNode) WithAccessibilityLabel ¶ added in v0.17.0
WithAccessibilityLabel sets a short description of this user interface element.
func (*SK3DNode) WithAccessibilityParent ¶ added in v0.17.0
WithAccessibilityParent sets the user interface element that contains this element.
func (*SK3DNode) WithAccessibilityRole ¶ added in v0.17.0
WithAccessibilityRole sets a string value describing the user interface element type; for example, a button.
func (*SK3DNode) WithAccessibilityRoleDescription ¶ added in v0.17.0
func (sdn *SK3DNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *SK3DNode
WithAccessibilityRoleDescription sets a string value describing the user interface element name and type; for example, the Buy button.
func (*SK3DNode) WithAccessibilitySubrole ¶ added in v0.17.0
WithAccessibilitySubrole sets a string that defines this user interface element’s subrole; for example, a full-screen button.
func (*SK3DNode) WithAlpha ¶ added in v0.17.0
WithAlpha sets the transparency value applied to the node’s contents.
func (*SK3DNode) WithAttributeValues ¶ added in v0.17.0
func (sdn *SK3DNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *SK3DNode
WithAttributeValues sets the values of each attribute associated with the node’s attached shader.
func (*SK3DNode) WithAutoenablesDefaultLighting ¶ added in v0.17.0
WithAutoenablesDefaultLighting sets a Boolean value that determines whether Scene Kit automatically adds lights to a scene.
func (*SK3DNode) WithConstraints ¶ added in v0.17.0
func (sdn *SK3DNode) WithConstraints(items ...*Constraint) *SK3DNode
WithConstraints sets a list of constraints to apply to the node.
func (*SK3DNode) WithHidden ¶ added in v0.17.0
WithHidden sets a Boolean value that determines whether a node and its descendants are rendered.
func (*SK3DNode) WithLoops ¶ added in v0.17.0
WithLoops sets a Boolean value that determines whether Scene Kit restarts the scene time after all animations in the scene have played.
func (*SK3DNode) WithPaused ¶ added in v0.17.0
WithPaused sets a Boolean value that determines whether actions on the node and its descendants are processed.
func (*SK3DNode) WithPhysicsBody ¶ added in v0.17.0
func (sdn *SK3DNode) WithPhysicsBody(physicsBody *PhysicsBody) *SK3DNode
WithPhysicsBody sets the physics body associated with the node.
func (*SK3DNode) WithPlaying ¶ added in v0.17.0
WithPlaying sets a Boolean value that determines whether the scene is playing.
func (*SK3DNode) WithPointOfView ¶ added in v0.17.0
WithPointOfView sets the Scene Kit node from which the scene’s contents are viewed when rendered.
func (*SK3DNode) WithPosition ¶ added in v0.17.0
func (sdn *SK3DNode) WithPosition(position corefoundation.CGPoint) *SK3DNode
WithPosition sets the position of the node in its parent’s coordinate system.
func (*SK3DNode) WithReachConstraints ¶ added in v0.17.0
func (sdn *SK3DNode) WithReachConstraints(reachConstraints *ReachConstraints) *SK3DNode
WithReachConstraints sets the reach constraints to apply to the node when executing a reach action.
func (*SK3DNode) WithSceneTime ¶ added in v0.17.0
WithSceneTime sets the current scene time.
func (*SK3DNode) WithScnScene ¶ added in v0.17.0
WithScnScene sets the SceneKit scene to render.
func (*SK3DNode) WithSpeed ¶ added in v0.17.0
WithSpeed sets a speed modifier applied to all actions executed by a node and its descendants.
func (*SK3DNode) WithUserData ¶ added in v0.17.0
WithUserData sets a dictionary containing arbitrary data.
func (*SK3DNode) WithUserInteractionEnabled ¶ added in v0.17.0
WithUserInteractionEnabled sets a Boolean value that indicates whether the node receives touch events.
func (*SK3DNode) WithViewportSize ¶ added in v0.17.0
func (sdn *SK3DNode) WithViewportSize(viewportSize corefoundation.CGSize) *SK3DNode
WithViewportSize sets the size of the image rendered by the node.
func (*SK3DNode) WithXScale ¶ added in v0.17.0
WithXScale sets a scaling factor that multiplies the width of a node and its children.
func (*SK3DNode) WithYScale ¶ added in v0.17.0
WithYScale sets a scaling factor that multiplies the height of a node and its children.
func (*SK3DNode) WithZPosition ¶ added in v0.17.0
WithZPosition sets the height of the node relative to its parent.
func (*SK3DNode) WithZRotation ¶ added in v0.17.0
WithZRotation sets the Euler rotation about the z axis (in radians).
type Scene ¶ added in v0.17.0
type Scene struct {
EffectNode
}
Scene is an idiomatic wrapper over the Objective-C class SKScene.
It embeds EffectNode, promoting that type's methods.
An object that organizes all of the active SpriteKit content.
func NewSceneWithSize ¶ added in v0.17.0
func NewSceneWithSize(size corefoundation.CGSize) *Scene
NewSceneWithSize initializes a new scene object.
func SceneFromID ¶ added in v0.17.0
SceneFromID adopts an existing Objective-C object as a Scene (nil for 0), retaining it and registering a release finalizer.
func SceneWithSize ¶ added in v0.17.0
func SceneWithSize(size corefoundation.CGSize) *Scene
SceneWithSize creates and returns a new scene object.
func (*Scene) AnchorPoint ¶ added in v0.17.0
func (s *Scene) AnchorPoint() corefoundation.CGPoint
AnchorPoint returns used to choose the origin of the scene's coordinate system
func (*Scene) AudioEngine ¶ added in v0.17.0
AudioEngine returns the audio engine.
func (*Scene) BackgroundColor ¶ added in v0.17.0
BackgroundColor returns background color, defaults to gray
func (*Scene) Camera ¶ added in v0.17.0
func (s *Scene) Camera() *CameraNode
Camera returns the camera that is used to obtain the view scale and translation based on where the camera is in relation to the scene.
func (*Scene) ConvertPointFromView ¶ added in v0.17.0
func (s *Scene) ConvertPointFromView(point corefoundation.CGPoint) corefoundation.CGPoint
ConvertPointFromView converts a point from view coordinates to scene coordinates.
func (*Scene) ConvertPointToView ¶ added in v0.17.0
func (s *Scene) ConvertPointToView(point corefoundation.CGPoint) corefoundation.CGPoint
ConvertPointToView converts a point from scene coordinates to view coordinates.
func (*Scene) DidApplyConstraints ¶ added in v0.17.0
func (s *Scene) DidApplyConstraints()
DidApplyConstraints tells your app to peform any necessary logic after constraints are applied.
func (*Scene) DidChangeSize ¶ added in v0.17.0
func (s *Scene) DidChangeSize(oldSize corefoundation.CGSize)
DidChangeSize tells you when the scene’s size has changed.
func (*Scene) DidEvaluateActions ¶ added in v0.17.0
func (s *Scene) DidEvaluateActions()
DidEvaluateActions tells your app to peform any necessary logic after scene actions are evaluated.
func (*Scene) DidFinishUpdate ¶ added in v0.17.0
func (s *Scene) DidFinishUpdate()
DidFinishUpdate tells your app to peform any necessary logic after the scene has finished all of the steps required to process animations.
func (*Scene) DidMoveToView ¶ added in v0.17.0
DidMoveToView tells you when the scene is presented by a view.
func (*Scene) DidSimulatePhysics ¶ added in v0.17.0
func (s *Scene) DidSimulatePhysics()
DidSimulatePhysics tells your app to peform any necessary logic after physics simulations are performed.
func (*Scene) Listener ¶ added in v0.17.0
Listener returns the node that is currently the listener for positional audio coming from SKAudioNodes
func (*Scene) PhysicsWorld ¶ added in v0.17.0
func (s *Scene) PhysicsWorld() *PhysicsWorld
PhysicsWorld returns physics simulation functionality
func (*Scene) ScaleMode ¶ added in v0.17.0
func (s *Scene) ScaleMode() SceneScaleMode
ScaleMode returns used to determine how to scale the scene to match the SKView it is being displayed in.
func (*Scene) SceneDidLoad ¶ added in v0.17.0
func (s *Scene) SceneDidLoad()
SceneDidLoad tells you when the scene is presented.
func (*Scene) Size ¶ added in v0.17.0
func (s *Scene) Size() corefoundation.CGSize
Size returns the size.
func (*Scene) Update ¶ added in v0.17.0
Update tells your app to perform any app-specific logic to update your scene.
func (*Scene) View ¶ added in v0.17.0
View returns the SKView this scene is currently presented in, or nil if it is not being presented.
func (*Scene) WillMoveFromView ¶ added in v0.17.0
WillMoveFromView tells you when the scene is about to be removed from a view.
func (*Scene) WithAccessibilityElement ¶ added in v0.17.0
WithAccessibilityElement sets a toggle you implement to indicate to the system whether this user interface element should be exposed to the user.
func (*Scene) WithAccessibilityEnabled ¶ added in v0.17.0
WithAccessibilityEnabled sets a toggle you implement to indicate to the system whether this user interface element should respond to user input.
func (*Scene) WithAccessibilityFrame ¶ added in v0.17.0
func (s *Scene) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *Scene
WithAccessibilityFrame sets the size of this user interface element, in screen points.
func (*Scene) WithAccessibilityHelp ¶ added in v0.17.0
WithAccessibilityHelp sets the help description of this user interface element; for example, the text shown in a tooltip.
func (*Scene) WithAccessibilityLabel ¶ added in v0.17.0
WithAccessibilityLabel sets a short description of this user interface element.
func (*Scene) WithAccessibilityParent ¶ added in v0.17.0
WithAccessibilityParent sets the user interface element that contains this element.
func (*Scene) WithAccessibilityRole ¶ added in v0.17.0
WithAccessibilityRole sets a string value describing the user interface element type; for example, a button.
func (*Scene) WithAccessibilityRoleDescription ¶ added in v0.17.0
WithAccessibilityRoleDescription sets a string value describing the user interface element name and type; for example, the Buy button.
func (*Scene) WithAccessibilitySubrole ¶ added in v0.17.0
WithAccessibilitySubrole sets a string that defines this user interface element’s subrole; for example, a full-screen button.
func (*Scene) WithAlpha ¶ added in v0.17.0
WithAlpha sets the transparency value applied to the node’s contents.
func (*Scene) WithAnchorPoint ¶ added in v0.17.0
func (s *Scene) WithAnchorPoint(anchorPoint corefoundation.CGPoint) *Scene
WithAnchorPoint sets the point in the view’s frame that corresponds to the scene’s origin.
func (*Scene) WithAttributeValues ¶ added in v0.17.0
func (s *Scene) WithAttributeValues(attributeValues map[string]*AttributeValue) *Scene
WithAttributeValues sets the values of each attribute associated with the node’s attached shader.
func (*Scene) WithBackgroundColor ¶ added in v0.17.0
WithBackgroundColor sets the background color of the scene.
func (*Scene) WithBlendMode ¶ added in v0.17.0
WithBlendMode sets the blend mode used to draw the node’s contents into its parent’s framebuffer.
func (*Scene) WithCamera ¶ added in v0.17.0
func (s *Scene) WithCamera(camera *CameraNode) *Scene
WithCamera sets the camera node in the scene that determines what part of the scene’s coordinate space is visible in the view.
func (*Scene) WithConstraints ¶ added in v0.17.0
func (s *Scene) WithConstraints(items ...*Constraint) *Scene
WithConstraints sets a list of constraints to apply to the node.
func (*Scene) WithDelegate ¶ added in v0.17.0
func (s *Scene) WithDelegate(delegate SceneDelegate) *Scene
WithDelegate sets a delegate to be called during the animation loop.
func (*Scene) WithFilter ¶ added in v0.17.0
WithFilter sets the Core Image filter to apply.
func (*Scene) WithHidden ¶ added in v0.17.0
WithHidden sets a Boolean value that determines whether a node and its descendants are rendered.
func (*Scene) WithListener ¶ added in v0.17.0
func (s *Scene) WithListener(listener NodeProvider) *Scene
WithListener sets a node used to determine the position of the listener for positional audio in the scene.
func (*Scene) WithPaused ¶ added in v0.17.0
WithPaused sets a Boolean value that determines whether actions on the node and its descendants are processed.
func (*Scene) WithPhysicsBody ¶ added in v0.17.0
func (s *Scene) WithPhysicsBody(physicsBody *PhysicsBody) *Scene
WithPhysicsBody sets the physics body associated with the node.
func (*Scene) WithPosition ¶ added in v0.17.0
func (s *Scene) WithPosition(position corefoundation.CGPoint) *Scene
WithPosition sets the position of the node in its parent’s coordinate system.
func (*Scene) WithReachConstraints ¶ added in v0.17.0
func (s *Scene) WithReachConstraints(reachConstraints *ReachConstraints) *Scene
WithReachConstraints sets the reach constraints to apply to the node when executing a reach action.
func (*Scene) WithScaleMode ¶ added in v0.17.0
func (s *Scene) WithScaleMode(scaleMode SceneScaleMode) *Scene
WithScaleMode sets a setting that defines how the scene is mapped to the view that presents it.
func (*Scene) WithShader ¶ added in v0.17.0
WithShader sets a custom shader that is called when the effect node is blended into the parent’s framebuffer.
func (*Scene) WithShouldCenterFilter ¶ added in v0.17.0
WithShouldCenterFilter sets a Boolean value that determines whether the effect node automatically sets the filter’s image center.
func (*Scene) WithShouldEnableEffects ¶ added in v0.17.0
WithShouldEnableEffects sets a Boolean value that determines whether the effect node applies the filter to its children as they are drawn.
func (*Scene) WithShouldRasterize ¶ added in v0.17.0
WithShouldRasterize sets a Boolean value that indicates whether the results of rendering the child nodes should be cached.
func (*Scene) WithSize ¶ added in v0.17.0
func (s *Scene) WithSize(size corefoundation.CGSize) *Scene
WithSize sets the dimensions of the scene, in points.
func (*Scene) WithSpeed ¶ added in v0.17.0
WithSpeed sets a speed modifier applied to all actions executed by a node and its descendants.
func (*Scene) WithUserData ¶ added in v0.17.0
WithUserData sets a dictionary containing arbitrary data.
func (*Scene) WithUserInteractionEnabled ¶ added in v0.17.0
WithUserInteractionEnabled sets a Boolean value that indicates whether the node receives touch events.
func (*Scene) WithXScale ¶ added in v0.17.0
WithXScale sets a scaling factor that multiplies the width of a node and its children.
func (*Scene) WithYScale ¶ added in v0.17.0
WithYScale sets a scaling factor that multiplies the height of a node and its children.
func (*Scene) WithZPosition ¶ added in v0.17.0
WithZPosition sets the height of the node relative to its parent.
func (*Scene) WithZRotation ¶ added in v0.17.0
WithZRotation sets the Euler rotation about the z axis (in radians).
type SceneDelegate ¶ added in v0.17.0
type SceneDelegate interface {
}
SceneDelegate receives the callbacks of the Objective-C protocol SKSceneDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (SceneDelegate…Handler): implement the ones you need on the same value and the framework will call them too.
type SceneDelegateDidApplyConstraintsForSceneHandler ¶ added in v0.17.0
type SceneDelegateDidApplyConstraintsForSceneHandler interface {
DidApplyConstraintsForScene(scene *Scene)
}
SceneDelegateDidApplyConstraintsForSceneHandler is the optional SKSceneDelegate method didApplyConstraintsForScene:. Implement it on a SceneDelegate value to receive that callback; a value without it is simply never sent one.
type SceneDelegateDidEvaluateActionsForSceneHandler ¶ added in v0.17.0
type SceneDelegateDidEvaluateActionsForSceneHandler interface {
DidEvaluateActionsForScene(scene *Scene)
}
SceneDelegateDidEvaluateActionsForSceneHandler is the optional SKSceneDelegate method didEvaluateActionsForScene:. Implement it on a SceneDelegate value to receive that callback; a value without it is simply never sent one.
type SceneDelegateDidFinishUpdateForSceneHandler ¶ added in v0.17.0
type SceneDelegateDidFinishUpdateForSceneHandler interface {
DidFinishUpdateForScene(scene *Scene)
}
SceneDelegateDidFinishUpdateForSceneHandler is the optional SKSceneDelegate method didFinishUpdateForScene:. Implement it on a SceneDelegate value to receive that callback; a value without it is simply never sent one.
type SceneDelegateDidSimulatePhysicsForSceneHandler ¶ added in v0.17.0
type SceneDelegateDidSimulatePhysicsForSceneHandler interface {
DidSimulatePhysicsForScene(scene *Scene)
}
SceneDelegateDidSimulatePhysicsForSceneHandler is the optional SKSceneDelegate method didSimulatePhysicsForScene:. Implement it on a SceneDelegate value to receive that callback; a value without it is simply never sent one.
type SceneDelegateUpdateForSceneHandler ¶ added in v0.17.0
type SceneDelegateUpdateForSceneHandler interface {
UpdateForScene(currentTime float64, scene *Scene)
}
SceneDelegateUpdateForSceneHandler is the optional SKSceneDelegate method update:forScene:. Implement it on a SceneDelegate value to receive that callback; a value without it is simply never sent one.
type SceneScaleMode ¶ added in v0.17.0
type SceneScaleMode int64
The modes that determine how the scene’s area is mapped to the view that presents it.
const ( // Each axis of the scene is scaled independently so that each axis in the scene exactly maps to the length of that axis in the view. SceneScaleModeFill SceneScaleMode = 0 // The scaling factor of each dimension is calculated and the larger of the two is chosen. Each axis of the scene is scaled by the same scaling factor. This guarantees that the entire area of the view is filled but may cause parts of the scene to be cropped. SceneScaleModeAspectFill SceneScaleMode = 1 // The scaling factor of each dimension is calculated and the smaller of the two is chosen. Each axis of the scene is scaled by the same scaling factor. This guarantees that the entire scene is visible but may require letterboxing in the view. SceneScaleModeAspectFit SceneScaleMode = 2 // The scene is not scaled to match the view. Instead, the scene is automatically resized so that its dimensions always match those of the view. SceneScaleModeResizeFill SceneScaleMode = 3 )
func (SceneScaleMode) String ¶ added in v0.17.0
func (e SceneScaleMode) String() string
String returns the SceneScaleMode constant's name, or its numeric form when the value is not a known constant.
type Shader ¶ added in v0.17.0
Shader is an idiomatic wrapper over the Objective-C class SKShader.
An object that allows you to apply a custom fragment shader.
func NewShaderWithSource ¶ added in v0.17.0
NewShaderWithSource initializes a new shader object using the specified source code.
func NewShaderWithSourceUniforms ¶ added in v0.17.0
NewShaderWithSourceUniforms initializes a new shader object using the specified source and uniform data.
func SKShaderShader ¶
func SKShaderShader() *Shader
SKShaderShader creates a new empty shader object.
func ShaderFromID ¶ added in v0.17.0
ShaderFromID adopts an existing Objective-C object as a Shader (nil for 0), retaining it and registering a release finalizer.
func ShaderWithFileNamed ¶ added in v0.17.0
ShaderWithFileNamed creates a new shader object by loading the source for a fragment shader from a file stored in the app’s bundle.
func ShaderWithSource ¶ added in v0.17.0
ShaderWithSource creates a new shader object using the specified source code.
func ShaderWithSourceUniforms ¶ added in v0.17.0
ShaderWithSourceUniforms creates a new shader object using the specified source and uniform data.
func (*Shader) AddUniform ¶ added in v0.17.0
AddUniform adds a uniform to the shader.
func (*Shader) Attributes ¶ added in v0.17.0
Attributes returns the attributes.
Attributes returns the collection as a Go slice.
func (*Shader) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Shader) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Shader) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Shader) RemoveUniformNamed ¶ added in v0.17.0
RemoveUniformNamed removes a uniform from the shader.
func (*Shader) String ¶ added in v0.17.0
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*Shader) UniformNamed ¶ added in v0.17.0
UniformNamed returns the uniform object corresponding to a particular uniform variable.
func (*Shader) Uniforms ¶ added in v0.17.0
Uniforms returns you may define additional uniforms to be used in your shader here. There is no need to declare them in you source, just use them by name. All uniforms declared must be used within the source.
Uniforms returns the collection as a Go slice.
func (*Shader) WithAttributes ¶ added in v0.17.0
WithAttributes sets the list of attributes associated with the shader.
func (*Shader) WithSource ¶ added in v0.17.0
WithSource sets the source code for the shader.
func (*Shader) WithUniforms ¶ added in v0.17.0
WithUniforms sets the list of uniforms associated with the shader.
type ShapeNode ¶ added in v0.17.0
type ShapeNode struct {
Node
}
ShapeNode is an idiomatic wrapper over the Objective-C class SKShapeNode.
It embeds Node, promoting that type's methods.
A mathematical shape that can be stroked or filled.
func NewShapeNode ¶ added in v0.17.0
func NewShapeNode() *ShapeNode
NewShapeNode creates a new ShapeNode.
func ShapeNodeFromID ¶ added in v0.17.0
ShapeNodeFromID adopts an existing Objective-C object as a ShapeNode (nil for 0), retaining it and registering a release finalizer.
func ShapeNodeWithCircleOfRadius ¶ added in v0.17.0
ShapeNodeWithCircleOfRadius creates a shape node with a circular path centered on the node’s origin.
func ShapeNodeWithEllipseInRect ¶ added in v0.17.0
func ShapeNodeWithEllipseInRect(rect corefoundation.CGRect) *ShapeNode
ShapeNodeWithEllipseInRect creates a shape node with an elliptical path that fills the specified rectangle.
func ShapeNodeWithEllipseOfSize ¶ added in v0.17.0
func ShapeNodeWithEllipseOfSize(size corefoundation.CGSize) *ShapeNode
ShapeNodeWithEllipseOfSize creates a shape node with an elliptical path centered on the node’s origin.
func ShapeNodeWithPath ¶ added in v0.17.0
func ShapeNodeWithPath(path coregraphics.CGPathRef) *ShapeNode
ShapeNodeWithPath creates a shape node from a Core Graphics path.
func ShapeNodeWithPathCentered ¶ added in v0.17.0
func ShapeNodeWithPathCentered(path coregraphics.CGPathRef, centered bool) *ShapeNode
ShapeNodeWithPathCentered creates a shape node from a Core Graphics path, centered around its position.
func ShapeNodeWithPointsCount ¶ added in v0.18.0
func ShapeNodeWithPointsCount(points *corefoundation.CGPoint, numPoints int) *ShapeNode
ShapeNodeWithPointsCount creates a shape node from a series of points.
func ShapeNodeWithRect ¶ added in v0.17.0
func ShapeNodeWithRect(rect corefoundation.CGRect) *ShapeNode
ShapeNodeWithRect creates a shape node with a rectangular path.
func ShapeNodeWithRectCornerRadius ¶ added in v0.17.0
func ShapeNodeWithRectCornerRadius(rect corefoundation.CGRect, cornerRadius float64) *ShapeNode
ShapeNodeWithRectCornerRadius creates a shape with a rectangular path that has rounded corners.
func ShapeNodeWithRectOfSize ¶ added in v0.17.0
func ShapeNodeWithRectOfSize(size corefoundation.CGSize) *ShapeNode
ShapeNodeWithRectOfSize creates a shape node with a rectangular path centered on the node’s origin.
func ShapeNodeWithRectOfSizeCornerRadius ¶ added in v0.17.0
func ShapeNodeWithRectOfSizeCornerRadius(size corefoundation.CGSize, cornerRadius float64) *ShapeNode
ShapeNodeWithRectOfSizeCornerRadius creates a shape with a rectangular path that has rounded corners centered on the node’s position.
func ShapeNodeWithSplinePointsCount ¶ added in v0.18.0
func ShapeNodeWithSplinePointsCount(points *corefoundation.CGPoint, numPoints int) *ShapeNode
ShapeNodeWithSplinePointsCount creates a shape node from a series of spline points.
func (*ShapeNode) BlendMode ¶ added in v0.17.0
BlendMode sets the blend mode to use when composing the shape with the final framebuffer.
func (*ShapeNode) FillColor ¶ added in v0.17.0
FillColor returns the color to fill the path with. Defaults to [SKColor clearColor] (no fill).
func (*ShapeNode) FillShader ¶ added in v0.17.0
FillShader returns the fill shader.
func (*ShapeNode) FillTexture ¶ added in v0.17.0
FillTexture returns the fill texture.
func (*ShapeNode) GlowWidth ¶ added in v0.17.0
GlowWidth returns add a glow to the path stroke of the specified width. Defaults to 0.0 (no glow)
func (*ShapeNode) IsAntialiased ¶ added in v0.17.0
IsAntialiased reports whether if set to true, the path stroke edges and caps is smoothed (antialiased) when drawn.
func (*ShapeNode) LineLength ¶ added in v0.17.0
LineLength returns the length of the node's path if it were to be stroked
func (*ShapeNode) LineWidth ¶ added in v0.17.0
LineWidth returns the width used to stroke the path. Widths larger than 2.0 may result in artifacts. Defaults to 1.0.
func (*ShapeNode) MiterLimit ¶ added in v0.17.0
MiterLimit returns when a miter join is used, the maximum ratio of miter length to line with to be used
func (*ShapeNode) Path ¶ added in v0.17.0
func (sn *ShapeNode) Path() coregraphics.CGPathRef
Path returns the CGPath to be drawn (in the Node's coordinate space)
func (*ShapeNode) StrokeColor ¶ added in v0.17.0
StrokeColor returns the color to draw the path with. (for no stroke use [SKColor clearColor]). Defaults to [SKColor whiteColor].
func (*ShapeNode) StrokeShader ¶ added in v0.17.0
StrokeShader returns the stroke shader.
func (*ShapeNode) StrokeTexture ¶ added in v0.17.0
StrokeTexture returns the stroke texture.
func (*ShapeNode) WithAccessibilityElement ¶ added in v0.17.0
WithAccessibilityElement sets a toggle you implement to indicate to the system whether this user interface element should be exposed to the user.
func (*ShapeNode) WithAccessibilityEnabled ¶ added in v0.17.0
WithAccessibilityEnabled sets a toggle you implement to indicate to the system whether this user interface element should respond to user input.
func (*ShapeNode) WithAccessibilityFrame ¶ added in v0.17.0
func (sn *ShapeNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *ShapeNode
WithAccessibilityFrame sets the size of this user interface element, in screen points.
func (*ShapeNode) WithAccessibilityHelp ¶ added in v0.17.0
WithAccessibilityHelp sets the help description of this user interface element; for example, the text shown in a tooltip.
func (*ShapeNode) WithAccessibilityLabel ¶ added in v0.17.0
WithAccessibilityLabel sets a short description of this user interface element.
func (*ShapeNode) WithAccessibilityParent ¶ added in v0.17.0
WithAccessibilityParent sets the user interface element that contains this element.
func (*ShapeNode) WithAccessibilityRole ¶ added in v0.17.0
WithAccessibilityRole sets a string value describing the user interface element type; for example, a button.
func (*ShapeNode) WithAccessibilityRoleDescription ¶ added in v0.17.0
func (sn *ShapeNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *ShapeNode
WithAccessibilityRoleDescription sets a string value describing the user interface element name and type; for example, the Buy button.
func (*ShapeNode) WithAccessibilitySubrole ¶ added in v0.17.0
WithAccessibilitySubrole sets a string that defines this user interface element’s subrole; for example, a full-screen button.
func (*ShapeNode) WithAlpha ¶ added in v0.17.0
WithAlpha sets the transparency value applied to the node’s contents.
func (*ShapeNode) WithAntialiased ¶ added in v0.17.0
WithAntialiased sets a Boolean value that determines whether the stroked path is smoothed when drawn.
func (*ShapeNode) WithAttributeValues ¶ added in v0.17.0
func (sn *ShapeNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *ShapeNode
WithAttributeValues sets the values of each attribute associated with the node’s attached shader.
func (*ShapeNode) WithBlendMode ¶ added in v0.17.0
WithBlendMode sets the blend mode used to blend the shape into the parent’s framebuffer.
func (*ShapeNode) WithConstraints ¶ added in v0.17.0
func (sn *ShapeNode) WithConstraints(items ...*Constraint) *ShapeNode
WithConstraints sets a list of constraints to apply to the node.
func (*ShapeNode) WithFillColor ¶ added in v0.17.0
WithFillColor sets the color used to fill the shape.
func (*ShapeNode) WithFillShader ¶ added in v0.17.0
WithFillShader sets a custom shader used to determine the color of the filled portion of the shape node.
func (*ShapeNode) WithFillTexture ¶ added in v0.17.0
func (sn *ShapeNode) WithFillTexture(fillTexture TextureProvider) *ShapeNode
WithFillTexture sets the texture used to fill the shape.
func (*ShapeNode) WithGlowWidth ¶ added in v0.17.0
WithGlowWidth sets a glow that extends outward from the stroked line.
func (*ShapeNode) WithHidden ¶ added in v0.17.0
WithHidden sets a Boolean value that determines whether a node and its descendants are rendered.
func (*ShapeNode) WithLineWidth ¶ added in v0.17.0
WithLineWidth sets the width used to stroke the path.
func (*ShapeNode) WithMiterLimit ¶ added in v0.17.0
WithMiterLimit sets the miter limit to use when the line is stroked using a miter join style.
func (*ShapeNode) WithPath ¶ added in v0.17.0
func (sn *ShapeNode) WithPath(path coregraphics.CGPathRef) *ShapeNode
WithPath sets the path that defines the shape.
func (*ShapeNode) WithPaused ¶ added in v0.17.0
WithPaused sets a Boolean value that determines whether actions on the node and its descendants are processed.
func (*ShapeNode) WithPhysicsBody ¶ added in v0.17.0
func (sn *ShapeNode) WithPhysicsBody(physicsBody *PhysicsBody) *ShapeNode
WithPhysicsBody sets the physics body associated with the node.
func (*ShapeNode) WithPosition ¶ added in v0.17.0
func (sn *ShapeNode) WithPosition(position corefoundation.CGPoint) *ShapeNode
WithPosition sets the position of the node in its parent’s coordinate system.
func (*ShapeNode) WithReachConstraints ¶ added in v0.17.0
func (sn *ShapeNode) WithReachConstraints(reachConstraints *ReachConstraints) *ShapeNode
WithReachConstraints sets the reach constraints to apply to the node when executing a reach action.
func (*ShapeNode) WithSpeed ¶ added in v0.17.0
WithSpeed sets a speed modifier applied to all actions executed by a node and its descendants.
func (*ShapeNode) WithStrokeColor ¶ added in v0.17.0
WithStrokeColor sets the color used to stroke the shape.
func (*ShapeNode) WithStrokeShader ¶ added in v0.17.0
WithStrokeShader sets a custom shader used to determine the color of the stroked portion of the shape node.
func (*ShapeNode) WithStrokeTexture ¶ added in v0.17.0
func (sn *ShapeNode) WithStrokeTexture(strokeTexture TextureProvider) *ShapeNode
WithStrokeTexture sets the texture used to stroke the shape.
func (*ShapeNode) WithUserData ¶ added in v0.17.0
WithUserData sets a dictionary containing arbitrary data.
func (*ShapeNode) WithUserInteractionEnabled ¶ added in v0.17.0
WithUserInteractionEnabled sets a Boolean value that indicates whether the node receives touch events.
func (*ShapeNode) WithXScale ¶ added in v0.17.0
WithXScale sets a scaling factor that multiplies the width of a node and its children.
func (*ShapeNode) WithYScale ¶ added in v0.17.0
WithYScale sets a scaling factor that multiplies the height of a node and its children.
func (*ShapeNode) WithZPosition ¶ added in v0.17.0
WithZPosition sets the height of the node relative to its parent.
func (*ShapeNode) WithZRotation ¶ added in v0.17.0
WithZRotation sets the Euler rotation about the z axis (in radians).
type SpriteNode ¶ added in v0.17.0
type SpriteNode struct {
Node
}
SpriteNode is an idiomatic wrapper over the Objective-C class SKSpriteNode.
It embeds Node, promoting that type's methods.
An image or solid color.
func NewSpriteNodeWithCoder ¶ added in v0.17.0
func NewSpriteNodeWithCoder(aDecoder obj.Object) *SpriteNode
NewSpriteNodeWithCoder tells you when to initialize a sprite from an archive.
func NewSpriteNodeWithColorSize ¶ added in v0.17.0
func NewSpriteNodeWithColorSize(color obj.Object, size corefoundation.CGSize) *SpriteNode
NewSpriteNodeWithColorSize initializes a single-color sprite node.
func NewSpriteNodeWithImageNamed ¶ added in v0.17.0
func NewSpriteNodeWithImageNamed(name string) *SpriteNode
NewSpriteNodeWithImageNamed initializes a textured sprite using an image file.
func NewSpriteNodeWithTexture ¶ added in v0.17.0
func NewSpriteNodeWithTexture(texture *Texture) *SpriteNode
NewSpriteNodeWithTexture initializes a textured sprite using an existing texture object.
func NewSpriteNodeWithTextureColorSize ¶ added in v0.17.0
func NewSpriteNodeWithTextureColorSize(texture *Texture, color obj.Object, size corefoundation.CGSize) *SpriteNode
NewSpriteNodeWithTextureColorSize initializes a textured sprite in color using an existing texture object.
func SpriteNodeFromID ¶ added in v0.17.0
func SpriteNodeFromID(id objc.ID) *SpriteNode
SpriteNodeFromID adopts an existing Objective-C object as a SpriteNode (nil for 0), retaining it and registering a release finalizer.
func SpriteNodeWithColorSize ¶ added in v0.17.0
func SpriteNodeWithColorSize(color obj.Object, size corefoundation.CGSize) *SpriteNode
SpriteNodeWithColorSize initializes a single-color sprite.
func SpriteNodeWithImageNamed ¶ added in v0.17.0
func SpriteNodeWithImageNamed(name string) *SpriteNode
SpriteNodeWithImageNamed initializes a textured sprite using an image file.
func SpriteNodeWithImageNamedNormalMapped ¶ added in v0.17.0
func SpriteNodeWithImageNamedNormalMapped(name string, generateNormalMap bool) *SpriteNode
SpriteNodeWithImageNamedNormalMapped initializes a textured sprite using an image file, optionally adding a normal map to simulate 3D lighting.
func SpriteNodeWithTexture ¶ added in v0.17.0
func SpriteNodeWithTexture(texture *Texture) *SpriteNode
SpriteNodeWithTexture initializes a textured sprite using an existing texture object.
func SpriteNodeWithTextureNormalMap ¶ added in v0.17.0
func SpriteNodeWithTextureNormalMap(texture *Texture, normalMap *Texture) *SpriteNode
SpriteNodeWithTextureNormalMap initializes a textured sprite with a normal map to simulate 3D lighting.
func SpriteNodeWithTextureSize ¶ added in v0.17.0
func SpriteNodeWithTextureSize(texture *Texture, size corefoundation.CGSize) *SpriteNode
SpriteNodeWithTextureSize initializes a textured sprite using an existing texture object but with a specified size.
func (*SpriteNode) AnchorPoint ¶ added in v0.17.0
func (sn *SpriteNode) AnchorPoint() corefoundation.CGPoint
AnchorPoint returns used to choose the location in the sprite that maps to its 'position' in the parent's coordinate space. The valid interval for each input is from 0.0 up to and including 1.0.
func (*SpriteNode) BlendMode ¶ added in v0.17.0
func (sn *SpriteNode) BlendMode() BlendMode
BlendMode sets the blend mode to use when composing the sprite with the final framebuffer.
func (*SpriteNode) CenterRect ¶ added in v0.17.0
func (sn *SpriteNode) CenterRect() corefoundation.CGRect
CenterRect returns controls how the texture is stretched to fill the SKSpriteNode. Stretching is performed via a 9-part algorithm where the upper & lower middle parts are scaled horizontally, the left and right middle parts are scaled vertically, the center is scaled in both directions, and the corners are preserved. The centerRect defines the center region in a (0.0 - 1.0) coordinate space. Defaults to {(0,0) (1,1)} (the entire texture is stretched).
func (*SpriteNode) Color ¶ added in v0.17.0
func (sn *SpriteNode) Color() obj.Object
Color returns base color for the sprite (If no texture is present, the color still is drawn)
func (*SpriteNode) ColorBlendFactor ¶ added in v0.17.0
func (sn *SpriteNode) ColorBlendFactor() float64
ColorBlendFactor returns controls the blending between the texture and the sprite's color. The valid interval of values is from 0.0 up to and including 1.0. A value above or below that interval is clamped to the minimum (0.0) if below or the maximum (1.0) if above.
func (*SpriteNode) LightingBitMask ¶ added in v0.17.0
func (sn *SpriteNode) LightingBitMask() uint32
LightingBitMask returns bitmask to indicate being lit by a set of lights using overlapping lighting categories. A light whose category is set to a value that masks to non-zero using this mask will apply light to this sprite. When used together with a normal texture, complex lighting effects can be used.
func (*SpriteNode) NormalTexture ¶ added in v0.17.0
func (sn *SpriteNode) NormalTexture() *Texture
NormalTexture returns texture to use for generating normals that lights use to light this sprite. This will only be used if the sprite is lit by at least one light.
func (*SpriteNode) ScaleToSize ¶ added in v0.17.0
func (sn *SpriteNode) ScaleToSize(size corefoundation.CGSize)
ScaleToSize scales the sprite node to a specified size.
func (*SpriteNode) Shader ¶ added in v0.17.0
func (sn *SpriteNode) Shader() *Shader
Shader returns the shader.
func (*SpriteNode) ShadowCastBitMask ¶ added in v0.17.0
func (sn *SpriteNode) ShadowCastBitMask() uint32
ShadowCastBitMask returns the shadow cast bit mask.
func (*SpriteNode) ShadowedBitMask ¶ added in v0.17.0
func (sn *SpriteNode) ShadowedBitMask() uint32
ShadowedBitMask returns the shadowed bit mask.
func (*SpriteNode) Size ¶ added in v0.17.0
func (sn *SpriteNode) Size() corefoundation.CGSize
Size set the size of the sprite (in parent's coordinate space)
func (*SpriteNode) Texture ¶ added in v0.17.0
func (sn *SpriteNode) Texture() *Texture
Texture returns texture to be drawn (is stretched to fill the sprite)
func (*SpriteNode) WithAccessibilityElement ¶ added in v0.17.0
func (sn *SpriteNode) WithAccessibilityElement(accessibilityElement bool) *SpriteNode
WithAccessibilityElement sets a toggle you implement to indicate to the system whether this user interface element should be exposed to the user.
func (*SpriteNode) WithAccessibilityEnabled ¶ added in v0.17.0
func (sn *SpriteNode) WithAccessibilityEnabled(accessibilityEnabled bool) *SpriteNode
WithAccessibilityEnabled sets a toggle you implement to indicate to the system whether this user interface element should respond to user input.
func (*SpriteNode) WithAccessibilityFrame ¶ added in v0.17.0
func (sn *SpriteNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *SpriteNode
WithAccessibilityFrame sets the size of this user interface element, in screen points.
func (*SpriteNode) WithAccessibilityHelp ¶ added in v0.17.0
func (sn *SpriteNode) WithAccessibilityHelp(accessibilityHelp string) *SpriteNode
WithAccessibilityHelp sets the help description of this user interface element; for example, the text shown in a tooltip.
func (*SpriteNode) WithAccessibilityLabel ¶ added in v0.17.0
func (sn *SpriteNode) WithAccessibilityLabel(accessibilityLabel string) *SpriteNode
WithAccessibilityLabel sets a short description of this user interface element.
func (*SpriteNode) WithAccessibilityParent ¶ added in v0.17.0
func (sn *SpriteNode) WithAccessibilityParent(accessibilityParent obj.Object) *SpriteNode
WithAccessibilityParent sets the user interface element that contains this element.
func (*SpriteNode) WithAccessibilityRole ¶ added in v0.17.0
func (sn *SpriteNode) WithAccessibilityRole(accessibilityRole string) *SpriteNode
WithAccessibilityRole sets a string value describing the user interface element type; for example, a button.
func (*SpriteNode) WithAccessibilityRoleDescription ¶ added in v0.17.0
func (sn *SpriteNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *SpriteNode
WithAccessibilityRoleDescription sets a string value describing the user interface element name and type; for example, the Buy button.
func (*SpriteNode) WithAccessibilitySubrole ¶ added in v0.17.0
func (sn *SpriteNode) WithAccessibilitySubrole(accessibilitySubrole string) *SpriteNode
WithAccessibilitySubrole sets a string that defines this user interface element’s subrole; for example, a full-screen button.
func (*SpriteNode) WithAlpha ¶ added in v0.17.0
func (sn *SpriteNode) WithAlpha(alpha float64) *SpriteNode
WithAlpha sets the transparency value applied to the node’s contents.
func (*SpriteNode) WithAnchorPoint ¶ added in v0.17.0
func (sn *SpriteNode) WithAnchorPoint(anchorPoint corefoundation.CGPoint) *SpriteNode
WithAnchorPoint sets defines the point in the sprite that corresponds to the node’s position.
func (*SpriteNode) WithAttributeValues ¶ added in v0.17.0
func (sn *SpriteNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *SpriteNode
WithAttributeValues sets the values of each attribute associated with the node’s attached shader.
func (*SpriteNode) WithBlendMode ¶ added in v0.17.0
func (sn *SpriteNode) WithBlendMode(blendMode BlendMode) *SpriteNode
WithBlendMode sets the blend mode used to draw the sprite into the parent’s framebuffer.
func (*SpriteNode) WithCenterRect ¶ added in v0.17.0
func (sn *SpriteNode) WithCenterRect(centerRect corefoundation.CGRect) *SpriteNode
WithCenterRect sets enable nine-part stretching of the sprite’s texture.
func (*SpriteNode) WithColor ¶ added in v0.17.0
func (sn *SpriteNode) WithColor(color obj.Object) *SpriteNode
WithColor sets the sprite’s color.
func (*SpriteNode) WithColorBlendFactor ¶ added in v0.17.0
func (sn *SpriteNode) WithColorBlendFactor(colorBlendFactor float64) *SpriteNode
WithColorBlendFactor sets a floating-point value that describes how the color is blended with the sprite’s texture.
func (*SpriteNode) WithConstraints ¶ added in v0.17.0
func (sn *SpriteNode) WithConstraints(items ...*Constraint) *SpriteNode
WithConstraints sets a list of constraints to apply to the node.
func (*SpriteNode) WithHidden ¶ added in v0.17.0
func (sn *SpriteNode) WithHidden(hidden bool) *SpriteNode
WithHidden sets a Boolean value that determines whether a node and its descendants are rendered.
func (*SpriteNode) WithLightingBitMask ¶ added in v0.17.0
func (sn *SpriteNode) WithLightingBitMask(lightingBitMask uint32) *SpriteNode
WithLightingBitMask sets a mask that defines how this sprite is lit by light nodes in the scene.
func (*SpriteNode) WithName ¶ added in v0.17.0
func (sn *SpriteNode) WithName(name string) *SpriteNode
WithName sets the node’s assignable name.
func (*SpriteNode) WithNormalTexture ¶ added in v0.17.0
func (sn *SpriteNode) WithNormalTexture(normalTexture TextureProvider) *SpriteNode
WithNormalTexture sets a texture that specifies the normal map for the sprite.
func (*SpriteNode) WithPaused ¶ added in v0.17.0
func (sn *SpriteNode) WithPaused(paused bool) *SpriteNode
WithPaused sets a Boolean value that determines whether actions on the node and its descendants are processed.
func (*SpriteNode) WithPhysicsBody ¶ added in v0.17.0
func (sn *SpriteNode) WithPhysicsBody(physicsBody *PhysicsBody) *SpriteNode
WithPhysicsBody sets the physics body associated with the node.
func (*SpriteNode) WithPosition ¶ added in v0.17.0
func (sn *SpriteNode) WithPosition(position corefoundation.CGPoint) *SpriteNode
WithPosition sets the position of the node in its parent’s coordinate system.
func (*SpriteNode) WithReachConstraints ¶ added in v0.17.0
func (sn *SpriteNode) WithReachConstraints(reachConstraints *ReachConstraints) *SpriteNode
WithReachConstraints sets the reach constraints to apply to the node when executing a reach action.
func (*SpriteNode) WithShader ¶ added in v0.17.0
func (sn *SpriteNode) WithShader(shader *Shader) *SpriteNode
WithShader sets a text file that defines code that does custom per-pixel drawing or colorization.
func (*SpriteNode) WithShadowCastBitMask ¶ added in v0.17.0
func (sn *SpriteNode) WithShadowCastBitMask(shadowCastBitMask uint32) *SpriteNode
WithShadowCastBitMask sets a mask that defines which lights are occluded by this sprite.
func (*SpriteNode) WithShadowedBitMask ¶ added in v0.17.0
func (sn *SpriteNode) WithShadowedBitMask(shadowedBitMask uint32) *SpriteNode
WithShadowedBitMask sets a mask that defines which lights add shadows to the sprite.
func (*SpriteNode) WithSize ¶ added in v0.17.0
func (sn *SpriteNode) WithSize(size corefoundation.CGSize) *SpriteNode
WithSize sets the dimensions of the sprite, in points.
func (*SpriteNode) WithSpeed ¶ added in v0.17.0
func (sn *SpriteNode) WithSpeed(speed float64) *SpriteNode
WithSpeed sets a speed modifier applied to all actions executed by a node and its descendants.
func (*SpriteNode) WithTexture ¶ added in v0.17.0
func (sn *SpriteNode) WithTexture(texture TextureProvider) *SpriteNode
WithTexture sets the texture used to draw the sprite.
func (*SpriteNode) WithUserData ¶ added in v0.17.0
func (sn *SpriteNode) WithUserData(userData obj.Object) *SpriteNode
WithUserData sets a dictionary containing arbitrary data.
func (*SpriteNode) WithUserInteractionEnabled ¶ added in v0.17.0
func (sn *SpriteNode) WithUserInteractionEnabled(userInteractionEnabled bool) *SpriteNode
WithUserInteractionEnabled sets a Boolean value that indicates whether the node receives touch events.
func (*SpriteNode) WithXScale ¶ added in v0.17.0
func (sn *SpriteNode) WithXScale(xScale float64) *SpriteNode
WithXScale sets a scaling factor that multiplies the width of a node and its children.
func (*SpriteNode) WithYScale ¶ added in v0.17.0
func (sn *SpriteNode) WithYScale(yScale float64) *SpriteNode
WithYScale sets a scaling factor that multiplies the height of a node and its children.
func (*SpriteNode) WithZPosition ¶ added in v0.17.0
func (sn *SpriteNode) WithZPosition(zPosition float64) *SpriteNode
WithZPosition sets the height of the node relative to its parent.
func (*SpriteNode) WithZRotation ¶ added in v0.17.0
func (sn *SpriteNode) WithZRotation(zRotation float64) *SpriteNode
WithZRotation sets the Euler rotation about the z axis (in radians).
type Texture ¶ added in v0.17.0
Texture is an idiomatic wrapper over the Objective-C class SKTexture.
Texture is an abstract base — you do not construct it directly. Construct one of MutableTexture and pass it where a Texture is accepted.
An image, decoded on the GPU, that can be used to render various SpriteKit objects.
func TextureFromID ¶ added in v0.17.0
TextureFromID adopts an existing Objective-C object as a Texture (nil for 0), retaining it and registering a release finalizer.
func TextureNoiseWithSmoothnessSizeGrayscale ¶ added in v0.17.0
func TextureNoiseWithSmoothnessSizeGrayscale(smoothness float64, size corefoundation.CGSize, grayscale bool) *Texture
TextureNoiseWithSmoothnessSizeGrayscale create a texture containing colored noise. The noise texture is tileable with itself.
func TextureVectorNoiseWithSmoothnessSize ¶ added in v0.17.0
func TextureVectorNoiseWithSmoothnessSize(smoothness float64, size corefoundation.CGSize) *Texture
TextureVectorNoiseWithSmoothnessSize create a texture containing directional noise. The RGBA values in this texture can be used as a normal map or as direction possibly with length. XYZ are a three dimensional direction, and A is a magnitude.
func TextureWithCGImage ¶ added in v0.17.0
func TextureWithCGImage(image coregraphics.CGImageRef) *Texture
TextureWithCGImage create a texture from a CGImageRef.
func TextureWithDataSize ¶ added in v0.17.0
func TextureWithDataSize(pixelData []byte, size corefoundation.CGSize) *Texture
TextureWithDataSize create new texture with bitmap RGBA data in unsigned bytes. Data is copied once, additional changes to the data does not affect the texture. All pixel data is assumed to be premultiplied alpha.
func TextureWithDataSizeFlipped ¶ added in v0.17.0
func TextureWithDataSizeFlipped(pixelData []byte, size corefoundation.CGSize, flipped bool) *Texture
TextureWithDataSizeFlipped wraps the corresponding Objective-C method.
func TextureWithDataSizeRowLengthAlignment ¶ added in v0.17.0
func TextureWithDataSizeRowLengthAlignment(pixelData []byte, size corefoundation.CGSize, rowLength int, alignment int) *Texture
TextureWithDataSizeRowLengthAlignment create new texture with bitmap RGBA data in unsigned bytes using a custom row length and row alignment. Data is copied once, additional changes to the data does not affect the texture. All pixel data is assumed to be premultiplied alpha.
func TextureWithImage ¶ added in v0.17.0
TextureWithImage wraps the corresponding Objective-C method.
func TextureWithImageNamed ¶ added in v0.17.0
TextureWithImageNamed create a texture from an image file. Behaves similar to imageNamed: in UIImage or NSImage
func TextureWithRectInTexture ¶ added in v0.17.0
func TextureWithRectInTexture(rect corefoundation.CGRect, texture *Texture) *Texture
TextureWithRectInTexture create a texture that is a subrect of an existing texture. See textureRect property for details.
func (*Texture) CGImage ¶ added in v0.17.0
func (t *Texture) CGImage() coregraphics.CGImageRef
CGImage returns the texture’s image data as a Quartz 2D image.
func (*Texture) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Texture) FilteringMode ¶ added in v0.17.0
func (t *Texture) FilteringMode() TextureFilteringMode
FilteringMode returns the filtering mode the texture should use when not drawn at native size. Defaults to SKTextureFilteringLinear.
func (*Texture) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Texture) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Texture) Preload ¶ added in v0.17.0
Preload load texture data into memory, calling a completion handler after the task completes.
Preload blocks until the operation completes or ctx is cancelled.
func (*Texture) Size ¶ added in v0.17.0
func (t *Texture) Size() corefoundation.CGSize
Size gets the size of the texture.
func (*Texture) String ¶ added in v0.17.0
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*Texture) TextureByApplyingCIFilter ¶ added in v0.17.0
TextureByApplyingCIFilter create new texture by applying a CIFilter to an existing one. Any CIFilter that requires only a single "inputImage" and produces an "outputImage" is allowed.
func (*Texture) TextureByGeneratingNormalMap ¶ added in v0.17.0
TextureByGeneratingNormalMap create new texture by generating a normal map texture.
func (*Texture) TextureByGeneratingNormalMapWithSmoothnessContrast ¶ added in v0.17.0
func (t *Texture) TextureByGeneratingNormalMapWithSmoothnessContrast(smoothness float64, contrast float64) *Texture
TextureByGeneratingNormalMapWithSmoothnessContrast create new texture by generating a normal map texture.
func (*Texture) TextureRect ¶ added in v0.17.0
func (t *Texture) TextureRect() corefoundation.CGRect
TextureRect gets a rectangle that defines the portion of the texture used to render its image.
func (*Texture) UsesMipmaps ¶ added in v0.17.0
UsesMipmaps reports whether request that the texture have mipmaps generated if possible. Only supported for power of 2 texture sizes.
func (*Texture) WithFilteringMode ¶ added in v0.17.0
func (t *Texture) WithFilteringMode(filteringMode TextureFilteringMode) *Texture
WithFilteringMode sets the filtering mode used when the size of a sprite drawn with the texture is not drawn at the texture’s native size.
func (*Texture) WithUsesMipmaps ¶ added in v0.17.0
WithUsesMipmaps sets a Boolean value that indicates whether the texture attempts to generate mipmaps.
type TextureAtlas ¶ added in v0.17.0
TextureAtlas is an idiomatic wrapper over the Objective-C class SKTextureAtlas.
A collection of textures optimized for storage and drawing performance.
func AtlasNamed ¶ added in v0.17.0
func AtlasNamed(name string) *TextureAtlas
AtlasNamed creates a texture atlas from data stored in the app bundle.
func AtlasWithDictionary ¶ added in v0.17.0
func AtlasWithDictionary(properties map[string]obj.Object) *TextureAtlas
AtlasWithDictionary creates a texture atlas from a set of image files.
func NewTextureAtlas ¶ added in v0.17.0
func NewTextureAtlas() *TextureAtlas
NewTextureAtlas creates a new TextureAtlas.
func TextureAtlasFromID ¶ added in v0.17.0
func TextureAtlasFromID(id objc.ID) *TextureAtlas
TextureAtlasFromID adopts an existing Objective-C object as a TextureAtlas (nil for 0), retaining it and registering a release finalizer.
func (*TextureAtlas) Description ¶ added in v0.17.0
func (ta *TextureAtlas) Description() string
Description returns the object's -description text.
func (*TextureAtlas) IsEqual ¶ added in v0.17.0
func (ta *TextureAtlas) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*TextureAtlas) IsKind ¶ added in v0.17.0
func (ta *TextureAtlas) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*TextureAtlas) Preload ¶ added in v0.17.0
func (ta *TextureAtlas) Preload(ctx context.Context) error
Preload loads an atlas object’s textures into memory, calling a completion handler after the task completes.
Preload blocks until the operation completes or ctx is cancelled.
func (*TextureAtlas) String ¶ added in v0.17.0
func (ta *TextureAtlas) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*TextureAtlas) TextureNamed ¶ added in v0.17.0
func (ta *TextureAtlas) TextureNamed(name string) *Texture
TextureNamed creates a texture from data stored in the texture atlas.
func (*TextureAtlas) TextureNames ¶ added in v0.17.0
func (ta *TextureAtlas) TextureNames() []string
TextureNames returns the texture names.
TextureNames returns the collection as a Go slice.
type TextureFilteringMode ¶ added in v0.17.0
type TextureFilteringMode int64
Texture filtering modes to use when the texture is drawn in a size other than its native size.
const ( // Each pixel is drawn using the nearest point in the texture. This mode is faster, but the results are often pixelated. TextureFilteringNearest TextureFilteringMode = 0 // Each pixel is drawn by using a linear filter of multiple texels in the texture. This mode produces higher quality results but may be slower. TextureFilteringLinear TextureFilteringMode = 1 )
func (TextureFilteringMode) String ¶ added in v0.17.0
func (e TextureFilteringMode) String() string
String returns the TextureFilteringMode constant's name, or its numeric form when the value is not a known constant.
type TextureProvider ¶ added in v0.17.0
TextureProvider is accepted wherever a SKTexture (or one of its subclasses) is expected.
type TileAdjacencyMask ¶ added in v0.17.0
type TileAdjacencyMask uint64
An enumeration defining how neighboring tiles are automatically placed next to each other. Bitmask — values may be combined with |.
const ( TileAdjacencyUp TileAdjacencyMask = 1 TileAdjacencyUpperRight TileAdjacencyMask = 2 TileAdjacencyRight TileAdjacencyMask = 4 TileAdjacencyLowerRight TileAdjacencyMask = 8 TileAdjacencyDown TileAdjacencyMask = 16 TileAdjacencyLowerLeft TileAdjacencyMask = 32 TileAdjacencyLeft TileAdjacencyMask = 64 TileAdjacencyUpperLeft TileAdjacencyMask = 128 TileAdjacencyAll TileAdjacencyMask = 255 TileHexFlatAdjacencyUp TileAdjacencyMask = 1 TileHexFlatAdjacencyUpperRight TileAdjacencyMask = 2 TileHexFlatAdjacencyLowerRight TileAdjacencyMask = 4 TileHexFlatAdjacencyDown TileAdjacencyMask = 8 TileHexFlatAdjacencyLowerLeft TileAdjacencyMask = 16 TileHexFlatAdjacencyUpperLeft TileAdjacencyMask = 32 TileHexFlatAdjacencyAll TileAdjacencyMask = 63 TileHexPointyAdjacencyUpperLeft TileAdjacencyMask = 1 TileHexPointyAdjacencyUpperRight TileAdjacencyMask = 2 TileHexPointyAdjacencyRight TileAdjacencyMask = 4 TileHexPointyAdjacencyLowerRight TileAdjacencyMask = 8 TileHexPointyAdjacencyLowerLeft TileAdjacencyMask = 16 TileHexPointyAdjacencyLeft TileAdjacencyMask = 32 TileHexPointyAdjacencyAdd TileAdjacencyMask = 63 TileAdjacencyUpEdge TileAdjacencyMask = 124 TileAdjacencyUpperRightEdge TileAdjacencyMask = 112 TileAdjacencyRightEdge TileAdjacencyMask = 241 TileAdjacencyLowerRightEdge TileAdjacencyMask = 193 TileAdjacencyDownEdge TileAdjacencyMask = 199 TileAdjacencyLowerLeftEdge TileAdjacencyMask = 7 TileAdjacencyLeftEdge TileAdjacencyMask = 31 TileAdjacencyUpperLeftEdge TileAdjacencyMask = 28 TileAdjacencyUpperRightCorner TileAdjacencyMask = 223 TileAdjacencyLowerRightCorner TileAdjacencyMask = 127 TileAdjacencyLowerLeftCorner TileAdjacencyMask = 253 TileAdjacencyUpperLeftCorner TileAdjacencyMask = 247 )
func (TileAdjacencyMask) String ¶ added in v0.17.0
func (e TileAdjacencyMask) String() string
String returns the TileAdjacencyMask constant's name, or its numeric form when the value is not a known constant.
type TileDefinition ¶ added in v0.17.0
TileDefinition is an idiomatic wrapper over the Objective-C class SKTileDefinition.
A single tile that can be repeated in a tile map.
func NewTileDefinitionWithTexture ¶ added in v0.17.0
func NewTileDefinitionWithTexture(texture *Texture) *TileDefinition
NewTileDefinitionWithTexture initializes a new tile definition with a single texture.
func NewTileDefinitionWithTextureNormalTextureSize ¶ added in v0.17.0
func NewTileDefinitionWithTextureNormalTextureSize(texture *Texture, normalTexture *Texture, size corefoundation.CGSize) *TileDefinition
NewTileDefinitionWithTextureNormalTextureSize initializes a new tile definition with a single texture and separate normal texture for simulating 3D lighting.
func NewTileDefinitionWithTextureSize ¶ added in v0.17.0
func NewTileDefinitionWithTextureSize(texture *Texture, size corefoundation.CGSize) *TileDefinition
NewTileDefinitionWithTextureSize initializes a new tile definition of a specified size with a single texture.
func NewTileDefinitionWithTexturesNormalTexturesSizeTimePerFrame ¶ added in v0.17.0
func NewTileDefinitionWithTexturesNormalTexturesSizeTimePerFrame(textures []*Texture, normalTextures []*Texture, size corefoundation.CGSize, timePerFrame float64) *TileDefinition
NewTileDefinitionWithTexturesNormalTexturesSizeTimePerFrame initializes a new tile definition with arrays of textures and normal textures for animation.
func NewTileDefinitionWithTexturesSizeTimePerFrame ¶ added in v0.17.0
func NewTileDefinitionWithTexturesSizeTimePerFrame(textures []*Texture, size corefoundation.CGSize, timePerFrame float64) *TileDefinition
NewTileDefinitionWithTexturesSizeTimePerFrame initializes a new tile definition with an array of textures for animation.
func TileDefinitionFromID ¶ added in v0.17.0
func TileDefinitionFromID(id objc.ID) *TileDefinition
TileDefinitionFromID adopts an existing Objective-C object as a TileDefinition (nil for 0), retaining it and registering a release finalizer.
func TileDefinitionWithTexture ¶ added in v0.17.0
func TileDefinitionWithTexture(texture *Texture) *TileDefinition
TileDefinitionWithTexture create a tile definition with an SKTexture, and set its size to the SKTexture's width/height.
func TileDefinitionWithTextureNormalTextureSize ¶ added in v0.17.0
func TileDefinitionWithTextureNormalTextureSize(texture *Texture, normalTexture *Texture, size corefoundation.CGSize) *TileDefinition
TileDefinitionWithTextureNormalTextureSize create a tile definition with an SKTexture and the specified size.
func TileDefinitionWithTextureSize ¶ added in v0.17.0
func TileDefinitionWithTextureSize(texture *Texture, size corefoundation.CGSize) *TileDefinition
TileDefinitionWithTextureSize create a tile definition with an SKTexture and the specified size.
func TileDefinitionWithTexturesNormalTexturesSizeTimePerFrame ¶ added in v0.17.0
func TileDefinitionWithTexturesNormalTexturesSizeTimePerFrame(textures []*Texture, normalTextures []*Texture, size corefoundation.CGSize, timePerFrame float64) *TileDefinition
TileDefinitionWithTexturesNormalTexturesSizeTimePerFrame 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.
func TileDefinitionWithTexturesSizeTimePerFrame ¶ added in v0.17.0
func TileDefinitionWithTexturesSizeTimePerFrame(textures []*Texture, size corefoundation.CGSize, timePerFrame float64) *TileDefinition
TileDefinitionWithTexturesSizeTimePerFrame 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.
func (*TileDefinition) Description ¶ added in v0.17.0
func (td *TileDefinition) Description() string
Description returns the object's -description text.
func (*TileDefinition) FlipHorizontally ¶ added in v0.17.0
func (td *TileDefinition) FlipHorizontally() bool
FlipHorizontally reports whether when set to true, the tile definition's images will be flipped horizontally (i.e., the left of the image becomes the right). Defaults to false.
func (*TileDefinition) FlipVertically ¶ added in v0.17.0
func (td *TileDefinition) FlipVertically() bool
FlipVertically reports whether when set to true, the tile definition's images will be flipped vertically (i.e., the top of the image becomes the bottom). Defaults to false.
func (*TileDefinition) IsEqual ¶ added in v0.17.0
func (td *TileDefinition) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*TileDefinition) IsKind ¶ added in v0.17.0
func (td *TileDefinition) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*TileDefinition) Name ¶ added in v0.17.0
func (td *TileDefinition) Name() string
Name returns client-assignable name for the tile definition. Defaults to nil.
func (*TileDefinition) NormalTextures ¶ added in v0.17.0
func (td *TileDefinition) NormalTextures() []*Texture
NormalTextures returns the textures to use for generating normals that lights use to light this tile. These will only be used if the tile is lit by at least one light. Each normal texture corresponds to a texture in the textures property.
NormalTextures returns the collection as a Go slice.
func (*TileDefinition) PlacementWeight ¶ added in v0.17.0
func (td *TileDefinition) PlacementWeight() int
PlacementWeight returns 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. A higher value relative to the other definitions assigned to the rule make it more likely for this definition to be selected; lower values make it less likely. Defaults to 1. When set to 0, the definition will never be chosen as long as there is at least one other definition with a placementWeight above 0.
func (*TileDefinition) Rotation ¶ added in v0.17.0
func (td *TileDefinition) Rotation() TileDefinitionRotation
Rotation returns the rotation of the tile definition's images can be set in 90 degree increments. Defaults to SKTileDefinitionRotation0.
func (*TileDefinition) Size ¶ added in v0.17.0
func (td *TileDefinition) Size() corefoundation.CGSize
Size returns the size of the tile in points.
func (*TileDefinition) String ¶ added in v0.17.0
func (td *TileDefinition) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*TileDefinition) Textures ¶ added in v0.17.0
func (td *TileDefinition) Textures() []*Texture
Textures returns the textures used to draw the tile. Non-animated tiles use only one texture. When more than one texture is present, the tile will swap through them in sequence, showing each for the duration specified in the timePerFrame property. After displaying the last texture in the array, the sequence is repeated from the first texture.
Textures returns the collection as a Go slice.
func (*TileDefinition) TimePerFrame ¶ added in v0.17.0
func (td *TileDefinition) TimePerFrame() float64
TimePerFrame returns the duration, in seconds, that each texture in the textures array is displayed before switching to the next texture in the sequence. Only used when there is more than one texture available.
func (*TileDefinition) UserData ¶ added in v0.17.0
func (td *TileDefinition) UserData() obj.Object
UserData returns an optional dictionary that can be used to store your own data for each tile definition. Defaults to nil.
func (*TileDefinition) WithFlipHorizontally ¶ added in v0.17.0
func (td *TileDefinition) WithFlipHorizontally(flipHorizontally bool) *TileDefinition
WithFlipHorizontally sets a Boolean that flips the definition’s image vertically.
func (*TileDefinition) WithFlipVertically ¶ added in v0.17.0
func (td *TileDefinition) WithFlipVertically(flipVertically bool) *TileDefinition
WithFlipVertically sets a Boolean that flips the definition’s image horizontally.
func (*TileDefinition) WithName ¶ added in v0.17.0
func (td *TileDefinition) WithName(name string) *TileDefinition
WithName sets a name associated with the tile definition.
func (*TileDefinition) WithNormalTextures ¶ added in v0.17.0
func (td *TileDefinition) WithNormalTextures(items ...TextureProvider) *TileDefinition
WithNormalTextures sets an array of SKTexture objects used to generate the normals for the tile to simulate 3D lighting.
func (*TileDefinition) WithPlacementWeight ¶ added in v0.17.0
func (td *TileDefinition) WithPlacementWeight(placementWeight int) *TileDefinition
WithPlacementWeight sets the placement weight of the tile definition.
func (*TileDefinition) WithRotation ¶ added in v0.17.0
func (td *TileDefinition) WithRotation(rotation TileDefinitionRotation) *TileDefinition
WithRotation sets the rotation of the tile definition in 90˚ increments.
func (*TileDefinition) WithSize ¶ added in v0.17.0
func (td *TileDefinition) WithSize(size corefoundation.CGSize) *TileDefinition
WithSize sets the size of the tile definition in points.
func (*TileDefinition) WithTextures ¶ added in v0.17.0
func (td *TileDefinition) WithTextures(items ...TextureProvider) *TileDefinition
WithTextures sets an array of SKTexture objects that defines the tile definition object’s content.
func (*TileDefinition) WithTimePerFrame ¶ added in v0.17.0
func (td *TileDefinition) WithTimePerFrame(timePerFrame float64) *TileDefinition
WithTimePerFrame sets the duration, in seconds, that each texture in the textures array is displayed before switching to the next texture in the sequence.
func (*TileDefinition) WithUserData ¶ added in v0.17.0
func (td *TileDefinition) WithUserData(userData obj.Object) *TileDefinition
WithUserData sets a dictionary containing arbitrary data.
type TileDefinitionRotation ¶ added in v0.17.0
type TileDefinitionRotation uint64
The allowed rotations for a given tile.
const ( TileDefinitionRotation0 TileDefinitionRotation = 0 TileDefinitionRotation90 TileDefinitionRotation = 1 TileDefinitionRotation180 TileDefinitionRotation = 2 TileDefinitionRotation270 TileDefinitionRotation = 3 )
func (TileDefinitionRotation) String ¶ added in v0.17.0
func (e TileDefinitionRotation) String() string
String returns the TileDefinitionRotation constant's name, or its numeric form when the value is not a known constant.
type TileGroup ¶ added in v0.17.0
TileGroup is an idiomatic wrapper over the Objective-C class SKTileGroup.
A set of tiles that collectively define one type of terrain.
func EmptyTileGroup ¶ added in v0.17.0
func EmptyTileGroup() *TileGroup
EmptyTileGroup creates an empty tile that erases the existing tile at that location on a tile map.
func NewTileGroupWithRules ¶ added in v0.17.0
func NewTileGroupWithRules(rules []*TileGroupRule) *TileGroup
NewTileGroupWithRules creates and initializes a tile group with the specified tile group rules.
func NewTileGroupWithTileDefinition ¶ added in v0.17.0
func NewTileGroupWithTileDefinition(tileDefinition *TileDefinition) *TileGroup
NewTileGroupWithTileDefinition creates and initializes a simple tile group with a single tile definition.
func TileGroupFromID ¶ added in v0.17.0
TileGroupFromID adopts an existing Objective-C object as a TileGroup (nil for 0), retaining it and registering a release finalizer.
func TileGroupWithRules ¶ added in v0.17.0
func TileGroupWithRules(rules []*TileGroupRule) *TileGroup
TileGroupWithRules create a tile group with the specified rules.
func TileGroupWithTileDefinition ¶ added in v0.17.0
func TileGroupWithTileDefinition(tileDefinition *TileDefinition) *TileGroup
TileGroupWithTileDefinition create a simple tile group for a single tile definition. This creates and initializes the SKTileGroupRule necessary to place the provided tile definition in a tile map.
func (*TileGroup) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*TileGroup) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*TileGroup) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*TileGroup) Name ¶ added in v0.17.0
Name returns client-assignable name for the tile group. Defaults to nil.
func (*TileGroup) Rules ¶ added in v0.17.0
func (tg *TileGroup) Rules() []*TileGroupRule
Rules returns the rules that govern which tiles are placed when this group is used, and where in the map they'll be placed.
Rules returns the collection as a Go slice.
func (*TileGroup) String ¶ added in v0.17.0
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*TileGroup) WithRules ¶ added in v0.17.0
func (tg *TileGroup) WithRules(items ...*TileGroupRule) *TileGroup
WithRules sets an array of SKTileGroupRule objects that the tile group uses to determine tile placement.
type TileGroupRule ¶ added in v0.17.0
TileGroupRule is an idiomatic wrapper over the Objective-C class SKTileGroupRule.
Rules that describe how various tiles should be placed in a map.
func NewTileGroupRuleWithAdjacencyTileDefinitions ¶ added in v0.17.0
func NewTileGroupRuleWithAdjacencyTileDefinitions(adjacency TileAdjacencyMask, tileDefinitions []*TileDefinition) *TileGroupRule
NewTileGroupRuleWithAdjacencyTileDefinitions initializes a new tile group rule with adjacency rules and tile definitions.
func TileGroupRuleFromID ¶ added in v0.17.0
func TileGroupRuleFromID(id objc.ID) *TileGroupRule
TileGroupRuleFromID adopts an existing Objective-C object as a TileGroupRule (nil for 0), retaining it and registering a release finalizer.
func TileGroupRuleWithAdjacencyTileDefinitions ¶ added in v0.17.0
func TileGroupRuleWithAdjacencyTileDefinitions(adjacency TileAdjacencyMask, tileDefinitions []*TileDefinition) *TileGroupRule
TileGroupRuleWithAdjacencyTileDefinitions create a tile group rule with the specified adjacency and tile definitions.
func (*TileGroupRule) Adjacency ¶ added in v0.17.0
func (tgr *TileGroupRule) Adjacency() TileAdjacencyMask
Adjacency returns the adjacency mask used by this rule. Set this to the mask that covers the adjacent spaces that must be filled with tiles belonging to the same group for this rule met.
func (*TileGroupRule) Description ¶ added in v0.17.0
func (tgr *TileGroupRule) Description() string
Description returns the object's -description text.
func (*TileGroupRule) IsEqual ¶ added in v0.17.0
func (tgr *TileGroupRule) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*TileGroupRule) IsKind ¶ added in v0.17.0
func (tgr *TileGroupRule) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*TileGroupRule) Name ¶ added in v0.17.0
func (tgr *TileGroupRule) Name() string
Name returns client-assignable name for the tile group rule. Defaults to nil.
func (*TileGroupRule) String ¶ added in v0.17.0
func (tgr *TileGroupRule) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*TileGroupRule) TileDefinitions ¶ added in v0.17.0
func (tgr *TileGroupRule) TileDefinitions() []*TileDefinition
TileDefinitions returns the tile definitions used by this rule. If the rule is evaluated and its conditions are met, one of the tile definitions within this array will be randomly selected for placement within the tile map. Each tile definitions' placement weight is taken into consideration to determine how likely each is to be selected; tile definitions with higher placement weights will be selected more frequently than those with lower placement weights.
TileDefinitions returns the collection as a Go slice.
func (*TileGroupRule) WithAdjacency ¶ added in v0.17.0
func (tgr *TileGroupRule) WithAdjacency(adjacency TileAdjacencyMask) *TileGroupRule
WithAdjacency sets the adjacency requirement for this rule.
func (*TileGroupRule) WithName ¶ added in v0.17.0
func (tgr *TileGroupRule) WithName(name string) *TileGroupRule
WithName sets a name associated with the tile group rule.
func (*TileGroupRule) WithTileDefinitions ¶ added in v0.17.0
func (tgr *TileGroupRule) WithTileDefinitions(items ...*TileDefinition) *TileGroupRule
WithTileDefinitions sets the tile definitions used for this rule.
type TileMapNode ¶ added in v0.17.0
type TileMapNode struct {
Node
}
TileMapNode is an idiomatic wrapper over the Objective-C class SKTileMapNode.
It embeds Node, promoting that type's methods.
A two-dimensional array of images.
func NewTileMapNodeWithTileSetColumnsRowsTileSize ¶ added in v0.17.0
func NewTileMapNodeWithTileSetColumnsRowsTileSize(tileSet *TileSet, columns int, rows int, tileSize corefoundation.CGSize) *TileMapNode
NewTileMapNodeWithTileSetColumnsRowsTileSize initialize a tile map node with the specified tile set and dimensions. The tiles of the map will be empty, equivalent to the nil tile definition/group.
func NewTileMapNodeWithTileSetColumnsRowsTileSizeFillWithTileGroup ¶ added in v0.17.0
func NewTileMapNodeWithTileSetColumnsRowsTileSizeFillWithTileGroup(tileSet *TileSet, columns int, rows int, tileSize corefoundation.CGSize, tileGroup *TileGroup) *TileMapNode
NewTileMapNodeWithTileSetColumnsRowsTileSizeFillWithTileGroup initialize a tile map node with the specified tile set and dimensions, and fill it with the specified tile group.
func NewTileMapNodeWithTileSetColumnsRowsTileSizeTileGroupLayout ¶ added in v0.17.0
func NewTileMapNodeWithTileSetColumnsRowsTileSizeTileGroupLayout(tileSet *TileSet, columns int, rows int, tileSize corefoundation.CGSize, tileGroupLayout []*TileGroup) *TileMapNode
NewTileMapNodeWithTileSetColumnsRowsTileSizeTileGroupLayout initialize a tile map node with the specified tile set and dimensions, and fill it with a specific layout of tile groups that belong to the provided tile set. The tileGroupLayout array should match the dimensions of the tile map (i.e., the number of elements should be equal to columns * rows). Index 0 of the array maps to column 0, row 0 of the tile map. Index 1 is column 1, row 0, and so on, wrapping around to the next row once the index passes the number of columns in the tile map. If the array has fewer elements than the number of tiles in the map, the remaining tiles are initialized with the nil tile group. If the array has more elements than the number of tiles in the map, the extra tile groups are ignored.
func TileMapNodeFromID ¶ added in v0.17.0
func TileMapNodeFromID(id objc.ID) *TileMapNode
TileMapNodeFromID adopts an existing Objective-C object as a TileMapNode (nil for 0), retaining it and registering a release finalizer.
func TileMapNodeWithTileSetColumnsRowsTileSize ¶ added in v0.17.0
func TileMapNodeWithTileSetColumnsRowsTileSize(tileSet *TileSet, columns int, rows int, tileSize corefoundation.CGSize) *TileMapNode
TileMapNodeWithTileSetColumnsRowsTileSize create a tile map node with the specified tile set and dimensions. The tiles of the map will be empty, equivalent to the nil tile definition/group.
func TileMapNodeWithTileSetColumnsRowsTileSizeFillWithTileGroup ¶ added in v0.17.0
func TileMapNodeWithTileSetColumnsRowsTileSizeFillWithTileGroup(tileSet *TileSet, columns int, rows int, tileSize corefoundation.CGSize, tileGroup *TileGroup) *TileMapNode
TileMapNodeWithTileSetColumnsRowsTileSizeFillWithTileGroup create a tile map node with the specified tile set and dimensions, and fill it with the specified tile group.
func TileMapNodeWithTileSetColumnsRowsTileSizeTileGroupLayout ¶ added in v0.17.0
func TileMapNodeWithTileSetColumnsRowsTileSizeTileGroupLayout(tileSet *TileSet, columns int, rows int, tileSize corefoundation.CGSize, tileGroupLayout []*TileGroup) *TileMapNode
TileMapNodeWithTileSetColumnsRowsTileSizeTileGroupLayout create a tile map node with the specified tile set and dimensions, and fill it with a specific layout of tile groups that belong to the provided tile set. The tileGroupLayout array should match the dimensions of the tile map (i.e., the number of elements should be equal to columns * rows). Index 0 of the array maps to column 0, row 0 of the tile map. Index 1 is column 1, row 0, and so on, wrapping around to the next row once the index passes the number of columns in the tile map. If the array has fewer elements than the number of tiles in the map, the remaining tiles are initialized with the nil tile group. If the array has more elements than the number of tiles in the map, the extra tile groups are ignored.
func (*TileMapNode) AnchorPoint ¶ added in v0.17.0
func (tmn *TileMapNode) AnchorPoint() corefoundation.CGPoint
AnchorPoint returns used to choose the location in the tile map that maps to its 'position' in the parent's coordinate space. The valid interval for each input is from 0.0 up to and including 1.0.
func (*TileMapNode) BlendMode ¶ added in v0.17.0
func (tmn *TileMapNode) BlendMode() BlendMode
BlendMode sets the blend mode to use when composing the tile map with the final framebuffer.
func (*TileMapNode) CenterOfTileAtColumnRow ¶ added in v0.17.0
func (tmn *TileMapNode) CenterOfTileAtColumnRow(column int, row int) corefoundation.CGPoint
CenterOfTileAtColumnRow returns the position of the center of the tile at the specified column and row.
func (*TileMapNode) Color ¶ added in v0.17.0
func (tmn *TileMapNode) Color() obj.Object
Color returns base color for the tile map (If no texture is present, the color still is drawn).
func (*TileMapNode) ColorBlendFactor ¶ added in v0.17.0
func (tmn *TileMapNode) ColorBlendFactor() float64
ColorBlendFactor returns controls the blending between the texture and the tile map color. The valid interval of values is from 0.0 up to and including 1.0. A value above or below that interval is clamped to the minimum (0.0) if below or the maximum (1.0) if above.
func (*TileMapNode) EnableAutomapping ¶ added in v0.17.0
func (tmn *TileMapNode) EnableAutomapping() bool
EnableAutomapping wraps the corresponding Objective-C method.
func (*TileMapNode) Fill ¶ added in v0.17.0
func (tmn *TileMapNode) Fill(tileGroup *TileGroup)
Fill when creating a tile map node programmatically, this function performs a fill operation with the specified tile group.
func (*TileMapNode) LightingBitMask ¶ added in v0.17.0
func (tmn *TileMapNode) LightingBitMask() uint32
LightingBitMask returns bitmask to indicate being lit by a set of lights using overlapping lighting categories. A light whose category is set to a value that masks to non-zero using this mask will apply light to this sprite. When used together with a normal texture, complex lighting effects can be used.
func (*TileMapNode) MapSize ¶ added in v0.17.0
func (tmn *TileMapNode) MapSize() corefoundation.CGSize
MapSize returns the size of the tile map. This is dependent on the tileSize, the number of columns and rows in the map, and the tile set type.
func (*TileMapNode) NumberOfColumns ¶ added in v0.17.0
func (tmn *TileMapNode) NumberOfColumns() int
NumberOfColumns returns the number of columns in the tile map.
func (*TileMapNode) NumberOfRows ¶ added in v0.17.0
func (tmn *TileMapNode) NumberOfRows() int
NumberOfRows returns the number of rows in the tile map.
func (*TileMapNode) SetTileGroupAndTileDefinitionForColumnRow ¶ added in v0.17.0
func (tmn *TileMapNode) SetTileGroupAndTileDefinitionForColumnRow(tileGroup *TileGroup, tileDefinition *TileDefinition, column int, row int)
SetTileGroupAndTileDefinitionForColumnRow set the tile group and tile definition at the specified tile index.
func (*TileMapNode) SetTileGroupForColumnRow ¶ added in v0.17.0
func (tmn *TileMapNode) SetTileGroupForColumnRow(tileGroup *TileGroup, column int, row int)
SetTileGroupForColumnRow set the tile group at the specified tile index. When automapping is enabled, the appropriate tile definitions will automatically be selected and placed, possibly modifying neighboring tiles. When automapping is disabled, it will simply place the default center tile definition for the group, and will not modify any of the neihboring tiles.
func (*TileMapNode) Shader ¶ added in v0.17.0
func (tmn *TileMapNode) Shader() *Shader
Shader returns a property that determines whether the tile map is rendered using a custom shader.
func (*TileMapNode) TileColumnIndexFromPosition ¶ added in v0.17.0
func (tmn *TileMapNode) TileColumnIndexFromPosition(position corefoundation.CGPoint) int
TileColumnIndexFromPosition returns the column index of the tile that lies under the specified position. Returns NSUIntegerMax if the position does not fall within the tile map.
func (*TileMapNode) TileDefinitionAtColumnRow ¶ added in v0.17.0
func (tmn *TileMapNode) TileDefinitionAtColumnRow(column int, row int) *TileDefinition
TileDefinitionAtColumnRow look up the tile definition at the specified tile index.
func (*TileMapNode) TileGroupAtColumnRow ¶ added in v0.17.0
func (tmn *TileMapNode) TileGroupAtColumnRow(column int, row int) *TileGroup
TileGroupAtColumnRow look up the tile group at the specified tile index.
func (*TileMapNode) TileRowIndexFromPosition ¶ added in v0.17.0
func (tmn *TileMapNode) TileRowIndexFromPosition(position corefoundation.CGPoint) int
TileRowIndexFromPosition returns the tile map node object’s tile row index for the specified position in points.
func (*TileMapNode) TileSet ¶ added in v0.17.0
func (tmn *TileMapNode) TileSet() *TileSet
TileSet returns the tile set being used by this tile map.
func (*TileMapNode) TileSize ¶ added in v0.17.0
func (tmn *TileMapNode) TileSize() corefoundation.CGSize
TileSize returns the size of each tile in the map.
func (*TileMapNode) WithAccessibilityElement ¶ added in v0.17.0
func (tmn *TileMapNode) WithAccessibilityElement(accessibilityElement bool) *TileMapNode
WithAccessibilityElement sets a toggle you implement to indicate to the system whether this user interface element should be exposed to the user.
func (*TileMapNode) WithAccessibilityEnabled ¶ added in v0.17.0
func (tmn *TileMapNode) WithAccessibilityEnabled(accessibilityEnabled bool) *TileMapNode
WithAccessibilityEnabled sets a toggle you implement to indicate to the system whether this user interface element should respond to user input.
func (*TileMapNode) WithAccessibilityFrame ¶ added in v0.17.0
func (tmn *TileMapNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *TileMapNode
WithAccessibilityFrame sets the size of this user interface element, in screen points.
func (*TileMapNode) WithAccessibilityHelp ¶ added in v0.17.0
func (tmn *TileMapNode) WithAccessibilityHelp(accessibilityHelp string) *TileMapNode
WithAccessibilityHelp sets the help description of this user interface element; for example, the text shown in a tooltip.
func (*TileMapNode) WithAccessibilityLabel ¶ added in v0.17.0
func (tmn *TileMapNode) WithAccessibilityLabel(accessibilityLabel string) *TileMapNode
WithAccessibilityLabel sets a short description of this user interface element.
func (*TileMapNode) WithAccessibilityParent ¶ added in v0.17.0
func (tmn *TileMapNode) WithAccessibilityParent(accessibilityParent obj.Object) *TileMapNode
WithAccessibilityParent sets the user interface element that contains this element.
func (*TileMapNode) WithAccessibilityRole ¶ added in v0.17.0
func (tmn *TileMapNode) WithAccessibilityRole(accessibilityRole string) *TileMapNode
WithAccessibilityRole sets a string value describing the user interface element type; for example, a button.
func (*TileMapNode) WithAccessibilityRoleDescription ¶ added in v0.17.0
func (tmn *TileMapNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *TileMapNode
WithAccessibilityRoleDescription sets a string value describing the user interface element name and type; for example, the Buy button.
func (*TileMapNode) WithAccessibilitySubrole ¶ added in v0.17.0
func (tmn *TileMapNode) WithAccessibilitySubrole(accessibilitySubrole string) *TileMapNode
WithAccessibilitySubrole sets a string that defines this user interface element’s subrole; for example, a full-screen button.
func (*TileMapNode) WithAlpha ¶ added in v0.17.0
func (tmn *TileMapNode) WithAlpha(alpha float64) *TileMapNode
WithAlpha sets the transparency value applied to the node’s contents.
func (*TileMapNode) WithAnchorPoint ¶ added in v0.17.0
func (tmn *TileMapNode) WithAnchorPoint(anchorPoint corefoundation.CGPoint) *TileMapNode
WithAnchorPoint sets defines the point in the tile map that corresponds to its position.
func (*TileMapNode) WithAttributeValues ¶ added in v0.17.0
func (tmn *TileMapNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *TileMapNode
WithAttributeValues sets the values of each attribute associated with the node’s attached shader.
func (*TileMapNode) WithBlendMode ¶ added in v0.17.0
func (tmn *TileMapNode) WithBlendMode(blendMode BlendMode) *TileMapNode
WithBlendMode sets defines the blend mode to use when compositing the tile map over other nodes.
func (*TileMapNode) WithColor ¶ added in v0.17.0
func (tmn *TileMapNode) WithColor(color obj.Object) *TileMapNode
WithColor sets the base color for the tile map. The influence of the color over the tile map node’s textures is controlled by colorBlendFactor.
func (*TileMapNode) WithColorBlendFactor ¶ added in v0.17.0
func (tmn *TileMapNode) WithColorBlendFactor(colorBlendFactor float64) *TileMapNode
WithColorBlendFactor sets controls the blending between the texture and the tile map object’s color. Values are clamped between zero and one where zero has no color blending and one has the maximum color blending.
func (*TileMapNode) WithConstraints ¶ added in v0.17.0
func (tmn *TileMapNode) WithConstraints(items ...*Constraint) *TileMapNode
WithConstraints sets a list of constraints to apply to the node.
func (*TileMapNode) WithEnableAutomapping ¶ added in v0.17.0
func (tmn *TileMapNode) WithEnableAutomapping(enableAutomapping bool) *TileMapNode
WithEnableAutomapping sets the enable automapping.
func (*TileMapNode) WithHidden ¶ added in v0.17.0
func (tmn *TileMapNode) WithHidden(hidden bool) *TileMapNode
WithHidden sets a Boolean value that determines whether a node and its descendants are rendered.
func (*TileMapNode) WithLightingBitMask ¶ added in v0.17.0
func (tmn *TileMapNode) WithLightingBitMask(lightingBitMask uint32) *TileMapNode
WithLightingBitMask sets a mask that defines how the tile map is lit by light nodes in the scene.
func (*TileMapNode) WithName ¶ added in v0.17.0
func (tmn *TileMapNode) WithName(name string) *TileMapNode
WithName sets the node’s assignable name.
func (*TileMapNode) WithNumberOfColumns ¶ added in v0.17.0
func (tmn *TileMapNode) WithNumberOfColumns(numberOfColumns int) *TileMapNode
WithNumberOfColumns sets the number of columns in the tile map
func (*TileMapNode) WithNumberOfRows ¶ added in v0.17.0
func (tmn *TileMapNode) WithNumberOfRows(numberOfRows int) *TileMapNode
WithNumberOfRows sets the number of rows in the tile map.
func (*TileMapNode) WithPaused ¶ added in v0.17.0
func (tmn *TileMapNode) WithPaused(paused bool) *TileMapNode
WithPaused sets a Boolean value that determines whether actions on the node and its descendants are processed.
func (*TileMapNode) WithPhysicsBody ¶ added in v0.17.0
func (tmn *TileMapNode) WithPhysicsBody(physicsBody *PhysicsBody) *TileMapNode
WithPhysicsBody sets the physics body associated with the node.
func (*TileMapNode) WithPosition ¶ added in v0.17.0
func (tmn *TileMapNode) WithPosition(position corefoundation.CGPoint) *TileMapNode
WithPosition sets the position of the node in its parent’s coordinate system.
func (*TileMapNode) WithReachConstraints ¶ added in v0.17.0
func (tmn *TileMapNode) WithReachConstraints(reachConstraints *ReachConstraints) *TileMapNode
WithReachConstraints sets the reach constraints to apply to the node when executing a reach action.
func (*TileMapNode) WithShader ¶ added in v0.17.0
func (tmn *TileMapNode) WithShader(shader *Shader) *TileMapNode
WithShader sets defines a shader which is applied to each tile of the tile map.
func (*TileMapNode) WithSpeed ¶ added in v0.17.0
func (tmn *TileMapNode) WithSpeed(speed float64) *TileMapNode
WithSpeed sets a speed modifier applied to all actions executed by a node and its descendants.
func (*TileMapNode) WithTileSet ¶ added in v0.17.0
func (tmn *TileMapNode) WithTileSet(tileSet *TileSet) *TileMapNode
WithTileSet sets the tile set being used by this tile map. The tile map object can only display tiles that exist in this set.
func (*TileMapNode) WithTileSize ¶ added in v0.17.0
func (tmn *TileMapNode) WithTileSize(tileSize corefoundation.CGSize) *TileMapNode
WithTileSize sets the size of each tile in points.
func (*TileMapNode) WithUserData ¶ added in v0.17.0
func (tmn *TileMapNode) WithUserData(userData obj.Object) *TileMapNode
WithUserData sets a dictionary containing arbitrary data.
func (*TileMapNode) WithUserInteractionEnabled ¶ added in v0.17.0
func (tmn *TileMapNode) WithUserInteractionEnabled(userInteractionEnabled bool) *TileMapNode
WithUserInteractionEnabled sets a Boolean value that indicates whether the node receives touch events.
func (*TileMapNode) WithXScale ¶ added in v0.17.0
func (tmn *TileMapNode) WithXScale(xScale float64) *TileMapNode
WithXScale sets a scaling factor that multiplies the width of a node and its children.
func (*TileMapNode) WithYScale ¶ added in v0.17.0
func (tmn *TileMapNode) WithYScale(yScale float64) *TileMapNode
WithYScale sets a scaling factor that multiplies the height of a node and its children.
func (*TileMapNode) WithZPosition ¶ added in v0.17.0
func (tmn *TileMapNode) WithZPosition(zPosition float64) *TileMapNode
WithZPosition sets the height of the node relative to its parent.
func (*TileMapNode) WithZRotation ¶ added in v0.17.0
func (tmn *TileMapNode) WithZRotation(zRotation float64) *TileMapNode
WithZRotation sets the Euler rotation about the z axis (in radians).
type TileSet ¶ added in v0.17.0
TileSet is an idiomatic wrapper over the Objective-C class SKTileSet.
A container for related tile groups.
func NewTileSetWithTileGroups ¶ added in v0.17.0
NewTileSetWithTileGroups initializes a new tile set with an array of tile groups and rectangular grid layout.
func NewTileSetWithTileGroupsTileSetType ¶ added in v0.17.0
func NewTileSetWithTileGroupsTileSetType(tileGroups []*TileGroup, tileSetType TileSetType) *TileSet
NewTileSetWithTileGroupsTileSetType initializes a new tile set with an array of tile groups and specified layout.
func TileSetFromID ¶ added in v0.17.0
TileSetFromID adopts an existing Objective-C object as a TileSet (nil for 0), retaining it and registering a release finalizer.
func TileSetFromURL ¶ added in v0.17.0
TileSetFromURL initializes a tile set from a URL to an archived .sks file.
func TileSetNamed ¶ added in v0.17.0
TileSetNamed initializes a tile set by searching the app bundle for an archived .sks file by name.
func TileSetWithTileGroups ¶ added in v0.17.0
TileSetWithTileGroups create a tile set with the specified tile groups.
func TileSetWithTileGroupsTileSetType ¶ added in v0.17.0
func TileSetWithTileGroupsTileSetType(tileGroups []*TileGroup, tileSetType TileSetType) *TileSet
TileSetWithTileGroupsTileSetType create a tile set with the specified tile groups and tile set type.
func (*TileSet) DefaultTileGroup ¶ added in v0.17.0
DefaultTileGroup returns the default tile group.
func (*TileSet) DefaultTileSize ¶ added in v0.17.0
func (ts *TileSet) DefaultTileSize() corefoundation.CGSize
DefaultTileSize returns the default tile size is the value an SKTileMapNode will use for it's tiles when the tile set is assigned to it.
func (*TileSet) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*TileSet) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*TileSet) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*TileSet) Name ¶ added in v0.17.0
Name returns client-assignable name for the tile set. Defaults to nil.
func (*TileSet) String ¶ added in v0.17.0
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*TileSet) TileGroups ¶ added in v0.17.0
TileGroups returns the tile groups that this set provides for use.
TileGroups returns the collection as a Go slice.
func (*TileSet) Type ¶ added in v0.17.0
func (ts *TileSet) Type() TileSetType
Type returns the tile set type specifies how the tiles in the set will be arranged when placed in a tile map. Defaults to SKTileSetTypeGrid.
func (*TileSet) WithDefaultTileGroup ¶ added in v0.17.0
WithDefaultTileGroup sets the tile set’s default tile group.
func (*TileSet) WithDefaultTileSize ¶ added in v0.17.0
func (ts *TileSet) WithDefaultTileSize(defaultTileSize corefoundation.CGSize) *TileSet
WithDefaultTileSize sets the tile set’s default tile size.
func (*TileSet) WithTileGroups ¶ added in v0.17.0
WithTileGroups sets the tile set’s array of tile group objects.
func (*TileSet) WithType ¶ added in v0.17.0
func (ts *TileSet) WithType(type_ TileSetType) *TileSet
WithType sets the tile set’s type.
type TileSetType ¶ added in v0.17.0
type TileSetType uint64
An enumeration defining how tiles are arranged.
const ( TileSetTypeGrid TileSetType = 0 TileSetTypeIsometric TileSetType = 1 TileSetTypeHexagonalFlat TileSetType = 2 TileSetTypeHexagonalPointy TileSetType = 3 )
func (TileSetType) String ¶ added in v0.17.0
func (e TileSetType) String() string
String returns the TileSetType constant's name, or its numeric form when the value is not a known constant.
type TransformNode ¶ added in v0.17.0
type TransformNode struct {
Node
}
TransformNode is an idiomatic wrapper over the Objective-C class SKTransformNode.
It embeds Node, promoting that type's methods.
A node that allows its children to rotate in 3D.
func NewTransformNode ¶ added in v0.17.0
func NewTransformNode() *TransformNode
NewTransformNode creates a new TransformNode.
func TransformNodeFromID ¶ added in v0.17.0
func TransformNodeFromID(id objc.ID) *TransformNode
TransformNodeFromID adopts an existing Objective-C object as a TransformNode (nil for 0), retaining it and registering a release finalizer.
func (*TransformNode) EulerAngles ¶ added in v0.18.0
func (tn *TransformNode) EulerAngles() unsafe.Pointer
EulerAngles returns the euler angles.
func (*TransformNode) Quaternion ¶ added in v0.18.0
func (tn *TransformNode) Quaternion() unsafe.Pointer
Quaternion returns the quaternion.
func (*TransformNode) RotationMatrix ¶ added in v0.18.0
func (tn *TransformNode) RotationMatrix() unsafe.Pointer
RotationMatrix returns the rotation matrix.
func (*TransformNode) SetEulerAngles ¶ added in v0.17.0
func (tn *TransformNode) SetEulerAngles(euler unsafe.Pointer)
SetEulerAngles wraps the corresponding Objective-C method.
func (*TransformNode) SetQuaternion ¶ added in v0.17.0
func (tn *TransformNode) SetQuaternion(quaternion unsafe.Pointer)
SetQuaternion wraps the corresponding Objective-C method.
func (*TransformNode) SetRotationMatrix ¶ added in v0.17.0
func (tn *TransformNode) SetRotationMatrix(rotationMatrix unsafe.Pointer)
SetRotationMatrix wraps the corresponding Objective-C method.
func (*TransformNode) WithAccessibilityElement ¶ added in v0.17.0
func (tn *TransformNode) WithAccessibilityElement(accessibilityElement bool) *TransformNode
WithAccessibilityElement sets a toggle you implement to indicate to the system whether this user interface element should be exposed to the user.
func (*TransformNode) WithAccessibilityEnabled ¶ added in v0.17.0
func (tn *TransformNode) WithAccessibilityEnabled(accessibilityEnabled bool) *TransformNode
WithAccessibilityEnabled sets a toggle you implement to indicate to the system whether this user interface element should respond to user input.
func (*TransformNode) WithAccessibilityFrame ¶ added in v0.17.0
func (tn *TransformNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *TransformNode
WithAccessibilityFrame sets the size of this user interface element, in screen points.
func (*TransformNode) WithAccessibilityHelp ¶ added in v0.17.0
func (tn *TransformNode) WithAccessibilityHelp(accessibilityHelp string) *TransformNode
WithAccessibilityHelp sets the help description of this user interface element; for example, the text shown in a tooltip.
func (*TransformNode) WithAccessibilityLabel ¶ added in v0.17.0
func (tn *TransformNode) WithAccessibilityLabel(accessibilityLabel string) *TransformNode
WithAccessibilityLabel sets a short description of this user interface element.
func (*TransformNode) WithAccessibilityParent ¶ added in v0.17.0
func (tn *TransformNode) WithAccessibilityParent(accessibilityParent obj.Object) *TransformNode
WithAccessibilityParent sets the user interface element that contains this element.
func (*TransformNode) WithAccessibilityRole ¶ added in v0.17.0
func (tn *TransformNode) WithAccessibilityRole(accessibilityRole string) *TransformNode
WithAccessibilityRole sets a string value describing the user interface element type; for example, a button.
func (*TransformNode) WithAccessibilityRoleDescription ¶ added in v0.17.0
func (tn *TransformNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *TransformNode
WithAccessibilityRoleDescription sets a string value describing the user interface element name and type; for example, the Buy button.
func (*TransformNode) WithAccessibilitySubrole ¶ added in v0.17.0
func (tn *TransformNode) WithAccessibilitySubrole(accessibilitySubrole string) *TransformNode
WithAccessibilitySubrole sets a string that defines this user interface element’s subrole; for example, a full-screen button.
func (*TransformNode) WithAlpha ¶ added in v0.17.0
func (tn *TransformNode) WithAlpha(alpha float64) *TransformNode
WithAlpha sets the transparency value applied to the node’s contents.
func (*TransformNode) WithAttributeValues ¶ added in v0.17.0
func (tn *TransformNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *TransformNode
WithAttributeValues sets the values of each attribute associated with the node’s attached shader.
func (*TransformNode) WithConstraints ¶ added in v0.17.0
func (tn *TransformNode) WithConstraints(items ...*Constraint) *TransformNode
WithConstraints sets a list of constraints to apply to the node.
func (*TransformNode) WithHidden ¶ added in v0.17.0
func (tn *TransformNode) WithHidden(hidden bool) *TransformNode
WithHidden sets a Boolean value that determines whether a node and its descendants are rendered.
func (*TransformNode) WithName ¶ added in v0.17.0
func (tn *TransformNode) WithName(name string) *TransformNode
WithName sets the node’s assignable name.
func (*TransformNode) WithPaused ¶ added in v0.17.0
func (tn *TransformNode) WithPaused(paused bool) *TransformNode
WithPaused sets a Boolean value that determines whether actions on the node and its descendants are processed.
func (*TransformNode) WithPhysicsBody ¶ added in v0.17.0
func (tn *TransformNode) WithPhysicsBody(physicsBody *PhysicsBody) *TransformNode
WithPhysicsBody sets the physics body associated with the node.
func (*TransformNode) WithPosition ¶ added in v0.17.0
func (tn *TransformNode) WithPosition(position corefoundation.CGPoint) *TransformNode
WithPosition sets the position of the node in its parent’s coordinate system.
func (*TransformNode) WithReachConstraints ¶ added in v0.17.0
func (tn *TransformNode) WithReachConstraints(reachConstraints *ReachConstraints) *TransformNode
WithReachConstraints sets the reach constraints to apply to the node when executing a reach action.
func (*TransformNode) WithSpeed ¶ added in v0.17.0
func (tn *TransformNode) WithSpeed(speed float64) *TransformNode
WithSpeed sets a speed modifier applied to all actions executed by a node and its descendants.
func (*TransformNode) WithUserData ¶ added in v0.17.0
func (tn *TransformNode) WithUserData(userData obj.Object) *TransformNode
WithUserData sets a dictionary containing arbitrary data.
func (*TransformNode) WithUserInteractionEnabled ¶ added in v0.17.0
func (tn *TransformNode) WithUserInteractionEnabled(userInteractionEnabled bool) *TransformNode
WithUserInteractionEnabled sets a Boolean value that indicates whether the node receives touch events.
func (*TransformNode) WithXRotation ¶ added in v0.17.0
func (tn *TransformNode) WithXRotation(xRotation float64) *TransformNode
WithXRotation sets the x rotation.
func (*TransformNode) WithXScale ¶ added in v0.17.0
func (tn *TransformNode) WithXScale(xScale float64) *TransformNode
WithXScale sets a scaling factor that multiplies the width of a node and its children.
func (*TransformNode) WithYRotation ¶ added in v0.17.0
func (tn *TransformNode) WithYRotation(yRotation float64) *TransformNode
WithYRotation sets the y rotation.
func (*TransformNode) WithYScale ¶ added in v0.17.0
func (tn *TransformNode) WithYScale(yScale float64) *TransformNode
WithYScale sets a scaling factor that multiplies the height of a node and its children.
func (*TransformNode) WithZPosition ¶ added in v0.17.0
func (tn *TransformNode) WithZPosition(zPosition float64) *TransformNode
WithZPosition sets the height of the node relative to its parent.
func (*TransformNode) WithZRotation ¶ added in v0.17.0
func (tn *TransformNode) WithZRotation(zRotation float64) *TransformNode
WithZRotation sets the Euler rotation about the z axis (in radians).
func (*TransformNode) XRotation ¶ added in v0.17.0
func (tn *TransformNode) XRotation() float64
XRotation returns the x rotation.
func (*TransformNode) YRotation ¶ added in v0.17.0
func (tn *TransformNode) YRotation() float64
YRotation returns the y rotation.
type Transition ¶ added in v0.17.0
Transition is an idiomatic wrapper over the Objective-C class SKTransition.
An object used to perform an animated transition to a new scene.
func CrossFadeWithDuration ¶ added in v0.17.0
func CrossFadeWithDuration(sec float64) *Transition
CrossFadeWithDuration creates a cross fade transition.
func DoorsCloseHorizontalWithDuration ¶ added in v0.17.0
func DoorsCloseHorizontalWithDuration(sec float64) *Transition
DoorsCloseHorizontalWithDuration creates a transition where the new scene appears as a pair of closing horizontal doors.
func DoorsCloseVerticalWithDuration ¶ added in v0.17.0
func DoorsCloseVerticalWithDuration(sec float64) *Transition
DoorsCloseVerticalWithDuration creates a transition where the new scene appears as a pair of closing vertical doors.
func DoorsOpenHorizontalWithDuration ¶ added in v0.17.0
func DoorsOpenHorizontalWithDuration(sec float64) *Transition
DoorsOpenHorizontalWithDuration creates a transition where the new scene appears as a pair of opening horizontal doors.
func DoorsOpenVerticalWithDuration ¶ added in v0.17.0
func DoorsOpenVerticalWithDuration(sec float64) *Transition
DoorsOpenVerticalWithDuration creates a transition where the new scene appears as a pair of opening vertical doors.
func DoorwayWithDuration ¶ added in v0.17.0
func DoorwayWithDuration(sec float64) *Transition
DoorwayWithDuration creates a transition where the previous scene disappears as a pair of opening doors.
func FadeWithColorDuration ¶ added in v0.17.0
func FadeWithColorDuration(color obj.Object, sec float64) *Transition
FadeWithColorDuration creates a transition that first fades to a constant color and then fades to the new scene.
func FadeWithDuration ¶ added in v0.17.0
func FadeWithDuration(sec float64) *Transition
FadeWithDuration creates a transition that first fades to black and then fades to the new scene.
func FlipHorizontalWithDuration ¶ added in v0.17.0
func FlipHorizontalWithDuration(sec float64) *Transition
FlipHorizontalWithDuration creates a transition where the two scenes are flipped across a horizontal line running through the center of the view.
func FlipVerticalWithDuration ¶ added in v0.17.0
func FlipVerticalWithDuration(sec float64) *Transition
FlipVerticalWithDuration creates a transition where the two scenes are flipped across a vertical line running through the center of the view.
func MoveInWithDirectionDuration ¶ added in v0.17.0
func MoveInWithDirectionDuration(direction TransitionDirection, sec float64) *Transition
MoveInWithDirectionDuration creates a transition where the new scene moves in on top of the old scene.
func NewTransition ¶ added in v0.17.0
func NewTransition() *Transition
NewTransition creates a new Transition.
func PushWithDirectionDuration ¶ added in v0.17.0
func PushWithDirectionDuration(direction TransitionDirection, sec float64) *Transition
PushWithDirectionDuration creates a transition where the new scene moves in, pushing the old scene out of the view.
func RevealWithDirectionDuration ¶ added in v0.17.0
func RevealWithDirectionDuration(direction TransitionDirection, sec float64) *Transition
RevealWithDirectionDuration creates a transition where the old scene moves out of the view, revealing the new scene underneath it.
func TransitionFromID ¶ added in v0.17.0
func TransitionFromID(id objc.ID) *Transition
TransitionFromID adopts an existing Objective-C object as a Transition (nil for 0), retaining it and registering a release finalizer.
func TransitionWithCIFilterDuration ¶ added in v0.17.0
func TransitionWithCIFilterDuration(filter obj.Object, sec float64) *Transition
TransitionWithCIFilterDuration creates a transition that uses a Core Image filter to perform the transition.
func (*Transition) Description ¶ added in v0.17.0
func (t *Transition) Description() string
Description returns the object's -description text.
func (*Transition) IsEqual ¶ added in v0.17.0
func (t *Transition) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Transition) IsKind ¶ added in v0.17.0
func (t *Transition) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Transition) PausesIncomingScene ¶ added in v0.17.0
func (t *Transition) PausesIncomingScene() bool
PausesIncomingScene reports whether pause the incoming Scene during the transition, defaults to true.
func (*Transition) PausesOutgoingScene ¶ added in v0.17.0
func (t *Transition) PausesOutgoingScene() bool
PausesOutgoingScene reports whether pause the outgoing Scene during the transition, defaults to true.
func (*Transition) String ¶ added in v0.17.0
func (t *Transition) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*Transition) WithPausesIncomingScene ¶ added in v0.17.0
func (t *Transition) WithPausesIncomingScene(pausesIncomingScene bool) *Transition
WithPausesIncomingScene sets a Boolean value that determines whether the incoming scene is paused during the transition.
func (*Transition) WithPausesOutgoingScene ¶ added in v0.17.0
func (t *Transition) WithPausesOutgoingScene(pausesOutgoingScene bool) *Transition
WithPausesOutgoingScene sets a Boolean value that determines whether the outgoing scene is paused during the transition.
type TransitionDirection ¶ added in v0.17.0
type TransitionDirection int64
For some transitions, the direction in which the transition is performed.
const ( // The transition goes up. TransitionDirectionUp TransitionDirection = 0 // The transition goes down. TransitionDirectionDown TransitionDirection = 1 // The transition goes right. TransitionDirectionRight TransitionDirection = 2 // The transition goes left. TransitionDirectionLeft TransitionDirection = 3 )
func (TransitionDirection) String ¶ added in v0.17.0
func (e TransitionDirection) String() string
String returns the TransitionDirection constant's name, or its numeric form when the value is not a known constant.
type UIFocusItem ¶
type UIFocusItem interface {
}
UIFocusItem is the Go form of the Objective-C protocol UIFocusItem.
type Uniform ¶ added in v0.17.0
Uniform is an idiomatic wrapper over the Objective-C class SKUniform.
A container for uniform shader data.
func NewUniformWithName ¶ added in v0.17.0
NewUniformWithName initializes a new uniform object.
func NewUniformWithNameFloat ¶ added in v0.17.0
NewUniformWithNameFloat initializes a new uniform object that holds a floating-point number.
func NewUniformWithNameFloatMatrix2 ¶ added in v0.17.0
NewUniformWithNameFloatMatrix2 initializes a new uniform object that holds a 2 x 2 matrix of floating-point numbers.
func NewUniformWithNameFloatMatrix3 ¶ added in v0.17.0
NewUniformWithNameFloatMatrix3 initializes a new uniform object that holds a 3 x 3 matrix of floating-point numbers.
func NewUniformWithNameFloatMatrix4 ¶ added in v0.17.0
NewUniformWithNameFloatMatrix4 initializes a new uniform object that holds a 4 x 4 matrix of floating-point numbers.
func NewUniformWithNameFloatVector2 ¶ added in v0.17.0
NewUniformWithNameFloatVector2 initializes a new uniform object that holds a vector of two floating-point numbers.
func NewUniformWithNameFloatVector3 ¶ added in v0.17.0
NewUniformWithNameFloatVector3 creates and initializes a new uniform object that holds a vector of three floating-point numbers.
func NewUniformWithNameFloatVector4 ¶ added in v0.17.0
NewUniformWithNameFloatVector4 initializes a new uniform object that holds a vector of four floating-point numbers.
func NewUniformWithNameMatrixFloat2x2 ¶ added in v0.17.0
NewUniformWithNameMatrixFloat2x2 creates a new Uniform.
func NewUniformWithNameMatrixFloat3x3 ¶ added in v0.17.0
NewUniformWithNameMatrixFloat3x3 creates a new Uniform.
func NewUniformWithNameMatrixFloat4x4 ¶ added in v0.17.0
NewUniformWithNameMatrixFloat4x4 creates a new Uniform.
func NewUniformWithNameTexture ¶ added in v0.17.0
NewUniformWithNameTexture initializes a new uniform object that holds a reference to a texture.
func NewUniformWithNameVectorFloat2 ¶ added in v0.17.0
NewUniformWithNameVectorFloat2 creates a new Uniform.
func NewUniformWithNameVectorFloat3 ¶ added in v0.17.0
NewUniformWithNameVectorFloat3 creates a new Uniform.
func NewUniformWithNameVectorFloat4 ¶ added in v0.17.0
NewUniformWithNameVectorFloat4 creates a new Uniform.
func UniformFromID ¶ added in v0.17.0
UniformFromID adopts an existing Objective-C object as a Uniform (nil for 0), retaining it and registering a release finalizer.
func UniformWithName ¶ added in v0.17.0
UniformWithName creates and initializes a new uniform object.
func UniformWithNameFloat ¶ added in v0.17.0
UniformWithNameFloat creates and initializes a new uniform object that holds a floating-point number.
func UniformWithNameFloatMatrix2 ¶ added in v0.17.0
UniformWithNameFloatMatrix2 creates and initializes a new uniform object that holds a 2 x 2 matrix of floating-point numbers.
func UniformWithNameFloatMatrix3 ¶ added in v0.17.0
UniformWithNameFloatMatrix3 creates and initializes a new uniform object that holds a 3 x 3 matrix of floating-point numbers.
func UniformWithNameFloatMatrix4 ¶ added in v0.17.0
UniformWithNameFloatMatrix4 creates and initializes a new uniform object that holds a 4 x 4 matrix of floating-point numbers.
func UniformWithNameFloatVector2 ¶ added in v0.17.0
UniformWithNameFloatVector2 creates and initializes a new uniform object that holds a vector of two floating-point numbers.
func UniformWithNameFloatVector3 ¶ added in v0.17.0
UniformWithNameFloatVector3 creates and initializes a new uniform object that holds a vector of three floating-point numbers.
func UniformWithNameFloatVector4 ¶ added in v0.17.0
UniformWithNameFloatVector4 creates and initializes a new uniform object that holds a vector of four floating-point numbers.
func UniformWithNameMatrixFloat2x2 ¶ added in v0.17.0
UniformWithNameMatrixFloat2x2 create a shader uniform with a given name, and a 2x2 matrix value
func UniformWithNameMatrixFloat3x3 ¶ added in v0.17.0
UniformWithNameMatrixFloat3x3 create a shader uniform with a given name, and a 3x3 matrix value
func UniformWithNameMatrixFloat4x4 ¶ added in v0.17.0
UniformWithNameMatrixFloat4x4 create a shader uniform with a given name, and a 4x4 matrix value
func UniformWithNameTexture ¶ added in v0.17.0
UniformWithNameTexture creates and initializes a new uniform object that holds a reference to a texture.
func UniformWithNameVectorFloat2 ¶ added in v0.17.0
UniformWithNameVectorFloat2 create a shader uniform with a given name, and a float vector2 value
func UniformWithNameVectorFloat3 ¶ added in v0.17.0
UniformWithNameVectorFloat3 create a shader uniform with a given name, and a float vector3 value
func UniformWithNameVectorFloat4 ¶ added in v0.17.0
UniformWithNameVectorFloat4 create a shader uniform with a given name, and a float vector4 value
func (*Uniform) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*Uniform) FloatMatrix2Value ¶ added in v0.18.0
FloatMatrix2Value returns the float matrix2 value.
func (*Uniform) FloatMatrix3Value ¶ added in v0.18.0
FloatMatrix3Value returns the float matrix3 value.
func (*Uniform) FloatMatrix4Value ¶ added in v0.18.0
FloatMatrix4Value returns the float matrix4 value.
func (*Uniform) FloatValue ¶ added in v0.17.0
FloatValue returns the float value.
func (*Uniform) FloatVector2Value ¶ added in v0.18.0
FloatVector2Value returns the float vector2 value.
func (*Uniform) FloatVector3Value ¶ added in v0.18.0
FloatVector3Value returns the float vector3 value.
func (*Uniform) FloatVector4Value ¶ added in v0.18.0
FloatVector4Value returns the float vector4 value.
func (*Uniform) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Uniform) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Uniform) MatrixFloat2x2Value ¶ added in v0.18.0
MatrixFloat2x2Value returns the matrix float2x2 value.
func (*Uniform) MatrixFloat3x3Value ¶ added in v0.18.0
MatrixFloat3x3Value returns the matrix float3x3 value.
func (*Uniform) MatrixFloat4x4Value ¶ added in v0.18.0
MatrixFloat4x4Value returns the matrix float4x4 value.
func (*Uniform) String ¶ added in v0.17.0
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*Uniform) TextureValue ¶ added in v0.17.0
TextureValue returns the texture value.
func (*Uniform) UniformType ¶ added in v0.17.0
func (u *Uniform) UniformType() UniformType
UniformType returns the uniform type.
func (*Uniform) VectorFloat2Value ¶ added in v0.18.0
VectorFloat2Value returns the vector float2 value.
func (*Uniform) VectorFloat3Value ¶ added in v0.18.0
VectorFloat3Value returns the vector float3 value.
func (*Uniform) VectorFloat4Value ¶ added in v0.18.0
VectorFloat4Value returns the vector float4 value.
func (*Uniform) WithFloatMatrix2Value ¶ added in v0.17.0
WithFloatMatrix2Value sets the receiver’s value as a 2 x 2 matrix of floating-point values.
func (*Uniform) WithFloatMatrix3Value ¶ added in v0.17.0
WithFloatMatrix3Value sets the receiver’s value as a 3 x 3 matrix of floating-point values.
func (*Uniform) WithFloatMatrix4Value ¶ added in v0.17.0
WithFloatMatrix4Value sets the receiver’s value as a 4 x 4 matrix of floating-point values.
func (*Uniform) WithFloatValue ¶ added in v0.17.0
WithFloatValue sets the receiver’s value as a floating-point value.
func (*Uniform) WithFloatVector2Value ¶ added in v0.17.0
WithFloatVector2Value sets the receiver’s value as a vector of two floating-point values.
func (*Uniform) WithFloatVector3Value ¶ added in v0.17.0
WithFloatVector3Value sets the receiver’s value as a vector of three floating-point values.
func (*Uniform) WithFloatVector4Value ¶ added in v0.17.0
WithFloatVector4Value sets the receiver’s value as a vector of four floating-point values.
func (*Uniform) WithMatrixFloat2x2Value ¶ added in v0.17.0
WithMatrixFloat2x2Value sets the matrix float2x2 value.
func (*Uniform) WithMatrixFloat3x3Value ¶ added in v0.17.0
WithMatrixFloat3x3Value sets the matrix float3x3 value.
func (*Uniform) WithMatrixFloat4x4Value ¶ added in v0.17.0
WithMatrixFloat4x4Value sets the matrix float4x4 value.
func (*Uniform) WithTextureValue ¶ added in v0.17.0
func (u *Uniform) WithTextureValue(textureValue TextureProvider) *Uniform
WithTextureValue sets the receiver’s value as a SpriteKit texture.
func (*Uniform) WithVectorFloat2Value ¶ added in v0.17.0
WithVectorFloat2Value sets the vector float2 value.
func (*Uniform) WithVectorFloat3Value ¶ added in v0.17.0
WithVectorFloat3Value sets the vector float3 value.
type UniformType ¶ added in v0.17.0
type UniformType int64
An enumerated type to identify the type of a uniform object.
const ( // Indicates that the uniform variable does not currently hold any data. A uniform object has this type until the first time its value is set. UniformTypeNone UniformType = 0 // Indicates that the uniform variable holds a 32-bit floating-point value. UniformTypeFloat UniformType = 1 // Indicates that the uniform variable holds a vector of two 32-bit floating-point values. UniformTypeFloatVector2 UniformType = 2 // Indicates that the uniform variable holds a vector of three 32-bit floating-point values. UniformTypeFloatVector3 UniformType = 3 // Indicates that the uniform variable holds a vector of four 32-bit floating-point values. UniformTypeFloatVector4 UniformType = 4 // Indicates that the uniform variable holds a 2 x 2 matrix of four 32-bit floating-point values. UniformTypeFloatMatrix2 UniformType = 5 // Indicates that the uniform variable holds a 3 x 3 matrix of four 32-bit floating-point values. UniformTypeFloatMatrix3 UniformType = 6 // Indicates that the uniform variable holds a 3 x 3 matrix of four 32-bit floating-point values. UniformTypeFloatMatrix4 UniformType = 7 // Indicates that the uniform variable holds a reference to a SpriteKit texture. UniformTypeTexture UniformType = 8 )
func (UniformType) String ¶ added in v0.17.0
func (e UniformType) String() string
String returns the UniformType constant's name, or its numeric form when the value is not a known constant.
type VideoNode ¶ added in v0.17.0
type VideoNode struct {
Node
}
VideoNode is an idiomatic wrapper over the Objective-C class SKVideoNode.
It embeds Node, promoting that type's methods.
A graphical element that plays video content.
func NewVideoNodeWithAVPlayer ¶ added in v0.17.0
NewVideoNodeWithAVPlayer initializes a video node using an existing AVPlayer object.
func NewVideoNodeWithCoder ¶ added in v0.17.0
NewVideoNodeWithCoder tells you when to initialize a video node that was created from an archive.
func NewVideoNodeWithFileNamed ¶ added in v0.17.0
NewVideoNodeWithFileNamed initializes a video node using a video file stored in the app bundle.
func NewVideoNodeWithURL ¶ added in v0.17.0
NewVideoNodeWithURL initializes a video node using a URL.
func NewVideoNodeWithVideoFileNamed ¶ added in v0.17.0
NewVideoNodeWithVideoFileNamed initializes a video node using a video file stored in the app bundle.
func NewVideoNodeWithVideoURL ¶ added in v0.17.0
NewVideoNodeWithVideoURL initializes a video node using a URL that points to a video file.
func VideoNodeFromID ¶ added in v0.17.0
VideoNodeFromID adopts an existing Objective-C object as a VideoNode (nil for 0), retaining it and registering a release finalizer.
func VideoNodeWithAVPlayer ¶ added in v0.17.0
VideoNodeWithAVPlayer creates and initializes a video node using an existing video player object.
func VideoNodeWithFileNamed ¶ added in v0.17.0
VideoNodeWithFileNamed creates and initializes a new video node using a video file stored in the app bundle.
func VideoNodeWithURL ¶ added in v0.17.0
VideoNodeWithURL creates and initializes a video node using a URL that points to a video file.
func VideoNodeWithVideoFileNamed ¶ added in v0.17.0
VideoNodeWithVideoFileNamed creates and initializes a new video node using a video file stored in the app bundle.
func VideoNodeWithVideoURL ¶ added in v0.17.0
VideoNodeWithVideoURL creates and initializes a video node using a URL that points to a video file.
func (*VideoNode) AnchorPoint ¶ added in v0.17.0
func (vn *VideoNode) AnchorPoint() corefoundation.CGPoint
AnchorPoint returns the location in the video that maps to its 'position' in the parent's coordinate space. (0.0-1.0)
func (*VideoNode) Pause ¶ added in v0.17.0
func (vn *VideoNode) Pause()
Pause pauses video playback.
func (*VideoNode) Size ¶ added in v0.17.0
func (vn *VideoNode) Size() corefoundation.CGSize
Size returns the display size of the video (in parent's coordinate space)
func (*VideoNode) WithAccessibilityElement ¶ added in v0.17.0
WithAccessibilityElement sets a toggle you implement to indicate to the system whether this user interface element should be exposed to the user.
func (*VideoNode) WithAccessibilityEnabled ¶ added in v0.17.0
WithAccessibilityEnabled sets a toggle you implement to indicate to the system whether this user interface element should respond to user input.
func (*VideoNode) WithAccessibilityFrame ¶ added in v0.17.0
func (vn *VideoNode) WithAccessibilityFrame(accessibilityFrame corefoundation.CGRect) *VideoNode
WithAccessibilityFrame sets the size of this user interface element, in screen points.
func (*VideoNode) WithAccessibilityHelp ¶ added in v0.17.0
WithAccessibilityHelp sets the help description of this user interface element; for example, the text shown in a tooltip.
func (*VideoNode) WithAccessibilityLabel ¶ added in v0.17.0
WithAccessibilityLabel sets a short description of this user interface element.
func (*VideoNode) WithAccessibilityParent ¶ added in v0.17.0
WithAccessibilityParent sets the user interface element that contains this element.
func (*VideoNode) WithAccessibilityRole ¶ added in v0.17.0
WithAccessibilityRole sets a string value describing the user interface element type; for example, a button.
func (*VideoNode) WithAccessibilityRoleDescription ¶ added in v0.17.0
func (vn *VideoNode) WithAccessibilityRoleDescription(accessibilityRoleDescription string) *VideoNode
WithAccessibilityRoleDescription sets a string value describing the user interface element name and type; for example, the Buy button.
func (*VideoNode) WithAccessibilitySubrole ¶ added in v0.17.0
WithAccessibilitySubrole sets a string that defines this user interface element’s subrole; for example, a full-screen button.
func (*VideoNode) WithAlpha ¶ added in v0.17.0
WithAlpha sets the transparency value applied to the node’s contents.
func (*VideoNode) WithAnchorPoint ¶ added in v0.17.0
func (vn *VideoNode) WithAnchorPoint(anchorPoint corefoundation.CGPoint) *VideoNode
WithAnchorPoint sets the point in the sprite that corresponds to the node’s position.
func (*VideoNode) WithAttributeValues ¶ added in v0.17.0
func (vn *VideoNode) WithAttributeValues(attributeValues map[string]*AttributeValue) *VideoNode
WithAttributeValues sets the values of each attribute associated with the node’s attached shader.
func (*VideoNode) WithConstraints ¶ added in v0.17.0
func (vn *VideoNode) WithConstraints(items ...*Constraint) *VideoNode
WithConstraints sets a list of constraints to apply to the node.
func (*VideoNode) WithHidden ¶ added in v0.17.0
WithHidden sets a Boolean value that determines whether a node and its descendants are rendered.
func (*VideoNode) WithPaused ¶ added in v0.17.0
WithPaused sets a Boolean value that determines whether actions on the node and its descendants are processed.
func (*VideoNode) WithPhysicsBody ¶ added in v0.17.0
func (vn *VideoNode) WithPhysicsBody(physicsBody *PhysicsBody) *VideoNode
WithPhysicsBody sets the physics body associated with the node.
func (*VideoNode) WithPosition ¶ added in v0.17.0
func (vn *VideoNode) WithPosition(position corefoundation.CGPoint) *VideoNode
WithPosition sets the position of the node in its parent’s coordinate system.
func (*VideoNode) WithReachConstraints ¶ added in v0.17.0
func (vn *VideoNode) WithReachConstraints(reachConstraints *ReachConstraints) *VideoNode
WithReachConstraints sets the reach constraints to apply to the node when executing a reach action.
func (*VideoNode) WithSize ¶ added in v0.17.0
func (vn *VideoNode) WithSize(size corefoundation.CGSize) *VideoNode
WithSize sets the dimensions of the video node, in points.
func (*VideoNode) WithSpeed ¶ added in v0.17.0
WithSpeed sets a speed modifier applied to all actions executed by a node and its descendants.
func (*VideoNode) WithUserData ¶ added in v0.17.0
WithUserData sets a dictionary containing arbitrary data.
func (*VideoNode) WithUserInteractionEnabled ¶ added in v0.17.0
WithUserInteractionEnabled sets a Boolean value that indicates whether the node receives touch events.
func (*VideoNode) WithXScale ¶ added in v0.17.0
WithXScale sets a scaling factor that multiplies the width of a node and its children.
func (*VideoNode) WithYScale ¶ added in v0.17.0
WithYScale sets a scaling factor that multiplies the height of a node and its children.
func (*VideoNode) WithZPosition ¶ added in v0.17.0
WithZPosition sets the height of the node relative to its parent.
func (*VideoNode) WithZRotation ¶ added in v0.17.0
WithZRotation sets the Euler rotation about the z axis (in radians).
type View ¶ added in v0.17.0
View is an idiomatic wrapper over the Objective-C class SKView.
A view subclass that renders a SpriteKit scene.
func ViewFromID ¶ added in v0.17.0
ViewFromID adopts an existing Objective-C object as a View (nil for 0), retaining it and registering a release finalizer.
func (*View) AllowsTransparency ¶ added in v0.17.0
AllowsTransparency reports whether toggles whether the view allows transparent rendering. This allows content under the view to show through if a non-opaque backgroundColor is set on the scene. Defaults to false.
func (*View) ConvertPointFromScene ¶ added in v0.17.0
func (v_ *View) ConvertPointFromScene(point corefoundation.CGPoint, scene *Scene) corefoundation.CGPoint
ConvertPointFromScene converts a point from scene coordinates to view coordinates.
func (*View) ConvertPointToScene ¶ added in v0.17.0
func (v_ *View) ConvertPointToScene(point corefoundation.CGPoint, scene *Scene) corefoundation.CGPoint
ConvertPointToScene converts a point from view coordinates to scene coordinates.
func (*View) Delegate ¶ added in v0.17.0
func (v_ *View) Delegate() *foundation.Object
Delegate returns optional view delegate, see SKViewDelegate.
func (*View) Description ¶ added in v0.17.0
Description returns the object's -description text.
func (*View) DisableDepthStencilBuffer ¶ added in v0.17.0
DisableDepthStencilBuffer wraps the corresponding Objective-C method.
func (*View) FrameInterval ¶ added in v0.17.0
FrameInterval returns the frame interval.
func (*View) IgnoresSiblingOrder ¶ added in v0.17.0
IgnoresSiblingOrder reports whether ignores sibling and traversal order to sort the rendered contents of a scene into the most efficient batching possible. This will require zPosition to be used in the scenes to properly guarantee elements are in front or behind each other. This defaults to false, meaning that sibling order overrides efficiency heuristics in the rendering of the scenes in the view. Setting this to true for a complex scene may substantially increase performance, but care must be taken as only zPosition determines render order before the efficiency heuristics are used.
func (*View) IsAsynchronous ¶ added in v0.17.0
IsAsynchronous reports whether toggles whether the view updates is rendered asynchronously or aligned with Core Animation updates. Defaults to true.
func (*View) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*View) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*View) PreferredFrameRate ¶ added in v0.17.0
PreferredFrameRate returns the preferred frame rate.
func (*View) PreferredFramesPerSecond ¶ added in v0.17.0
PreferredFramesPerSecond returns the preferred frames per second.
func (*View) PresentScene ¶ added in v0.17.0
PresentScene presents a scene.
func (*View) PresentSceneTransition ¶ added in v0.17.0
func (v_ *View) PresentSceneTransition(scene *Scene, transition *Transition)
PresentSceneTransition transitions from the current scene to a new scene.
func (*View) Scene ¶ added in v0.17.0
Scene returns the currently presented scene, otherwise nil. If in a transition, the 'incoming' scene is returned.
func (*View) ShouldCullNonVisibleNodes ¶ added in v0.17.0
ShouldCullNonVisibleNodes wraps the corresponding Objective-C method.
func (*View) ShowsDrawCount ¶ added in v0.17.0
ShowsDrawCount wraps the corresponding Objective-C method.
func (*View) ShowsFPS ¶ added in v0.17.0
ShowsFPS reports whether toggles display of performance stats in the view. All default to false.
func (*View) ShowsFields ¶ added in v0.17.0
ShowsFields wraps the corresponding Objective-C method.
func (*View) ShowsNodeCount ¶ added in v0.17.0
ShowsNodeCount wraps the corresponding Objective-C method.
func (*View) ShowsPhysics ¶ added in v0.17.0
ShowsPhysics wraps the corresponding Objective-C method.
func (*View) ShowsQuadCount ¶ added in v0.17.0
ShowsQuadCount wraps the corresponding Objective-C method.
func (*View) String ¶ added in v0.17.0
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*View) TextureFromNode ¶ added in v0.17.0
TextureFromNode renders the contents of a node tree and returns the rendered image as a texture.
func (*View) TextureFromNodeCrop ¶ added in v0.17.0
func (v_ *View) TextureFromNodeCrop(node *Node, crop corefoundation.CGRect) *Texture
TextureFromNodeCrop renders a portion of a node’s contents and returns the rendered image as a texture.
func (*View) WithAllowsTransparency ¶ added in v0.17.0
WithAllowsTransparency sets a Boolean property that indicates whether the view is rendered using transparency.
func (*View) WithAsynchronous ¶ added in v0.17.0
WithAsynchronous sets a Boolean value that indicates whether the content is rendered asynchronously.
func (*View) WithDelegate ¶ added in v0.17.0
WithDelegate sets a delegate that allows dynamic control of the view’s render rate.
func (*View) WithDisableDepthStencilBuffer ¶ added in v0.17.0
WithDisableDepthStencilBuffer sets the disable depth stencil buffer.
func (*View) WithFrameInterval ¶ added in v0.17.0
WithFrameInterval sets the number of frames that must pass before the scene is called to update its contents.
func (*View) WithIgnoresSiblingOrder ¶ added in v0.17.0
WithIgnoresSiblingOrder sets a Boolean value that indicates whether parent-child and sibling relationships affect the rendering order of nodes in the scene.
func (*View) WithPaused ¶ added in v0.17.0
WithPaused sets a Boolean value that indicates whether the view’s scene animations are paused.
func (*View) WithPreferredFrameRate ¶ added in v0.17.0
WithPreferredFrameRate sets the preferred frame rate.
func (*View) WithPreferredFramesPerSecond ¶ added in v0.17.0
WithPreferredFramesPerSecond sets the animation frame rate that the view uses to render its scene.
func (*View) WithShouldCullNonVisibleNodes ¶ added in v0.17.0
WithShouldCullNonVisibleNodes sets a Boolean value that indicates whether the view automatically culls non-visible nodes from the rendering tree.
func (*View) WithShowsDrawCount ¶ added in v0.17.0
WithShowsDrawCount sets a Boolean value that indicates whether the view displays the number of drawing passes it needed to render the view.
func (*View) WithShowsFPS ¶ added in v0.17.0
WithShowsFPS sets a Boolean value that indicates whether the view displays a frame rate indicator.
func (*View) WithShowsFields ¶ added in v0.17.0
WithShowsFields sets a Boolean value that indicates whether the view displays information about physics fields in the scene.
func (*View) WithShowsNodeCount ¶ added in v0.17.0
WithShowsNodeCount sets a Boolean value that indicates whether the view displays an overlay that shows physics bodies that are visible in the scene.
func (*View) WithShowsPhysics ¶ added in v0.17.0
WithShowsPhysics sets a Boolean value that indicates whether the view displays physics-related debugging information.
func (*View) WithShowsQuadCount ¶ added in v0.17.0
WithShowsQuadCount sets a Boolean value that indicates whether the view displays the number of rectangles used to render the scene.
type ViewDelegate ¶ added in v0.17.0
type ViewDelegate interface {
}
ViewDelegate receives the callbacks of the Objective-C protocol SKViewDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (ViewDelegate…Handler): implement the ones you need on the same value and the framework will call them too.
type ViewDelegateViewShouldRenderAtTimeHandler ¶ added in v0.17.0
type ViewDelegateViewShouldRenderAtTimeHandler interface {
ViewShouldRenderAtTime(view *View, time_ float64) bool
}
ViewDelegateViewShouldRenderAtTimeHandler is the optional SKViewDelegate method view:shouldRenderAtTime:. Implement it on a ViewDelegate value to receive that callback; a value without it is simply never sent one.
type VirtualMemoryGuardExceptionCode ¶ added in v0.17.0
type VirtualMemoryGuardExceptionCode uint32
const ( KGUARD_EXC_DEALLOC_GAP VirtualMemoryGuardExceptionCode = 1 KGUARD_EXC_RECLAIM_COPYIO_FAILURE VirtualMemoryGuardExceptionCode = 2 KGUARD_EXC_RECLAIM_INDEX_FAILURE VirtualMemoryGuardExceptionCode = 4 KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE VirtualMemoryGuardExceptionCode = 8 KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE VirtualMemoryGuardExceptionCode = 9 KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE VirtualMemoryGuardExceptionCode = 10 KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE VirtualMemoryGuardExceptionCode = 11 KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION VirtualMemoryGuardExceptionCode = 12 KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY VirtualMemoryGuardExceptionCode = 13 KGUARD_EXC_SEC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 98 KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT VirtualMemoryGuardExceptionCode = 99 KGUARD_EXC_SEC_COPY_DENIED VirtualMemoryGuardExceptionCode = 100 KGUARD_EXC_SEC_SHARING_DENIED VirtualMemoryGuardExceptionCode = 101 KGUARD_EXC_MTE_SYNC_FAULT VirtualMemoryGuardExceptionCode = 200 KGUARD_EXC_MTE_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 201 KGUARD_EXC_MTE_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 202 KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 203 KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 204 )
func (VirtualMemoryGuardExceptionCode) String ¶ added in v0.17.0
func (e VirtualMemoryGuardExceptionCode) String() string
String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.
type WarpGeometry ¶ added in v0.17.0
WarpGeometry is an idiomatic wrapper over the Objective-C class SKWarpGeometry.
WarpGeometry is an abstract base — you do not construct it directly. Construct one of WarpGeometryGrid and pass it where a WarpGeometry is accepted.
A definition for a deformation of nodes that conform to SKWarpable.
func WarpGeometryFromID ¶ added in v0.17.0
func WarpGeometryFromID(id objc.ID) *WarpGeometry
WarpGeometryFromID adopts an existing Objective-C object as a WarpGeometry (nil for 0), retaining it and registering a release finalizer.
func (*WarpGeometry) Description ¶ added in v0.17.0
func (wg *WarpGeometry) Description() string
Description returns the object's -description text.
func (*WarpGeometry) IsEqual ¶ added in v0.17.0
func (wg *WarpGeometry) IsEqual(other obj.Object) bool
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*WarpGeometry) IsKind ¶ added in v0.17.0
func (wg *WarpGeometry) IsKind(className string) bool
IsKind reports whether the object is an instance of the named class or a subclass.
func (*WarpGeometry) String ¶ added in v0.17.0
func (wg *WarpGeometry) String() string
String returns the object's -description text, so a wrapper prints usefully under fmt.
type WarpGeometryGrid ¶ added in v0.17.0
type WarpGeometryGrid struct {
WarpGeometry
}
WarpGeometryGrid is an idiomatic wrapper over the Objective-C class SKWarpGeometryGrid.
It embeds WarpGeometry, promoting that type's methods.
A definition for a grid-based deformation of nodes that conform to SKWarpable.
func Grid ¶ added in v0.17.0
func Grid() *WarpGeometryGrid
Grid returns initializes a new empty grid.
func GridWithColumnsRows ¶ added in v0.17.0
func GridWithColumnsRows(cols int, rows int) *WarpGeometryGrid
GridWithColumnsRows creates a warp geometry grid of a specified size.
func GridWithColumnsRowsSourcePositionsDestPositions ¶ added in v0.17.0
func GridWithColumnsRowsSourcePositionsDestPositions(cols int, rows int, sourcePositions unsafe.Pointer, destPositions unsafe.Pointer) *WarpGeometryGrid
GridWithColumnsRowsSourcePositionsDestPositions wraps the corresponding Objective-C method.
func NewWarpGeometryGridWithCoder ¶ added in v0.17.0
func NewWarpGeometryGridWithCoder(aDecoder obj.Object) *WarpGeometryGrid
NewWarpGeometryGridWithCoder tells you when to intialize a grid that was loaded from an archive.
func NewWarpGeometryGridWithColumnsRowsSourcePositionsDestPositions ¶ added in v0.17.0
func NewWarpGeometryGridWithColumnsRowsSourcePositionsDestPositions(cols int, rows int, sourcePositions unsafe.Pointer, destPositions unsafe.Pointer) *WarpGeometryGrid
NewWarpGeometryGridWithColumnsRowsSourcePositionsDestPositions creates a warp geometry grid of a specific size and warp translation, in pointers to point arrays.
func WarpGeometryGridFromID ¶ added in v0.17.0
func WarpGeometryGridFromID(id objc.ID) *WarpGeometryGrid
WarpGeometryGridFromID adopts an existing Objective-C object as a WarpGeometryGrid (nil for 0), retaining it and registering a release finalizer.
func (*WarpGeometryGrid) DestPositionAtIndex ¶ added in v0.18.0
func (wgg *WarpGeometryGrid) DestPositionAtIndex(index int) unsafe.Pointer
DestPositionAtIndex returns the destination position of a vertex.
func (*WarpGeometryGrid) GridByReplacingDestPositions ¶ added in v0.17.0
func (wgg *WarpGeometryGrid) GridByReplacingDestPositions(destPositions unsafe.Pointer) *WarpGeometryGrid
GridByReplacingDestPositions returns a copy of the receiver with the destination positions replaced by a specified array.
func (*WarpGeometryGrid) GridByReplacingSourcePositions ¶ added in v0.17.0
func (wgg *WarpGeometryGrid) GridByReplacingSourcePositions(sourcePositions unsafe.Pointer) *WarpGeometryGrid
GridByReplacingSourcePositions returns a copy of the receiver with the source positions replaced by a specified array.
func (*WarpGeometryGrid) NumberOfColumns ¶ added in v0.17.0
func (wgg *WarpGeometryGrid) NumberOfColumns() int
NumberOfColumns returns the number of columns.
func (*WarpGeometryGrid) NumberOfRows ¶ added in v0.17.0
func (wgg *WarpGeometryGrid) NumberOfRows() int
NumberOfRows returns the number of rows.
func (*WarpGeometryGrid) SourcePositionAtIndex ¶ added in v0.18.0
func (wgg *WarpGeometryGrid) SourcePositionAtIndex(index int) unsafe.Pointer
SourcePositionAtIndex returns the source position of a vertex.
func (*WarpGeometryGrid) VertexCount ¶ added in v0.17.0
func (wgg *WarpGeometryGrid) VertexCount() int
VertexCount returns the vertex count.
type WarpGeometryProvider ¶ added in v0.17.0
WarpGeometryProvider is accepted wherever a SKWarpGeometry (or one of its subclasses) is expected.
type Warpable ¶ added in v0.17.0
type Warpable interface {
WarpGeometry() *WarpGeometry
SetWarpGeometry(warpGeometry *WarpGeometry)
SubdivisionLevels() int
SetSubdivisionLevels(subdivisionLevels int)
}
Warpable is the Go form of the Objective-C protocol SKWarpable.
type XpcListenerCreateFlags ¶ added in v0.17.0
type XpcListenerCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcListenerCreateFlagsNone XpcListenerCreateFlags = 0 XpcListenerCreateFlagsInactive XpcListenerCreateFlags = 1 XpcListenerCreateFlagsForceMach XpcListenerCreateFlags = 2 XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4 )
func (XpcListenerCreateFlags) String ¶ added in v0.17.0
func (e XpcListenerCreateFlags) String() string
String returns the XpcListenerCreateFlags constant's name, or its numeric form when the value is not a known constant.
type XpcSessionCreateFlags ¶ added in v0.17.0
type XpcSessionCreateFlags uint64
Bitmask — values may be combined with |.
const ( XpcSessionCreateFlagsNone XpcSessionCreateFlags = 0 XpcSessionCreateFlagsInactive XpcSessionCreateFlags = 1 XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2 )
func (XpcSessionCreateFlags) String ¶ added in v0.17.0
func (e XpcSessionCreateFlags) String() string
String returns the XpcSessionCreateFlags constant's name, or its numeric form when the value is not a known constant.
Source Files
¶
- SK3DNode_generated.go
- SKAction_generated.go
- SKAttributeValue_generated.go
- SKAttribute_generated.go
- SKAudioNode_generated.go
- SKCameraNode_generated.go
- SKConstraint_generated.go
- SKCropNode_generated.go
- SKEffectNode_generated.go
- SKEmitterNode_generated.go
- SKFieldNode_generated.go
- SKKeyframeSequence_generated.go
- SKLabelNode_generated.go
- SKLightNode_generated.go
- SKMutableTexture_generated.go
- SKNode_generated.go
- SKPhysicsBody_generated.go
- SKPhysicsContactDelegate_delegate_generated.go
- SKPhysicsContact_generated.go
- SKPhysicsJointFixed_generated.go
- SKPhysicsJointLimit_generated.go
- SKPhysicsJointPin_generated.go
- SKPhysicsJointSliding_generated.go
- SKPhysicsJointSpring_generated.go
- SKPhysicsJoint_generated.go
- SKPhysicsWorld_generated.go
- SKRange_generated.go
- SKReachConstraints_generated.go
- SKReferenceNode_generated.go
- SKRegion_generated.go
- SKRenderer_generated.go
- SKSceneDelegate_delegate_generated.go
- SKScene_generated.go
- SKShader_generated.go
- SKShapeNode_generated.go
- SKSpriteNode_generated.go
- SKTextureAtlas_generated.go
- SKTexture_generated.go
- SKTileDefinition_generated.go
- SKTileGroupRule_generated.go
- SKTileGroup_generated.go
- SKTileMapNode_generated.go
- SKTileSet_generated.go
- SKTransformNode_generated.go
- SKTransition_generated.go
- SKUniform_generated.go
- SKVideoNode_generated.go
- SKViewDelegate_delegate_generated.go
- SKView_generated.go
- SKWarpGeometryGrid_generated.go
- SKWarpGeometry_generated.go
- doc.go
- spritekit_classmethods_generated.go
- spritekit_enums_generated.go
- spritekit_protocols_generated.go
- spritekit_providers_generated.go
- spritekit_runtime_generated.go