quartzcore

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package quartzcore provides a fluent Go API over the macOS QuartzCore 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.

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:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnimationDuration added in v0.17.0

func AnimationDuration() float64

AnimationDuration returns the animation duration used by all animations within this transaction group.

func Begin added in v0.17.0

func Begin()

Begin begin a new transaction for the current thread.

func CACurrentMediaTime

func CACurrentMediaTime() float64

CACurrentMediaTime calls the QuartzCore framework function CACurrentMediaTime.

func CADynamicRangeAutomatic

func CADynamicRangeAutomatic() obj.Object

CADynamicRangeAutomatic returns the string constant CADynamicRangeAutomatic, for use as a dictionary key or argument.

func CADynamicRangeConstrainedHigh

func CADynamicRangeConstrainedHigh() obj.Object

CADynamicRangeConstrainedHigh returns the string constant CADynamicRangeConstrainedHigh, for use as a dictionary key or argument.

func CADynamicRangeHigh

func CADynamicRangeHigh() obj.Object

CADynamicRangeHigh returns the string constant CADynamicRangeHigh, for use as a dictionary key or argument.

func CADynamicRangeStandard

func CADynamicRangeStandard() obj.Object

CADynamicRangeStandard returns the string constant CADynamicRangeStandard, for use as a dictionary key or argument.

func CAEmitterCellDefaultValueForKey

func CAEmitterCellDefaultValueForKey(key string) obj.Object

CAEmitterCellDefaultValueForKey returns the default value of the property with the specified key.

func CAFrameRateRangeDefault

func CAFrameRateRangeDefault() uintptr

CAFrameRateRangeDefault returns the address of the symbol CAFrameRateRangeDefault.

func CAFrameRateRangeIsEqualToRange

func CAFrameRateRangeIsEqualToRange(range_ CAFrameRateRange, other CAFrameRateRange) bool

CAFrameRateRangeIsEqualToRange calls the QuartzCore framework function CAFrameRateRangeIsEqualToRange.

func CALayerDefaultValueForKey

func CALayerDefaultValueForKey(key string) obj.Object

CALayerDefaultValueForKey specifies the default value associated with the specified key.

func CAToneMapModeAutomatic

func CAToneMapModeAutomatic() obj.Object

CAToneMapModeAutomatic returns the string constant CAToneMapModeAutomatic, for use as a dictionary key or argument.

func CAToneMapModeIfSupported

func CAToneMapModeIfSupported() obj.Object

CAToneMapModeIfSupported returns the string constant CAToneMapModeIfSupported, for use as a dictionary key or argument.

func CAToneMapModeNever

func CAToneMapModeNever() obj.Object

CAToneMapModeNever returns the string constant CAToneMapModeNever, for use as a dictionary key or argument.

func CATransform3DEqualToTransform

func CATransform3DEqualToTransform(a CATransform3D, b CATransform3D) bool

CATransform3DEqualToTransform calls the QuartzCore framework function CATransform3DEqualToTransform.

func CATransform3DGetAffineTransform

func CATransform3DGetAffineTransform(t CATransform3D) corefoundation.CGAffineTransform

CATransform3DGetAffineTransform calls the QuartzCore framework function CATransform3DGetAffineTransform.

func CATransform3DIdentity

func CATransform3DIdentity() uintptr

CATransform3DIdentity returns the address of the symbol CATransform3DIdentity.

func CATransform3DIsAffine

func CATransform3DIsAffine(t CATransform3D) bool

CATransform3DIsAffine calls the QuartzCore framework function CATransform3DIsAffine.

func CATransform3DIsIdentity

func CATransform3DIsIdentity(t CATransform3D) bool

CATransform3DIsIdentity calls the QuartzCore framework function CATransform3DIsIdentity.

func Commit added in v0.17.0

func Commit()

Commit commit all changes made during the current transaction.

func CornerCurveExpansionFactor added in v0.17.0

func CornerCurveExpansionFactor(curve obj.Object) float64

CornerCurveExpansionFactor wraps the corresponding Objective-C method.

func DefaultValueForKey added in v0.17.0

func DefaultValueForKey(key string) obj.Object

DefaultValueForKey specifies the default value of the property with the specified key.

func DisableActions added in v0.17.0

func DisableActions() bool

DisableActions reports whether actions triggered as a result of property changes made within this transaction group are suppressed.

func FadeDuration added in v0.17.0

func FadeDuration() float64

FadeDuration returns the time, in seconds, that newly added images take to “fade-in” to the rendered representation of the tiled layer.

func Flush added in v0.17.0

func Flush()

Flush flushes any extant implicit transaction.

func IsAvailable added in v0.17.0

func IsAvailable() bool

IsAvailable reports whether the object is available.

func KCAAlignmentCenter

func KCAAlignmentCenter() obj.Object

KCAAlignmentCenter returns the string constant kCAAlignmentCenter, for use as a dictionary key or argument.

func KCAAlignmentJustified

func KCAAlignmentJustified() obj.Object

KCAAlignmentJustified returns the string constant kCAAlignmentJustified, for use as a dictionary key or argument.

func KCAAlignmentLeft

func KCAAlignmentLeft() obj.Object

KCAAlignmentLeft returns the string constant kCAAlignmentLeft, for use as a dictionary key or argument.

func KCAAlignmentNatural

func KCAAlignmentNatural() obj.Object

KCAAlignmentNatural returns the string constant kCAAlignmentNatural, for use as a dictionary key or argument.

func KCAAlignmentRight

func KCAAlignmentRight() obj.Object

KCAAlignmentRight returns the string constant kCAAlignmentRight, for use as a dictionary key or argument.

func KCAAnimationCubic

func KCAAnimationCubic() obj.Object

KCAAnimationCubic returns the string constant kCAAnimationCubic, for use as a dictionary key or argument.

func KCAAnimationCubicPaced

func KCAAnimationCubicPaced() obj.Object

KCAAnimationCubicPaced returns the string constant kCAAnimationCubicPaced, for use as a dictionary key or argument.

func KCAAnimationDiscrete

func KCAAnimationDiscrete() obj.Object

KCAAnimationDiscrete returns the string constant kCAAnimationDiscrete, for use as a dictionary key or argument.

func KCAAnimationLinear

func KCAAnimationLinear() obj.Object

KCAAnimationLinear returns the string constant kCAAnimationLinear, for use as a dictionary key or argument.

func KCAAnimationPaced

func KCAAnimationPaced() obj.Object

KCAAnimationPaced returns the string constant kCAAnimationPaced, for use as a dictionary key or argument.

func KCAAnimationRotateAuto

func KCAAnimationRotateAuto() obj.Object

KCAAnimationRotateAuto returns the string constant kCAAnimationRotateAuto, for use as a dictionary key or argument.

func KCAAnimationRotateAutoReverse

func KCAAnimationRotateAutoReverse() obj.Object

KCAAnimationRotateAutoReverse returns the string constant kCAAnimationRotateAutoReverse, for use as a dictionary key or argument.

func KCAContentsFormatAutomatic

func KCAContentsFormatAutomatic() obj.Object

KCAContentsFormatAutomatic returns the string constant kCAContentsFormatAutomatic, for use as a dictionary key or argument.

func KCAContentsFormatGray8Uint

func KCAContentsFormatGray8Uint() obj.Object

KCAContentsFormatGray8Uint returns the string constant kCAContentsFormatGray8Uint, for use as a dictionary key or argument.

func KCAContentsFormatRGBA8Uint

func KCAContentsFormatRGBA8Uint() obj.Object

KCAContentsFormatRGBA8Uint returns the string constant kCAContentsFormatRGBA8Uint, for use as a dictionary key or argument.

func KCAContentsFormatRGBA16Float

func KCAContentsFormatRGBA16Float() obj.Object

KCAContentsFormatRGBA16Float returns the string constant kCAContentsFormatRGBA16Float, for use as a dictionary key or argument.

func KCACornerCurveCircular

func KCACornerCurveCircular() obj.Object

KCACornerCurveCircular returns the string constant kCACornerCurveCircular, for use as a dictionary key or argument.

func KCACornerCurveContinuous

func KCACornerCurveContinuous() obj.Object

KCACornerCurveContinuous returns the string constant kCACornerCurveContinuous, for use as a dictionary key or argument.

func KCAEmitterLayerAdditive

func KCAEmitterLayerAdditive() obj.Object

KCAEmitterLayerAdditive returns the string constant kCAEmitterLayerAdditive, for use as a dictionary key or argument.

func KCAEmitterLayerBackToFront

func KCAEmitterLayerBackToFront() obj.Object

KCAEmitterLayerBackToFront returns the string constant kCAEmitterLayerBackToFront, for use as a dictionary key or argument.

func KCAEmitterLayerCircle

func KCAEmitterLayerCircle() obj.Object

KCAEmitterLayerCircle returns the string constant kCAEmitterLayerCircle, for use as a dictionary key or argument.

func KCAEmitterLayerCuboid

func KCAEmitterLayerCuboid() obj.Object

KCAEmitterLayerCuboid returns the string constant kCAEmitterLayerCuboid, for use as a dictionary key or argument.

func KCAEmitterLayerLine

func KCAEmitterLayerLine() obj.Object

KCAEmitterLayerLine returns the string constant kCAEmitterLayerLine, for use as a dictionary key or argument.

func KCAEmitterLayerOldestFirst

func KCAEmitterLayerOldestFirst() obj.Object

KCAEmitterLayerOldestFirst returns the string constant kCAEmitterLayerOldestFirst, for use as a dictionary key or argument.

func KCAEmitterLayerOldestLast

func KCAEmitterLayerOldestLast() obj.Object

KCAEmitterLayerOldestLast returns the string constant kCAEmitterLayerOldestLast, for use as a dictionary key or argument.

func KCAEmitterLayerOutline

func KCAEmitterLayerOutline() obj.Object

KCAEmitterLayerOutline returns the string constant kCAEmitterLayerOutline, for use as a dictionary key or argument.

func KCAEmitterLayerPoint

func KCAEmitterLayerPoint() obj.Object

KCAEmitterLayerPoint returns the string constant kCAEmitterLayerPoint, for use as a dictionary key or argument.

func KCAEmitterLayerPoints

func KCAEmitterLayerPoints() obj.Object

KCAEmitterLayerPoints returns the string constant kCAEmitterLayerPoints, for use as a dictionary key or argument.

func KCAEmitterLayerRectangle

func KCAEmitterLayerRectangle() obj.Object

KCAEmitterLayerRectangle returns the string constant kCAEmitterLayerRectangle, for use as a dictionary key or argument.

func KCAEmitterLayerSphere

func KCAEmitterLayerSphere() obj.Object

KCAEmitterLayerSphere returns the string constant kCAEmitterLayerSphere, for use as a dictionary key or argument.

func KCAEmitterLayerSurface

func KCAEmitterLayerSurface() obj.Object

KCAEmitterLayerSurface returns the string constant kCAEmitterLayerSurface, for use as a dictionary key or argument.

func KCAEmitterLayerUnordered

func KCAEmitterLayerUnordered() obj.Object

KCAEmitterLayerUnordered returns the string constant kCAEmitterLayerUnordered, for use as a dictionary key or argument.

func KCAEmitterLayerVolume

func KCAEmitterLayerVolume() obj.Object

KCAEmitterLayerVolume returns the string constant kCAEmitterLayerVolume, for use as a dictionary key or argument.

func KCAFillModeBackwards

func KCAFillModeBackwards() obj.Object

KCAFillModeBackwards returns the string constant kCAFillModeBackwards, for use as a dictionary key or argument.

func KCAFillModeBoth

func KCAFillModeBoth() obj.Object

KCAFillModeBoth returns the string constant kCAFillModeBoth, for use as a dictionary key or argument.

func KCAFillModeForwards

func KCAFillModeForwards() obj.Object

KCAFillModeForwards returns the string constant kCAFillModeForwards, for use as a dictionary key or argument.

func KCAFillModeRemoved

func KCAFillModeRemoved() obj.Object

KCAFillModeRemoved returns the string constant kCAFillModeRemoved, for use as a dictionary key or argument.

func KCAFillRuleEvenOdd

func KCAFillRuleEvenOdd() obj.Object

KCAFillRuleEvenOdd returns the string constant kCAFillRuleEvenOdd, for use as a dictionary key or argument.

func KCAFillRuleNonZero

func KCAFillRuleNonZero() obj.Object

KCAFillRuleNonZero returns the string constant kCAFillRuleNonZero, for use as a dictionary key or argument.

func KCAFilterLinear

func KCAFilterLinear() obj.Object

KCAFilterLinear returns the string constant kCAFilterLinear, for use as a dictionary key or argument.

func KCAFilterNearest

func KCAFilterNearest() obj.Object

KCAFilterNearest returns the string constant kCAFilterNearest, for use as a dictionary key or argument.

func KCAFilterTrilinear

func KCAFilterTrilinear() obj.Object

KCAFilterTrilinear returns the string constant kCAFilterTrilinear, for use as a dictionary key or argument.

func KCAGradientLayerAxial

func KCAGradientLayerAxial() obj.Object

KCAGradientLayerAxial returns the string constant kCAGradientLayerAxial, for use as a dictionary key or argument.

func KCAGradientLayerConic

func KCAGradientLayerConic() obj.Object

KCAGradientLayerConic returns the string constant kCAGradientLayerConic, for use as a dictionary key or argument.

func KCAGradientLayerRadial

func KCAGradientLayerRadial() obj.Object

KCAGradientLayerRadial returns the string constant kCAGradientLayerRadial, for use as a dictionary key or argument.

func KCAGravityBottom

func KCAGravityBottom() obj.Object

KCAGravityBottom returns the string constant kCAGravityBottom, for use as a dictionary key or argument.

func KCAGravityBottomLeft

func KCAGravityBottomLeft() obj.Object

KCAGravityBottomLeft returns the string constant kCAGravityBottomLeft, for use as a dictionary key or argument.

func KCAGravityBottomRight

func KCAGravityBottomRight() obj.Object

KCAGravityBottomRight returns the string constant kCAGravityBottomRight, for use as a dictionary key or argument.

func KCAGravityCenter

func KCAGravityCenter() obj.Object

KCAGravityCenter returns the string constant kCAGravityCenter, for use as a dictionary key or argument.

func KCAGravityLeft

func KCAGravityLeft() obj.Object

KCAGravityLeft returns the string constant kCAGravityLeft, for use as a dictionary key or argument.

func KCAGravityResize

func KCAGravityResize() obj.Object

KCAGravityResize returns the string constant kCAGravityResize, for use as a dictionary key or argument.

func KCAGravityResizeAspect

func KCAGravityResizeAspect() obj.Object

KCAGravityResizeAspect returns the string constant kCAGravityResizeAspect, for use as a dictionary key or argument.

func KCAGravityResizeAspectFill

func KCAGravityResizeAspectFill() obj.Object

KCAGravityResizeAspectFill returns the string constant kCAGravityResizeAspectFill, for use as a dictionary key or argument.

func KCAGravityRight

func KCAGravityRight() obj.Object

KCAGravityRight returns the string constant kCAGravityRight, for use as a dictionary key or argument.

func KCAGravityTop

func KCAGravityTop() obj.Object

KCAGravityTop returns the string constant kCAGravityTop, for use as a dictionary key or argument.

func KCAGravityTopLeft

func KCAGravityTopLeft() obj.Object

KCAGravityTopLeft returns the string constant kCAGravityTopLeft, for use as a dictionary key or argument.

func KCAGravityTopRight

func KCAGravityTopRight() obj.Object

KCAGravityTopRight returns the string constant kCAGravityTopRight, for use as a dictionary key or argument.

func KCALineCapButt

func KCALineCapButt() obj.Object

KCALineCapButt returns the string constant kCALineCapButt, for use as a dictionary key or argument.

func KCALineCapRound

func KCALineCapRound() obj.Object

KCALineCapRound returns the string constant kCALineCapRound, for use as a dictionary key or argument.

func KCALineCapSquare

func KCALineCapSquare() obj.Object

KCALineCapSquare returns the string constant kCALineCapSquare, for use as a dictionary key or argument.

func KCALineJoinBevel

func KCALineJoinBevel() obj.Object

KCALineJoinBevel returns the string constant kCALineJoinBevel, for use as a dictionary key or argument.

func KCALineJoinMiter

func KCALineJoinMiter() obj.Object

KCALineJoinMiter returns the string constant kCALineJoinMiter, for use as a dictionary key or argument.

func KCALineJoinRound

func KCALineJoinRound() obj.Object

KCALineJoinRound returns the string constant kCALineJoinRound, for use as a dictionary key or argument.

func KCAMediaTimingFunctionDefault

func KCAMediaTimingFunctionDefault() obj.Object

KCAMediaTimingFunctionDefault returns the string constant kCAMediaTimingFunctionDefault, for use as a dictionary key or argument.

func KCAMediaTimingFunctionEaseIn

func KCAMediaTimingFunctionEaseIn() obj.Object

KCAMediaTimingFunctionEaseIn returns the string constant kCAMediaTimingFunctionEaseIn, for use as a dictionary key or argument.

func KCAMediaTimingFunctionEaseInEaseOut

func KCAMediaTimingFunctionEaseInEaseOut() obj.Object

KCAMediaTimingFunctionEaseInEaseOut returns the string constant kCAMediaTimingFunctionEaseInEaseOut, for use as a dictionary key or argument.

func KCAMediaTimingFunctionEaseOut

func KCAMediaTimingFunctionEaseOut() obj.Object

KCAMediaTimingFunctionEaseOut returns the string constant kCAMediaTimingFunctionEaseOut, for use as a dictionary key or argument.

func KCAMediaTimingFunctionLinear

func KCAMediaTimingFunctionLinear() obj.Object

KCAMediaTimingFunctionLinear returns the string constant kCAMediaTimingFunctionLinear, for use as a dictionary key or argument.

func KCAOnOrderIn

func KCAOnOrderIn() obj.Object

KCAOnOrderIn returns the string constant kCAOnOrderIn, for use as a dictionary key or argument.

func KCAOnOrderOut

func KCAOnOrderOut() obj.Object

KCAOnOrderOut returns the string constant kCAOnOrderOut, for use as a dictionary key or argument.

func KCARendererColorSpace

func KCARendererColorSpace() obj.Object

KCARendererColorSpace returns the string constant kCARendererColorSpace, for use as a dictionary key or argument.

func KCARendererMetalCommandQueue

func KCARendererMetalCommandQueue() obj.Object

KCARendererMetalCommandQueue returns the string constant kCARendererMetalCommandQueue, for use as a dictionary key or argument.

func KCAScrollBoth

func KCAScrollBoth() obj.Object

KCAScrollBoth returns the string constant kCAScrollBoth, for use as a dictionary key or argument.

func KCAScrollHorizontally

func KCAScrollHorizontally() obj.Object

KCAScrollHorizontally returns the string constant kCAScrollHorizontally, for use as a dictionary key or argument.

func KCAScrollNone

func KCAScrollNone() obj.Object

KCAScrollNone returns the string constant kCAScrollNone, for use as a dictionary key or argument.

func KCAScrollVertically

func KCAScrollVertically() obj.Object

KCAScrollVertically returns the string constant kCAScrollVertically, for use as a dictionary key or argument.

func KCATransactionAnimationDuration

func KCATransactionAnimationDuration() obj.Object

KCATransactionAnimationDuration returns the string constant kCATransactionAnimationDuration, for use as a dictionary key or argument.

func KCATransactionAnimationTimingFunction

func KCATransactionAnimationTimingFunction() obj.Object

KCATransactionAnimationTimingFunction returns the string constant kCATransactionAnimationTimingFunction, for use as a dictionary key or argument.

func KCATransactionCompletionBlock

func KCATransactionCompletionBlock() obj.Object

KCATransactionCompletionBlock returns the string constant kCATransactionCompletionBlock, for use as a dictionary key or argument.

func KCATransactionDisableActions

func KCATransactionDisableActions() obj.Object

KCATransactionDisableActions returns the string constant kCATransactionDisableActions, for use as a dictionary key or argument.

func KCATransition

func KCATransition() obj.Object

KCATransition returns the string constant kCATransition, for use as a dictionary key or argument.

func KCATransitionFade

func KCATransitionFade() obj.Object

KCATransitionFade returns the string constant kCATransitionFade, for use as a dictionary key or argument.

func KCATransitionFromBottom

func KCATransitionFromBottom() obj.Object

KCATransitionFromBottom returns the string constant kCATransitionFromBottom, for use as a dictionary key or argument.

func KCATransitionFromLeft

func KCATransitionFromLeft() obj.Object

KCATransitionFromLeft returns the string constant kCATransitionFromLeft, for use as a dictionary key or argument.

func KCATransitionFromRight

func KCATransitionFromRight() obj.Object

KCATransitionFromRight returns the string constant kCATransitionFromRight, for use as a dictionary key or argument.

func KCATransitionFromTop

func KCATransitionFromTop() obj.Object

KCATransitionFromTop returns the string constant kCATransitionFromTop, for use as a dictionary key or argument.

func KCATransitionMoveIn

func KCATransitionMoveIn() obj.Object

KCATransitionMoveIn returns the string constant kCATransitionMoveIn, for use as a dictionary key or argument.

func KCATransitionPush

func KCATransitionPush() obj.Object

KCATransitionPush returns the string constant kCATransitionPush, for use as a dictionary key or argument.

func KCATransitionReveal

func KCATransitionReveal() obj.Object

KCATransitionReveal returns the string constant kCATransitionReveal, for use as a dictionary key or argument.

func KCATruncationEnd

func KCATruncationEnd() obj.Object

KCATruncationEnd returns the string constant kCATruncationEnd, for use as a dictionary key or argument.

func KCATruncationMiddle

func KCATruncationMiddle() obj.Object

KCATruncationMiddle returns the string constant kCATruncationMiddle, for use as a dictionary key or argument.

func KCATruncationNone

func KCATruncationNone() obj.Object

KCATruncationNone returns the string constant kCATruncationNone, for use as a dictionary key or argument.

func KCATruncationStart

func KCATruncationStart() obj.Object

KCATruncationStart returns the string constant kCATruncationStart, for use as a dictionary key or argument.

func KCAValueFunctionRotateX

func KCAValueFunctionRotateX() obj.Object

KCAValueFunctionRotateX returns the string constant kCAValueFunctionRotateX, for use as a dictionary key or argument.

func KCAValueFunctionRotateY

func KCAValueFunctionRotateY() obj.Object

KCAValueFunctionRotateY returns the string constant kCAValueFunctionRotateY, for use as a dictionary key or argument.

func KCAValueFunctionRotateZ

func KCAValueFunctionRotateZ() obj.Object

KCAValueFunctionRotateZ returns the string constant kCAValueFunctionRotateZ, for use as a dictionary key or argument.

func KCAValueFunctionScale

func KCAValueFunctionScale() obj.Object

KCAValueFunctionScale returns the string constant kCAValueFunctionScale, for use as a dictionary key or argument.

func KCAValueFunctionScaleX

func KCAValueFunctionScaleX() obj.Object

KCAValueFunctionScaleX returns the string constant kCAValueFunctionScaleX, for use as a dictionary key or argument.

func KCAValueFunctionScaleY

func KCAValueFunctionScaleY() obj.Object

KCAValueFunctionScaleY returns the string constant kCAValueFunctionScaleY, for use as a dictionary key or argument.

func KCAValueFunctionScaleZ

func KCAValueFunctionScaleZ() obj.Object

KCAValueFunctionScaleZ returns the string constant kCAValueFunctionScaleZ, for use as a dictionary key or argument.

func KCAValueFunctionTranslate

func KCAValueFunctionTranslate() obj.Object

KCAValueFunctionTranslate returns the string constant kCAValueFunctionTranslate, for use as a dictionary key or argument.

func KCAValueFunctionTranslateX

func KCAValueFunctionTranslateX() obj.Object

KCAValueFunctionTranslateX returns the string constant kCAValueFunctionTranslateX, for use as a dictionary key or argument.

func KCAValueFunctionTranslateY

func KCAValueFunctionTranslateY() obj.Object

KCAValueFunctionTranslateY returns the string constant kCAValueFunctionTranslateY, for use as a dictionary key or argument.

func KCAValueFunctionTranslateZ

func KCAValueFunctionTranslateZ() obj.Object

KCAValueFunctionTranslateZ returns the string constant kCAValueFunctionTranslateZ, for use as a dictionary key or argument.

func Lock added in v0.17.0

func Lock()

Lock attempts to acquire a recursive spin-lock lock, ensuring that returned layer values are valid until unlocked.

func NeedsDisplayForKey added in v0.17.0

func NeedsDisplayForKey(key string) bool

NeedsDisplayForKey returns a Boolean indicating whether changes to the specified key require the layer to be redisplayed.

func SetAnimationDuration added in v0.17.0

func SetAnimationDuration(dur float64)

SetAnimationDuration sets the animation duration used by all animations within this transaction group.

func SetAnimationTimingFunction added in v0.17.0

func SetAnimationTimingFunction(function *MediaTimingFunction)

SetAnimationTimingFunction sets the timing function used for all animations within this transaction group.

func SetCompletionBlock added in v0.17.0

func SetCompletionBlock(ctx context.Context) error

SetCompletionBlock sets the completion block object.

SetCompletionBlock blocks until the operation completes or ctx is cancelled.

func SetDisableActions added in v0.17.0

func SetDisableActions(flag bool)

SetDisableActions sets whether actions triggered as a result of property changes made within this transaction group are suppressed.

func SetValueForKey added in v0.17.0

func SetValueForKey(anObject obj.Object, key string)

SetValueForKey sets the arbitrary keyed-data for the specified key.

func Unlock added in v0.17.0

func Unlock()

Unlock relinquishes a previously acquired transaction lock.

func ValueForKey added in v0.17.0

func ValueForKey(key string) obj.Object

ValueForKey returns the arbitrary keyed-data specified by the given key.

Types

type Action added in v0.17.0

type Action interface {
	RunActionForKeyObjectArguments(event string, anObject obj.Object, dict obj.Object)
}

Action is the Go form of the Objective-C protocol CAAction.

type Animation added in v0.17.0

type Animation struct {
	objref.Handle
}

Animation is an idiomatic wrapper over the Objective-C class CAAnimation.

Animation is an abstract base — you do not construct it directly. Construct one of AnimationGroup, PropertyAnimation, Transition and pass it where a Animation is accepted.

The abstract superclass for animations in Core Animation.

func AnimationFromID added in v0.17.0

func AnimationFromID(id objc.ID) *Animation

AnimationFromID adopts an existing Objective-C object as a Animation (nil for 0), retaining it and registering a release finalizer.

func CAAnimationAnimation

func CAAnimationAnimation() *Animation

CAAnimationAnimation creates and returns a new CAAnimation instance.

func (*Animation) Description added in v0.17.0

func (a *Animation) Description() string

Description returns the object's -description text.

func (*Animation) IsEqual added in v0.17.0

func (a *Animation) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Animation) IsKind added in v0.17.0

func (a *Animation) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Animation) IsRemovedOnCompletion added in v0.17.0

func (a *Animation) IsRemovedOnCompletion() bool

IsRemovedOnCompletion reports whether the object is removed on completion.

func (*Animation) PreferredFrameRateRange added in v0.18.1

func (a *Animation) PreferredFrameRateRange() CAFrameRateRange

PreferredFrameRateRange returns the preferred frame rate range.

func (*Animation) ShouldArchiveValueForKey added in v0.17.0

func (a *Animation) ShouldArchiveValueForKey(key string) bool

ShouldArchiveValueForKey specifies whether the value of the property for a given key is archived.

func (*Animation) String added in v0.17.0

func (a *Animation) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*Animation) TimingFunction added in v0.17.0

func (a *Animation) TimingFunction() *MediaTimingFunction

TimingFunction returns the timing function.

func (*Animation) WithDelegate added in v0.17.0

func (a *Animation) WithDelegate(delegate AnimationDelegate) *Animation

WithDelegate sets specifies the receiver’s delegate object.

func (*Animation) WithPreferredFrameRateRange added in v0.18.1

func (a *Animation) WithPreferredFrameRateRange(preferredFrameRateRange CAFrameRateRange) *Animation

WithPreferredFrameRateRange sets the preferred frame rate range.

func (*Animation) WithRemovedOnCompletion added in v0.17.0

func (a *Animation) WithRemovedOnCompletion(removedOnCompletion bool) *Animation

WithRemovedOnCompletion sets determines if the animation is removed from the target layer’s animations upon completion.

func (*Animation) WithTimingFunction added in v0.17.0

func (a *Animation) WithTimingFunction(timingFunction *MediaTimingFunction) *Animation

WithTimingFunction sets an optional timing function defining the pacing of the animation.

type AnimationDelegate added in v0.17.0

type AnimationDelegate interface {
}

AnimationDelegate receives the callbacks of the Objective-C protocol CAAnimationDelegate. 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 (AnimationDelegate…Handler): implement the ones you need on the same value and the framework will call them too.

type AnimationDelegateAnimationDidStartHandler added in v0.17.0

type AnimationDelegateAnimationDidStartHandler interface {
	AnimationDidStart(anim *Animation)
}

AnimationDelegateAnimationDidStartHandler is the optional CAAnimationDelegate method animationDidStart:. Implement it on a AnimationDelegate value to receive that callback; a value without it is simply never sent one.

type AnimationDelegateAnimationDidStopFinishedHandler added in v0.17.0

type AnimationDelegateAnimationDidStopFinishedHandler interface {
	AnimationDidStopFinished(anim *Animation, flag bool)
}

AnimationDelegateAnimationDidStopFinishedHandler is the optional CAAnimationDelegate method animationDidStop:finished:. Implement it on a AnimationDelegate value to receive that callback; a value without it is simply never sent one.

type AnimationGroup added in v0.17.0

type AnimationGroup struct {
	Animation
}

AnimationGroup is an idiomatic wrapper over the Objective-C class CAAnimationGroup.

It embeds Animation, promoting that type's methods.

An object that allows multiple animations to be grouped and run concurrently.

func AnimationGroupFromID added in v0.17.0

func AnimationGroupFromID(id objc.ID) *AnimationGroup

AnimationGroupFromID adopts an existing Objective-C object as a AnimationGroup (nil for 0), retaining it and registering a release finalizer.

func NewAnimationGroup added in v0.17.0

func NewAnimationGroup() *AnimationGroup

NewAnimationGroup creates a new AnimationGroup.

func (*AnimationGroup) Animations added in v0.17.0

func (ag *AnimationGroup) Animations() []*Animation

Animations returns the animations.

Animations returns the collection as a Go slice.

func (*AnimationGroup) WithAnimations added in v0.17.0

func (ag *AnimationGroup) WithAnimations(items ...AnimationProvider) *AnimationGroup

WithAnimations sets an array of CAAnimation objects to be evaluated in the time space of the receiver.

func (*AnimationGroup) WithDelegate added in v0.17.0

func (ag *AnimationGroup) WithDelegate(delegate AnimationDelegate) *AnimationGroup

WithDelegate sets specifies the receiver’s delegate object.

func (*AnimationGroup) WithPreferredFrameRateRange added in v0.18.1

func (ag *AnimationGroup) WithPreferredFrameRateRange(preferredFrameRateRange CAFrameRateRange) *AnimationGroup

WithPreferredFrameRateRange sets the preferred frame rate range.

func (*AnimationGroup) WithRemovedOnCompletion added in v0.17.0

func (ag *AnimationGroup) WithRemovedOnCompletion(removedOnCompletion bool) *AnimationGroup

WithRemovedOnCompletion sets determines if the animation is removed from the target layer’s animations upon completion.

func (*AnimationGroup) WithTimingFunction added in v0.17.0

func (ag *AnimationGroup) WithTimingFunction(timingFunction *MediaTimingFunction) *AnimationGroup

WithTimingFunction sets an optional timing function defining the pacing of the animation.

type AnimationProvider added in v0.17.0

type AnimationProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

AnimationProvider is accepted wherever a CAAnimation (or one of its subclasses) is expected.

type AutoresizingMask added in v0.17.0

type AutoresizingMask uint32

These constants are used by the autoresizingMask property. Bitmask — values may be combined with |.

const (
	// The receiver cannot be resized.
	KCALayerNotSizable AutoresizingMask = 0
	// The left margin between the receiver and its superview is flexible.
	KCALayerMinXMargin AutoresizingMask = 1
	// The receiver’s width is flexible.
	KCALayerWidthSizable AutoresizingMask = 2
	// The right margin between the receiver and its superview is flexible.
	KCALayerMaxXMargin AutoresizingMask = 4
	// The bottom margin between the receiver and its superview is flexible.
	KCALayerMinYMargin AutoresizingMask = 8
	// The receiver’s height is flexible.
	KCALayerHeightSizable AutoresizingMask = 16
	// The top margin between the receiver and its superview is flexible.
	KCALayerMaxYMargin AutoresizingMask = 32
)

func (AutoresizingMask) String added in v0.17.0

func (e AutoresizingMask) String() string

String returns the AutoresizingMask constant's name, or its numeric form when the value is not a known constant.

type BasicAnimation added in v0.17.0

type BasicAnimation struct {
	PropertyAnimation
}

BasicAnimation is an idiomatic wrapper over the Objective-C class CABasicAnimation.

BasicAnimation is an abstract base — you do not construct it directly. Construct one of SpringAnimation and pass it where a BasicAnimation is accepted.

An object that provides basic, single-keyframe animation capabilities for a layer property.

func BasicAnimationFromID added in v0.17.0

func BasicAnimationFromID(id objc.ID) *BasicAnimation

BasicAnimationFromID adopts an existing Objective-C object as a BasicAnimation (nil for 0), retaining it and registering a release finalizer.

func (*BasicAnimation) ByValue added in v0.17.0

func (ba *BasicAnimation) ByValue() obj.Object

ByValue returns the by value.

func (*BasicAnimation) FromValue added in v0.17.0

func (ba *BasicAnimation) FromValue() obj.Object

FromValue returns the from value.

func (*BasicAnimation) ToValue added in v0.17.0

func (ba *BasicAnimation) ToValue() obj.Object

ToValue returns the to value.

func (*BasicAnimation) WithAdditive added in v0.17.0

func (ba *BasicAnimation) WithAdditive(additive bool) *BasicAnimation

WithAdditive sets determines if the value specified by the animation is added to the current render tree value to produce the new render tree value.

func (*BasicAnimation) WithByValue added in v0.17.0

func (ba *BasicAnimation) WithByValue(byValue obj.Object) *BasicAnimation

WithByValue sets defines the value the receiver uses to perform relative interpolation.

func (*BasicAnimation) WithCumulative added in v0.17.0

func (ba *BasicAnimation) WithCumulative(cumulative bool) *BasicAnimation

WithCumulative sets determines if the value of the property is the value at the end of the previous repeat cycle, plus the value of the current repeat cycle.

func (*BasicAnimation) WithDelegate added in v0.17.0

func (ba *BasicAnimation) WithDelegate(delegate AnimationDelegate) *BasicAnimation

WithDelegate sets specifies the receiver’s delegate object.

func (*BasicAnimation) WithFromValue added in v0.17.0

func (ba *BasicAnimation) WithFromValue(fromValue obj.Object) *BasicAnimation

WithFromValue sets defines the value the receiver uses to start interpolation.

func (*BasicAnimation) WithKeyPath added in v0.17.0

func (ba *BasicAnimation) WithKeyPath(keyPath string) *BasicAnimation

WithKeyPath sets specifies the key path the receiver animates.

func (*BasicAnimation) WithPreferredFrameRateRange added in v0.18.1

func (ba *BasicAnimation) WithPreferredFrameRateRange(preferredFrameRateRange CAFrameRateRange) *BasicAnimation

WithPreferredFrameRateRange sets the preferred frame rate range.

func (*BasicAnimation) WithRemovedOnCompletion added in v0.17.0

func (ba *BasicAnimation) WithRemovedOnCompletion(removedOnCompletion bool) *BasicAnimation

WithRemovedOnCompletion sets determines if the animation is removed from the target layer’s animations upon completion.

func (*BasicAnimation) WithTimingFunction added in v0.17.0

func (ba *BasicAnimation) WithTimingFunction(timingFunction *MediaTimingFunction) *BasicAnimation

WithTimingFunction sets an optional timing function defining the pacing of the animation.

func (*BasicAnimation) WithToValue added in v0.17.0

func (ba *BasicAnimation) WithToValue(toValue obj.Object) *BasicAnimation

WithToValue sets defines the value the receiver uses to end interpolation.

func (*BasicAnimation) WithValueFunction added in v0.17.0

func (ba *BasicAnimation) WithValueFunction(valueFunction *ValueFunction) *BasicAnimation

WithValueFunction sets an optional value function that is applied to interpolated values.

type BasicAnimationProvider added in v0.17.0

type BasicAnimationProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

BasicAnimationProvider is accepted wherever a CABasicAnimation (or one of its subclasses) is expected.

type CAFrameRateRange

type CAFrameRateRange struct {
	Minimum   float32
	Maximum   float32
	Preferred float32
}

func CAFrameRateRangeMake

func CAFrameRateRangeMake(minimum float32, maximum float32, preferred float32) CAFrameRateRange

CAFrameRateRangeMake calls the QuartzCore framework function CAFrameRateRangeMake.

type CATransform3D

type CATransform3D struct {
	M11 float64
	M12 float64
	M13 float64
	M14 float64
	M21 float64
	M22 float64
	M23 float64
	M24 float64
	M31 float64
	M32 float64
	M33 float64
	M34 float64
	M41 float64
	M42 float64
	M43 float64
	M44 float64
}

The standard transform matrix used throughout Core Animation.

func CATransform3DConcat

func CATransform3DConcat(a CATransform3D, b CATransform3D) CATransform3D

CATransform3DConcat calls the QuartzCore framework function CATransform3DConcat.

func CATransform3DInvert

func CATransform3DInvert(t CATransform3D) CATransform3D

CATransform3DInvert calls the QuartzCore framework function CATransform3DInvert.

func CATransform3DMakeAffineTransform

func CATransform3DMakeAffineTransform(m corefoundation.CGAffineTransform) CATransform3D

CATransform3DMakeAffineTransform calls the QuartzCore framework function CATransform3DMakeAffineTransform.

func CATransform3DMakeRotation

func CATransform3DMakeRotation(angle float64, x float64, y float64, z float64) CATransform3D

CATransform3DMakeRotation calls the QuartzCore framework function CATransform3DMakeRotation.

func CATransform3DMakeScale

func CATransform3DMakeScale(sx float64, sy float64, sz float64) CATransform3D

CATransform3DMakeScale calls the QuartzCore framework function CATransform3DMakeScale.

func CATransform3DMakeTranslation

func CATransform3DMakeTranslation(tx float64, ty float64, tz float64) CATransform3D

CATransform3DMakeTranslation calls the QuartzCore framework function CATransform3DMakeTranslation.

func CATransform3DRotate

func CATransform3DRotate(t CATransform3D, angle float64, x float64, y float64, z float64) CATransform3D

CATransform3DRotate calls the QuartzCore framework function CATransform3DRotate.

func CATransform3DScale

func CATransform3DScale(t CATransform3D, sx float64, sy float64, sz float64) CATransform3D

CATransform3DScale calls the QuartzCore framework function CATransform3DScale.

func CATransform3DTranslate

func CATransform3DTranslate(t CATransform3D, tx float64, ty float64, tz float64) CATransform3D

CATransform3DTranslate calls the QuartzCore framework function CATransform3DTranslate.

type CGLCPContextPriorityRequest

type CGLCPContextPriorityRequest int32
const (
	KCGLCPContextPriorityRequestHigh   CGLCPContextPriorityRequest = 0
	KCGLCPContextPriorityRequestNormal CGLCPContextPriorityRequest = 1
	KCGLCPContextPriorityRequestLow    CGLCPContextPriorityRequest = 2
)

func (CGLCPContextPriorityRequest) String

String returns the CGLCPContextPriorityRequest constant's name, or its numeric form when the value is not a known constant.

type Clockid added in v0.17.0

type Clockid int32
const (
	ClockidRealtime           Clockid = 0
	ClockidMonotonic          Clockid = 6
	ClockidMonotonicRaw       Clockid = 4
	ClockidMonotonicRawApprox Clockid = 5
	ClockidUptimeRaw          Clockid = 8
	ClockidUptimeRawApprox    Clockid = 9
	ClockidProcessCputimeID   Clockid = 12
	ClockidThreadCputimeID    Clockid = 16
)

func (Clockid) String added in v0.17.0

func (e Clockid) String() string

String returns the Clockid constant's name, or its numeric form when the value is not a known constant.

type Constraint added in v0.17.0

type Constraint struct {
	objref.Handle
}

Constraint is an idiomatic wrapper over the Objective-C class CAConstraint.

A representation of a single layout constraint between two layers.

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 ConstraintWithAttributeRelativeToAttribute added in v0.17.0

func ConstraintWithAttributeRelativeToAttribute(attr ConstraintAttribute, srcId string, srcAttr ConstraintAttribute) *Constraint

ConstraintWithAttributeRelativeToAttribute creates and returns an CAConstraint object with the specified parameters.

func ConstraintWithAttributeRelativeToAttributeOffset added in v0.17.0

func ConstraintWithAttributeRelativeToAttributeOffset(attr ConstraintAttribute, srcId string, srcAttr ConstraintAttribute, c float64) *Constraint

ConstraintWithAttributeRelativeToAttributeOffset creates and returns an CAConstraint object with the specified parameters.

func ConstraintWithAttributeRelativeToAttributeScaleOffset added in v0.17.0

func ConstraintWithAttributeRelativeToAttributeScaleOffset(attr ConstraintAttribute, srcId string, srcAttr ConstraintAttribute, m float64, c float64) *Constraint

ConstraintWithAttributeRelativeToAttributeScaleOffset creates and returns an CAConstraint object with the specified parameters.

func NewConstraintWithAttributeRelativeToAttributeScaleOffset added in v0.17.0

func NewConstraintWithAttributeRelativeToAttributeScaleOffset(attr ConstraintAttribute, srcId string, srcAttr ConstraintAttribute, m float64, c float64) *Constraint

NewConstraintWithAttributeRelativeToAttributeScaleOffset returns an CAConstraint object with the specified parameters. Designated initializer.

func (*Constraint) Attribute added in v0.17.0

func (c *Constraint) Attribute() ConstraintAttribute

Attribute returns the attribute.

func (*Constraint) Description added in v0.17.0

func (c *Constraint) Description() string

Description returns the object's -description text.

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) Offset added in v0.17.0

func (c *Constraint) Offset() float64

Offset returns the offset.

func (*Constraint) Scale added in v0.17.0

func (c *Constraint) Scale() float64

Scale returns the scale.

func (*Constraint) SourceAttribute added in v0.17.0

func (c *Constraint) SourceAttribute() ConstraintAttribute

SourceAttribute returns the source attribute.

func (*Constraint) SourceName added in v0.17.0

func (c *Constraint) SourceName() string

SourceName returns the source name.

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.

type ConstraintAttribute added in v0.17.0

type ConstraintAttribute int32

The constraint attribute type.

const (
	// The left edge of a layer’s frame.
	KCAConstraintMinX ConstraintAttribute = 0
	// The horizontal location of the center of a layer’s frame.
	KCAConstraintMidX ConstraintAttribute = 1
	// The right edge of a layer’s frame.
	KCAConstraintMaxX ConstraintAttribute = 2
	// The width of a layer.
	KCAConstraintWidth ConstraintAttribute = 3
	// The bottom edge of a layer’s frame.
	KCAConstraintMinY ConstraintAttribute = 4
	// The vertical location of the center of a layer’s frame.
	KCAConstraintMidY ConstraintAttribute = 5
	// The top edge of a layer’s frame.
	KCAConstraintMaxY ConstraintAttribute = 6
	// The height of a layer.
	KCAConstraintHeight ConstraintAttribute = 7
)

func (ConstraintAttribute) String added in v0.17.0

func (e ConstraintAttribute) String() string

String returns the ConstraintAttribute constant's name, or its numeric form when the value is not a known constant.

type ConstraintLayoutManager added in v0.17.0

type ConstraintLayoutManager struct {
	objref.Handle
}

ConstraintLayoutManager is an idiomatic wrapper over the Objective-C class CAConstraintLayoutManager.

An object that provides a constraint-based layout manager.

func ConstraintLayoutManagerFromID added in v0.17.0

func ConstraintLayoutManagerFromID(id objc.ID) *ConstraintLayoutManager

ConstraintLayoutManagerFromID adopts an existing Objective-C object as a ConstraintLayoutManager (nil for 0), retaining it and registering a release finalizer.

func LayoutManager added in v0.17.0

func LayoutManager() *ConstraintLayoutManager

LayoutManager returns the shared layout manager object.

func NewConstraintLayoutManager added in v0.17.0

func NewConstraintLayoutManager() *ConstraintLayoutManager

NewConstraintLayoutManager creates a new ConstraintLayoutManager.

func (*ConstraintLayoutManager) Description added in v0.17.0

func (clm *ConstraintLayoutManager) Description() string

Description returns the object's -description text.

func (*ConstraintLayoutManager) IsEqual added in v0.17.0

func (clm *ConstraintLayoutManager) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*ConstraintLayoutManager) IsKind added in v0.17.0

func (clm *ConstraintLayoutManager) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*ConstraintLayoutManager) String added in v0.17.0

func (clm *ConstraintLayoutManager) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type CornerMask added in v0.17.0

type CornerMask uint64

Bitmask — values may be combined with |.

const (
	KCALayerMinXMinYCorner CornerMask = 1
	KCALayerMaxXMinYCorner CornerMask = 2
	KCALayerMinXMaxYCorner CornerMask = 4
	KCALayerMaxXMaxYCorner CornerMask = 8
)

func (CornerMask) String added in v0.17.0

func (e CornerMask) String() string

String returns the CornerMask constant's name, or its numeric form when the value is not a known constant.

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

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 DisplayLink struct {
	objref.Handle
}

DisplayLink is an idiomatic wrapper over the Objective-C class CADisplayLink.

A timer object that allows your app to synchronize its drawing to the refresh rate of the display.

func DisplayLinkFromID added in v0.17.0

func DisplayLinkFromID(id objc.ID) *DisplayLink

DisplayLinkFromID adopts an existing Objective-C object as a DisplayLink (nil for 0), retaining it and registering a release finalizer.

func NewDisplayLink() *DisplayLink

NewDisplayLink creates a new DisplayLink.

func (*DisplayLink) AddToRunLoopForMode added in v0.17.0

func (dl *DisplayLink) AddToRunLoopForMode(runloop obj.Object, mode obj.Object)

AddToRunLoopForMode registers the display link with a run loop.

func (*DisplayLink) Description added in v0.17.0

func (dl *DisplayLink) Description() string

Description returns the object's -description text.

func (*DisplayLink) Duration added in v0.17.0

func (dl *DisplayLink) Duration() float64

Duration returns the duration.

func (*DisplayLink) Invalidate added in v0.17.0

func (dl *DisplayLink) Invalidate()

Invalidate removes the display link from all run loop modes.

func (*DisplayLink) IsEqual added in v0.17.0

func (dl *DisplayLink) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*DisplayLink) IsKind added in v0.17.0

func (dl *DisplayLink) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*DisplayLink) IsPaused added in v0.17.0

func (dl *DisplayLink) IsPaused() bool

IsPaused reports whether the object is paused.

func (*DisplayLink) PreferredFrameRateRange added in v0.18.1

func (dl *DisplayLink) PreferredFrameRateRange() CAFrameRateRange

PreferredFrameRateRange returns the preferred frame rate range.

func (*DisplayLink) RemoveFromRunLoopForMode added in v0.17.0

func (dl *DisplayLink) RemoveFromRunLoopForMode(runloop obj.Object, mode obj.Object)

RemoveFromRunLoopForMode removes the display link from the run loop for the given mode.

func (*DisplayLink) String added in v0.17.0

func (dl *DisplayLink) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*DisplayLink) TargetTimestamp added in v0.17.0

func (dl *DisplayLink) TargetTimestamp() float64

TargetTimestamp returns the target timestamp.

func (*DisplayLink) Timestamp added in v0.17.0

func (dl *DisplayLink) Timestamp() float64

Timestamp returns the timestamp.

func (*DisplayLink) WithPaused added in v0.17.0

func (dl *DisplayLink) WithPaused(paused bool) *DisplayLink

WithPaused sets a Boolean value that indicates whether the system suspends the display link’s notifications to the target.

func (*DisplayLink) WithPreferredFrameRateRange added in v0.18.1

func (dl *DisplayLink) WithPreferredFrameRateRange(preferredFrameRateRange CAFrameRateRange) *DisplayLink

WithPreferredFrameRateRange sets a range of frequencies your app allows for frame updates, affecting how often the system invokes your delegate’s callback.

type EDRMetadata added in v0.17.0

type EDRMetadata struct {
	objref.Handle
}

EDRMetadata is an idiomatic wrapper over the Objective-C class CAEDRMetadata.

Metadata describing how extended dynamic range (EDR) values should be tone mapped.

func EDRMetadataFromID added in v0.17.0

func EDRMetadataFromID(id objc.ID) *EDRMetadata

EDRMetadataFromID adopts an existing Objective-C object as a EDRMetadata (nil for 0), retaining it and registering a release finalizer.

func HDR10MetadataWithDisplayInfoContentInfoOpticalOutputScale added in v0.17.0

func HDR10MetadataWithDisplayInfoContentInfoOpticalOutputScale(displayData []byte, contentData []byte, scale float32) *EDRMetadata

HDR10MetadataWithDisplayInfoContentInfoOpticalOutputScale creates EDR metadata for HDR10 content based on mastering display color information and content light levels.

func HDR10MetadataWithMinLuminanceMaxLuminanceOpticalOutputScale added in v0.17.0

func HDR10MetadataWithMinLuminanceMaxLuminanceOpticalOutputScale(minNits float32, maxNits float32, scale float32) *EDRMetadata

HDR10MetadataWithMinLuminanceMaxLuminanceOpticalOutputScale creates EDR metadata for HDR10 content based on the luminance characteristics of a mastering display.

func HLGMetadata added in v0.17.0

func HLGMetadata() *EDRMetadata

HLGMetadata returns the hlg metadata.

func HLGMetadataWithAmbientViewingEnvironment added in v0.17.0

func HLGMetadataWithAmbientViewingEnvironment(data []byte) *EDRMetadata

HLGMetadataWithAmbientViewingEnvironment wraps the corresponding Objective-C method.

func NewEDRMetadata added in v0.17.0

func NewEDRMetadata() *EDRMetadata

NewEDRMetadata creates a new EDRMetadata.

func (*EDRMetadata) Description added in v0.17.0

func (em *EDRMetadata) Description() string

Description returns the object's -description text.

func (*EDRMetadata) IsEqual added in v0.17.0

func (em *EDRMetadata) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*EDRMetadata) IsKind added in v0.17.0

func (em *EDRMetadata) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*EDRMetadata) String added in v0.17.0

func (em *EDRMetadata) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type EdgeAntialiasingMask added in v0.17.0

type EdgeAntialiasingMask uint32

This mask is used by the edgeAntialiasingMask property. Bitmask — values may be combined with |.

const (
	KCALayerLeftEdge   EdgeAntialiasingMask = 1
	KCALayerRightEdge  EdgeAntialiasingMask = 2
	KCALayerBottomEdge EdgeAntialiasingMask = 4
	KCALayerTopEdge    EdgeAntialiasingMask = 8
)

func (EdgeAntialiasingMask) String added in v0.17.0

func (e EdgeAntialiasingMask) String() string

String returns the EdgeAntialiasingMask constant's name, or its numeric form when the value is not a known constant.

type EmitterCell added in v0.17.0

type EmitterCell struct {
	objref.Handle
}

EmitterCell is an idiomatic wrapper over the Objective-C class CAEmitterCell.

The definition of a particle emitted by a particle layer.

func CAEmitterCellEmitterCell

func CAEmitterCellEmitterCell() *EmitterCell

CAEmitterCellEmitterCell creates and returns an instance of CAEmitterCell.

func EmitterCellFromID added in v0.17.0

func EmitterCellFromID(id objc.ID) *EmitterCell

EmitterCellFromID adopts an existing Objective-C object as a EmitterCell (nil for 0), retaining it and registering a release finalizer.

func NewEmitterCell added in v0.17.0

func NewEmitterCell() *EmitterCell

NewEmitterCell creates a new EmitterCell.

func (*EmitterCell) AlphaRange added in v0.17.0

func (ec *EmitterCell) AlphaRange() float32

AlphaRange returns the alpha range.

func (*EmitterCell) AlphaSpeed added in v0.17.0

func (ec *EmitterCell) AlphaSpeed() float32

AlphaSpeed returns the alpha speed.

func (*EmitterCell) BirthRate added in v0.17.0

func (ec *EmitterCell) BirthRate() float32

BirthRate returns the birth rate.

func (*EmitterCell) BlueRange added in v0.17.0

func (ec *EmitterCell) BlueRange() float32

BlueRange returns the blue range.

func (*EmitterCell) BlueSpeed added in v0.17.0

func (ec *EmitterCell) BlueSpeed() float32

BlueSpeed returns the blue speed.

func (*EmitterCell) Color added in v0.17.0

func (ec *EmitterCell) Color() coregraphics.CGColorRef

Color returns the color.

func (*EmitterCell) Contents added in v0.17.0

func (ec *EmitterCell) Contents() obj.Object

Contents returns the contents.

func (*EmitterCell) ContentsRect added in v0.17.0

func (ec *EmitterCell) ContentsRect() corefoundation.CGRect

ContentsRect returns the contents rect.

func (*EmitterCell) ContentsScale added in v0.17.0

func (ec *EmitterCell) ContentsScale() float64

ContentsScale returns the contents scale.

func (*EmitterCell) Description added in v0.17.0

func (ec *EmitterCell) Description() string

Description returns the object's -description text.

func (*EmitterCell) EmissionLatitude added in v0.17.0

func (ec *EmitterCell) EmissionLatitude() float64

EmissionLatitude returns the emission latitude.

func (*EmitterCell) EmissionLongitude added in v0.17.0

func (ec *EmitterCell) EmissionLongitude() float64

EmissionLongitude returns the emission longitude.

func (*EmitterCell) EmissionRange added in v0.17.0

func (ec *EmitterCell) EmissionRange() float64

EmissionRange returns the emission range.

func (*EmitterCell) EmitterCells added in v0.17.0

func (ec *EmitterCell) EmitterCells() []*EmitterCell

EmitterCells returns the emitter cells.

EmitterCells returns the collection as a Go slice.

func (*EmitterCell) GreenRange added in v0.17.0

func (ec *EmitterCell) GreenRange() float32

GreenRange returns the green range.

func (*EmitterCell) GreenSpeed added in v0.17.0

func (ec *EmitterCell) GreenSpeed() float32

GreenSpeed returns the green speed.

func (*EmitterCell) IsEnabled added in v0.17.0

func (ec *EmitterCell) IsEnabled() bool

IsEnabled reports whether the object is enabled.

func (*EmitterCell) IsEqual added in v0.17.0

func (ec *EmitterCell) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*EmitterCell) IsKind added in v0.17.0

func (ec *EmitterCell) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*EmitterCell) Lifetime added in v0.17.0

func (ec *EmitterCell) Lifetime() float32

Lifetime returns the lifetime.

func (*EmitterCell) LifetimeRange added in v0.17.0

func (ec *EmitterCell) LifetimeRange() float32

LifetimeRange returns the lifetime range.

func (*EmitterCell) MagnificationFilter added in v0.17.0

func (ec *EmitterCell) MagnificationFilter() string

MagnificationFilter returns the magnification filter.

func (*EmitterCell) MinificationFilter added in v0.17.0

func (ec *EmitterCell) MinificationFilter() string

MinificationFilter returns the minification filter.

func (*EmitterCell) MinificationFilterBias added in v0.17.0

func (ec *EmitterCell) MinificationFilterBias() float32

MinificationFilterBias returns the minification filter bias.

func (*EmitterCell) Name added in v0.17.0

func (ec *EmitterCell) Name() string

Name returns the name.

func (*EmitterCell) RedRange added in v0.17.0

func (ec *EmitterCell) RedRange() float32

RedRange returns the red range.

func (*EmitterCell) RedSpeed added in v0.17.0

func (ec *EmitterCell) RedSpeed() float32

RedSpeed returns the red speed.

func (*EmitterCell) Scale added in v0.17.0

func (ec *EmitterCell) Scale() float64

Scale returns the scale.

func (*EmitterCell) ScaleRange added in v0.17.0

func (ec *EmitterCell) ScaleRange() float64

ScaleRange returns the scale range.

func (*EmitterCell) ScaleSpeed added in v0.17.0

func (ec *EmitterCell) ScaleSpeed() float64

ScaleSpeed returns the scale speed.

func (*EmitterCell) ShouldArchiveValueForKey added in v0.17.0

func (ec *EmitterCell) ShouldArchiveValueForKey(key string) bool

ShouldArchiveValueForKey returns a Boolean value indicating whether the value for a given key should be archived.

func (*EmitterCell) Spin added in v0.17.0

func (ec *EmitterCell) Spin() float64

Spin returns the spin.

func (*EmitterCell) SpinRange added in v0.17.0

func (ec *EmitterCell) SpinRange() float64

SpinRange returns the spin range.

func (*EmitterCell) String added in v0.17.0

func (ec *EmitterCell) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*EmitterCell) Style added in v0.17.0

func (ec *EmitterCell) Style() obj.Object

Style returns the style.

func (*EmitterCell) Velocity added in v0.17.0

func (ec *EmitterCell) Velocity() float64

Velocity returns the velocity.

func (*EmitterCell) VelocityRange added in v0.17.0

func (ec *EmitterCell) VelocityRange() float64

VelocityRange returns the velocity range.

func (*EmitterCell) WithAlphaRange added in v0.17.0

func (ec *EmitterCell) WithAlphaRange(alphaRange float32) *EmitterCell

WithAlphaRange sets the amount by which the alpha component of the cell can vary. Animatable.

func (*EmitterCell) WithAlphaSpeed added in v0.17.0

func (ec *EmitterCell) WithAlphaSpeed(alphaSpeed float32) *EmitterCell

WithAlphaSpeed sets the speed, in seconds, at which the alpha component changes over the lifetime of the cell. Animatable.

func (*EmitterCell) WithBirthRate added in v0.17.0

func (ec *EmitterCell) WithBirthRate(birthRate float32) *EmitterCell

WithBirthRate sets the number of emitted objects created every second. Animatable.

func (*EmitterCell) WithBlueRange added in v0.17.0

func (ec *EmitterCell) WithBlueRange(blueRange float32) *EmitterCell

WithBlueRange sets the amount by which the blue color component of the cell can vary. Animatable.

func (*EmitterCell) WithBlueSpeed added in v0.17.0

func (ec *EmitterCell) WithBlueSpeed(blueSpeed float32) *EmitterCell

WithBlueSpeed sets the speed, in seconds, at which the blue color component changes over the lifetime of the cell. Animatable.

func (*EmitterCell) WithColor added in v0.17.0

func (ec *EmitterCell) WithColor(color coregraphics.CGColorRef) *EmitterCell

WithColor sets the color of each emitted object. Animatable.

func (*EmitterCell) WithContents added in v0.17.0

func (ec *EmitterCell) WithContents(contents obj.Object) *EmitterCell

WithContents sets an object that provides the contents of the layer. Animatable.

func (*EmitterCell) WithContentsRect added in v0.17.0

func (ec *EmitterCell) WithContentsRect(contentsRect corefoundation.CGRect) *EmitterCell

WithContentsRect sets a rectangle (in the unit coordinate space) that specifies the portion of contents that the receiver should draw. Animatable.

func (*EmitterCell) WithContentsScale added in v0.17.0

func (ec *EmitterCell) WithContentsScale(contentsScale float64) *EmitterCell

WithContentsScale sets the scale factor of the cell contents.

func (*EmitterCell) WithEmissionLatitude added in v0.17.0

func (ec *EmitterCell) WithEmissionLatitude(emissionLatitude float64) *EmitterCell

WithEmissionLatitude sets the latitudinal orientation of the emission angle. Animatable.

func (*EmitterCell) WithEmissionLongitude added in v0.17.0

func (ec *EmitterCell) WithEmissionLongitude(emissionLongitude float64) *EmitterCell

WithEmissionLongitude sets the longitudinal orientation of the emission angle. Animatable.

func (*EmitterCell) WithEmissionRange added in v0.17.0

func (ec *EmitterCell) WithEmissionRange(emissionRange float64) *EmitterCell

WithEmissionRange sets the angle, in radians, defining a cone around the emission angle. Animatable.

func (*EmitterCell) WithEmitterCells added in v0.17.0

func (ec *EmitterCell) WithEmitterCells(items ...*EmitterCell) *EmitterCell

WithEmitterCells sets an optional array containing the sub-cells of this cell.

func (*EmitterCell) WithEnabled added in v0.17.0

func (ec *EmitterCell) WithEnabled(enabled bool) *EmitterCell

WithEnabled sets a Boolean value indicating whether or not cells from this emitter are rendered.

func (*EmitterCell) WithGreenRange added in v0.17.0

func (ec *EmitterCell) WithGreenRange(greenRange float32) *EmitterCell

WithGreenRange sets the amount by which the green color component of the cell can vary. Animatable.

func (*EmitterCell) WithGreenSpeed added in v0.17.0

func (ec *EmitterCell) WithGreenSpeed(greenSpeed float32) *EmitterCell

WithGreenSpeed sets the speed, in seconds, at which the green color component changes over the lifetime of the cell. Animatable.

func (*EmitterCell) WithLifetime added in v0.17.0

func (ec *EmitterCell) WithLifetime(lifetime float32) *EmitterCell

WithLifetime sets the lifetime of the cell, in seconds. Animatable.

func (*EmitterCell) WithLifetimeRange added in v0.17.0

func (ec *EmitterCell) WithLifetimeRange(lifetimeRange float32) *EmitterCell

WithLifetimeRange sets the mean value by which the lifetime of the cell can vary. Animatable.

func (*EmitterCell) WithMagnificationFilter added in v0.17.0

func (ec *EmitterCell) WithMagnificationFilter(magnificationFilter string) *EmitterCell

WithMagnificationFilter sets the filter used when increasing the size of the content.

func (*EmitterCell) WithMinificationFilter added in v0.17.0

func (ec *EmitterCell) WithMinificationFilter(minificationFilter string) *EmitterCell

WithMinificationFilter sets the filter used when reducing the size of the content.

func (*EmitterCell) WithMinificationFilterBias added in v0.17.0

func (ec *EmitterCell) WithMinificationFilterBias(minificationFilterBias float32) *EmitterCell

WithMinificationFilterBias sets the bias factor used by the minification filter to determine the levels of detail.

func (*EmitterCell) WithName added in v0.17.0

func (ec *EmitterCell) WithName(name string) *EmitterCell

WithName sets the name of the cell.

func (*EmitterCell) WithRedRange added in v0.17.0

func (ec *EmitterCell) WithRedRange(redRange float32) *EmitterCell

WithRedRange sets the amount by which the red color component of the cell can vary. Animatable.

func (*EmitterCell) WithRedSpeed added in v0.17.0

func (ec *EmitterCell) WithRedSpeed(redSpeed float32) *EmitterCell

WithRedSpeed sets the speed, in seconds, at which the red color component changes over the lifetime of the cell. Animatable.

func (*EmitterCell) WithScale added in v0.17.0

func (ec *EmitterCell) WithScale(scale float64) *EmitterCell

WithScale sets specifies the scale factor applied to the cell. Animatable.

func (*EmitterCell) WithScaleRange added in v0.17.0

func (ec *EmitterCell) WithScaleRange(scaleRange float64) *EmitterCell

WithScaleRange sets specifies the range over which the scale value can vary. Animatable.

func (*EmitterCell) WithScaleSpeed added in v0.17.0

func (ec *EmitterCell) WithScaleSpeed(scaleSpeed float64) *EmitterCell

WithScaleSpeed sets the speed at which the scale changes over the lifetime of the cell. Animatable.

func (*EmitterCell) WithSpin added in v0.17.0

func (ec *EmitterCell) WithSpin(spin float64) *EmitterCell

WithSpin sets the rotational velocity, measured in radians per second, to apply to the cell. Animatable.

func (*EmitterCell) WithSpinRange added in v0.17.0

func (ec *EmitterCell) WithSpinRange(spinRange float64) *EmitterCell

WithSpinRange sets the amount by which the spin of the cell can vary over its lifetime. Animatable.

func (*EmitterCell) WithStyle added in v0.17.0

func (ec *EmitterCell) WithStyle(style obj.Object) *EmitterCell

WithStyle sets an optional dictionary containing additional style values that are not explicitly defined by the receiver.

func (*EmitterCell) WithVelocity added in v0.17.0

func (ec *EmitterCell) WithVelocity(velocity float64) *EmitterCell

WithVelocity sets the initial velocity of the cell. Animatable.

func (*EmitterCell) WithVelocityRange added in v0.17.0

func (ec *EmitterCell) WithVelocityRange(velocityRange float64) *EmitterCell

WithVelocityRange sets the amount by which the velocity of the cell can vary. Animatable.

func (*EmitterCell) WithXAcceleration added in v0.17.0

func (ec *EmitterCell) WithXAcceleration(xAcceleration float64) *EmitterCell

WithXAcceleration sets the x component of an acceleration vector applied to cell.

func (*EmitterCell) WithYAcceleration added in v0.17.0

func (ec *EmitterCell) WithYAcceleration(yAcceleration float64) *EmitterCell

WithYAcceleration sets the y component of an acceleration vector applied to cell.

func (*EmitterCell) WithZAcceleration added in v0.17.0

func (ec *EmitterCell) WithZAcceleration(zAcceleration float64) *EmitterCell

WithZAcceleration sets the z component of an acceleration vector applied to cell.

func (*EmitterCell) XAcceleration added in v0.17.0

func (ec *EmitterCell) XAcceleration() float64

XAcceleration returns the x acceleration.

func (*EmitterCell) YAcceleration added in v0.17.0

func (ec *EmitterCell) YAcceleration() float64

YAcceleration returns the y acceleration.

func (*EmitterCell) ZAcceleration added in v0.17.0

func (ec *EmitterCell) ZAcceleration() float64

ZAcceleration returns the z acceleration.

type EmitterLayer added in v0.17.0

type EmitterLayer struct {
	Layer
}

EmitterLayer is an idiomatic wrapper over the Objective-C class CAEmitterLayer.

It embeds Layer, promoting that type's methods.

A layer that emits, animates, and renders a particle system.

func EmitterLayerFromID added in v0.17.0

func EmitterLayerFromID(id objc.ID) *EmitterLayer

EmitterLayerFromID adopts an existing Objective-C object as a EmitterLayer (nil for 0), retaining it and registering a release finalizer.

func NewEmitterLayer added in v0.17.0

func NewEmitterLayer() *EmitterLayer

NewEmitterLayer creates a new EmitterLayer.

func (*EmitterLayer) BirthRate added in v0.17.0

func (el *EmitterLayer) BirthRate() float32

BirthRate returns the birth rate.

func (*EmitterLayer) EmitterCells added in v0.17.0

func (el *EmitterLayer) EmitterCells() []*EmitterCell

EmitterCells returns the emitter cells.

EmitterCells returns the collection as a Go slice.

func (*EmitterLayer) EmitterDepth added in v0.17.0

func (el *EmitterLayer) EmitterDepth() float64

EmitterDepth returns the emitter depth.

func (*EmitterLayer) EmitterMode added in v0.17.0

func (el *EmitterLayer) EmitterMode() *foundation.String

EmitterMode returns the emitter mode.

func (*EmitterLayer) EmitterPosition added in v0.17.0

func (el *EmitterLayer) EmitterPosition() corefoundation.CGPoint

EmitterPosition returns the emitter position.

func (*EmitterLayer) EmitterShape added in v0.17.0

func (el *EmitterLayer) EmitterShape() *foundation.String

EmitterShape returns the emitter shape.

func (*EmitterLayer) EmitterSize added in v0.17.0

func (el *EmitterLayer) EmitterSize() corefoundation.CGSize

EmitterSize returns the emitter size.

func (*EmitterLayer) EmitterZPosition added in v0.17.0

func (el *EmitterLayer) EmitterZPosition() float64

EmitterZPosition returns the emitter z position.

func (*EmitterLayer) Lifetime added in v0.17.0

func (el *EmitterLayer) Lifetime() float32

Lifetime returns the lifetime.

func (*EmitterLayer) PreservesDepth added in v0.17.0

func (el *EmitterLayer) PreservesDepth() bool

PreservesDepth wraps the corresponding Objective-C method.

func (*EmitterLayer) RenderMode added in v0.17.0

func (el *EmitterLayer) RenderMode() *foundation.String

RenderMode returns the render mode.

func (*EmitterLayer) Scale added in v0.17.0

func (el *EmitterLayer) Scale() float32

Scale returns the scale.

func (*EmitterLayer) Seed added in v0.17.0

func (el *EmitterLayer) Seed() int

Seed returns the seed.

func (*EmitterLayer) Spin added in v0.17.0

func (el *EmitterLayer) Spin() float32

Spin returns the spin.

func (*EmitterLayer) Velocity added in v0.17.0

func (el *EmitterLayer) Velocity() float32

Velocity returns the velocity.

func (*EmitterLayer) WithActions added in v0.17.0

func (el *EmitterLayer) WithActions(actions map[string]obj.Object) *EmitterLayer

WithActions sets a dictionary containing layer actions.

func (*EmitterLayer) WithAllowsEdgeAntialiasing added in v0.17.0

func (el *EmitterLayer) WithAllowsEdgeAntialiasing(allowsEdgeAntialiasing bool) *EmitterLayer

WithAllowsEdgeAntialiasing sets a Boolean indicating whether the layer is allowed to perform edge antialiasing.

func (*EmitterLayer) WithAllowsGroupOpacity added in v0.17.0

func (el *EmitterLayer) WithAllowsGroupOpacity(allowsGroupOpacity bool) *EmitterLayer

WithAllowsGroupOpacity sets a Boolean indicating whether the layer is allowed to composite itself as a group separate from its parent.

func (*EmitterLayer) WithAnchorPoint added in v0.17.0

func (el *EmitterLayer) WithAnchorPoint(anchorPoint corefoundation.CGPoint) *EmitterLayer

WithAnchorPoint sets defines the anchor point of the layer’s bounds rectangle. Animatable.

func (*EmitterLayer) WithAnchorPointZ added in v0.17.0

func (el *EmitterLayer) WithAnchorPointZ(anchorPointZ float64) *EmitterLayer

WithAnchorPointZ sets the anchor point for the layer’s position along the z axis. Animatable.

func (*EmitterLayer) WithAutoresizingMask added in v0.17.0

func (el *EmitterLayer) WithAutoresizingMask(autoresizingMask AutoresizingMask) *EmitterLayer

WithAutoresizingMask sets a bitmask defining how the layer is resized when the bounds of its superlayer changes.

func (*EmitterLayer) WithBackgroundColor added in v0.17.0

func (el *EmitterLayer) WithBackgroundColor(backgroundColor coregraphics.CGColorRef) *EmitterLayer

WithBackgroundColor sets the background color of the receiver. Animatable.

func (*EmitterLayer) WithBirthRate added in v0.17.0

func (el *EmitterLayer) WithBirthRate(birthRate float32) *EmitterLayer

WithBirthRate sets defines a multiplier that is applied to the cell-defined birth rate. Animatable

func (*EmitterLayer) WithBorderColor added in v0.17.0

func (el *EmitterLayer) WithBorderColor(borderColor coregraphics.CGColorRef) *EmitterLayer

WithBorderColor sets the color of the layer’s border. Animatable.

func (*EmitterLayer) WithBorderWidth added in v0.17.0

func (el *EmitterLayer) WithBorderWidth(borderWidth float64) *EmitterLayer

WithBorderWidth sets the width of the layer’s border. Animatable.

func (*EmitterLayer) WithBounds added in v0.17.0

func (el *EmitterLayer) WithBounds(bounds corefoundation.CGRect) *EmitterLayer

WithBounds sets the layer’s bounds rectangle. Animatable.

func (*EmitterLayer) WithCompositingFilter added in v0.17.0

func (el *EmitterLayer) WithCompositingFilter(compositingFilter obj.Object) *EmitterLayer

WithCompositingFilter sets a CoreImage filter used to composite the layer and the content behind it. Animatable.

func (*EmitterLayer) WithConstraints added in v0.17.0

func (el *EmitterLayer) WithConstraints(items ...*Constraint) *EmitterLayer

WithConstraints sets the constraints used to position current layer’s sublayers.

func (*EmitterLayer) WithContents added in v0.17.0

func (el *EmitterLayer) WithContents(contents obj.Object) *EmitterLayer

WithContents sets an object that provides the contents of the layer. Animatable.

func (*EmitterLayer) WithContentsCenter added in v0.17.0

func (el *EmitterLayer) WithContentsCenter(contentsCenter corefoundation.CGRect) *EmitterLayer

WithContentsCenter sets the rectangle that defines how the layer contents are scaled if the layer’s contents are resized. Animatable.

func (*EmitterLayer) WithContentsFormat added in v0.17.0

func (el *EmitterLayer) WithContentsFormat(contentsFormat obj.Object) *EmitterLayer

WithContentsFormat sets a hint for the desired storage format of the layer contents.

func (*EmitterLayer) WithContentsGravity added in v0.17.0

func (el *EmitterLayer) WithContentsGravity(contentsGravity obj.Object) *EmitterLayer

WithContentsGravity sets a constant that specifies how the layer’s contents are positioned or scaled within its bounds.

func (*EmitterLayer) WithContentsHeadroom added in v0.17.0

func (el *EmitterLayer) WithContentsHeadroom(contentsHeadroom float64) *EmitterLayer

WithContentsHeadroom sets the contents headroom.

func (*EmitterLayer) WithContentsRect added in v0.17.0

func (el *EmitterLayer) WithContentsRect(contentsRect corefoundation.CGRect) *EmitterLayer

WithContentsRect sets the rectangle, in the unit coordinate space, that defines the portion of the layer’s contents that should be used. Animatable.

func (*EmitterLayer) WithContentsScale added in v0.17.0

func (el *EmitterLayer) WithContentsScale(contentsScale float64) *EmitterLayer

WithContentsScale sets the scale factor applied to the layer.

func (*EmitterLayer) WithCornerCurve added in v0.17.0

func (el *EmitterLayer) WithCornerCurve(cornerCurve obj.Object) *EmitterLayer

WithCornerCurve sets the corner curve.

func (*EmitterLayer) WithCornerRadius added in v0.17.0

func (el *EmitterLayer) WithCornerRadius(cornerRadius float64) *EmitterLayer

WithCornerRadius sets the radius to use when drawing rounded corners for the layer’s background. Animatable.

func (*EmitterLayer) WithDelegate added in v0.17.0

func (el *EmitterLayer) WithDelegate(delegate LayerDelegate) *EmitterLayer

WithDelegate sets the layer’s delegate object.

func (*EmitterLayer) WithDoubleSided added in v0.17.0

func (el *EmitterLayer) WithDoubleSided(doubleSided bool) *EmitterLayer

WithDoubleSided sets a Boolean indicating whether the layer displays its content when facing away from the viewer. Animatable.

func (*EmitterLayer) WithDrawsAsynchronously added in v0.17.0

func (el *EmitterLayer) WithDrawsAsynchronously(drawsAsynchronously bool) *EmitterLayer

WithDrawsAsynchronously sets a Boolean indicating whether drawing commands are deferred and processed asynchronously in a background thread.

func (*EmitterLayer) WithEdgeAntialiasingMask added in v0.17.0

func (el *EmitterLayer) WithEdgeAntialiasingMask(edgeAntialiasingMask EdgeAntialiasingMask) *EmitterLayer

WithEdgeAntialiasingMask sets a bitmask defining how the edges of the receiver are rasterized.

func (*EmitterLayer) WithEmitterCells added in v0.17.0

func (el *EmitterLayer) WithEmitterCells(items ...*EmitterCell) *EmitterLayer

WithEmitterCells sets the array emitter cells attached to the layer.

func (*EmitterLayer) WithEmitterDepth added in v0.17.0

func (el *EmitterLayer) WithEmitterDepth(emitterDepth float64) *EmitterLayer

WithEmitterDepth sets determines the depth of the emitter shape.

func (*EmitterLayer) WithEmitterMode added in v0.17.0

func (el *EmitterLayer) WithEmitterMode(emitterMode obj.Object) *EmitterLayer

WithEmitterMode sets specifies the emitter mode.

func (*EmitterLayer) WithEmitterPosition added in v0.17.0

func (el *EmitterLayer) WithEmitterPosition(emitterPosition corefoundation.CGPoint) *EmitterLayer

WithEmitterPosition sets the position of the center of the particle emitter. Animatable.

func (*EmitterLayer) WithEmitterShape added in v0.17.0

func (el *EmitterLayer) WithEmitterShape(emitterShape obj.Object) *EmitterLayer

WithEmitterShape sets specifies the emitter shape.

func (*EmitterLayer) WithEmitterSize added in v0.17.0

func (el *EmitterLayer) WithEmitterSize(emitterSize corefoundation.CGSize) *EmitterLayer

WithEmitterSize sets determines the size of the particle emitter shape. Animatable.

func (*EmitterLayer) WithEmitterZPosition added in v0.17.0

func (el *EmitterLayer) WithEmitterZPosition(emitterZPosition float64) *EmitterLayer

WithEmitterZPosition sets specifies the center of the particle emitter shape along the z-axis. Animatable.

func (*EmitterLayer) WithFrame added in v0.17.0

func (el *EmitterLayer) WithFrame(frame corefoundation.CGRect) *EmitterLayer

WithFrame sets the layer’s frame rectangle.

func (*EmitterLayer) WithGeometryFlipped added in v0.17.0

func (el *EmitterLayer) WithGeometryFlipped(geometryFlipped bool) *EmitterLayer

WithGeometryFlipped sets a Boolean that indicates whether the geometry of the layer and its sublayers is flipped vertically.

func (*EmitterLayer) WithHidden added in v0.17.0

func (el *EmitterLayer) WithHidden(hidden bool) *EmitterLayer

WithHidden sets a Boolean indicating whether the layer is displayed. Animatable.

func (*EmitterLayer) WithLifetime added in v0.17.0

func (el *EmitterLayer) WithLifetime(lifetime float32) *EmitterLayer

WithLifetime sets defines a multiplier applied to the cell-defined lifetime range when particles are created. Animatable.

func (*EmitterLayer) WithMagnificationFilter added in v0.17.0

func (el *EmitterLayer) WithMagnificationFilter(magnificationFilter obj.Object) *EmitterLayer

WithMagnificationFilter sets the filter used when increasing the size of the content.

func (*EmitterLayer) WithMask added in v0.17.0

func (el *EmitterLayer) WithMask(mask LayerProvider) *EmitterLayer

WithMask sets an optional layer whose alpha channel is used to mask the layer’s content.

func (*EmitterLayer) WithMaskedCorners added in v0.17.0

func (el *EmitterLayer) WithMaskedCorners(maskedCorners CornerMask) *EmitterLayer

WithMaskedCorners sets the masked corners.

func (*EmitterLayer) WithMasksToBounds added in v0.17.0

func (el *EmitterLayer) WithMasksToBounds(masksToBounds bool) *EmitterLayer

WithMasksToBounds sets a Boolean indicating whether sublayers are clipped to the layer’s bounds. Animatable.

func (*EmitterLayer) WithMinificationFilter added in v0.17.0

func (el *EmitterLayer) WithMinificationFilter(minificationFilter obj.Object) *EmitterLayer

WithMinificationFilter sets the filter used when reducing the size of the content.

func (*EmitterLayer) WithMinificationFilterBias added in v0.17.0

func (el *EmitterLayer) WithMinificationFilterBias(minificationFilterBias float32) *EmitterLayer

WithMinificationFilterBias sets the bias factor used by the minification filter to determine the levels of detail.

func (*EmitterLayer) WithName added in v0.17.0

func (el *EmitterLayer) WithName(name string) *EmitterLayer

WithName sets the name of the receiver.

func (*EmitterLayer) WithNeedsDisplayOnBoundsChange added in v0.17.0

func (el *EmitterLayer) WithNeedsDisplayOnBoundsChange(needsDisplayOnBoundsChange bool) *EmitterLayer

WithNeedsDisplayOnBoundsChange sets a Boolean indicating whether the layer contents must be updated when its bounds rectangle changes.

func (*EmitterLayer) WithOpacity added in v0.17.0

func (el *EmitterLayer) WithOpacity(opacity float32) *EmitterLayer

WithOpacity sets the opacity of the receiver. Animatable.

func (*EmitterLayer) WithOpaque added in v0.17.0

func (el *EmitterLayer) WithOpaque(opaque bool) *EmitterLayer

WithOpaque sets a Boolean value indicating whether the layer contains completely opaque content.

func (*EmitterLayer) WithPosition added in v0.17.0

func (el *EmitterLayer) WithPosition(position corefoundation.CGPoint) *EmitterLayer

WithPosition sets the layer’s position in its superlayer’s coordinate space. Animatable.

func (*EmitterLayer) WithPreferredDynamicRange added in v0.17.0

func (el *EmitterLayer) WithPreferredDynamicRange(preferredDynamicRange obj.Object) *EmitterLayer

WithPreferredDynamicRange sets the preferred dynamic range.

func (*EmitterLayer) WithPreservesDepth added in v0.17.0

func (el *EmitterLayer) WithPreservesDepth(preservesDepth bool) *EmitterLayer

WithPreservesDepth sets defines whether the layer flattens the particles into its plane.

func (*EmitterLayer) WithRasterizationScale added in v0.17.0

func (el *EmitterLayer) WithRasterizationScale(rasterizationScale float64) *EmitterLayer

WithRasterizationScale sets the scale at which to rasterize content, relative to the coordinate space of the layer. Animatable

func (*EmitterLayer) WithRenderMode added in v0.17.0

func (el *EmitterLayer) WithRenderMode(renderMode obj.Object) *EmitterLayer

WithRenderMode sets defines how particle cells are rendered into the layer.

func (*EmitterLayer) WithScale added in v0.17.0

func (el *EmitterLayer) WithScale(scale float32) *EmitterLayer

WithScale sets defines a multiplier applied to the cell-defined particle scale.

func (*EmitterLayer) WithSeed added in v0.17.0

func (el *EmitterLayer) WithSeed(seed int) *EmitterLayer

WithSeed sets specifies the seed used to initialize the random number generator.

func (*EmitterLayer) WithShadowColor added in v0.17.0

func (el *EmitterLayer) WithShadowColor(shadowColor coregraphics.CGColorRef) *EmitterLayer

WithShadowColor sets the color of the layer’s shadow. Animatable.

func (*EmitterLayer) WithShadowOffset added in v0.17.0

func (el *EmitterLayer) WithShadowOffset(shadowOffset corefoundation.CGSize) *EmitterLayer

WithShadowOffset sets the offset (in points) of the layer’s shadow. Animatable.

func (*EmitterLayer) WithShadowOpacity added in v0.17.0

func (el *EmitterLayer) WithShadowOpacity(shadowOpacity float32) *EmitterLayer

WithShadowOpacity sets the opacity of the layer’s shadow. Animatable.

func (*EmitterLayer) WithShadowPath added in v0.17.0

func (el *EmitterLayer) WithShadowPath(shadowPath coregraphics.CGPathRef) *EmitterLayer

WithShadowPath sets the shape of the layer’s shadow. Animatable.

func (*EmitterLayer) WithShadowRadius added in v0.17.0

func (el *EmitterLayer) WithShadowRadius(shadowRadius float64) *EmitterLayer

WithShadowRadius sets the blur radius (in points) used to render the layer’s shadow. Animatable.

func (*EmitterLayer) WithShouldRasterize added in v0.17.0

func (el *EmitterLayer) WithShouldRasterize(shouldRasterize bool) *EmitterLayer

WithShouldRasterize sets a Boolean that indicates whether the layer is rendered as a bitmap before compositing. Animatable

func (*EmitterLayer) WithSpin added in v0.17.0

func (el *EmitterLayer) WithSpin(spin float32) *EmitterLayer

WithSpin sets defines a multiplier applied to the cell-defined particle spin. Animatable.

func (*EmitterLayer) WithStyle added in v0.17.0

func (el *EmitterLayer) WithStyle(style obj.Object) *EmitterLayer

WithStyle sets an optional dictionary used to store property values that aren’t explicitly defined by the layer.

func (*EmitterLayer) WithSublayerTransform added in v0.18.1

func (el *EmitterLayer) WithSublayerTransform(sublayerTransform CATransform3D) *EmitterLayer

WithSublayerTransform sets specifies the transform to apply to sublayers when rendering. Animatable.

func (*EmitterLayer) WithSublayers added in v0.17.0

func (el *EmitterLayer) WithSublayers(items ...LayerProvider) *EmitterLayer

WithSublayers sets an array containing the layer’s sublayers.

func (*EmitterLayer) WithToneMapMode added in v0.17.0

func (el *EmitterLayer) WithToneMapMode(toneMapMode obj.Object) *EmitterLayer

WithToneMapMode sets the tone map mode.

func (*EmitterLayer) WithTransform added in v0.18.1

func (el *EmitterLayer) WithTransform(transform CATransform3D) *EmitterLayer

WithTransform sets the transform applied to the layer’s contents. Animatable.

func (*EmitterLayer) WithVelocity added in v0.17.0

func (el *EmitterLayer) WithVelocity(velocity float32) *EmitterLayer

WithVelocity sets defines a multiplier applied to the cell-defined particle velocity. Animatable.

func (*EmitterLayer) WithWantsExtendedDynamicRangeContent added in v0.17.0

func (el *EmitterLayer) WithWantsExtendedDynamicRangeContent(wantsExtendedDynamicRangeContent bool) *EmitterLayer

WithWantsExtendedDynamicRangeContent sets the wants extended dynamic range content.

func (*EmitterLayer) WithZPosition added in v0.17.0

func (el *EmitterLayer) WithZPosition(zPosition float64) *EmitterLayer

WithZPosition sets the layer’s position on the z axis. Animatable.

type EntryID added in v0.17.0

type EntryID int32
const (
	EntryIDFirstEntry EntryID = 0
	EntryIDNextEntry  EntryID = -1
	EntryIDLastEntry  EntryID = -2
)

func (EntryID) String added in v0.17.0

func (e EntryID) String() string

String returns the EntryID constant's name, or its numeric form when the value is not a known constant.

type EvCmd

type EvCmd int32
const (
	EVNOP   EvCmd = 0
	EVHIDE  EvCmd = 1
	EVSHOW  EvCmd = 2
	EVMOVE  EvCmd = 3
	EVLEVEL EvCmd = 4
)

func (EvCmd) String

func (e EvCmd) String() string

String returns the EvCmd constant's name, or its numeric form when the value is not a known constant.

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 Flag added in v0.17.0

type Flag int32
const (
	FlagFlagDeferInherit      Flag = 1
	FlagFlagNoInherit         Flag = 131072
	FlagEntryInherited        Flag = 16
	FlagEntryFileInherit      Flag = 32
	FlagEntryDirectoryInherit Flag = 64
	FlagEntryLimitInherit     Flag = 128
	FlagEntryOnlyInherit      Flag = 256
)

func (Flag) String added in v0.17.0

func (e Flag) String() string

String returns the Flag constant's name, or its numeric form when the value is not a known constant.

type GradientLayer added in v0.17.0

type GradientLayer struct {
	Layer
}

GradientLayer is an idiomatic wrapper over the Objective-C class CAGradientLayer.

It embeds Layer, promoting that type's methods.

A layer that draws a color gradient over its background color, filling the shape of the layer.

func GradientLayerFromID added in v0.17.0

func GradientLayerFromID(id objc.ID) *GradientLayer

GradientLayerFromID adopts an existing Objective-C object as a GradientLayer (nil for 0), retaining it and registering a release finalizer.

func NewGradientLayer added in v0.17.0

func NewGradientLayer() *GradientLayer

NewGradientLayer creates a new GradientLayer.

func (*GradientLayer) Colors added in v0.17.0

func (gl *GradientLayer) Colors() obj.Object

Colors returns the colors.

func (*GradientLayer) EndPoint added in v0.17.0

func (gl *GradientLayer) EndPoint() corefoundation.CGPoint

EndPoint returns the end point.

func (*GradientLayer) Locations added in v0.17.0

func (gl *GradientLayer) Locations() []obj.Object

Locations returns the locations.

Locations returns the collection as a Go slice.

func (*GradientLayer) SetColors added in v0.17.0

func (gl *GradientLayer) SetColors(colors obj.Object)

SetColors wraps the corresponding Objective-C method.

func (*GradientLayer) StartPoint added in v0.17.0

func (gl *GradientLayer) StartPoint() corefoundation.CGPoint

StartPoint returns the start point.

func (*GradientLayer) Type added in v0.17.0

func (gl *GradientLayer) Type() *foundation.String

Type returns the type.

func (*GradientLayer) WithActions added in v0.17.0

func (gl *GradientLayer) WithActions(actions map[string]obj.Object) *GradientLayer

WithActions sets a dictionary containing layer actions.

func (*GradientLayer) WithAllowsEdgeAntialiasing added in v0.17.0

func (gl *GradientLayer) WithAllowsEdgeAntialiasing(allowsEdgeAntialiasing bool) *GradientLayer

WithAllowsEdgeAntialiasing sets a Boolean indicating whether the layer is allowed to perform edge antialiasing.

func (*GradientLayer) WithAllowsGroupOpacity added in v0.17.0

func (gl *GradientLayer) WithAllowsGroupOpacity(allowsGroupOpacity bool) *GradientLayer

WithAllowsGroupOpacity sets a Boolean indicating whether the layer is allowed to composite itself as a group separate from its parent.

func (*GradientLayer) WithAnchorPoint added in v0.17.0

func (gl *GradientLayer) WithAnchorPoint(anchorPoint corefoundation.CGPoint) *GradientLayer

WithAnchorPoint sets defines the anchor point of the layer’s bounds rectangle. Animatable.

func (*GradientLayer) WithAnchorPointZ added in v0.17.0

func (gl *GradientLayer) WithAnchorPointZ(anchorPointZ float64) *GradientLayer

WithAnchorPointZ sets the anchor point for the layer’s position along the z axis. Animatable.

func (*GradientLayer) WithAutoresizingMask added in v0.17.0

func (gl *GradientLayer) WithAutoresizingMask(autoresizingMask AutoresizingMask) *GradientLayer

WithAutoresizingMask sets a bitmask defining how the layer is resized when the bounds of its superlayer changes.

func (*GradientLayer) WithBackgroundColor added in v0.17.0

func (gl *GradientLayer) WithBackgroundColor(backgroundColor coregraphics.CGColorRef) *GradientLayer

WithBackgroundColor sets the background color of the receiver. Animatable.

func (*GradientLayer) WithBorderColor added in v0.17.0

func (gl *GradientLayer) WithBorderColor(borderColor coregraphics.CGColorRef) *GradientLayer

WithBorderColor sets the color of the layer’s border. Animatable.

func (*GradientLayer) WithBorderWidth added in v0.17.0

func (gl *GradientLayer) WithBorderWidth(borderWidth float64) *GradientLayer

WithBorderWidth sets the width of the layer’s border. Animatable.

func (*GradientLayer) WithBounds added in v0.17.0

func (gl *GradientLayer) WithBounds(bounds corefoundation.CGRect) *GradientLayer

WithBounds sets the layer’s bounds rectangle. Animatable.

func (*GradientLayer) WithCompositingFilter added in v0.17.0

func (gl *GradientLayer) WithCompositingFilter(compositingFilter obj.Object) *GradientLayer

WithCompositingFilter sets a CoreImage filter used to composite the layer and the content behind it. Animatable.

func (*GradientLayer) WithConstraints added in v0.17.0

func (gl *GradientLayer) WithConstraints(items ...*Constraint) *GradientLayer

WithConstraints sets the constraints used to position current layer’s sublayers.

func (*GradientLayer) WithContents added in v0.17.0

func (gl *GradientLayer) WithContents(contents obj.Object) *GradientLayer

WithContents sets an object that provides the contents of the layer. Animatable.

func (*GradientLayer) WithContentsCenter added in v0.17.0

func (gl *GradientLayer) WithContentsCenter(contentsCenter corefoundation.CGRect) *GradientLayer

WithContentsCenter sets the rectangle that defines how the layer contents are scaled if the layer’s contents are resized. Animatable.

func (*GradientLayer) WithContentsFormat added in v0.17.0

func (gl *GradientLayer) WithContentsFormat(contentsFormat obj.Object) *GradientLayer

WithContentsFormat sets a hint for the desired storage format of the layer contents.

func (*GradientLayer) WithContentsGravity added in v0.17.0

func (gl *GradientLayer) WithContentsGravity(contentsGravity obj.Object) *GradientLayer

WithContentsGravity sets a constant that specifies how the layer’s contents are positioned or scaled within its bounds.

func (*GradientLayer) WithContentsHeadroom added in v0.17.0

func (gl *GradientLayer) WithContentsHeadroom(contentsHeadroom float64) *GradientLayer

WithContentsHeadroom sets the contents headroom.

func (*GradientLayer) WithContentsRect added in v0.17.0

func (gl *GradientLayer) WithContentsRect(contentsRect corefoundation.CGRect) *GradientLayer

WithContentsRect sets the rectangle, in the unit coordinate space, that defines the portion of the layer’s contents that should be used. Animatable.

func (*GradientLayer) WithContentsScale added in v0.17.0

func (gl *GradientLayer) WithContentsScale(contentsScale float64) *GradientLayer

WithContentsScale sets the scale factor applied to the layer.

func (*GradientLayer) WithCornerCurve added in v0.17.0

func (gl *GradientLayer) WithCornerCurve(cornerCurve obj.Object) *GradientLayer

WithCornerCurve sets the corner curve.

func (*GradientLayer) WithCornerRadius added in v0.17.0

func (gl *GradientLayer) WithCornerRadius(cornerRadius float64) *GradientLayer

WithCornerRadius sets the radius to use when drawing rounded corners for the layer’s background. Animatable.

func (*GradientLayer) WithDelegate added in v0.17.0

func (gl *GradientLayer) WithDelegate(delegate LayerDelegate) *GradientLayer

WithDelegate sets the layer’s delegate object.

func (*GradientLayer) WithDoubleSided added in v0.17.0

func (gl *GradientLayer) WithDoubleSided(doubleSided bool) *GradientLayer

WithDoubleSided sets a Boolean indicating whether the layer displays its content when facing away from the viewer. Animatable.

func (*GradientLayer) WithDrawsAsynchronously added in v0.17.0

func (gl *GradientLayer) WithDrawsAsynchronously(drawsAsynchronously bool) *GradientLayer

WithDrawsAsynchronously sets a Boolean indicating whether drawing commands are deferred and processed asynchronously in a background thread.

func (*GradientLayer) WithEdgeAntialiasingMask added in v0.17.0

func (gl *GradientLayer) WithEdgeAntialiasingMask(edgeAntialiasingMask EdgeAntialiasingMask) *GradientLayer

WithEdgeAntialiasingMask sets a bitmask defining how the edges of the receiver are rasterized.

func (*GradientLayer) WithEndPoint added in v0.17.0

func (gl *GradientLayer) WithEndPoint(endPoint corefoundation.CGPoint) *GradientLayer

WithEndPoint sets the end point of the gradient when drawn in the layer’s coordinate space. Animatable.

func (*GradientLayer) WithFrame added in v0.17.0

func (gl *GradientLayer) WithFrame(frame corefoundation.CGRect) *GradientLayer

WithFrame sets the layer’s frame rectangle.

func (*GradientLayer) WithGeometryFlipped added in v0.17.0

func (gl *GradientLayer) WithGeometryFlipped(geometryFlipped bool) *GradientLayer

WithGeometryFlipped sets a Boolean that indicates whether the geometry of the layer and its sublayers is flipped vertically.

func (*GradientLayer) WithHidden added in v0.17.0

func (gl *GradientLayer) WithHidden(hidden bool) *GradientLayer

WithHidden sets a Boolean indicating whether the layer is displayed. Animatable.

func (*GradientLayer) WithLocations added in v0.17.0

func (gl *GradientLayer) WithLocations(items ...obj.Object) *GradientLayer

WithLocations sets an optional array of NSNumber objects defining the location of each gradient stop. Animatable.

func (*GradientLayer) WithMagnificationFilter added in v0.17.0

func (gl *GradientLayer) WithMagnificationFilter(magnificationFilter obj.Object) *GradientLayer

WithMagnificationFilter sets the filter used when increasing the size of the content.

func (*GradientLayer) WithMask added in v0.17.0

func (gl *GradientLayer) WithMask(mask LayerProvider) *GradientLayer

WithMask sets an optional layer whose alpha channel is used to mask the layer’s content.

func (*GradientLayer) WithMaskedCorners added in v0.17.0

func (gl *GradientLayer) WithMaskedCorners(maskedCorners CornerMask) *GradientLayer

WithMaskedCorners sets the masked corners.

func (*GradientLayer) WithMasksToBounds added in v0.17.0

func (gl *GradientLayer) WithMasksToBounds(masksToBounds bool) *GradientLayer

WithMasksToBounds sets a Boolean indicating whether sublayers are clipped to the layer’s bounds. Animatable.

func (*GradientLayer) WithMinificationFilter added in v0.17.0

func (gl *GradientLayer) WithMinificationFilter(minificationFilter obj.Object) *GradientLayer

WithMinificationFilter sets the filter used when reducing the size of the content.

func (*GradientLayer) WithMinificationFilterBias added in v0.17.0

func (gl *GradientLayer) WithMinificationFilterBias(minificationFilterBias float32) *GradientLayer

WithMinificationFilterBias sets the bias factor used by the minification filter to determine the levels of detail.

func (*GradientLayer) WithName added in v0.17.0

func (gl *GradientLayer) WithName(name string) *GradientLayer

WithName sets the name of the receiver.

func (*GradientLayer) WithNeedsDisplayOnBoundsChange added in v0.17.0

func (gl *GradientLayer) WithNeedsDisplayOnBoundsChange(needsDisplayOnBoundsChange bool) *GradientLayer

WithNeedsDisplayOnBoundsChange sets a Boolean indicating whether the layer contents must be updated when its bounds rectangle changes.

func (*GradientLayer) WithOpacity added in v0.17.0

func (gl *GradientLayer) WithOpacity(opacity float32) *GradientLayer

WithOpacity sets the opacity of the receiver. Animatable.

func (*GradientLayer) WithOpaque added in v0.17.0

func (gl *GradientLayer) WithOpaque(opaque bool) *GradientLayer

WithOpaque sets a Boolean value indicating whether the layer contains completely opaque content.

func (*GradientLayer) WithPosition added in v0.17.0

func (gl *GradientLayer) WithPosition(position corefoundation.CGPoint) *GradientLayer

WithPosition sets the layer’s position in its superlayer’s coordinate space. Animatable.

func (*GradientLayer) WithPreferredDynamicRange added in v0.17.0

func (gl *GradientLayer) WithPreferredDynamicRange(preferredDynamicRange obj.Object) *GradientLayer

WithPreferredDynamicRange sets the preferred dynamic range.

func (*GradientLayer) WithRasterizationScale added in v0.17.0

func (gl *GradientLayer) WithRasterizationScale(rasterizationScale float64) *GradientLayer

WithRasterizationScale sets the scale at which to rasterize content, relative to the coordinate space of the layer. Animatable

func (*GradientLayer) WithShadowColor added in v0.17.0

func (gl *GradientLayer) WithShadowColor(shadowColor coregraphics.CGColorRef) *GradientLayer

WithShadowColor sets the color of the layer’s shadow. Animatable.

func (*GradientLayer) WithShadowOffset added in v0.17.0

func (gl *GradientLayer) WithShadowOffset(shadowOffset corefoundation.CGSize) *GradientLayer

WithShadowOffset sets the offset (in points) of the layer’s shadow. Animatable.

func (*GradientLayer) WithShadowOpacity added in v0.17.0

func (gl *GradientLayer) WithShadowOpacity(shadowOpacity float32) *GradientLayer

WithShadowOpacity sets the opacity of the layer’s shadow. Animatable.

func (*GradientLayer) WithShadowPath added in v0.17.0

func (gl *GradientLayer) WithShadowPath(shadowPath coregraphics.CGPathRef) *GradientLayer

WithShadowPath sets the shape of the layer’s shadow. Animatable.

func (*GradientLayer) WithShadowRadius added in v0.17.0

func (gl *GradientLayer) WithShadowRadius(shadowRadius float64) *GradientLayer

WithShadowRadius sets the blur radius (in points) used to render the layer’s shadow. Animatable.

func (*GradientLayer) WithShouldRasterize added in v0.17.0

func (gl *GradientLayer) WithShouldRasterize(shouldRasterize bool) *GradientLayer

WithShouldRasterize sets a Boolean that indicates whether the layer is rendered as a bitmap before compositing. Animatable

func (*GradientLayer) WithStartPoint added in v0.17.0

func (gl *GradientLayer) WithStartPoint(startPoint corefoundation.CGPoint) *GradientLayer

WithStartPoint sets the start point of the gradient when drawn in the layer’s coordinate space. Animatable.

func (*GradientLayer) WithStyle added in v0.17.0

func (gl *GradientLayer) WithStyle(style obj.Object) *GradientLayer

WithStyle sets an optional dictionary used to store property values that aren’t explicitly defined by the layer.

func (*GradientLayer) WithSublayerTransform added in v0.18.1

func (gl *GradientLayer) WithSublayerTransform(sublayerTransform CATransform3D) *GradientLayer

WithSublayerTransform sets specifies the transform to apply to sublayers when rendering. Animatable.

func (*GradientLayer) WithSublayers added in v0.17.0

func (gl *GradientLayer) WithSublayers(items ...LayerProvider) *GradientLayer

WithSublayers sets an array containing the layer’s sublayers.

func (*GradientLayer) WithToneMapMode added in v0.17.0

func (gl *GradientLayer) WithToneMapMode(toneMapMode obj.Object) *GradientLayer

WithToneMapMode sets the tone map mode.

func (*GradientLayer) WithTransform added in v0.18.1

func (gl *GradientLayer) WithTransform(transform CATransform3D) *GradientLayer

WithTransform sets the transform applied to the layer’s contents. Animatable.

func (*GradientLayer) WithType added in v0.17.0

func (gl *GradientLayer) WithType(type_ obj.Object) *GradientLayer

WithType sets style of gradient drawn by the layer.

func (*GradientLayer) WithWantsExtendedDynamicRangeContent added in v0.17.0

func (gl *GradientLayer) WithWantsExtendedDynamicRangeContent(wantsExtendedDynamicRangeContent bool) *GradientLayer

WithWantsExtendedDynamicRangeContent sets the wants extended dynamic range content.

func (*GradientLayer) WithZPosition added in v0.17.0

func (gl *GradientLayer) WithZPosition(zPosition float64) *GradientLayer

WithZPosition sets the layer’s position on the z axis. Animatable.

type Idtype added in v0.17.0

type Idtype int32
const (
	IdtypeAll  Idtype = 0
	IdtypePid  Idtype = 1
	IdtypePgid Idtype = 2
)

func (Idtype) String added in v0.17.0

func (e Idtype) String() string

String returns the Idtype 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 KeyframeAnimation added in v0.17.0

type KeyframeAnimation struct {
	PropertyAnimation
}

KeyframeAnimation is an idiomatic wrapper over the Objective-C class CAKeyframeAnimation.

It embeds PropertyAnimation, promoting that type's methods.

An object that provides keyframe animation capabilities for a layer object.

func KeyframeAnimationFromID added in v0.17.0

func KeyframeAnimationFromID(id objc.ID) *KeyframeAnimation

KeyframeAnimationFromID adopts an existing Objective-C object as a KeyframeAnimation (nil for 0), retaining it and registering a release finalizer.

func NewKeyframeAnimation added in v0.17.0

func NewKeyframeAnimation() *KeyframeAnimation

NewKeyframeAnimation creates a new KeyframeAnimation.

func (*KeyframeAnimation) BiasValues added in v0.17.0

func (ka *KeyframeAnimation) BiasValues() []obj.Object

BiasValues returns the bias values.

BiasValues returns the collection as a Go slice.

func (*KeyframeAnimation) CalculationMode added in v0.17.0

func (ka *KeyframeAnimation) CalculationMode() *foundation.String

CalculationMode returns the calculation mode.

func (*KeyframeAnimation) ContinuityValues added in v0.17.0

func (ka *KeyframeAnimation) ContinuityValues() []obj.Object

ContinuityValues returns the continuity values.

ContinuityValues returns the collection as a Go slice.

func (*KeyframeAnimation) KeyTimes added in v0.17.0

func (ka *KeyframeAnimation) KeyTimes() []obj.Object

KeyTimes returns the key times.

KeyTimes returns the collection as a Go slice.

func (*KeyframeAnimation) Path added in v0.17.0

Path returns the path.

func (*KeyframeAnimation) RotationMode added in v0.17.0

func (ka *KeyframeAnimation) RotationMode() *foundation.String

RotationMode returns the rotation mode.

func (*KeyframeAnimation) SetValues added in v0.17.0

func (ka *KeyframeAnimation) SetValues(values obj.Object)

SetValues wraps the corresponding Objective-C method.

func (*KeyframeAnimation) TensionValues added in v0.17.0

func (ka *KeyframeAnimation) TensionValues() []obj.Object

TensionValues returns the tension values.

TensionValues returns the collection as a Go slice.

func (*KeyframeAnimation) TimingFunctions added in v0.17.0

func (ka *KeyframeAnimation) TimingFunctions() []*MediaTimingFunction

TimingFunctions returns the timing functions.

TimingFunctions returns the collection as a Go slice.

func (*KeyframeAnimation) Values added in v0.17.0

func (ka *KeyframeAnimation) Values() obj.Object

Values returns the values.

func (*KeyframeAnimation) WithAdditive added in v0.17.0

func (ka *KeyframeAnimation) WithAdditive(additive bool) *KeyframeAnimation

WithAdditive sets determines if the value specified by the animation is added to the current render tree value to produce the new render tree value.

func (*KeyframeAnimation) WithBiasValues added in v0.17.0

func (ka *KeyframeAnimation) WithBiasValues(items ...obj.Object) *KeyframeAnimation

WithBiasValues sets an array of numbers that define the position of the curve relative to a control point.

func (*KeyframeAnimation) WithCalculationMode added in v0.17.0

func (ka *KeyframeAnimation) WithCalculationMode(calculationMode obj.Object) *KeyframeAnimation

WithCalculationMode sets specifies how intermediate keyframe values are calculated by the receiver.

func (*KeyframeAnimation) WithContinuityValues added in v0.17.0

func (ka *KeyframeAnimation) WithContinuityValues(items ...obj.Object) *KeyframeAnimation

WithContinuityValues sets an array of numbers that define the sharpness of the timing curve’s corners.

func (*KeyframeAnimation) WithCumulative added in v0.17.0

func (ka *KeyframeAnimation) WithCumulative(cumulative bool) *KeyframeAnimation

WithCumulative sets determines if the value of the property is the value at the end of the previous repeat cycle, plus the value of the current repeat cycle.

func (*KeyframeAnimation) WithDelegate added in v0.17.0

func (ka *KeyframeAnimation) WithDelegate(delegate AnimationDelegate) *KeyframeAnimation

WithDelegate sets specifies the receiver’s delegate object.

func (*KeyframeAnimation) WithKeyPath added in v0.17.0

func (ka *KeyframeAnimation) WithKeyPath(keyPath string) *KeyframeAnimation

WithKeyPath sets specifies the key path the receiver animates.

func (*KeyframeAnimation) WithKeyTimes added in v0.17.0

func (ka *KeyframeAnimation) WithKeyTimes(items ...obj.Object) *KeyframeAnimation

WithKeyTimes sets an optional array of NSNumber objects that define the time at which to apply a given keyframe segment.

func (*KeyframeAnimation) WithPath added in v0.17.0

WithPath sets the path for a point-based property to follow.

func (*KeyframeAnimation) WithPreferredFrameRateRange added in v0.18.1

func (ka *KeyframeAnimation) WithPreferredFrameRateRange(preferredFrameRateRange CAFrameRateRange) *KeyframeAnimation

WithPreferredFrameRateRange sets the preferred frame rate range.

func (*KeyframeAnimation) WithRemovedOnCompletion added in v0.17.0

func (ka *KeyframeAnimation) WithRemovedOnCompletion(removedOnCompletion bool) *KeyframeAnimation

WithRemovedOnCompletion sets determines if the animation is removed from the target layer’s animations upon completion.

func (*KeyframeAnimation) WithRotationMode added in v0.17.0

func (ka *KeyframeAnimation) WithRotationMode(rotationMode obj.Object) *KeyframeAnimation

WithRotationMode sets determines whether objects animating along the path rotate to match the path tangent.

func (*KeyframeAnimation) WithTensionValues added in v0.17.0

func (ka *KeyframeAnimation) WithTensionValues(items ...obj.Object) *KeyframeAnimation

WithTensionValues sets an array of numbers that define the tightness of the curve.

func (*KeyframeAnimation) WithTimingFunction added in v0.17.0

func (ka *KeyframeAnimation) WithTimingFunction(timingFunction *MediaTimingFunction) *KeyframeAnimation

WithTimingFunction sets an optional timing function defining the pacing of the animation.

func (*KeyframeAnimation) WithTimingFunctions added in v0.17.0

func (ka *KeyframeAnimation) WithTimingFunctions(items ...*MediaTimingFunction) *KeyframeAnimation

WithTimingFunctions sets an optional array of CAMediaTimingFunction objects that define the pacing for each keyframe segment.

func (*KeyframeAnimation) WithValueFunction added in v0.17.0

func (ka *KeyframeAnimation) WithValueFunction(valueFunction *ValueFunction) *KeyframeAnimation

WithValueFunction sets an optional value function that is applied to interpolated values.

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 Layer added in v0.17.0

type Layer struct {
	objref.Handle
}

Layer is an idiomatic wrapper over the Objective-C class CALayer.

Layer is an abstract base — you do not construct it directly. Construct one of EmitterLayer, GradientLayer, MetalLayer, OpenGLLayer, ReplicatorLayer, ScrollLayer, ShapeLayer, TextLayer, TiledLayer, TransformLayer and pass it where a Layer is accepted.

An object that manages image-based content and allows you to perform animations on that content.

func CALayerLayer

func CALayerLayer() *Layer

CALayerLayer creates and returns an instance of the layer object.

func LayerFromID added in v0.17.0

func LayerFromID(id objc.ID) *Layer

LayerFromID adopts an existing Objective-C object as a Layer (nil for 0), retaining it and registering a release finalizer.

func LayerWithRemoteClientId added in v0.17.0

func LayerWithRemoteClientId(clientId uint32) *Layer

LayerWithRemoteClientId initializes a layer with a remote client ID.

func NewLayerWithLayer added in v0.17.0

func NewLayerWithLayer(layer obj.Object) *Layer

NewLayerWithLayer override to copy or initialize custom fields of the specified layer.

func (*Layer) Actions added in v0.17.0

func (l *Layer) Actions() map[string]obj.Object

Actions returns the actions.

func (*Layer) AddAnimationForKey added in v0.17.0

func (l *Layer) AddAnimationForKey(anim *Animation, key string)

AddAnimationForKey add the specified animation object to the layer’s render tree.

func (*Layer) AddConstraint added in v0.17.0

func (l *Layer) AddConstraint(c *Constraint)

AddConstraint adds the specified constraint to the layer.

func (*Layer) AddSublayer added in v0.17.0

func (l *Layer) AddSublayer(layer *Layer)

AddSublayer appends the layer to the layer’s list of sublayers.

func (*Layer) AffineTransform added in v0.17.0

func (l *Layer) AffineTransform() corefoundation.CGAffineTransform

AffineTransform returns an affine version of the layer’s transform.

func (*Layer) AllowsEdgeAntialiasing added in v0.17.0

func (l *Layer) AllowsEdgeAntialiasing() bool

AllowsEdgeAntialiasing wraps the corresponding Objective-C method.

func (*Layer) AllowsGroupOpacity added in v0.17.0

func (l *Layer) AllowsGroupOpacity() bool

AllowsGroupOpacity wraps the corresponding Objective-C method.

func (*Layer) AnchorPoint added in v0.17.0

func (l *Layer) AnchorPoint() corefoundation.CGPoint

AnchorPoint returns the anchor point.

func (*Layer) AnchorPointZ added in v0.17.0

func (l *Layer) AnchorPointZ() float64

AnchorPointZ returns the anchor point z.

func (*Layer) AnimationForKey added in v0.17.0

func (l *Layer) AnimationForKey(key string) *Animation

AnimationForKey returns the animation object with the specified identifier.

func (*Layer) AnimationKeys added in v0.17.0

func (l *Layer) AnimationKeys() []string

AnimationKeys returns an array of strings that identify the animations currently attached to the layer.

AnimationKeys returns the collection as a Go slice.

func (*Layer) AutoresizingMask added in v0.17.0

func (l *Layer) AutoresizingMask() AutoresizingMask

AutoresizingMask returns the autoresizing mask.

func (*Layer) BackgroundColor added in v0.17.0

func (l *Layer) BackgroundColor() coregraphics.CGColorRef

BackgroundColor returns the background color.

func (*Layer) BackgroundFilters added in v0.17.0

func (l *Layer) BackgroundFilters() obj.Object

BackgroundFilters returns the background filters.

func (*Layer) BorderColor added in v0.17.0

func (l *Layer) BorderColor() coregraphics.CGColorRef

BorderColor returns the border color.

func (*Layer) BorderWidth added in v0.17.0

func (l *Layer) BorderWidth() float64

BorderWidth returns the border width.

func (*Layer) Bounds added in v0.17.0

func (l *Layer) Bounds() corefoundation.CGRect

Bounds returns the bounds.

func (*Layer) CompositingFilter added in v0.17.0

func (l *Layer) CompositingFilter() obj.Object

CompositingFilter returns the compositing filter.

func (*Layer) Constraints added in v0.17.0

func (l *Layer) Constraints() []*Constraint

Constraints returns the constraints.

Constraints returns the collection as a Go slice.

func (*Layer) ContainsPoint added in v0.17.0

func (l *Layer) ContainsPoint(p corefoundation.CGPoint) bool

ContainsPoint returns whether the receiver contains a specified point.

func (*Layer) Contents added in v0.17.0

func (l *Layer) Contents() obj.Object

Contents returns the contents.

func (*Layer) ContentsAreFlipped added in v0.17.0

func (l *Layer) ContentsAreFlipped() bool

ContentsAreFlipped reports whether returns a Boolean indicating whether the layer content is implicitly flipped when rendered.

func (*Layer) ContentsCenter added in v0.17.0

func (l *Layer) ContentsCenter() corefoundation.CGRect

ContentsCenter returns the contents center.

func (*Layer) ContentsFormat added in v0.17.0

func (l *Layer) ContentsFormat() *foundation.String

ContentsFormat returns the contents format.

func (*Layer) ContentsGravity added in v0.17.0

func (l *Layer) ContentsGravity() *foundation.String

ContentsGravity returns the contents gravity.

func (*Layer) ContentsHeadroom added in v0.17.0

func (l *Layer) ContentsHeadroom() float64

ContentsHeadroom returns the contents headroom.

func (*Layer) ContentsRect added in v0.17.0

func (l *Layer) ContentsRect() corefoundation.CGRect

ContentsRect returns the contents rect.

func (*Layer) ContentsScale added in v0.17.0

func (l *Layer) ContentsScale() float64

ContentsScale returns the contents scale.

func (*Layer) ConvertPointFromLayer added in v0.17.0

func (l_ *Layer) ConvertPointFromLayer(p corefoundation.CGPoint, l *Layer) corefoundation.CGPoint

ConvertPointFromLayer converts the point from the specified layer’s coordinate system to the receiver’s coordinate system.

func (*Layer) ConvertPointToLayer added in v0.17.0

func (l_ *Layer) ConvertPointToLayer(p corefoundation.CGPoint, l *Layer) corefoundation.CGPoint

ConvertPointToLayer converts the point from the receiver’s coordinate system to the specified layer’s coordinate system.

func (*Layer) ConvertRectFromLayer added in v0.17.0

func (l_ *Layer) ConvertRectFromLayer(r corefoundation.CGRect, l *Layer) corefoundation.CGRect

ConvertRectFromLayer converts the rectangle from the specified layer’s coordinate system to the receiver’s coordinate system.

func (*Layer) ConvertRectToLayer added in v0.17.0

func (l_ *Layer) ConvertRectToLayer(r corefoundation.CGRect, l *Layer) corefoundation.CGRect

ConvertRectToLayer converts the rectangle from the receiver’s coordinate system to the specified layer’s coordinate system.

func (*Layer) ConvertTimeFromLayer added in v0.17.0

func (l_ *Layer) ConvertTimeFromLayer(t float64, l *Layer) float64

ConvertTimeFromLayer converts the time interval from the specified layer’s time space to the receiver’s time space.

func (*Layer) ConvertTimeToLayer added in v0.17.0

func (l_ *Layer) ConvertTimeToLayer(t float64, l *Layer) float64

ConvertTimeToLayer converts the time interval from the receiver’s time space to the specified layer’s time space

func (*Layer) CornerCurve added in v0.17.0

func (l *Layer) CornerCurve() *foundation.String

CornerCurve returns the corner curve.

func (*Layer) CornerRadius added in v0.17.0

func (l *Layer) CornerRadius() float64

CornerRadius returns the corner radius.

func (*Layer) Description added in v0.17.0

func (l *Layer) Description() string

Description returns the object's -description text.

func (*Layer) Display added in v0.17.0

func (l *Layer) Display()

Display reloads the content of this layer.

func (*Layer) DisplayIfNeeded added in v0.17.0

func (l *Layer) DisplayIfNeeded()

DisplayIfNeeded initiates the update process for a layer if it is currently marked as needing an update.

func (*Layer) DrawInContext added in v0.17.0

func (l *Layer) DrawInContext(ctx coregraphics.CGContextRef)

DrawInContext draws the layer’s content using the specified graphics context.

func (*Layer) DrawsAsynchronously added in v0.17.0

func (l *Layer) DrawsAsynchronously() bool

DrawsAsynchronously wraps the corresponding Objective-C method.

func (*Layer) EdgeAntialiasingMask added in v0.17.0

func (l *Layer) EdgeAntialiasingMask() EdgeAntialiasingMask

EdgeAntialiasingMask returns the edge antialiasing mask.

func (*Layer) Filters added in v0.17.0

func (l *Layer) Filters() obj.Object

Filters returns the filters.

func (*Layer) Frame added in v0.17.0

func (l *Layer) Frame() corefoundation.CGRect

Frame returns the frame.

func (*Layer) HitTest added in v0.17.0

func (l *Layer) HitTest(p corefoundation.CGPoint) *Layer

HitTest returns the farthest descendant of the receiver in the layer hierarchy (including itself) that contains the specified point.

func (*Layer) InsertSublayerAbove added in v0.17.0

func (l *Layer) InsertSublayerAbove(layer *Layer, sibling *Layer)

InsertSublayerAbove inserts the specified sublayer above a different sublayer that already belongs to the receiver.

func (*Layer) InsertSublayerAtIndex added in v0.17.0

func (l *Layer) InsertSublayerAtIndex(layer *Layer, idx int)

InsertSublayerAtIndex inserts the specified layer into the receiver’s list of sublayers at the specified index.

func (*Layer) InsertSublayerBelow added in v0.17.0

func (l *Layer) InsertSublayerBelow(layer *Layer, sibling *Layer)

InsertSublayerBelow inserts the specified sublayer below a different sublayer that already belongs to the receiver.

func (*Layer) IsDoubleSided added in v0.17.0

func (l *Layer) IsDoubleSided() bool

IsDoubleSided reports whether the object is double sided.

func (*Layer) IsEqual added in v0.17.0

func (l *Layer) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Layer) IsGeometryFlipped added in v0.17.0

func (l *Layer) IsGeometryFlipped() bool

IsGeometryFlipped reports whether the object is geometry flipped.

func (*Layer) IsHidden added in v0.17.0

func (l *Layer) IsHidden() bool

IsHidden reports whether the object is hidden.

func (*Layer) IsKind added in v0.17.0

func (l *Layer) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Layer) IsOpaque added in v0.17.0

func (l *Layer) IsOpaque() bool

IsOpaque reports whether the object is opaque.

func (*Layer) LayoutIfNeeded added in v0.17.0

func (l *Layer) LayoutIfNeeded()

LayoutIfNeeded recalculate the receiver’s layout, if required.

func (*Layer) LayoutSublayers added in v0.17.0

func (l *Layer) LayoutSublayers()

LayoutSublayers tells the layer to update its layout.

func (*Layer) MagnificationFilter added in v0.17.0

func (l *Layer) MagnificationFilter() *foundation.String

MagnificationFilter returns the magnification filter.

func (*Layer) Mask added in v0.17.0

func (l *Layer) Mask() *Layer

Mask returns the mask.

func (*Layer) MaskedCorners added in v0.17.0

func (l *Layer) MaskedCorners() CornerMask

MaskedCorners returns the masked corners.

func (*Layer) MasksToBounds added in v0.17.0

func (l *Layer) MasksToBounds() bool

MasksToBounds wraps the corresponding Objective-C method.

func (*Layer) MinificationFilter added in v0.17.0

func (l *Layer) MinificationFilter() *foundation.String

MinificationFilter returns the minification filter.

func (*Layer) MinificationFilterBias added in v0.17.0

func (l *Layer) MinificationFilterBias() float32

MinificationFilterBias returns the minification filter bias.

func (*Layer) ModelLayer added in v0.17.0

func (l *Layer) ModelLayer() *Layer

ModelLayer returns the model layer object associated with the receiver, if any.

func (*Layer) Name added in v0.17.0

func (l *Layer) Name() string

Name returns the name.

func (*Layer) NeedsDisplay added in v0.17.0

func (l *Layer) NeedsDisplay() bool

NeedsDisplay reports whether returns a Boolean indicating whether the layer has been marked as needing an update.

func (*Layer) NeedsDisplayOnBoundsChange added in v0.17.0

func (l *Layer) NeedsDisplayOnBoundsChange() bool

NeedsDisplayOnBoundsChange wraps the corresponding Objective-C method.

func (*Layer) NeedsLayout added in v0.17.0

func (l *Layer) NeedsLayout() bool

NeedsLayout reports whether returns a Boolean indicating whether the layer has been marked as needing a layout update.

func (*Layer) Opacity added in v0.17.0

func (l *Layer) Opacity() float32

Opacity returns the opacity.

func (*Layer) Position added in v0.17.0

func (l *Layer) Position() corefoundation.CGPoint

Position returns the position.

func (*Layer) PreferredDynamicRange added in v0.17.0

func (l *Layer) PreferredDynamicRange() *foundation.String

PreferredDynamicRange returns the preferred dynamic range.

func (*Layer) PreferredFrameSize added in v0.17.0

func (l *Layer) PreferredFrameSize() corefoundation.CGSize

PreferredFrameSize returns the preferred size of the layer in the coordinate space of its superlayer.

func (*Layer) PresentationLayer added in v0.17.0

func (l *Layer) PresentationLayer() *Layer

PresentationLayer returns a copy of the presentation layer object that represents the state of the layer as it currently appears onscreen.

func (*Layer) RasterizationScale added in v0.17.0

func (l *Layer) RasterizationScale() float64

RasterizationScale returns the rasterization scale.

func (*Layer) RemoveAllAnimations added in v0.17.0

func (l *Layer) RemoveAllAnimations()

RemoveAllAnimations remove all animations attached to the layer.

func (*Layer) RemoveAnimationForKey added in v0.17.0

func (l *Layer) RemoveAnimationForKey(key string)

RemoveAnimationForKey remove the animation object with the specified key.

func (*Layer) RemoveFromSuperlayer added in v0.17.0

func (l *Layer) RemoveFromSuperlayer()

RemoveFromSuperlayer detaches the layer from its parent layer.

func (*Layer) RenderInContext added in v0.17.0

func (l *Layer) RenderInContext(ctx coregraphics.CGContextRef)

RenderInContext renders the layer and its sublayers into the specified context.

func (*Layer) ReplaceSublayerWith added in v0.17.0

func (l *Layer) ReplaceSublayerWith(oldLayer *Layer, newLayer *Layer)

ReplaceSublayerWith replaces the specified sublayer with a different layer object.

func (*Layer) ResizeSublayersWithOldSize added in v0.17.0

func (l *Layer) ResizeSublayersWithOldSize(size corefoundation.CGSize)

ResizeSublayersWithOldSize informs the receiver’s sublayers that the receiver’s size has changed.

func (*Layer) ResizeWithOldSuperlayerSize added in v0.17.0

func (l *Layer) ResizeWithOldSuperlayerSize(size corefoundation.CGSize)

ResizeWithOldSuperlayerSize informs the receiver that the size of its superlayer changed.

func (*Layer) ScrollPoint added in v0.17.0

func (l *Layer) ScrollPoint(p corefoundation.CGPoint)

ScrollPoint initiates a scroll in the layer’s closest ancestor scroll layer so that the specified point lies at the origin of the scroll layer.

func (*Layer) ScrollRectToVisible added in v0.17.0

func (l *Layer) ScrollRectToVisible(r corefoundation.CGRect)

ScrollRectToVisible initiates a scroll in the layer’s closest ancestor scroll layer so that the specified rectangle becomes visible.

func (*Layer) SetAffineTransform added in v0.17.0

func (l *Layer) SetAffineTransform(m corefoundation.CGAffineTransform)

SetAffineTransform sets the layer’s transform to the specified affine transform.

func (*Layer) SetBackgroundFilters added in v0.17.0

func (l *Layer) SetBackgroundFilters(backgroundFilters obj.Object)

SetBackgroundFilters wraps the corresponding Objective-C method.

func (*Layer) SetFilters added in v0.17.0

func (l *Layer) SetFilters(filters obj.Object)

SetFilters wraps the corresponding Objective-C method.

func (*Layer) SetNeedsDisplay added in v0.17.0

func (l *Layer) SetNeedsDisplay()

SetNeedsDisplay marks the layer’s contents as needing to be updated.

func (*Layer) SetNeedsDisplayInRect added in v0.17.0

func (l *Layer) SetNeedsDisplayInRect(r corefoundation.CGRect)

SetNeedsDisplayInRect marks the region within the specified rectangle as needing to be updated.

func (*Layer) SetNeedsLayout added in v0.17.0

func (l *Layer) SetNeedsLayout()

SetNeedsLayout invalidates the layer’s layout and marks it as needing an update.

func (*Layer) ShadowColor added in v0.17.0

func (l *Layer) ShadowColor() coregraphics.CGColorRef

ShadowColor returns the shadow color.

func (*Layer) ShadowOffset added in v0.17.0

func (l *Layer) ShadowOffset() corefoundation.CGSize

ShadowOffset returns the shadow offset.

func (*Layer) ShadowOpacity added in v0.17.0

func (l *Layer) ShadowOpacity() float32

ShadowOpacity returns the shadow opacity.

func (*Layer) ShadowPath added in v0.17.0

func (l *Layer) ShadowPath() coregraphics.CGPathRef

ShadowPath returns the shadow path.

func (*Layer) ShadowRadius added in v0.17.0

func (l *Layer) ShadowRadius() float64

ShadowRadius returns the shadow radius.

func (*Layer) ShouldArchiveValueForKey added in v0.17.0

func (l *Layer) ShouldArchiveValueForKey(key string) bool

ShouldArchiveValueForKey returns a Boolean indicating whether the value of the specified key should be archived.

func (*Layer) ShouldRasterize added in v0.17.0

func (l *Layer) ShouldRasterize() bool

ShouldRasterize wraps the corresponding Objective-C method.

func (*Layer) String added in v0.17.0

func (l *Layer) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*Layer) Style added in v0.17.0

func (l *Layer) Style() obj.Object

Style returns the style.

func (*Layer) SublayerTransform added in v0.18.1

func (l *Layer) SublayerTransform() CATransform3D

SublayerTransform returns the sublayer transform.

func (*Layer) Sublayers added in v0.17.0

func (l *Layer) Sublayers() []*Layer

Sublayers returns the sublayers.

Sublayers returns the collection as a Go slice.

func (*Layer) Superlayer added in v0.17.0

func (l *Layer) Superlayer() *Layer

Superlayer returns the superlayer.

func (*Layer) ToneMapMode added in v0.17.0

func (l *Layer) ToneMapMode() *foundation.String

ToneMapMode returns the tone map mode.

func (*Layer) Transform added in v0.18.1

func (l *Layer) Transform() CATransform3D

Transform returns the transform.

func (*Layer) VisibleRect added in v0.17.0

func (l *Layer) VisibleRect() corefoundation.CGRect

VisibleRect returns the visible rect.

func (*Layer) WantsExtendedDynamicRangeContent added in v0.17.0

func (l *Layer) WantsExtendedDynamicRangeContent() bool

WantsExtendedDynamicRangeContent wraps the corresponding Objective-C method.

func (*Layer) WithActions added in v0.17.0

func (l *Layer) WithActions(actions map[string]obj.Object) *Layer

WithActions sets a dictionary containing layer actions.

func (*Layer) WithAllowsEdgeAntialiasing added in v0.17.0

func (l *Layer) WithAllowsEdgeAntialiasing(allowsEdgeAntialiasing bool) *Layer

WithAllowsEdgeAntialiasing sets a Boolean indicating whether the layer is allowed to perform edge antialiasing.

func (*Layer) WithAllowsGroupOpacity added in v0.17.0

func (l *Layer) WithAllowsGroupOpacity(allowsGroupOpacity bool) *Layer

WithAllowsGroupOpacity sets a Boolean indicating whether the layer is allowed to composite itself as a group separate from its parent.

func (*Layer) WithAnchorPoint added in v0.17.0

func (l *Layer) WithAnchorPoint(anchorPoint corefoundation.CGPoint) *Layer

WithAnchorPoint sets defines the anchor point of the layer’s bounds rectangle. Animatable.

func (*Layer) WithAnchorPointZ added in v0.17.0

func (l *Layer) WithAnchorPointZ(anchorPointZ float64) *Layer

WithAnchorPointZ sets the anchor point for the layer’s position along the z axis. Animatable.

func (*Layer) WithAutoresizingMask added in v0.17.0

func (l *Layer) WithAutoresizingMask(autoresizingMask AutoresizingMask) *Layer

WithAutoresizingMask sets a bitmask defining how the layer is resized when the bounds of its superlayer changes.

func (*Layer) WithBackgroundColor added in v0.17.0

func (l *Layer) WithBackgroundColor(backgroundColor coregraphics.CGColorRef) *Layer

WithBackgroundColor sets the background color of the receiver. Animatable.

func (*Layer) WithBorderColor added in v0.17.0

func (l *Layer) WithBorderColor(borderColor coregraphics.CGColorRef) *Layer

WithBorderColor sets the color of the layer’s border. Animatable.

func (*Layer) WithBorderWidth added in v0.17.0

func (l *Layer) WithBorderWidth(borderWidth float64) *Layer

WithBorderWidth sets the width of the layer’s border. Animatable.

func (*Layer) WithBounds added in v0.17.0

func (l *Layer) WithBounds(bounds corefoundation.CGRect) *Layer

WithBounds sets the layer’s bounds rectangle. Animatable.

func (*Layer) WithCompositingFilter added in v0.17.0

func (l *Layer) WithCompositingFilter(compositingFilter obj.Object) *Layer

WithCompositingFilter sets a CoreImage filter used to composite the layer and the content behind it. Animatable.

func (*Layer) WithConstraints added in v0.17.0

func (l *Layer) WithConstraints(items ...*Constraint) *Layer

WithConstraints sets the constraints used to position current layer’s sublayers.

func (*Layer) WithContents added in v0.17.0

func (l *Layer) WithContents(contents obj.Object) *Layer

WithContents sets an object that provides the contents of the layer. Animatable.

func (*Layer) WithContentsCenter added in v0.17.0

func (l *Layer) WithContentsCenter(contentsCenter corefoundation.CGRect) *Layer

WithContentsCenter sets the rectangle that defines how the layer contents are scaled if the layer’s contents are resized. Animatable.

func (*Layer) WithContentsFormat added in v0.17.0

func (l *Layer) WithContentsFormat(contentsFormat obj.Object) *Layer

WithContentsFormat sets a hint for the desired storage format of the layer contents.

func (*Layer) WithContentsGravity added in v0.17.0

func (l *Layer) WithContentsGravity(contentsGravity obj.Object) *Layer

WithContentsGravity sets a constant that specifies how the layer’s contents are positioned or scaled within its bounds.

func (*Layer) WithContentsHeadroom added in v0.17.0

func (l *Layer) WithContentsHeadroom(contentsHeadroom float64) *Layer

WithContentsHeadroom sets the contents headroom.

func (*Layer) WithContentsRect added in v0.17.0

func (l *Layer) WithContentsRect(contentsRect corefoundation.CGRect) *Layer

WithContentsRect sets the rectangle, in the unit coordinate space, that defines the portion of the layer’s contents that should be used. Animatable.

func (*Layer) WithContentsScale added in v0.17.0

func (l *Layer) WithContentsScale(contentsScale float64) *Layer

WithContentsScale sets the scale factor applied to the layer.

func (*Layer) WithCornerCurve added in v0.17.0

func (l *Layer) WithCornerCurve(cornerCurve obj.Object) *Layer

WithCornerCurve sets the corner curve.

func (*Layer) WithCornerRadius added in v0.17.0

func (l *Layer) WithCornerRadius(cornerRadius float64) *Layer

WithCornerRadius sets the radius to use when drawing rounded corners for the layer’s background. Animatable.

func (*Layer) WithDelegate added in v0.17.0

func (l *Layer) WithDelegate(delegate LayerDelegate) *Layer

WithDelegate sets the layer’s delegate object.

func (*Layer) WithDoubleSided added in v0.17.0

func (l *Layer) WithDoubleSided(doubleSided bool) *Layer

WithDoubleSided sets a Boolean indicating whether the layer displays its content when facing away from the viewer. Animatable.

func (*Layer) WithDrawsAsynchronously added in v0.17.0

func (l *Layer) WithDrawsAsynchronously(drawsAsynchronously bool) *Layer

WithDrawsAsynchronously sets a Boolean indicating whether drawing commands are deferred and processed asynchronously in a background thread.

func (*Layer) WithEdgeAntialiasingMask added in v0.17.0

func (l *Layer) WithEdgeAntialiasingMask(edgeAntialiasingMask EdgeAntialiasingMask) *Layer

WithEdgeAntialiasingMask sets a bitmask defining how the edges of the receiver are rasterized.

func (*Layer) WithFrame added in v0.17.0

func (l *Layer) WithFrame(frame corefoundation.CGRect) *Layer

WithFrame sets the layer’s frame rectangle.

func (*Layer) WithGeometryFlipped added in v0.17.0

func (l *Layer) WithGeometryFlipped(geometryFlipped bool) *Layer

WithGeometryFlipped sets a Boolean that indicates whether the geometry of the layer and its sublayers is flipped vertically.

func (*Layer) WithHidden added in v0.17.0

func (l *Layer) WithHidden(hidden bool) *Layer

WithHidden sets a Boolean indicating whether the layer is displayed. Animatable.

func (*Layer) WithMagnificationFilter added in v0.17.0

func (l *Layer) WithMagnificationFilter(magnificationFilter obj.Object) *Layer

WithMagnificationFilter sets the filter used when increasing the size of the content.

func (*Layer) WithMask added in v0.17.0

func (l *Layer) WithMask(mask LayerProvider) *Layer

WithMask sets an optional layer whose alpha channel is used to mask the layer’s content.

func (*Layer) WithMaskedCorners added in v0.17.0

func (l *Layer) WithMaskedCorners(maskedCorners CornerMask) *Layer

WithMaskedCorners sets the masked corners.

func (*Layer) WithMasksToBounds added in v0.17.0

func (l *Layer) WithMasksToBounds(masksToBounds bool) *Layer

WithMasksToBounds sets a Boolean indicating whether sublayers are clipped to the layer’s bounds. Animatable.

func (*Layer) WithMinificationFilter added in v0.17.0

func (l *Layer) WithMinificationFilter(minificationFilter obj.Object) *Layer

WithMinificationFilter sets the filter used when reducing the size of the content.

func (*Layer) WithMinificationFilterBias added in v0.17.0

func (l *Layer) WithMinificationFilterBias(minificationFilterBias float32) *Layer

WithMinificationFilterBias sets the bias factor used by the minification filter to determine the levels of detail.

func (*Layer) WithName added in v0.17.0

func (l *Layer) WithName(name string) *Layer

WithName sets the name of the receiver.

func (*Layer) WithNeedsDisplayOnBoundsChange added in v0.17.0

func (l *Layer) WithNeedsDisplayOnBoundsChange(needsDisplayOnBoundsChange bool) *Layer

WithNeedsDisplayOnBoundsChange sets a Boolean indicating whether the layer contents must be updated when its bounds rectangle changes.

func (*Layer) WithOpacity added in v0.17.0

func (l *Layer) WithOpacity(opacity float32) *Layer

WithOpacity sets the opacity of the receiver. Animatable.

func (*Layer) WithOpaque added in v0.17.0

func (l *Layer) WithOpaque(opaque bool) *Layer

WithOpaque sets a Boolean value indicating whether the layer contains completely opaque content.

func (*Layer) WithPosition added in v0.17.0

func (l *Layer) WithPosition(position corefoundation.CGPoint) *Layer

WithPosition sets the layer’s position in its superlayer’s coordinate space. Animatable.

func (*Layer) WithPreferredDynamicRange added in v0.17.0

func (l *Layer) WithPreferredDynamicRange(preferredDynamicRange obj.Object) *Layer

WithPreferredDynamicRange sets the preferred dynamic range.

func (*Layer) WithRasterizationScale added in v0.17.0

func (l *Layer) WithRasterizationScale(rasterizationScale float64) *Layer

WithRasterizationScale sets the scale at which to rasterize content, relative to the coordinate space of the layer. Animatable

func (*Layer) WithShadowColor added in v0.17.0

func (l *Layer) WithShadowColor(shadowColor coregraphics.CGColorRef) *Layer

WithShadowColor sets the color of the layer’s shadow. Animatable.

func (*Layer) WithShadowOffset added in v0.17.0

func (l *Layer) WithShadowOffset(shadowOffset corefoundation.CGSize) *Layer

WithShadowOffset sets the offset (in points) of the layer’s shadow. Animatable.

func (*Layer) WithShadowOpacity added in v0.17.0

func (l *Layer) WithShadowOpacity(shadowOpacity float32) *Layer

WithShadowOpacity sets the opacity of the layer’s shadow. Animatable.

func (*Layer) WithShadowPath added in v0.17.0

func (l *Layer) WithShadowPath(shadowPath coregraphics.CGPathRef) *Layer

WithShadowPath sets the shape of the layer’s shadow. Animatable.

func (*Layer) WithShadowRadius added in v0.17.0

func (l *Layer) WithShadowRadius(shadowRadius float64) *Layer

WithShadowRadius sets the blur radius (in points) used to render the layer’s shadow. Animatable.

func (*Layer) WithShouldRasterize added in v0.17.0

func (l *Layer) WithShouldRasterize(shouldRasterize bool) *Layer

WithShouldRasterize sets a Boolean that indicates whether the layer is rendered as a bitmap before compositing. Animatable

func (*Layer) WithStyle added in v0.17.0

func (l *Layer) WithStyle(style obj.Object) *Layer

WithStyle sets an optional dictionary used to store property values that aren’t explicitly defined by the layer.

func (*Layer) WithSublayerTransform added in v0.18.1

func (l *Layer) WithSublayerTransform(sublayerTransform CATransform3D) *Layer

WithSublayerTransform sets specifies the transform to apply to sublayers when rendering. Animatable.

func (*Layer) WithSublayers added in v0.17.0

func (l *Layer) WithSublayers(items ...LayerProvider) *Layer

WithSublayers sets an array containing the layer’s sublayers.

func (*Layer) WithToneMapMode added in v0.17.0

func (l *Layer) WithToneMapMode(toneMapMode obj.Object) *Layer

WithToneMapMode sets the tone map mode.

func (*Layer) WithTransform added in v0.18.1

func (l *Layer) WithTransform(transform CATransform3D) *Layer

WithTransform sets the transform applied to the layer’s contents. Animatable.

func (*Layer) WithWantsExtendedDynamicRangeContent added in v0.17.0

func (l *Layer) WithWantsExtendedDynamicRangeContent(wantsExtendedDynamicRangeContent bool) *Layer

WithWantsExtendedDynamicRangeContent sets the wants extended dynamic range content.

func (*Layer) WithZPosition added in v0.17.0

func (l *Layer) WithZPosition(zPosition float64) *Layer

WithZPosition sets the layer’s position on the z axis. Animatable.

func (*Layer) ZPosition added in v0.17.0

func (l *Layer) ZPosition() float64

ZPosition returns the z position.

type LayerDelegate added in v0.17.0

type LayerDelegate interface {
}

LayerDelegate receives the callbacks of the Objective-C protocol CALayerDelegate. 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 (LayerDelegate…Handler): implement the ones you need on the same value and the framework will call them too.

type LayerDelegateDisplayLayerHandler added in v0.17.0

type LayerDelegateDisplayLayerHandler interface {
	DisplayLayer(layer *Layer)
}

LayerDelegateDisplayLayerHandler is the optional CALayerDelegate method displayLayer:. Implement it on a LayerDelegate value to receive that callback; a value without it is simply never sent one.

type LayerDelegateLayerWillDrawHandler added in v0.17.0

type LayerDelegateLayerWillDrawHandler interface {
	LayerWillDraw(layer *Layer)
}

LayerDelegateLayerWillDrawHandler is the optional CALayerDelegate method layerWillDraw:. Implement it on a LayerDelegate value to receive that callback; a value without it is simply never sent one.

type LayerDelegateLayoutSublayersOfLayerHandler added in v0.17.0

type LayerDelegateLayoutSublayersOfLayerHandler interface {
	LayoutSublayersOfLayer(layer *Layer)
}

LayerDelegateLayoutSublayersOfLayerHandler is the optional CALayerDelegate method layoutSublayersOfLayer:. Implement it on a LayerDelegate value to receive that callback; a value without it is simply never sent one.

type LayerProvider added in v0.17.0

type LayerProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

LayerProvider is accepted wherever a CALayer (or one of its subclasses) is expected.

type LayoutManagerProtocol added in v0.17.0

type LayoutManagerProtocol interface {
}

LayoutManagerProtocol is the Go form of the Objective-C protocol CALayoutManager.

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 MTLDevice

type MTLDevice interface {
}

MTLDevice is the Go form of the Objective-C protocol MTLDevice.

type MTLDrawable

type MTLDrawable interface {
}

MTLDrawable is the Go form of the Objective-C protocol MTLDrawable.

type MTLResidencySet

type MTLResidencySet interface {
}

MTLResidencySet is the Go form of the Objective-C protocol MTLResidencySet.

type MTLTexture

type MTLTexture interface {
}

MTLTexture is the Go form of the Objective-C protocol MTLTexture.

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 MediaTiming added in v0.17.0

type MediaTiming interface {
	BeginTime() float64
	SetBeginTime(beginTime float64)
	Duration() float64
	SetDuration(duration float64)
	Speed() float32
	SetSpeed(speed float32)
	TimeOffset() float64
	SetTimeOffset(timeOffset float64)
	RepeatCount() float32
	SetRepeatCount(repeatCount float32)
	RepeatDuration() float64
	SetRepeatDuration(repeatDuration float64)
	Autoreverses() bool
	SetAutoreverses(autoreverses bool)
	FillMode() *foundation.String
	SetFillMode(fillMode obj.Object)
}

MediaTiming is the Go form of the Objective-C protocol CAMediaTiming.

type MediaTimingFunction added in v0.17.0

type MediaTimingFunction struct {
	objref.Handle
}

MediaTimingFunction is an idiomatic wrapper over the Objective-C class CAMediaTimingFunction.

A function that defines the pacing of an animation as a timing curve.

func AnimationTimingFunction added in v0.17.0

func AnimationTimingFunction() *MediaTimingFunction

AnimationTimingFunction returns the timing function used for all animations within this transaction group.

func FunctionWithControlPoints added in v0.17.0

func FunctionWithControlPoints(c1x float32, c1y float32, c2x float32, c2y float32) *MediaTimingFunction

FunctionWithControlPoints creates and returns a new instance of CAMediaTimingFunction timing function modeled as a cubic Bézier curve using the specified control points.

func FunctionWithName added in v0.17.0

func FunctionWithName(name obj.Object) *MediaTimingFunction

FunctionWithName creates and returns a new instance of CAMediaTimingFunction configured with the predefined timing function specified by name.

func MediaTimingFunctionFromID added in v0.17.0

func MediaTimingFunctionFromID(id objc.ID) *MediaTimingFunction

MediaTimingFunctionFromID adopts an existing Objective-C object as a MediaTimingFunction (nil for 0), retaining it and registering a release finalizer.

func NewMediaTimingFunctionWithControlPoints added in v0.17.0

func NewMediaTimingFunctionWithControlPoints(c1x float32, c1y float32, c2x float32, c2y float32) *MediaTimingFunction

NewMediaTimingFunctionWithControlPoints returns an initialized timing function modeled as a cubic Bézier curve using the specified control points.

func (*MediaTimingFunction) Description added in v0.17.0

func (mtf *MediaTimingFunction) Description() string

Description returns the object's -description text.

func (*MediaTimingFunction) GetControlPointAtIndexValues added in v0.17.0

func (mtf *MediaTimingFunction) GetControlPointAtIndexValues(idx int) (ptr float32)

GetControlPointAtIndexValues returns the control point for the specified index.

func (*MediaTimingFunction) IsEqual added in v0.17.0

func (mtf *MediaTimingFunction) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*MediaTimingFunction) IsKind added in v0.17.0

func (mtf *MediaTimingFunction) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*MediaTimingFunction) String added in v0.17.0

func (mtf *MediaTimingFunction) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type MetalDisplayLink struct {
	objref.Handle
}

MetalDisplayLink is an idiomatic wrapper over the Objective-C class CAMetalDisplayLink.

A class your Metal app uses to register for callbacks to synchronize its animations for a display.

func MetalDisplayLinkFromID added in v0.17.0

func MetalDisplayLinkFromID(id objc.ID) *MetalDisplayLink

MetalDisplayLinkFromID adopts an existing Objective-C object as a MetalDisplayLink (nil for 0), retaining it and registering a release finalizer.

func NewMetalDisplayLinkWithMetalLayer added in v0.17.0

func NewMetalDisplayLinkWithMetalLayer(layer *MetalLayer) *MetalDisplayLink

NewMetalDisplayLinkWithMetalLayer creates a display link for Metal from a Core Animation layer.

func (*MetalDisplayLink) AddToRunLoopForMode added in v0.17.0

func (mdl *MetalDisplayLink) AddToRunLoopForMode(runloop obj.Object, mode obj.Object)

AddToRunLoopForMode registers the display link with a run loop.

func (*MetalDisplayLink) Description added in v0.17.0

func (mdl *MetalDisplayLink) Description() string

Description returns the object's -description text.

func (*MetalDisplayLink) Invalidate added in v0.17.0

func (mdl *MetalDisplayLink) Invalidate()

Invalidate removes the display link from all run loops for all modes.

func (*MetalDisplayLink) IsEqual added in v0.17.0

func (mdl *MetalDisplayLink) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*MetalDisplayLink) IsKind added in v0.17.0

func (mdl *MetalDisplayLink) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*MetalDisplayLink) IsPaused added in v0.17.0

func (mdl *MetalDisplayLink) IsPaused() bool

IsPaused reports whether the object is paused.

func (*MetalDisplayLink) PreferredFrameLatency added in v0.17.0

func (mdl *MetalDisplayLink) PreferredFrameLatency() float32

PreferredFrameLatency returns the preferred frame latency.

func (*MetalDisplayLink) PreferredFrameRateRange added in v0.18.1

func (mdl *MetalDisplayLink) PreferredFrameRateRange() CAFrameRateRange

PreferredFrameRateRange returns the preferred frame rate range.

func (*MetalDisplayLink) RemoveFromRunLoopForMode added in v0.17.0

func (mdl *MetalDisplayLink) RemoveFromRunLoopForMode(runloop obj.Object, mode obj.Object)

RemoveFromRunLoopForMode removes a mode’s display link from a run loop.

func (*MetalDisplayLink) String added in v0.17.0

func (mdl *MetalDisplayLink) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*MetalDisplayLink) WithDelegate added in v0.17.0

func (mdl *MetalDisplayLink) WithDelegate(delegate MetalDisplayLinkDelegate) *MetalDisplayLink

WithDelegate sets an instance of a type your app implements that responds to the system’s callbacks.

func (*MetalDisplayLink) WithPaused added in v0.17.0

func (mdl *MetalDisplayLink) WithPaused(paused bool) *MetalDisplayLink

WithPaused sets a Boolean value that indicates whether the system suspends the display link’s notifications to the target.

func (*MetalDisplayLink) WithPreferredFrameLatency added in v0.17.0

func (mdl *MetalDisplayLink) WithPreferredFrameLatency(preferredFrameLatency float32) *MetalDisplayLink

WithPreferredFrameLatency sets the amount of time, in frames, your app requests to render a frame.

func (*MetalDisplayLink) WithPreferredFrameRateRange added in v0.18.1

func (mdl *MetalDisplayLink) WithPreferredFrameRateRange(preferredFrameRateRange CAFrameRateRange) *MetalDisplayLink

WithPreferredFrameRateRange sets a range of frequencies your app allows for frame updates, affecting how often the system invokes your delegate’s callback.

type MetalDisplayLinkDelegate added in v0.17.0

type MetalDisplayLinkDelegate interface {
	// MetalDisplayLinkNeedsUpdate wraps the corresponding Objective-C method.
	MetalDisplayLinkNeedsUpdate(link *MetalDisplayLink, update *MetalDisplayLinkUpdate)
}

MetalDisplayLinkDelegate receives the callbacks of the Objective-C protocol CAMetalDisplayLinkDelegate. 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 (MetalDisplayLinkDelegate…Handler): implement the ones you need on the same value and the framework will call them too.

type MetalDisplayLinkUpdate added in v0.17.0

type MetalDisplayLinkUpdate struct {
	objref.Handle
}

MetalDisplayLinkUpdate is an idiomatic wrapper over the Objective-C class CAMetalDisplayLinkUpdate.

Stores information about a single update from a Metal display link instance.

func MetalDisplayLinkUpdateFromID added in v0.17.0

func MetalDisplayLinkUpdateFromID(id objc.ID) *MetalDisplayLinkUpdate

MetalDisplayLinkUpdateFromID adopts an existing Objective-C object as a MetalDisplayLinkUpdate (nil for 0), retaining it and registering a release finalizer.

func NewMetalDisplayLinkUpdate added in v0.17.0

func NewMetalDisplayLinkUpdate() *MetalDisplayLinkUpdate

NewMetalDisplayLinkUpdate creates a new MetalDisplayLinkUpdate.

func (*MetalDisplayLinkUpdate) Description added in v0.17.0

func (mdlu *MetalDisplayLinkUpdate) Description() string

Description returns the object's -description text.

func (*MetalDisplayLinkUpdate) IsEqual added in v0.17.0

func (mdlu *MetalDisplayLinkUpdate) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*MetalDisplayLinkUpdate) IsKind added in v0.17.0

func (mdlu *MetalDisplayLinkUpdate) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*MetalDisplayLinkUpdate) String added in v0.17.0

func (mdlu *MetalDisplayLinkUpdate) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*MetalDisplayLinkUpdate) TargetPresentationTimestamp added in v0.17.0

func (mdlu *MetalDisplayLinkUpdate) TargetPresentationTimestamp() float64

TargetPresentationTimestamp returns the target presentation timestamp.

func (*MetalDisplayLinkUpdate) TargetTimestamp added in v0.17.0

func (mdlu *MetalDisplayLinkUpdate) TargetTimestamp() float64

TargetTimestamp returns the target timestamp.

type MetalDrawable added in v0.17.0

type MetalDrawable interface {
	Texture() obj.Object
	Layer() *MetalLayer
}

MetalDrawable is the Go form of the Objective-C protocol CAMetalDrawable.

type MetalLayer added in v0.17.0

type MetalLayer struct {
	Layer
}

MetalLayer is an idiomatic wrapper over the Objective-C class CAMetalLayer.

It embeds Layer, promoting that type's methods.

A Core Animation layer that Metal can render into, typically displayed onscreen.

func MetalLayerFromID added in v0.17.0

func MetalLayerFromID(id objc.ID) *MetalLayer

MetalLayerFromID adopts an existing Objective-C object as a MetalLayer (nil for 0), retaining it and registering a release finalizer.

func NewMetalLayer added in v0.17.0

func NewMetalLayer() *MetalLayer

NewMetalLayer creates a new MetalLayer.

func (*MetalLayer) AllowsNextDrawableTimeout added in v0.17.0

func (ml *MetalLayer) AllowsNextDrawableTimeout() bool

AllowsNextDrawableTimeout wraps the corresponding Objective-C method.

func (*MetalLayer) Colorspace added in v0.17.0

func (ml *MetalLayer) Colorspace() coregraphics.CGColorSpaceRef

Colorspace returns the colorspace.

func (*MetalLayer) DeveloperHUDProperties added in v0.17.0

func (ml *MetalLayer) DeveloperHUDProperties() obj.Object

DeveloperHUDProperties returns the developer hud properties.

func (*MetalLayer) DisplaySyncEnabled added in v0.17.0

func (ml *MetalLayer) DisplaySyncEnabled() bool

DisplaySyncEnabled wraps the corresponding Objective-C method.

func (*MetalLayer) DrawableSize added in v0.17.0

func (ml *MetalLayer) DrawableSize() corefoundation.CGSize

DrawableSize returns the drawable size.

func (*MetalLayer) EDRMetadata added in v0.17.0

func (ml *MetalLayer) EDRMetadata() *EDRMetadata

EDRMetadata returns the edr metadata.

func (*MetalLayer) FramebufferOnly added in v0.17.0

func (ml *MetalLayer) FramebufferOnly() bool

FramebufferOnly wraps the corresponding Objective-C method.

func (*MetalLayer) MaximumDrawableCount added in v0.17.0

func (ml *MetalLayer) MaximumDrawableCount() int

MaximumDrawableCount returns the maximum drawable count.

func (*MetalLayer) PresentsWithTransaction added in v0.17.0

func (ml *MetalLayer) PresentsWithTransaction() bool

PresentsWithTransaction wraps the corresponding Objective-C method.

func (*MetalLayer) WithActions added in v0.17.0

func (ml *MetalLayer) WithActions(actions map[string]obj.Object) *MetalLayer

WithActions sets a dictionary containing layer actions.

func (*MetalLayer) WithAllowsEdgeAntialiasing added in v0.17.0

func (ml *MetalLayer) WithAllowsEdgeAntialiasing(allowsEdgeAntialiasing bool) *MetalLayer

WithAllowsEdgeAntialiasing sets a Boolean indicating whether the layer is allowed to perform edge antialiasing.

func (*MetalLayer) WithAllowsGroupOpacity added in v0.17.0

func (ml *MetalLayer) WithAllowsGroupOpacity(allowsGroupOpacity bool) *MetalLayer

WithAllowsGroupOpacity sets a Boolean indicating whether the layer is allowed to composite itself as a group separate from its parent.

func (*MetalLayer) WithAllowsNextDrawableTimeout added in v0.17.0

func (ml *MetalLayer) WithAllowsNextDrawableTimeout(allowsNextDrawableTimeout bool) *MetalLayer

WithAllowsNextDrawableTimeout sets a Boolean value that determines whether requests for a new buffer expire if the system can’t satisfy them.

func (*MetalLayer) WithAnchorPoint added in v0.17.0

func (ml *MetalLayer) WithAnchorPoint(anchorPoint corefoundation.CGPoint) *MetalLayer

WithAnchorPoint sets defines the anchor point of the layer’s bounds rectangle. Animatable.

func (*MetalLayer) WithAnchorPointZ added in v0.17.0

func (ml *MetalLayer) WithAnchorPointZ(anchorPointZ float64) *MetalLayer

WithAnchorPointZ sets the anchor point for the layer’s position along the z axis. Animatable.

func (*MetalLayer) WithAutoresizingMask added in v0.17.0

func (ml *MetalLayer) WithAutoresizingMask(autoresizingMask AutoresizingMask) *MetalLayer

WithAutoresizingMask sets a bitmask defining how the layer is resized when the bounds of its superlayer changes.

func (*MetalLayer) WithBackgroundColor added in v0.17.0

func (ml *MetalLayer) WithBackgroundColor(backgroundColor coregraphics.CGColorRef) *MetalLayer

WithBackgroundColor sets the background color of the receiver. Animatable.

func (*MetalLayer) WithBorderColor added in v0.17.0

func (ml *MetalLayer) WithBorderColor(borderColor coregraphics.CGColorRef) *MetalLayer

WithBorderColor sets the color of the layer’s border. Animatable.

func (*MetalLayer) WithBorderWidth added in v0.17.0

func (ml *MetalLayer) WithBorderWidth(borderWidth float64) *MetalLayer

WithBorderWidth sets the width of the layer’s border. Animatable.

func (*MetalLayer) WithBounds added in v0.17.0

func (ml *MetalLayer) WithBounds(bounds corefoundation.CGRect) *MetalLayer

WithBounds sets the layer’s bounds rectangle. Animatable.

func (*MetalLayer) WithColorspace added in v0.17.0

func (ml *MetalLayer) WithColorspace(colorspace coregraphics.CGColorSpaceRef) *MetalLayer

WithColorspace sets the color space of the rendered content.

func (*MetalLayer) WithCompositingFilter added in v0.17.0

func (ml *MetalLayer) WithCompositingFilter(compositingFilter obj.Object) *MetalLayer

WithCompositingFilter sets a CoreImage filter used to composite the layer and the content behind it. Animatable.

func (*MetalLayer) WithConstraints added in v0.17.0

func (ml *MetalLayer) WithConstraints(items ...*Constraint) *MetalLayer

WithConstraints sets the constraints used to position current layer’s sublayers.

func (*MetalLayer) WithContents added in v0.17.0

func (ml *MetalLayer) WithContents(contents obj.Object) *MetalLayer

WithContents sets an object that provides the contents of the layer. Animatable.

func (*MetalLayer) WithContentsCenter added in v0.17.0

func (ml *MetalLayer) WithContentsCenter(contentsCenter corefoundation.CGRect) *MetalLayer

WithContentsCenter sets the rectangle that defines how the layer contents are scaled if the layer’s contents are resized. Animatable.

func (*MetalLayer) WithContentsFormat added in v0.17.0

func (ml *MetalLayer) WithContentsFormat(contentsFormat obj.Object) *MetalLayer

WithContentsFormat sets a hint for the desired storage format of the layer contents.

func (*MetalLayer) WithContentsGravity added in v0.17.0

func (ml *MetalLayer) WithContentsGravity(contentsGravity obj.Object) *MetalLayer

WithContentsGravity sets a constant that specifies how the layer’s contents are positioned or scaled within its bounds.

func (*MetalLayer) WithContentsHeadroom added in v0.17.0

func (ml *MetalLayer) WithContentsHeadroom(contentsHeadroom float64) *MetalLayer

WithContentsHeadroom sets the contents headroom.

func (*MetalLayer) WithContentsRect added in v0.17.0

func (ml *MetalLayer) WithContentsRect(contentsRect corefoundation.CGRect) *MetalLayer

WithContentsRect sets the rectangle, in the unit coordinate space, that defines the portion of the layer’s contents that should be used. Animatable.

func (*MetalLayer) WithContentsScale added in v0.17.0

func (ml *MetalLayer) WithContentsScale(contentsScale float64) *MetalLayer

WithContentsScale sets the scale factor applied to the layer.

func (*MetalLayer) WithCornerCurve added in v0.17.0

func (ml *MetalLayer) WithCornerCurve(cornerCurve obj.Object) *MetalLayer

WithCornerCurve sets the corner curve.

func (*MetalLayer) WithCornerRadius added in v0.17.0

func (ml *MetalLayer) WithCornerRadius(cornerRadius float64) *MetalLayer

WithCornerRadius sets the radius to use when drawing rounded corners for the layer’s background. Animatable.

func (*MetalLayer) WithDelegate added in v0.17.0

func (ml *MetalLayer) WithDelegate(delegate LayerDelegate) *MetalLayer

WithDelegate sets the layer’s delegate object.

func (*MetalLayer) WithDeveloperHUDProperties added in v0.17.0

func (ml *MetalLayer) WithDeveloperHUDProperties(developerHUDProperties obj.Object) *MetalLayer

WithDeveloperHUDProperties sets the properties of the Metal performance heads-up display.

func (*MetalLayer) WithDisplaySyncEnabled added in v0.17.0

func (ml *MetalLayer) WithDisplaySyncEnabled(displaySyncEnabled bool) *MetalLayer

WithDisplaySyncEnabled sets a Boolean value that determines whether the layer synchronizes its updates to the display’s refresh rate.

func (*MetalLayer) WithDoubleSided added in v0.17.0

func (ml *MetalLayer) WithDoubleSided(doubleSided bool) *MetalLayer

WithDoubleSided sets a Boolean indicating whether the layer displays its content when facing away from the viewer. Animatable.

func (*MetalLayer) WithDrawableSize added in v0.17.0

func (ml *MetalLayer) WithDrawableSize(drawableSize corefoundation.CGSize) *MetalLayer

WithDrawableSize sets the size, in pixels, of textures for rendering layer content.

func (*MetalLayer) WithDrawsAsynchronously added in v0.17.0

func (ml *MetalLayer) WithDrawsAsynchronously(drawsAsynchronously bool) *MetalLayer

WithDrawsAsynchronously sets a Boolean indicating whether drawing commands are deferred and processed asynchronously in a background thread.

func (*MetalLayer) WithEDRMetadata added in v0.17.0

func (ml *MetalLayer) WithEDRMetadata(edrMetadata *EDRMetadata) *MetalLayer

WithEDRMetadata sets metadata describing the tone mapping to apply to the extended dynamic range (EDR) values in the layer.

func (*MetalLayer) WithEdgeAntialiasingMask added in v0.17.0

func (ml *MetalLayer) WithEdgeAntialiasingMask(edgeAntialiasingMask EdgeAntialiasingMask) *MetalLayer

WithEdgeAntialiasingMask sets a bitmask defining how the edges of the receiver are rasterized.

func (*MetalLayer) WithFrame added in v0.17.0

func (ml *MetalLayer) WithFrame(frame corefoundation.CGRect) *MetalLayer

WithFrame sets the layer’s frame rectangle.

func (*MetalLayer) WithFramebufferOnly added in v0.17.0

func (ml *MetalLayer) WithFramebufferOnly(framebufferOnly bool) *MetalLayer

WithFramebufferOnly sets a Boolean value that determines whether the layer’s textures are used only for rendering.

func (*MetalLayer) WithGeometryFlipped added in v0.17.0

func (ml *MetalLayer) WithGeometryFlipped(geometryFlipped bool) *MetalLayer

WithGeometryFlipped sets a Boolean that indicates whether the geometry of the layer and its sublayers is flipped vertically.

func (*MetalLayer) WithHidden added in v0.17.0

func (ml *MetalLayer) WithHidden(hidden bool) *MetalLayer

WithHidden sets a Boolean indicating whether the layer is displayed. Animatable.

func (*MetalLayer) WithMagnificationFilter added in v0.17.0

func (ml *MetalLayer) WithMagnificationFilter(magnificationFilter obj.Object) *MetalLayer

WithMagnificationFilter sets the filter used when increasing the size of the content.

func (*MetalLayer) WithMask added in v0.17.0

func (ml *MetalLayer) WithMask(mask LayerProvider) *MetalLayer

WithMask sets an optional layer whose alpha channel is used to mask the layer’s content.

func (*MetalLayer) WithMaskedCorners added in v0.17.0

func (ml *MetalLayer) WithMaskedCorners(maskedCorners CornerMask) *MetalLayer

WithMaskedCorners sets the masked corners.

func (*MetalLayer) WithMasksToBounds added in v0.17.0

func (ml *MetalLayer) WithMasksToBounds(masksToBounds bool) *MetalLayer

WithMasksToBounds sets a Boolean indicating whether sublayers are clipped to the layer’s bounds. Animatable.

func (*MetalLayer) WithMaximumDrawableCount added in v0.17.0

func (ml *MetalLayer) WithMaximumDrawableCount(maximumDrawableCount int) *MetalLayer

WithMaximumDrawableCount sets the number of Metal drawables in the resource pool managed by Core Animation.

func (*MetalLayer) WithMinificationFilter added in v0.17.0

func (ml *MetalLayer) WithMinificationFilter(minificationFilter obj.Object) *MetalLayer

WithMinificationFilter sets the filter used when reducing the size of the content.

func (*MetalLayer) WithMinificationFilterBias added in v0.17.0

func (ml *MetalLayer) WithMinificationFilterBias(minificationFilterBias float32) *MetalLayer

WithMinificationFilterBias sets the bias factor used by the minification filter to determine the levels of detail.

func (*MetalLayer) WithName added in v0.17.0

func (ml *MetalLayer) WithName(name string) *MetalLayer

WithName sets the name of the receiver.

func (*MetalLayer) WithNeedsDisplayOnBoundsChange added in v0.17.0

func (ml *MetalLayer) WithNeedsDisplayOnBoundsChange(needsDisplayOnBoundsChange bool) *MetalLayer

WithNeedsDisplayOnBoundsChange sets a Boolean indicating whether the layer contents must be updated when its bounds rectangle changes.

func (*MetalLayer) WithOpacity added in v0.17.0

func (ml *MetalLayer) WithOpacity(opacity float32) *MetalLayer

WithOpacity sets the opacity of the receiver. Animatable.

func (*MetalLayer) WithOpaque added in v0.17.0

func (ml *MetalLayer) WithOpaque(opaque bool) *MetalLayer

WithOpaque sets a Boolean value indicating whether the layer contains completely opaque content.

func (*MetalLayer) WithPosition added in v0.17.0

func (ml *MetalLayer) WithPosition(position corefoundation.CGPoint) *MetalLayer

WithPosition sets the layer’s position in its superlayer’s coordinate space. Animatable.

func (*MetalLayer) WithPreferredDynamicRange added in v0.17.0

func (ml *MetalLayer) WithPreferredDynamicRange(preferredDynamicRange obj.Object) *MetalLayer

WithPreferredDynamicRange sets the preferred dynamic range.

func (*MetalLayer) WithPresentsWithTransaction added in v0.17.0

func (ml *MetalLayer) WithPresentsWithTransaction(presentsWithTransaction bool) *MetalLayer

WithPresentsWithTransaction sets a Boolean value that determines whether the layer presents its content using a Core Animation transaction.

func (*MetalLayer) WithRasterizationScale added in v0.17.0

func (ml *MetalLayer) WithRasterizationScale(rasterizationScale float64) *MetalLayer

WithRasterizationScale sets the scale at which to rasterize content, relative to the coordinate space of the layer. Animatable

func (*MetalLayer) WithShadowColor added in v0.17.0

func (ml *MetalLayer) WithShadowColor(shadowColor coregraphics.CGColorRef) *MetalLayer

WithShadowColor sets the color of the layer’s shadow. Animatable.

func (*MetalLayer) WithShadowOffset added in v0.17.0

func (ml *MetalLayer) WithShadowOffset(shadowOffset corefoundation.CGSize) *MetalLayer

WithShadowOffset sets the offset (in points) of the layer’s shadow. Animatable.

func (*MetalLayer) WithShadowOpacity added in v0.17.0

func (ml *MetalLayer) WithShadowOpacity(shadowOpacity float32) *MetalLayer

WithShadowOpacity sets the opacity of the layer’s shadow. Animatable.

func (*MetalLayer) WithShadowPath added in v0.17.0

func (ml *MetalLayer) WithShadowPath(shadowPath coregraphics.CGPathRef) *MetalLayer

WithShadowPath sets the shape of the layer’s shadow. Animatable.

func (*MetalLayer) WithShadowRadius added in v0.17.0

func (ml *MetalLayer) WithShadowRadius(shadowRadius float64) *MetalLayer

WithShadowRadius sets the blur radius (in points) used to render the layer’s shadow. Animatable.

func (*MetalLayer) WithShouldRasterize added in v0.17.0

func (ml *MetalLayer) WithShouldRasterize(shouldRasterize bool) *MetalLayer

WithShouldRasterize sets a Boolean that indicates whether the layer is rendered as a bitmap before compositing. Animatable

func (*MetalLayer) WithStyle added in v0.17.0

func (ml *MetalLayer) WithStyle(style obj.Object) *MetalLayer

WithStyle sets an optional dictionary used to store property values that aren’t explicitly defined by the layer.

func (*MetalLayer) WithSublayerTransform added in v0.18.1

func (ml *MetalLayer) WithSublayerTransform(sublayerTransform CATransform3D) *MetalLayer

WithSublayerTransform sets specifies the transform to apply to sublayers when rendering. Animatable.

func (*MetalLayer) WithSublayers added in v0.17.0

func (ml *MetalLayer) WithSublayers(items ...LayerProvider) *MetalLayer

WithSublayers sets an array containing the layer’s sublayers.

func (*MetalLayer) WithToneMapMode added in v0.17.0

func (ml *MetalLayer) WithToneMapMode(toneMapMode obj.Object) *MetalLayer

WithToneMapMode sets the tone map mode.

func (*MetalLayer) WithTransform added in v0.18.1

func (ml *MetalLayer) WithTransform(transform CATransform3D) *MetalLayer

WithTransform sets the transform applied to the layer’s contents. Animatable.

func (*MetalLayer) WithWantsExtendedDynamicRangeContent added in v0.17.0

func (ml *MetalLayer) WithWantsExtendedDynamicRangeContent(wantsExtendedDynamicRangeContent bool) *MetalLayer

WithWantsExtendedDynamicRangeContent sets the wants extended dynamic range content.

func (*MetalLayer) WithZPosition added in v0.17.0

func (ml *MetalLayer) WithZPosition(zPosition float64) *MetalLayer

WithZPosition sets the layer’s position on the z axis. Animatable.

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
)

func (MpoFlags) String added in v0.17.0

func (e MpoFlags) String() string

String returns the MpoFlags constant's name, or its numeric form when the value is not a known constant.

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 OSClockid added in v0.17.0

type OSClockid uint32
const (
	OSClockidTime OSClockid = 32
)

func (OSClockid) String added in v0.17.0

func (e OSClockid) String() string

String returns the OSClockid constant's name, or its numeric form when the value is not a known constant.

type OpenGLLayer added in v0.17.0

type OpenGLLayer struct {
	Layer
}

OpenGLLayer is an idiomatic wrapper over the Objective-C class CAOpenGLLayer.

It embeds Layer, promoting that type's methods.

A layer that provides a layer suitable for rendering OpenGL content.

func NewOpenGLLayer added in v0.17.0

func NewOpenGLLayer() *OpenGLLayer

NewOpenGLLayer creates a new OpenGLLayer.

func OpenGLLayerFromID added in v0.17.0

func OpenGLLayerFromID(id objc.ID) *OpenGLLayer

OpenGLLayerFromID adopts an existing Objective-C object as a OpenGLLayer (nil for 0), retaining it and registering a release finalizer.

func (*OpenGLLayer) CanDrawInCGLContextPixelFormatForLayerTimeDisplayTime added in v0.18.0

func (ogl *OpenGLLayer) CanDrawInCGLContextPixelFormatForLayerTimeDisplayTime(ctx obj.Object, pf obj.Object, t float64, ts *corevideo.CVTimeStamp) bool

CanDrawInCGLContextPixelFormatForLayerTimeDisplayTime returns whether the receiver should draw OpenGL content for the specified time.

func (*OpenGLLayer) Colorspace added in v0.17.0

func (ogl *OpenGLLayer) Colorspace() coregraphics.CGColorSpaceRef

Colorspace returns the colorspace.

func (*OpenGLLayer) CopyCGLContextForPixelFormat added in v0.17.0

func (ogl *OpenGLLayer) CopyCGLContextForPixelFormat(pf obj.Object) obj.Object

CopyCGLContextForPixelFormat returns the rendering context the receiver requires for the specified pixel format.

func (*OpenGLLayer) CopyCGLPixelFormatForDisplayMask added in v0.17.0

func (ogl *OpenGLLayer) CopyCGLPixelFormatForDisplayMask(mask uint32) obj.Object

CopyCGLPixelFormatForDisplayMask returns the OpenGL pixel format suitable for rendering to the set of displays specified by the display mask.

func (*OpenGLLayer) DrawInCGLContextPixelFormatForLayerTimeDisplayTime added in v0.18.0

func (ogl *OpenGLLayer) DrawInCGLContextPixelFormatForLayerTimeDisplayTime(ctx obj.Object, pf obj.Object, t float64, ts *corevideo.CVTimeStamp)

DrawInCGLContextPixelFormatForLayerTimeDisplayTime draws the OpenGL content for the specified time.

func (*OpenGLLayer) IsAsynchronous added in v0.17.0

func (ogl *OpenGLLayer) IsAsynchronous() bool

IsAsynchronous reports whether the object is asynchronous.

func (*OpenGLLayer) ReleaseCGLContext added in v0.17.0

func (ogl *OpenGLLayer) ReleaseCGLContext(ctx obj.Object)

ReleaseCGLContext releases the specified rendering context.

func (*OpenGLLayer) ReleaseCGLPixelFormat added in v0.17.0

func (ogl *OpenGLLayer) ReleaseCGLPixelFormat(pf obj.Object)

ReleaseCGLPixelFormat releases the specified OpenGL pixel format object.

func (*OpenGLLayer) WithActions added in v0.17.0

func (ogl *OpenGLLayer) WithActions(actions map[string]obj.Object) *OpenGLLayer

WithActions sets a dictionary containing layer actions.

func (*OpenGLLayer) WithAllowsEdgeAntialiasing added in v0.17.0

func (ogl *OpenGLLayer) WithAllowsEdgeAntialiasing(allowsEdgeAntialiasing bool) *OpenGLLayer

WithAllowsEdgeAntialiasing sets a Boolean indicating whether the layer is allowed to perform edge antialiasing.

func (*OpenGLLayer) WithAllowsGroupOpacity added in v0.17.0

func (ogl *OpenGLLayer) WithAllowsGroupOpacity(allowsGroupOpacity bool) *OpenGLLayer

WithAllowsGroupOpacity sets a Boolean indicating whether the layer is allowed to composite itself as a group separate from its parent.

func (*OpenGLLayer) WithAnchorPoint added in v0.17.0

func (ogl *OpenGLLayer) WithAnchorPoint(anchorPoint corefoundation.CGPoint) *OpenGLLayer

WithAnchorPoint sets defines the anchor point of the layer’s bounds rectangle. Animatable.

func (*OpenGLLayer) WithAnchorPointZ added in v0.17.0

func (ogl *OpenGLLayer) WithAnchorPointZ(anchorPointZ float64) *OpenGLLayer

WithAnchorPointZ sets the anchor point for the layer’s position along the z axis. Animatable.

func (*OpenGLLayer) WithAsynchronous added in v0.17.0

func (ogl *OpenGLLayer) WithAsynchronous(asynchronous bool) *OpenGLLayer

WithAsynchronous sets determines when the contents of the layer are updated.

func (*OpenGLLayer) WithAutoresizingMask added in v0.17.0

func (ogl *OpenGLLayer) WithAutoresizingMask(autoresizingMask AutoresizingMask) *OpenGLLayer

WithAutoresizingMask sets a bitmask defining how the layer is resized when the bounds of its superlayer changes.

func (*OpenGLLayer) WithBackgroundColor added in v0.17.0

func (ogl *OpenGLLayer) WithBackgroundColor(backgroundColor coregraphics.CGColorRef) *OpenGLLayer

WithBackgroundColor sets the background color of the receiver. Animatable.

func (*OpenGLLayer) WithBorderColor added in v0.17.0

func (ogl *OpenGLLayer) WithBorderColor(borderColor coregraphics.CGColorRef) *OpenGLLayer

WithBorderColor sets the color of the layer’s border. Animatable.

func (*OpenGLLayer) WithBorderWidth added in v0.17.0

func (ogl *OpenGLLayer) WithBorderWidth(borderWidth float64) *OpenGLLayer

WithBorderWidth sets the width of the layer’s border. Animatable.

func (*OpenGLLayer) WithBounds added in v0.17.0

func (ogl *OpenGLLayer) WithBounds(bounds corefoundation.CGRect) *OpenGLLayer

WithBounds sets the layer’s bounds rectangle. Animatable.

func (*OpenGLLayer) WithColorspace added in v0.17.0

func (ogl *OpenGLLayer) WithColorspace(colorspace coregraphics.CGColorSpaceRef) *OpenGLLayer

WithColorspace sets the layer’s colorspace in Core Graphics.

func (*OpenGLLayer) WithCompositingFilter added in v0.17.0

func (ogl *OpenGLLayer) WithCompositingFilter(compositingFilter obj.Object) *OpenGLLayer

WithCompositingFilter sets a CoreImage filter used to composite the layer and the content behind it. Animatable.

func (*OpenGLLayer) WithConstraints added in v0.17.0

func (ogl *OpenGLLayer) WithConstraints(items ...*Constraint) *OpenGLLayer

WithConstraints sets the constraints used to position current layer’s sublayers.

func (*OpenGLLayer) WithContents added in v0.17.0

func (ogl *OpenGLLayer) WithContents(contents obj.Object) *OpenGLLayer

WithContents sets an object that provides the contents of the layer. Animatable.

func (*OpenGLLayer) WithContentsCenter added in v0.17.0

func (ogl *OpenGLLayer) WithContentsCenter(contentsCenter corefoundation.CGRect) *OpenGLLayer

WithContentsCenter sets the rectangle that defines how the layer contents are scaled if the layer’s contents are resized. Animatable.

func (*OpenGLLayer) WithContentsFormat added in v0.17.0

func (ogl *OpenGLLayer) WithContentsFormat(contentsFormat obj.Object) *OpenGLLayer

WithContentsFormat sets a hint for the desired storage format of the layer contents.

func (*OpenGLLayer) WithContentsGravity added in v0.17.0

func (ogl *OpenGLLayer) WithContentsGravity(contentsGravity obj.Object) *OpenGLLayer

WithContentsGravity sets a constant that specifies how the layer’s contents are positioned or scaled within its bounds.

func (*OpenGLLayer) WithContentsHeadroom added in v0.17.0

func (ogl *OpenGLLayer) WithContentsHeadroom(contentsHeadroom float64) *OpenGLLayer

WithContentsHeadroom sets the contents headroom.

func (*OpenGLLayer) WithContentsRect added in v0.17.0

func (ogl *OpenGLLayer) WithContentsRect(contentsRect corefoundation.CGRect) *OpenGLLayer

WithContentsRect sets the rectangle, in the unit coordinate space, that defines the portion of the layer’s contents that should be used. Animatable.

func (*OpenGLLayer) WithContentsScale added in v0.17.0

func (ogl *OpenGLLayer) WithContentsScale(contentsScale float64) *OpenGLLayer

WithContentsScale sets the scale factor applied to the layer.

func (*OpenGLLayer) WithCornerCurve added in v0.17.0

func (ogl *OpenGLLayer) WithCornerCurve(cornerCurve obj.Object) *OpenGLLayer

WithCornerCurve sets the corner curve.

func (*OpenGLLayer) WithCornerRadius added in v0.17.0

func (ogl *OpenGLLayer) WithCornerRadius(cornerRadius float64) *OpenGLLayer

WithCornerRadius sets the radius to use when drawing rounded corners for the layer’s background. Animatable.

func (*OpenGLLayer) WithDelegate added in v0.17.0

func (ogl *OpenGLLayer) WithDelegate(delegate LayerDelegate) *OpenGLLayer

WithDelegate sets the layer’s delegate object.

func (*OpenGLLayer) WithDoubleSided added in v0.17.0

func (ogl *OpenGLLayer) WithDoubleSided(doubleSided bool) *OpenGLLayer

WithDoubleSided sets a Boolean indicating whether the layer displays its content when facing away from the viewer. Animatable.

func (*OpenGLLayer) WithDrawsAsynchronously added in v0.17.0

func (ogl *OpenGLLayer) WithDrawsAsynchronously(drawsAsynchronously bool) *OpenGLLayer

WithDrawsAsynchronously sets a Boolean indicating whether drawing commands are deferred and processed asynchronously in a background thread.

func (*OpenGLLayer) WithEdgeAntialiasingMask added in v0.17.0

func (ogl *OpenGLLayer) WithEdgeAntialiasingMask(edgeAntialiasingMask EdgeAntialiasingMask) *OpenGLLayer

WithEdgeAntialiasingMask sets a bitmask defining how the edges of the receiver are rasterized.

func (*OpenGLLayer) WithFrame added in v0.17.0

func (ogl *OpenGLLayer) WithFrame(frame corefoundation.CGRect) *OpenGLLayer

WithFrame sets the layer’s frame rectangle.

func (*OpenGLLayer) WithGeometryFlipped added in v0.17.0

func (ogl *OpenGLLayer) WithGeometryFlipped(geometryFlipped bool) *OpenGLLayer

WithGeometryFlipped sets a Boolean that indicates whether the geometry of the layer and its sublayers is flipped vertically.

func (*OpenGLLayer) WithHidden added in v0.17.0

func (ogl *OpenGLLayer) WithHidden(hidden bool) *OpenGLLayer

WithHidden sets a Boolean indicating whether the layer is displayed. Animatable.

func (*OpenGLLayer) WithMagnificationFilter added in v0.17.0

func (ogl *OpenGLLayer) WithMagnificationFilter(magnificationFilter obj.Object) *OpenGLLayer

WithMagnificationFilter sets the filter used when increasing the size of the content.

func (*OpenGLLayer) WithMask added in v0.17.0

func (ogl *OpenGLLayer) WithMask(mask LayerProvider) *OpenGLLayer

WithMask sets an optional layer whose alpha channel is used to mask the layer’s content.

func (*OpenGLLayer) WithMaskedCorners added in v0.17.0

func (ogl *OpenGLLayer) WithMaskedCorners(maskedCorners CornerMask) *OpenGLLayer

WithMaskedCorners sets the masked corners.

func (*OpenGLLayer) WithMasksToBounds added in v0.17.0

func (ogl *OpenGLLayer) WithMasksToBounds(masksToBounds bool) *OpenGLLayer

WithMasksToBounds sets a Boolean indicating whether sublayers are clipped to the layer’s bounds. Animatable.

func (*OpenGLLayer) WithMinificationFilter added in v0.17.0

func (ogl *OpenGLLayer) WithMinificationFilter(minificationFilter obj.Object) *OpenGLLayer

WithMinificationFilter sets the filter used when reducing the size of the content.

func (*OpenGLLayer) WithMinificationFilterBias added in v0.17.0

func (ogl *OpenGLLayer) WithMinificationFilterBias(minificationFilterBias float32) *OpenGLLayer

WithMinificationFilterBias sets the bias factor used by the minification filter to determine the levels of detail.

func (*OpenGLLayer) WithName added in v0.17.0

func (ogl *OpenGLLayer) WithName(name string) *OpenGLLayer

WithName sets the name of the receiver.

func (*OpenGLLayer) WithNeedsDisplayOnBoundsChange added in v0.17.0

func (ogl *OpenGLLayer) WithNeedsDisplayOnBoundsChange(needsDisplayOnBoundsChange bool) *OpenGLLayer

WithNeedsDisplayOnBoundsChange sets a Boolean indicating whether the layer contents must be updated when its bounds rectangle changes.

func (*OpenGLLayer) WithOpacity added in v0.17.0

func (ogl *OpenGLLayer) WithOpacity(opacity float32) *OpenGLLayer

WithOpacity sets the opacity of the receiver. Animatable.

func (*OpenGLLayer) WithOpaque added in v0.17.0

func (ogl *OpenGLLayer) WithOpaque(opaque bool) *OpenGLLayer

WithOpaque sets a Boolean value indicating whether the layer contains completely opaque content.

func (*OpenGLLayer) WithPosition added in v0.17.0

func (ogl *OpenGLLayer) WithPosition(position corefoundation.CGPoint) *OpenGLLayer

WithPosition sets the layer’s position in its superlayer’s coordinate space. Animatable.

func (*OpenGLLayer) WithPreferredDynamicRange added in v0.17.0

func (ogl *OpenGLLayer) WithPreferredDynamicRange(preferredDynamicRange obj.Object) *OpenGLLayer

WithPreferredDynamicRange sets the preferred dynamic range.

func (*OpenGLLayer) WithRasterizationScale added in v0.17.0

func (ogl *OpenGLLayer) WithRasterizationScale(rasterizationScale float64) *OpenGLLayer

WithRasterizationScale sets the scale at which to rasterize content, relative to the coordinate space of the layer. Animatable

func (*OpenGLLayer) WithShadowColor added in v0.17.0

func (ogl *OpenGLLayer) WithShadowColor(shadowColor coregraphics.CGColorRef) *OpenGLLayer

WithShadowColor sets the color of the layer’s shadow. Animatable.

func (*OpenGLLayer) WithShadowOffset added in v0.17.0

func (ogl *OpenGLLayer) WithShadowOffset(shadowOffset corefoundation.CGSize) *OpenGLLayer

WithShadowOffset sets the offset (in points) of the layer’s shadow. Animatable.

func (*OpenGLLayer) WithShadowOpacity added in v0.17.0

func (ogl *OpenGLLayer) WithShadowOpacity(shadowOpacity float32) *OpenGLLayer

WithShadowOpacity sets the opacity of the layer’s shadow. Animatable.

func (*OpenGLLayer) WithShadowPath added in v0.17.0

func (ogl *OpenGLLayer) WithShadowPath(shadowPath coregraphics.CGPathRef) *OpenGLLayer

WithShadowPath sets the shape of the layer’s shadow. Animatable.

func (*OpenGLLayer) WithShadowRadius added in v0.17.0

func (ogl *OpenGLLayer) WithShadowRadius(shadowRadius float64) *OpenGLLayer

WithShadowRadius sets the blur radius (in points) used to render the layer’s shadow. Animatable.

func (*OpenGLLayer) WithShouldRasterize added in v0.17.0

func (ogl *OpenGLLayer) WithShouldRasterize(shouldRasterize bool) *OpenGLLayer

WithShouldRasterize sets a Boolean that indicates whether the layer is rendered as a bitmap before compositing. Animatable

func (*OpenGLLayer) WithStyle added in v0.17.0

func (ogl *OpenGLLayer) WithStyle(style obj.Object) *OpenGLLayer

WithStyle sets an optional dictionary used to store property values that aren’t explicitly defined by the layer.

func (*OpenGLLayer) WithSublayerTransform added in v0.18.1

func (ogl *OpenGLLayer) WithSublayerTransform(sublayerTransform CATransform3D) *OpenGLLayer

WithSublayerTransform sets specifies the transform to apply to sublayers when rendering. Animatable.

func (*OpenGLLayer) WithSublayers added in v0.17.0

func (ogl *OpenGLLayer) WithSublayers(items ...LayerProvider) *OpenGLLayer

WithSublayers sets an array containing the layer’s sublayers.

func (*OpenGLLayer) WithToneMapMode added in v0.17.0

func (ogl *OpenGLLayer) WithToneMapMode(toneMapMode obj.Object) *OpenGLLayer

WithToneMapMode sets the tone map mode.

func (*OpenGLLayer) WithTransform added in v0.18.1

func (ogl *OpenGLLayer) WithTransform(transform CATransform3D) *OpenGLLayer

WithTransform sets the transform applied to the layer’s contents. Animatable.

func (*OpenGLLayer) WithWantsExtendedDynamicRangeContent added in v0.17.0

func (ogl *OpenGLLayer) WithWantsExtendedDynamicRangeContent(wantsExtendedDynamicRangeContent bool) *OpenGLLayer

WithWantsExtendedDynamicRangeContent sets the wants extended dynamic range content.

func (*OpenGLLayer) WithZPosition added in v0.17.0

func (ogl *OpenGLLayer) WithZPosition(zPosition float64) *OpenGLLayer

WithZPosition sets the layer’s position on the z axis. Animatable.

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 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
)

func (Perm) String added in v0.17.0

func (e Perm) String() string

String returns the Perm constant's name, or its numeric form when the value is not a known constant.

type PropertyAnimation added in v0.17.0

type PropertyAnimation struct {
	Animation
}

PropertyAnimation is an idiomatic wrapper over the Objective-C class CAPropertyAnimation.

PropertyAnimation is an abstract base — you do not construct it directly. Construct one of BasicAnimation, KeyframeAnimation and pass it where a PropertyAnimation is accepted.

An abstract subclass for creating animations that manipulate the value of layer properties.

func AnimationWithKeyPath added in v0.17.0

func AnimationWithKeyPath(path string) *PropertyAnimation

AnimationWithKeyPath creates and returns an CAPropertyAnimation instance for the specified key path.

func PropertyAnimationFromID added in v0.17.0

func PropertyAnimationFromID(id objc.ID) *PropertyAnimation

PropertyAnimationFromID adopts an existing Objective-C object as a PropertyAnimation (nil for 0), retaining it and registering a release finalizer.

func (*PropertyAnimation) IsAdditive added in v0.17.0

func (pa *PropertyAnimation) IsAdditive() bool

IsAdditive reports whether the object is additive.

func (*PropertyAnimation) IsCumulative added in v0.17.0

func (pa *PropertyAnimation) IsCumulative() bool

IsCumulative reports whether the object is cumulative.

func (*PropertyAnimation) KeyPath added in v0.17.0

func (pa *PropertyAnimation) KeyPath() string

KeyPath returns the key path.

func (*PropertyAnimation) ValueFunction added in v0.17.0

func (pa *PropertyAnimation) ValueFunction() *ValueFunction

ValueFunction returns the value function.

func (*PropertyAnimation) WithAdditive added in v0.17.0

func (pa *PropertyAnimation) WithAdditive(additive bool) *PropertyAnimation

WithAdditive sets determines if the value specified by the animation is added to the current render tree value to produce the new render tree value.

func (*PropertyAnimation) WithCumulative added in v0.17.0

func (pa *PropertyAnimation) WithCumulative(cumulative bool) *PropertyAnimation

WithCumulative sets determines if the value of the property is the value at the end of the previous repeat cycle, plus the value of the current repeat cycle.

func (*PropertyAnimation) WithDelegate added in v0.17.0

func (pa *PropertyAnimation) WithDelegate(delegate AnimationDelegate) *PropertyAnimation

WithDelegate sets specifies the receiver’s delegate object.

func (*PropertyAnimation) WithKeyPath added in v0.17.0

func (pa *PropertyAnimation) WithKeyPath(keyPath string) *PropertyAnimation

WithKeyPath sets specifies the key path the receiver animates.

func (*PropertyAnimation) WithPreferredFrameRateRange added in v0.18.1

func (pa *PropertyAnimation) WithPreferredFrameRateRange(preferredFrameRateRange CAFrameRateRange) *PropertyAnimation

WithPreferredFrameRateRange sets the preferred frame rate range.

func (*PropertyAnimation) WithRemovedOnCompletion added in v0.17.0

func (pa *PropertyAnimation) WithRemovedOnCompletion(removedOnCompletion bool) *PropertyAnimation

WithRemovedOnCompletion sets determines if the animation is removed from the target layer’s animations upon completion.

func (*PropertyAnimation) WithTimingFunction added in v0.17.0

func (pa *PropertyAnimation) WithTimingFunction(timingFunction *MediaTimingFunction) *PropertyAnimation

WithTimingFunction sets an optional timing function defining the pacing of the animation.

func (*PropertyAnimation) WithValueFunction added in v0.17.0

func (pa *PropertyAnimation) WithValueFunction(valueFunction *ValueFunction) *PropertyAnimation

WithValueFunction sets an optional value function that is applied to interpolated values.

type PropertyAnimationProvider added in v0.17.0

type PropertyAnimationProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

PropertyAnimationProvider is accepted wherever a CAPropertyAnimation (or one of its subclasses) is expected.

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 QosClass added in v0.17.0

type QosClass uint32
const (
	QosClassUserInteractive QosClass = 33
	QosClassUserInitiated   QosClass = 25
	QosClassDefault         QosClass = 21
	QosClassUtility         QosClass = 17
	QosClassBackground      QosClass = 9
	QosClassUnspecified     QosClass = 0
)

func (QosClass) String added in v0.17.0

func (e QosClass) String() string

String returns the QosClass constant's name, or its numeric form when the value is not a known constant.

type RemoteLayerClient added in v0.17.0

type RemoteLayerClient struct {
	objref.Handle
}

RemoteLayerClient is an idiomatic wrapper over the Objective-C class CARemoteLayerClient.

A legacy class for cross-process rendering.

func NewRemoteLayerClientWithServerPort added in v0.17.0

func NewRemoteLayerClientWithServerPort(port int) *RemoteLayerClient

NewRemoteLayerClientWithServerPort creates a layer client from a server port.

func RemoteLayerClientFromID added in v0.17.0

func RemoteLayerClientFromID(id objc.ID) *RemoteLayerClient

RemoteLayerClientFromID adopts an existing Objective-C object as a RemoteLayerClient (nil for 0), retaining it and registering a release finalizer.

func (*RemoteLayerClient) ClientID added in v0.17.0

func (rlc *RemoteLayerClient) ClientID() uint32

ClientID returns the client ID.

func (*RemoteLayerClient) Description added in v0.17.0

func (rlc *RemoteLayerClient) Description() string

Description returns the object's -description text.

func (*RemoteLayerClient) Invalidate added in v0.17.0

func (rlc *RemoteLayerClient) Invalidate()

Invalidate invalidates a remote layer client.

func (*RemoteLayerClient) IsEqual added in v0.17.0

func (rlc *RemoteLayerClient) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*RemoteLayerClient) IsKind added in v0.17.0

func (rlc *RemoteLayerClient) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*RemoteLayerClient) Layer added in v0.17.0

func (rlc *RemoteLayerClient) Layer() *Layer

Layer returns the layer.

func (*RemoteLayerClient) String added in v0.17.0

func (rlc *RemoteLayerClient) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*RemoteLayerClient) WithLayer added in v0.17.0

func (rlc *RemoteLayerClient) WithLayer(layer LayerProvider) *RemoteLayerClient

WithLayer sets the layer associated with the remote client.

type RemoteLayerServer added in v0.17.0

type RemoteLayerServer struct {
	objref.Handle
}

RemoteLayerServer is an idiomatic wrapper over the Objective-C class CARemoteLayerServer.

A legacy class for cross-process rendering.

func NewRemoteLayerServer added in v0.17.0

func NewRemoteLayerServer() *RemoteLayerServer

NewRemoteLayerServer creates a new RemoteLayerServer.

func RemoteLayerServerFromID added in v0.17.0

func RemoteLayerServerFromID(id objc.ID) *RemoteLayerServer

RemoteLayerServerFromID adopts an existing Objective-C object as a RemoteLayerServer (nil for 0), retaining it and registering a release finalizer.

func SharedServer added in v0.17.0

func SharedServer() *RemoteLayerServer

SharedServer returns the (singleton) instance of the shared remote layer server.

func (*RemoteLayerServer) Description added in v0.17.0

func (rls *RemoteLayerServer) Description() string

Description returns the object's -description text.

func (*RemoteLayerServer) IsEqual added in v0.17.0

func (rls *RemoteLayerServer) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*RemoteLayerServer) IsKind added in v0.17.0

func (rls *RemoteLayerServer) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*RemoteLayerServer) ServerPort added in v0.17.0

func (rls *RemoteLayerServer) ServerPort() int

ServerPort returns the server port.

func (*RemoteLayerServer) String added in v0.17.0

func (rls *RemoteLayerServer) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type Renderer added in v0.17.0

type Renderer struct {
	objref.Handle
}

Renderer is an idiomatic wrapper over the Objective-C class CARenderer.

A layer that allows an application to render a layer tree into a Core OpenGL context.

func NewRenderer added in v0.17.0

func NewRenderer() *Renderer

NewRenderer creates a new Renderer.

func RendererFromID added in v0.17.0

func RendererFromID(id objc.ID) *Renderer

RendererFromID adopts an existing Objective-C object as a Renderer (nil for 0), retaining it and registering a release finalizer.

func RendererWithCGLContextOptions added in v0.17.0

func RendererWithCGLContextOptions(ctx unsafe.Pointer, dict obj.Object) *Renderer

RendererWithCGLContextOptions creates and returns a CARenderer instance with the render target specified by the Core OpenGL context.

func (*Renderer) AddUpdateRect added in v0.17.0

func (r_ *Renderer) AddUpdateRect(r corefoundation.CGRect)

AddUpdateRect adds the rectangle to the update region of the current frame.

func (*Renderer) BeginFrameAtTimeTimeStamp added in v0.18.0

func (r *Renderer) BeginFrameAtTimeTimeStamp(t float64, ts *corevideo.CVTimeStamp)

BeginFrameAtTimeTimeStamp begin rendering a frame at the specified time.

func (*Renderer) Bounds added in v0.17.0

func (r *Renderer) Bounds() corefoundation.CGRect

Bounds returns the bounds.

func (*Renderer) Description added in v0.17.0

func (r *Renderer) Description() string

Description returns the object's -description text.

func (*Renderer) EndFrame added in v0.17.0

func (r *Renderer) EndFrame()

EndFrame release any data associated with the current frame.

func (*Renderer) IsEqual added in v0.17.0

func (r *Renderer) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Renderer) IsKind added in v0.17.0

func (r *Renderer) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Renderer) Layer added in v0.17.0

func (r *Renderer) Layer() *Layer

Layer returns the layer.

func (*Renderer) NextFrameTime added in v0.17.0

func (r *Renderer) NextFrameTime() float64

NextFrameTime returns the time at which the next update should happen.

func (*Renderer) Render added in v0.17.0

func (r *Renderer) Render()

Render render the update region of the current frame to the target context.

func (*Renderer) String added in v0.17.0

func (r *Renderer) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*Renderer) UpdateBounds added in v0.17.0

func (r *Renderer) UpdateBounds() corefoundation.CGRect

UpdateBounds returns the bounds of the update region that contains all pixels that will be rendered by the current frame.

func (*Renderer) WithBounds added in v0.17.0

func (r *Renderer) WithBounds(bounds corefoundation.CGRect) *Renderer

WithBounds sets the bounds of the receiver.

func (*Renderer) WithLayer added in v0.17.0

func (r *Renderer) WithLayer(layer LayerProvider) *Renderer

WithLayer sets the root layer of the layer-tree the receiver should render.

type ReplicatorLayer added in v0.17.0

type ReplicatorLayer struct {
	Layer
}

ReplicatorLayer is an idiomatic wrapper over the Objective-C class CAReplicatorLayer.

It embeds Layer, promoting that type's methods.

A layer that creates a specified number of sublayer copies with varying geometric, temporal, and color transformations.

func NewReplicatorLayer added in v0.17.0

func NewReplicatorLayer() *ReplicatorLayer

NewReplicatorLayer creates a new ReplicatorLayer.

func ReplicatorLayerFromID added in v0.17.0

func ReplicatorLayerFromID(id objc.ID) *ReplicatorLayer

ReplicatorLayerFromID adopts an existing Objective-C object as a ReplicatorLayer (nil for 0), retaining it and registering a release finalizer.

func (*ReplicatorLayer) InstanceAlphaOffset added in v0.17.0

func (rl *ReplicatorLayer) InstanceAlphaOffset() float32

InstanceAlphaOffset returns the instance alpha offset.

func (*ReplicatorLayer) InstanceBlueOffset added in v0.17.0

func (rl *ReplicatorLayer) InstanceBlueOffset() float32

InstanceBlueOffset returns the instance blue offset.

func (*ReplicatorLayer) InstanceColor added in v0.17.0

func (rl *ReplicatorLayer) InstanceColor() coregraphics.CGColorRef

InstanceColor returns the instance color.

func (*ReplicatorLayer) InstanceCount added in v0.17.0

func (rl *ReplicatorLayer) InstanceCount() int

InstanceCount returns the instance count.

func (*ReplicatorLayer) InstanceDelay added in v0.17.0

func (rl *ReplicatorLayer) InstanceDelay() float64

InstanceDelay returns the instance delay.

func (*ReplicatorLayer) InstanceGreenOffset added in v0.17.0

func (rl *ReplicatorLayer) InstanceGreenOffset() float32

InstanceGreenOffset returns the instance green offset.

func (*ReplicatorLayer) InstanceRedOffset added in v0.17.0

func (rl *ReplicatorLayer) InstanceRedOffset() float32

InstanceRedOffset returns the instance red offset.

func (*ReplicatorLayer) InstanceTransform added in v0.18.1

func (rl *ReplicatorLayer) InstanceTransform() CATransform3D

InstanceTransform returns the instance transform.

func (*ReplicatorLayer) PreservesDepth added in v0.17.0

func (rl *ReplicatorLayer) PreservesDepth() bool

PreservesDepth wraps the corresponding Objective-C method.

func (*ReplicatorLayer) WithActions added in v0.17.0

func (rl *ReplicatorLayer) WithActions(actions map[string]obj.Object) *ReplicatorLayer

WithActions sets a dictionary containing layer actions.

func (*ReplicatorLayer) WithAllowsEdgeAntialiasing added in v0.17.0

func (rl *ReplicatorLayer) WithAllowsEdgeAntialiasing(allowsEdgeAntialiasing bool) *ReplicatorLayer

WithAllowsEdgeAntialiasing sets a Boolean indicating whether the layer is allowed to perform edge antialiasing.

func (*ReplicatorLayer) WithAllowsGroupOpacity added in v0.17.0

func (rl *ReplicatorLayer) WithAllowsGroupOpacity(allowsGroupOpacity bool) *ReplicatorLayer

WithAllowsGroupOpacity sets a Boolean indicating whether the layer is allowed to composite itself as a group separate from its parent.

func (*ReplicatorLayer) WithAnchorPoint added in v0.17.0

func (rl *ReplicatorLayer) WithAnchorPoint(anchorPoint corefoundation.CGPoint) *ReplicatorLayer

WithAnchorPoint sets defines the anchor point of the layer’s bounds rectangle. Animatable.

func (*ReplicatorLayer) WithAnchorPointZ added in v0.17.0

func (rl *ReplicatorLayer) WithAnchorPointZ(anchorPointZ float64) *ReplicatorLayer

WithAnchorPointZ sets the anchor point for the layer’s position along the z axis. Animatable.

func (*ReplicatorLayer) WithAutoresizingMask added in v0.17.0

func (rl *ReplicatorLayer) WithAutoresizingMask(autoresizingMask AutoresizingMask) *ReplicatorLayer

WithAutoresizingMask sets a bitmask defining how the layer is resized when the bounds of its superlayer changes.

func (*ReplicatorLayer) WithBackgroundColor added in v0.17.0

func (rl *ReplicatorLayer) WithBackgroundColor(backgroundColor coregraphics.CGColorRef) *ReplicatorLayer

WithBackgroundColor sets the background color of the receiver. Animatable.

func (*ReplicatorLayer) WithBorderColor added in v0.17.0

func (rl *ReplicatorLayer) WithBorderColor(borderColor coregraphics.CGColorRef) *ReplicatorLayer

WithBorderColor sets the color of the layer’s border. Animatable.

func (*ReplicatorLayer) WithBorderWidth added in v0.17.0

func (rl *ReplicatorLayer) WithBorderWidth(borderWidth float64) *ReplicatorLayer

WithBorderWidth sets the width of the layer’s border. Animatable.

func (*ReplicatorLayer) WithBounds added in v0.17.0

func (rl *ReplicatorLayer) WithBounds(bounds corefoundation.CGRect) *ReplicatorLayer

WithBounds sets the layer’s bounds rectangle. Animatable.

func (*ReplicatorLayer) WithCompositingFilter added in v0.17.0

func (rl *ReplicatorLayer) WithCompositingFilter(compositingFilter obj.Object) *ReplicatorLayer

WithCompositingFilter sets a CoreImage filter used to composite the layer and the content behind it. Animatable.

func (*ReplicatorLayer) WithConstraints added in v0.17.0

func (rl *ReplicatorLayer) WithConstraints(items ...*Constraint) *ReplicatorLayer

WithConstraints sets the constraints used to position current layer’s sublayers.

func (*ReplicatorLayer) WithContents added in v0.17.0

func (rl *ReplicatorLayer) WithContents(contents obj.Object) *ReplicatorLayer

WithContents sets an object that provides the contents of the layer. Animatable.

func (*ReplicatorLayer) WithContentsCenter added in v0.17.0

func (rl *ReplicatorLayer) WithContentsCenter(contentsCenter corefoundation.CGRect) *ReplicatorLayer

WithContentsCenter sets the rectangle that defines how the layer contents are scaled if the layer’s contents are resized. Animatable.

func (*ReplicatorLayer) WithContentsFormat added in v0.17.0

func (rl *ReplicatorLayer) WithContentsFormat(contentsFormat obj.Object) *ReplicatorLayer

WithContentsFormat sets a hint for the desired storage format of the layer contents.

func (*ReplicatorLayer) WithContentsGravity added in v0.17.0

func (rl *ReplicatorLayer) WithContentsGravity(contentsGravity obj.Object) *ReplicatorLayer

WithContentsGravity sets a constant that specifies how the layer’s contents are positioned or scaled within its bounds.

func (*ReplicatorLayer) WithContentsHeadroom added in v0.17.0

func (rl *ReplicatorLayer) WithContentsHeadroom(contentsHeadroom float64) *ReplicatorLayer

WithContentsHeadroom sets the contents headroom.

func (*ReplicatorLayer) WithContentsRect added in v0.17.0

func (rl *ReplicatorLayer) WithContentsRect(contentsRect corefoundation.CGRect) *ReplicatorLayer

WithContentsRect sets the rectangle, in the unit coordinate space, that defines the portion of the layer’s contents that should be used. Animatable.

func (*ReplicatorLayer) WithContentsScale added in v0.17.0

func (rl *ReplicatorLayer) WithContentsScale(contentsScale float64) *ReplicatorLayer

WithContentsScale sets the scale factor applied to the layer.

func (*ReplicatorLayer) WithCornerCurve added in v0.17.0

func (rl *ReplicatorLayer) WithCornerCurve(cornerCurve obj.Object) *ReplicatorLayer

WithCornerCurve sets the corner curve.

func (*ReplicatorLayer) WithCornerRadius added in v0.17.0

func (rl *ReplicatorLayer) WithCornerRadius(cornerRadius float64) *ReplicatorLayer

WithCornerRadius sets the radius to use when drawing rounded corners for the layer’s background. Animatable.

func (*ReplicatorLayer) WithDelegate added in v0.17.0

func (rl *ReplicatorLayer) WithDelegate(delegate LayerDelegate) *ReplicatorLayer

WithDelegate sets the layer’s delegate object.

func (*ReplicatorLayer) WithDoubleSided added in v0.17.0

func (rl *ReplicatorLayer) WithDoubleSided(doubleSided bool) *ReplicatorLayer

WithDoubleSided sets a Boolean indicating whether the layer displays its content when facing away from the viewer. Animatable.

func (*ReplicatorLayer) WithDrawsAsynchronously added in v0.17.0

func (rl *ReplicatorLayer) WithDrawsAsynchronously(drawsAsynchronously bool) *ReplicatorLayer

WithDrawsAsynchronously sets a Boolean indicating whether drawing commands are deferred and processed asynchronously in a background thread.

func (*ReplicatorLayer) WithEdgeAntialiasingMask added in v0.17.0

func (rl *ReplicatorLayer) WithEdgeAntialiasingMask(edgeAntialiasingMask EdgeAntialiasingMask) *ReplicatorLayer

WithEdgeAntialiasingMask sets a bitmask defining how the edges of the receiver are rasterized.

func (*ReplicatorLayer) WithFrame added in v0.17.0

func (rl *ReplicatorLayer) WithFrame(frame corefoundation.CGRect) *ReplicatorLayer

WithFrame sets the layer’s frame rectangle.

func (*ReplicatorLayer) WithGeometryFlipped added in v0.17.0

func (rl *ReplicatorLayer) WithGeometryFlipped(geometryFlipped bool) *ReplicatorLayer

WithGeometryFlipped sets a Boolean that indicates whether the geometry of the layer and its sublayers is flipped vertically.

func (*ReplicatorLayer) WithHidden added in v0.17.0

func (rl *ReplicatorLayer) WithHidden(hidden bool) *ReplicatorLayer

WithHidden sets a Boolean indicating whether the layer is displayed. Animatable.

func (*ReplicatorLayer) WithInstanceAlphaOffset added in v0.17.0

func (rl *ReplicatorLayer) WithInstanceAlphaOffset(instanceAlphaOffset float32) *ReplicatorLayer

WithInstanceAlphaOffset sets defines the offset added to the alpha component of the color for each replicated instance. Animatable.

func (*ReplicatorLayer) WithInstanceBlueOffset added in v0.17.0

func (rl *ReplicatorLayer) WithInstanceBlueOffset(instanceBlueOffset float32) *ReplicatorLayer

WithInstanceBlueOffset sets defines the offset added to the blue component of the color for each replicated instance. Animatable.

func (*ReplicatorLayer) WithInstanceColor added in v0.17.0

func (rl *ReplicatorLayer) WithInstanceColor(instanceColor coregraphics.CGColorRef) *ReplicatorLayer

WithInstanceColor sets defines the color used to multiply the source object. Animatable.

func (*ReplicatorLayer) WithInstanceCount added in v0.17.0

func (rl *ReplicatorLayer) WithInstanceCount(instanceCount int) *ReplicatorLayer

WithInstanceCount sets the number of copies to create, including the source layers.

func (*ReplicatorLayer) WithInstanceDelay added in v0.17.0

func (rl *ReplicatorLayer) WithInstanceDelay(instanceDelay float64) *ReplicatorLayer

WithInstanceDelay sets specifies the delay, in seconds, between replicated copies. Animatable.

func (*ReplicatorLayer) WithInstanceGreenOffset added in v0.17.0

func (rl *ReplicatorLayer) WithInstanceGreenOffset(instanceGreenOffset float32) *ReplicatorLayer

WithInstanceGreenOffset sets defines the offset added to the green component of the color for each replicated instance. Animatable.

func (*ReplicatorLayer) WithInstanceRedOffset added in v0.17.0

func (rl *ReplicatorLayer) WithInstanceRedOffset(instanceRedOffset float32) *ReplicatorLayer

WithInstanceRedOffset sets defines the offset added to the red component of the color for each replicated instance. Animatable.

func (*ReplicatorLayer) WithInstanceTransform added in v0.18.1

func (rl *ReplicatorLayer) WithInstanceTransform(instanceTransform CATransform3D) *ReplicatorLayer

WithInstanceTransform sets the transform matrix applied to the previous instance to produce the current instance. Animatable.

func (*ReplicatorLayer) WithMagnificationFilter added in v0.17.0

func (rl *ReplicatorLayer) WithMagnificationFilter(magnificationFilter obj.Object) *ReplicatorLayer

WithMagnificationFilter sets the filter used when increasing the size of the content.

func (*ReplicatorLayer) WithMask added in v0.17.0

func (rl *ReplicatorLayer) WithMask(mask LayerProvider) *ReplicatorLayer

WithMask sets an optional layer whose alpha channel is used to mask the layer’s content.

func (*ReplicatorLayer) WithMaskedCorners added in v0.17.0

func (rl *ReplicatorLayer) WithMaskedCorners(maskedCorners CornerMask) *ReplicatorLayer

WithMaskedCorners sets the masked corners.

func (*ReplicatorLayer) WithMasksToBounds added in v0.17.0

func (rl *ReplicatorLayer) WithMasksToBounds(masksToBounds bool) *ReplicatorLayer

WithMasksToBounds sets a Boolean indicating whether sublayers are clipped to the layer’s bounds. Animatable.

func (*ReplicatorLayer) WithMinificationFilter added in v0.17.0

func (rl *ReplicatorLayer) WithMinificationFilter(minificationFilter obj.Object) *ReplicatorLayer

WithMinificationFilter sets the filter used when reducing the size of the content.

func (*ReplicatorLayer) WithMinificationFilterBias added in v0.17.0

func (rl *ReplicatorLayer) WithMinificationFilterBias(minificationFilterBias float32) *ReplicatorLayer

WithMinificationFilterBias sets the bias factor used by the minification filter to determine the levels of detail.

func (*ReplicatorLayer) WithName added in v0.17.0

func (rl *ReplicatorLayer) WithName(name string) *ReplicatorLayer

WithName sets the name of the receiver.

func (*ReplicatorLayer) WithNeedsDisplayOnBoundsChange added in v0.17.0

func (rl *ReplicatorLayer) WithNeedsDisplayOnBoundsChange(needsDisplayOnBoundsChange bool) *ReplicatorLayer

WithNeedsDisplayOnBoundsChange sets a Boolean indicating whether the layer contents must be updated when its bounds rectangle changes.

func (*ReplicatorLayer) WithOpacity added in v0.17.0

func (rl *ReplicatorLayer) WithOpacity(opacity float32) *ReplicatorLayer

WithOpacity sets the opacity of the receiver. Animatable.

func (*ReplicatorLayer) WithOpaque added in v0.17.0

func (rl *ReplicatorLayer) WithOpaque(opaque bool) *ReplicatorLayer

WithOpaque sets a Boolean value indicating whether the layer contains completely opaque content.

func (*ReplicatorLayer) WithPosition added in v0.17.0

func (rl *ReplicatorLayer) WithPosition(position corefoundation.CGPoint) *ReplicatorLayer

WithPosition sets the layer’s position in its superlayer’s coordinate space. Animatable.

func (*ReplicatorLayer) WithPreferredDynamicRange added in v0.17.0

func (rl *ReplicatorLayer) WithPreferredDynamicRange(preferredDynamicRange obj.Object) *ReplicatorLayer

WithPreferredDynamicRange sets the preferred dynamic range.

func (*ReplicatorLayer) WithPreservesDepth added in v0.17.0

func (rl *ReplicatorLayer) WithPreservesDepth(preservesDepth bool) *ReplicatorLayer

WithPreservesDepth sets defines whether this layer flattens its sublayers into its plane.

func (*ReplicatorLayer) WithRasterizationScale added in v0.17.0

func (rl *ReplicatorLayer) WithRasterizationScale(rasterizationScale float64) *ReplicatorLayer

WithRasterizationScale sets the scale at which to rasterize content, relative to the coordinate space of the layer. Animatable

func (*ReplicatorLayer) WithShadowColor added in v0.17.0

func (rl *ReplicatorLayer) WithShadowColor(shadowColor coregraphics.CGColorRef) *ReplicatorLayer

WithShadowColor sets the color of the layer’s shadow. Animatable.

func (*ReplicatorLayer) WithShadowOffset added in v0.17.0

func (rl *ReplicatorLayer) WithShadowOffset(shadowOffset corefoundation.CGSize) *ReplicatorLayer

WithShadowOffset sets the offset (in points) of the layer’s shadow. Animatable.

func (*ReplicatorLayer) WithShadowOpacity added in v0.17.0

func (rl *ReplicatorLayer) WithShadowOpacity(shadowOpacity float32) *ReplicatorLayer

WithShadowOpacity sets the opacity of the layer’s shadow. Animatable.

func (*ReplicatorLayer) WithShadowPath added in v0.17.0

func (rl *ReplicatorLayer) WithShadowPath(shadowPath coregraphics.CGPathRef) *ReplicatorLayer

WithShadowPath sets the shape of the layer’s shadow. Animatable.

func (*ReplicatorLayer) WithShadowRadius added in v0.17.0

func (rl *ReplicatorLayer) WithShadowRadius(shadowRadius float64) *ReplicatorLayer

WithShadowRadius sets the blur radius (in points) used to render the layer’s shadow. Animatable.

func (*ReplicatorLayer) WithShouldRasterize added in v0.17.0

func (rl *ReplicatorLayer) WithShouldRasterize(shouldRasterize bool) *ReplicatorLayer

WithShouldRasterize sets a Boolean that indicates whether the layer is rendered as a bitmap before compositing. Animatable

func (*ReplicatorLayer) WithStyle added in v0.17.0

func (rl *ReplicatorLayer) WithStyle(style obj.Object) *ReplicatorLayer

WithStyle sets an optional dictionary used to store property values that aren’t explicitly defined by the layer.

func (*ReplicatorLayer) WithSublayerTransform added in v0.18.1

func (rl *ReplicatorLayer) WithSublayerTransform(sublayerTransform CATransform3D) *ReplicatorLayer

WithSublayerTransform sets specifies the transform to apply to sublayers when rendering. Animatable.

func (*ReplicatorLayer) WithSublayers added in v0.17.0

func (rl *ReplicatorLayer) WithSublayers(items ...LayerProvider) *ReplicatorLayer

WithSublayers sets an array containing the layer’s sublayers.

func (*ReplicatorLayer) WithToneMapMode added in v0.17.0

func (rl *ReplicatorLayer) WithToneMapMode(toneMapMode obj.Object) *ReplicatorLayer

WithToneMapMode sets the tone map mode.

func (*ReplicatorLayer) WithTransform added in v0.18.1

func (rl *ReplicatorLayer) WithTransform(transform CATransform3D) *ReplicatorLayer

WithTransform sets the transform applied to the layer’s contents. Animatable.

func (*ReplicatorLayer) WithWantsExtendedDynamicRangeContent added in v0.17.0

func (rl *ReplicatorLayer) WithWantsExtendedDynamicRangeContent(wantsExtendedDynamicRangeContent bool) *ReplicatorLayer

WithWantsExtendedDynamicRangeContent sets the wants extended dynamic range content.

func (*ReplicatorLayer) WithZPosition added in v0.17.0

func (rl *ReplicatorLayer) WithZPosition(zPosition float64) *ReplicatorLayer

WithZPosition sets the layer’s position on the z axis. Animatable.

type ScrollLayer added in v0.17.0

type ScrollLayer struct {
	Layer
}

ScrollLayer is an idiomatic wrapper over the Objective-C class CAScrollLayer.

It embeds Layer, promoting that type's methods.

A layer that displays scrollable content larger than its own bounds.

func NewScrollLayer added in v0.17.0

func NewScrollLayer() *ScrollLayer

NewScrollLayer creates a new ScrollLayer.

func ScrollLayerFromID added in v0.17.0

func ScrollLayerFromID(id objc.ID) *ScrollLayer

ScrollLayerFromID adopts an existing Objective-C object as a ScrollLayer (nil for 0), retaining it and registering a release finalizer.

func (*ScrollLayer) ScrollMode added in v0.17.0

func (sl *ScrollLayer) ScrollMode() *foundation.String

ScrollMode returns the scroll mode.

func (*ScrollLayer) ScrollToPoint added in v0.17.0

func (sl *ScrollLayer) ScrollToPoint(p corefoundation.CGPoint)

ScrollToPoint changes the origin of the receiver to the specified point.

func (*ScrollLayer) ScrollToRect added in v0.17.0

func (sl *ScrollLayer) ScrollToRect(r corefoundation.CGRect)

ScrollToRect scroll the contents of the receiver to ensure that the rectangle is visible.

func (*ScrollLayer) WithActions added in v0.17.0

func (sl *ScrollLayer) WithActions(actions map[string]obj.Object) *ScrollLayer

WithActions sets a dictionary containing layer actions.

func (*ScrollLayer) WithAllowsEdgeAntialiasing added in v0.17.0

func (sl *ScrollLayer) WithAllowsEdgeAntialiasing(allowsEdgeAntialiasing bool) *ScrollLayer

WithAllowsEdgeAntialiasing sets a Boolean indicating whether the layer is allowed to perform edge antialiasing.

func (*ScrollLayer) WithAllowsGroupOpacity added in v0.17.0

func (sl *ScrollLayer) WithAllowsGroupOpacity(allowsGroupOpacity bool) *ScrollLayer

WithAllowsGroupOpacity sets a Boolean indicating whether the layer is allowed to composite itself as a group separate from its parent.

func (*ScrollLayer) WithAnchorPoint added in v0.17.0

func (sl *ScrollLayer) WithAnchorPoint(anchorPoint corefoundation.CGPoint) *ScrollLayer

WithAnchorPoint sets defines the anchor point of the layer’s bounds rectangle. Animatable.

func (*ScrollLayer) WithAnchorPointZ added in v0.17.0

func (sl *ScrollLayer) WithAnchorPointZ(anchorPointZ float64) *ScrollLayer

WithAnchorPointZ sets the anchor point for the layer’s position along the z axis. Animatable.

func (*ScrollLayer) WithAutoresizingMask added in v0.17.0

func (sl *ScrollLayer) WithAutoresizingMask(autoresizingMask AutoresizingMask) *ScrollLayer

WithAutoresizingMask sets a bitmask defining how the layer is resized when the bounds of its superlayer changes.

func (*ScrollLayer) WithBackgroundColor added in v0.17.0

func (sl *ScrollLayer) WithBackgroundColor(backgroundColor coregraphics.CGColorRef) *ScrollLayer

WithBackgroundColor sets the background color of the receiver. Animatable.

func (*ScrollLayer) WithBorderColor added in v0.17.0

func (sl *ScrollLayer) WithBorderColor(borderColor coregraphics.CGColorRef) *ScrollLayer

WithBorderColor sets the color of the layer’s border. Animatable.

func (*ScrollLayer) WithBorderWidth added in v0.17.0

func (sl *ScrollLayer) WithBorderWidth(borderWidth float64) *ScrollLayer

WithBorderWidth sets the width of the layer’s border. Animatable.

func (*ScrollLayer) WithBounds added in v0.17.0

func (sl *ScrollLayer) WithBounds(bounds corefoundation.CGRect) *ScrollLayer

WithBounds sets the layer’s bounds rectangle. Animatable.

func (*ScrollLayer) WithCompositingFilter added in v0.17.0

func (sl *ScrollLayer) WithCompositingFilter(compositingFilter obj.Object) *ScrollLayer

WithCompositingFilter sets a CoreImage filter used to composite the layer and the content behind it. Animatable.

func (*ScrollLayer) WithConstraints added in v0.17.0

func (sl *ScrollLayer) WithConstraints(items ...*Constraint) *ScrollLayer

WithConstraints sets the constraints used to position current layer’s sublayers.

func (*ScrollLayer) WithContents added in v0.17.0

func (sl *ScrollLayer) WithContents(contents obj.Object) *ScrollLayer

WithContents sets an object that provides the contents of the layer. Animatable.

func (*ScrollLayer) WithContentsCenter added in v0.17.0

func (sl *ScrollLayer) WithContentsCenter(contentsCenter corefoundation.CGRect) *ScrollLayer

WithContentsCenter sets the rectangle that defines how the layer contents are scaled if the layer’s contents are resized. Animatable.

func (*ScrollLayer) WithContentsFormat added in v0.17.0

func (sl *ScrollLayer) WithContentsFormat(contentsFormat obj.Object) *ScrollLayer

WithContentsFormat sets a hint for the desired storage format of the layer contents.

func (*ScrollLayer) WithContentsGravity added in v0.17.0

func (sl *ScrollLayer) WithContentsGravity(contentsGravity obj.Object) *ScrollLayer

WithContentsGravity sets a constant that specifies how the layer’s contents are positioned or scaled within its bounds.

func (*ScrollLayer) WithContentsHeadroom added in v0.17.0

func (sl *ScrollLayer) WithContentsHeadroom(contentsHeadroom float64) *ScrollLayer

WithContentsHeadroom sets the contents headroom.

func (*ScrollLayer) WithContentsRect added in v0.17.0

func (sl *ScrollLayer) WithContentsRect(contentsRect corefoundation.CGRect) *ScrollLayer

WithContentsRect sets the rectangle, in the unit coordinate space, that defines the portion of the layer’s contents that should be used. Animatable.

func (*ScrollLayer) WithContentsScale added in v0.17.0

func (sl *ScrollLayer) WithContentsScale(contentsScale float64) *ScrollLayer

WithContentsScale sets the scale factor applied to the layer.

func (*ScrollLayer) WithCornerCurve added in v0.17.0

func (sl *ScrollLayer) WithCornerCurve(cornerCurve obj.Object) *ScrollLayer

WithCornerCurve sets the corner curve.

func (*ScrollLayer) WithCornerRadius added in v0.17.0

func (sl *ScrollLayer) WithCornerRadius(cornerRadius float64) *ScrollLayer

WithCornerRadius sets the radius to use when drawing rounded corners for the layer’s background. Animatable.

func (*ScrollLayer) WithDelegate added in v0.17.0

func (sl *ScrollLayer) WithDelegate(delegate LayerDelegate) *ScrollLayer

WithDelegate sets the layer’s delegate object.

func (*ScrollLayer) WithDoubleSided added in v0.17.0

func (sl *ScrollLayer) WithDoubleSided(doubleSided bool) *ScrollLayer

WithDoubleSided sets a Boolean indicating whether the layer displays its content when facing away from the viewer. Animatable.

func (*ScrollLayer) WithDrawsAsynchronously added in v0.17.0

func (sl *ScrollLayer) WithDrawsAsynchronously(drawsAsynchronously bool) *ScrollLayer

WithDrawsAsynchronously sets a Boolean indicating whether drawing commands are deferred and processed asynchronously in a background thread.

func (*ScrollLayer) WithEdgeAntialiasingMask added in v0.17.0

func (sl *ScrollLayer) WithEdgeAntialiasingMask(edgeAntialiasingMask EdgeAntialiasingMask) *ScrollLayer

WithEdgeAntialiasingMask sets a bitmask defining how the edges of the receiver are rasterized.

func (*ScrollLayer) WithFrame added in v0.17.0

func (sl *ScrollLayer) WithFrame(frame corefoundation.CGRect) *ScrollLayer

WithFrame sets the layer’s frame rectangle.

func (*ScrollLayer) WithGeometryFlipped added in v0.17.0

func (sl *ScrollLayer) WithGeometryFlipped(geometryFlipped bool) *ScrollLayer

WithGeometryFlipped sets a Boolean that indicates whether the geometry of the layer and its sublayers is flipped vertically.

func (*ScrollLayer) WithHidden added in v0.17.0

func (sl *ScrollLayer) WithHidden(hidden bool) *ScrollLayer

WithHidden sets a Boolean indicating whether the layer is displayed. Animatable.

func (*ScrollLayer) WithMagnificationFilter added in v0.17.0

func (sl *ScrollLayer) WithMagnificationFilter(magnificationFilter obj.Object) *ScrollLayer

WithMagnificationFilter sets the filter used when increasing the size of the content.

func (*ScrollLayer) WithMask added in v0.17.0

func (sl *ScrollLayer) WithMask(mask LayerProvider) *ScrollLayer

WithMask sets an optional layer whose alpha channel is used to mask the layer’s content.

func (*ScrollLayer) WithMaskedCorners added in v0.17.0

func (sl *ScrollLayer) WithMaskedCorners(maskedCorners CornerMask) *ScrollLayer

WithMaskedCorners sets the masked corners.

func (*ScrollLayer) WithMasksToBounds added in v0.17.0

func (sl *ScrollLayer) WithMasksToBounds(masksToBounds bool) *ScrollLayer

WithMasksToBounds sets a Boolean indicating whether sublayers are clipped to the layer’s bounds. Animatable.

func (*ScrollLayer) WithMinificationFilter added in v0.17.0

func (sl *ScrollLayer) WithMinificationFilter(minificationFilter obj.Object) *ScrollLayer

WithMinificationFilter sets the filter used when reducing the size of the content.

func (*ScrollLayer) WithMinificationFilterBias added in v0.17.0

func (sl *ScrollLayer) WithMinificationFilterBias(minificationFilterBias float32) *ScrollLayer

WithMinificationFilterBias sets the bias factor used by the minification filter to determine the levels of detail.

func (*ScrollLayer) WithName added in v0.17.0

func (sl *ScrollLayer) WithName(name string) *ScrollLayer

WithName sets the name of the receiver.

func (*ScrollLayer) WithNeedsDisplayOnBoundsChange added in v0.17.0

func (sl *ScrollLayer) WithNeedsDisplayOnBoundsChange(needsDisplayOnBoundsChange bool) *ScrollLayer

WithNeedsDisplayOnBoundsChange sets a Boolean indicating whether the layer contents must be updated when its bounds rectangle changes.

func (*ScrollLayer) WithOpacity added in v0.17.0

func (sl *ScrollLayer) WithOpacity(opacity float32) *ScrollLayer

WithOpacity sets the opacity of the receiver. Animatable.

func (*ScrollLayer) WithOpaque added in v0.17.0

func (sl *ScrollLayer) WithOpaque(opaque bool) *ScrollLayer

WithOpaque sets a Boolean value indicating whether the layer contains completely opaque content.

func (*ScrollLayer) WithPosition added in v0.17.0

func (sl *ScrollLayer) WithPosition(position corefoundation.CGPoint) *ScrollLayer

WithPosition sets the layer’s position in its superlayer’s coordinate space. Animatable.

func (*ScrollLayer) WithPreferredDynamicRange added in v0.17.0

func (sl *ScrollLayer) WithPreferredDynamicRange(preferredDynamicRange obj.Object) *ScrollLayer

WithPreferredDynamicRange sets the preferred dynamic range.

func (*ScrollLayer) WithRasterizationScale added in v0.17.0

func (sl *ScrollLayer) WithRasterizationScale(rasterizationScale float64) *ScrollLayer

WithRasterizationScale sets the scale at which to rasterize content, relative to the coordinate space of the layer. Animatable

func (*ScrollLayer) WithScrollMode added in v0.17.0

func (sl *ScrollLayer) WithScrollMode(scrollMode obj.Object) *ScrollLayer

WithScrollMode sets defines the axes in which the layer may be scrolled.

func (*ScrollLayer) WithShadowColor added in v0.17.0

func (sl *ScrollLayer) WithShadowColor(shadowColor coregraphics.CGColorRef) *ScrollLayer

WithShadowColor sets the color of the layer’s shadow. Animatable.

func (*ScrollLayer) WithShadowOffset added in v0.17.0

func (sl *ScrollLayer) WithShadowOffset(shadowOffset corefoundation.CGSize) *ScrollLayer

WithShadowOffset sets the offset (in points) of the layer’s shadow. Animatable.

func (*ScrollLayer) WithShadowOpacity added in v0.17.0

func (sl *ScrollLayer) WithShadowOpacity(shadowOpacity float32) *ScrollLayer

WithShadowOpacity sets the opacity of the layer’s shadow. Animatable.

func (*ScrollLayer) WithShadowPath added in v0.17.0

func (sl *ScrollLayer) WithShadowPath(shadowPath coregraphics.CGPathRef) *ScrollLayer

WithShadowPath sets the shape of the layer’s shadow. Animatable.

func (*ScrollLayer) WithShadowRadius added in v0.17.0

func (sl *ScrollLayer) WithShadowRadius(shadowRadius float64) *ScrollLayer

WithShadowRadius sets the blur radius (in points) used to render the layer’s shadow. Animatable.

func (*ScrollLayer) WithShouldRasterize added in v0.17.0

func (sl *ScrollLayer) WithShouldRasterize(shouldRasterize bool) *ScrollLayer

WithShouldRasterize sets a Boolean that indicates whether the layer is rendered as a bitmap before compositing. Animatable

func (*ScrollLayer) WithStyle added in v0.17.0

func (sl *ScrollLayer) WithStyle(style obj.Object) *ScrollLayer

WithStyle sets an optional dictionary used to store property values that aren’t explicitly defined by the layer.

func (*ScrollLayer) WithSublayerTransform added in v0.18.1

func (sl *ScrollLayer) WithSublayerTransform(sublayerTransform CATransform3D) *ScrollLayer

WithSublayerTransform sets specifies the transform to apply to sublayers when rendering. Animatable.

func (*ScrollLayer) WithSublayers added in v0.17.0

func (sl *ScrollLayer) WithSublayers(items ...LayerProvider) *ScrollLayer

WithSublayers sets an array containing the layer’s sublayers.

func (*ScrollLayer) WithToneMapMode added in v0.17.0

func (sl *ScrollLayer) WithToneMapMode(toneMapMode obj.Object) *ScrollLayer

WithToneMapMode sets the tone map mode.

func (*ScrollLayer) WithTransform added in v0.18.1

func (sl *ScrollLayer) WithTransform(transform CATransform3D) *ScrollLayer

WithTransform sets the transform applied to the layer’s contents. Animatable.

func (*ScrollLayer) WithWantsExtendedDynamicRangeContent added in v0.17.0

func (sl *ScrollLayer) WithWantsExtendedDynamicRangeContent(wantsExtendedDynamicRangeContent bool) *ScrollLayer

WithWantsExtendedDynamicRangeContent sets the wants extended dynamic range content.

func (*ScrollLayer) WithZPosition added in v0.17.0

func (sl *ScrollLayer) WithZPosition(zPosition float64) *ScrollLayer

WithZPosition sets the layer’s position on the z axis. Animatable.

type ShapeLayer added in v0.17.0

type ShapeLayer struct {
	Layer
}

ShapeLayer is an idiomatic wrapper over the Objective-C class CAShapeLayer.

It embeds Layer, promoting that type's methods.

A layer that draws a cubic Bezier spline in its coordinate space.

func NewShapeLayer added in v0.17.0

func NewShapeLayer() *ShapeLayer

NewShapeLayer creates a new ShapeLayer.

func ShapeLayerFromID added in v0.17.0

func ShapeLayerFromID(id objc.ID) *ShapeLayer

ShapeLayerFromID adopts an existing Objective-C object as a ShapeLayer (nil for 0), retaining it and registering a release finalizer.

func (*ShapeLayer) FillColor added in v0.17.0

func (sl *ShapeLayer) FillColor() coregraphics.CGColorRef

FillColor returns the fill color.

func (*ShapeLayer) FillRule added in v0.17.0

func (sl *ShapeLayer) FillRule() *foundation.String

FillRule returns the fill rule.

func (*ShapeLayer) LineCap added in v0.17.0

func (sl *ShapeLayer) LineCap() *foundation.String

LineCap returns the line cap.

func (*ShapeLayer) LineDashPattern added in v0.17.0

func (sl *ShapeLayer) LineDashPattern() []obj.Object

LineDashPattern returns the line dash pattern.

LineDashPattern returns the collection as a Go slice.

func (*ShapeLayer) LineDashPhase added in v0.17.0

func (sl *ShapeLayer) LineDashPhase() float64

LineDashPhase returns the line dash phase.

func (*ShapeLayer) LineJoin added in v0.17.0

func (sl *ShapeLayer) LineJoin() *foundation.String

LineJoin returns the line join.

func (*ShapeLayer) LineWidth added in v0.17.0

func (sl *ShapeLayer) LineWidth() float64

LineWidth returns the line width.

func (*ShapeLayer) MiterLimit added in v0.17.0

func (sl *ShapeLayer) MiterLimit() float64

MiterLimit returns the miter limit.

func (*ShapeLayer) Path added in v0.17.0

func (sl *ShapeLayer) Path() coregraphics.CGPathRef

Path returns the path.

func (*ShapeLayer) StrokeColor added in v0.17.0

func (sl *ShapeLayer) StrokeColor() coregraphics.CGColorRef

StrokeColor returns the stroke color.

func (*ShapeLayer) StrokeEnd added in v0.17.0

func (sl *ShapeLayer) StrokeEnd() float64

StrokeEnd returns the stroke end.

func (*ShapeLayer) StrokeStart added in v0.17.0

func (sl *ShapeLayer) StrokeStart() float64

StrokeStart returns the stroke start.

func (*ShapeLayer) WithActions added in v0.17.0

func (sl *ShapeLayer) WithActions(actions map[string]obj.Object) *ShapeLayer

WithActions sets a dictionary containing layer actions.

func (*ShapeLayer) WithAllowsEdgeAntialiasing added in v0.17.0

func (sl *ShapeLayer) WithAllowsEdgeAntialiasing(allowsEdgeAntialiasing bool) *ShapeLayer

WithAllowsEdgeAntialiasing sets a Boolean indicating whether the layer is allowed to perform edge antialiasing.

func (*ShapeLayer) WithAllowsGroupOpacity added in v0.17.0

func (sl *ShapeLayer) WithAllowsGroupOpacity(allowsGroupOpacity bool) *ShapeLayer

WithAllowsGroupOpacity sets a Boolean indicating whether the layer is allowed to composite itself as a group separate from its parent.

func (*ShapeLayer) WithAnchorPoint added in v0.17.0

func (sl *ShapeLayer) WithAnchorPoint(anchorPoint corefoundation.CGPoint) *ShapeLayer

WithAnchorPoint sets defines the anchor point of the layer’s bounds rectangle. Animatable.

func (*ShapeLayer) WithAnchorPointZ added in v0.17.0

func (sl *ShapeLayer) WithAnchorPointZ(anchorPointZ float64) *ShapeLayer

WithAnchorPointZ sets the anchor point for the layer’s position along the z axis. Animatable.

func (*ShapeLayer) WithAutoresizingMask added in v0.17.0

func (sl *ShapeLayer) WithAutoresizingMask(autoresizingMask AutoresizingMask) *ShapeLayer

WithAutoresizingMask sets a bitmask defining how the layer is resized when the bounds of its superlayer changes.

func (*ShapeLayer) WithBackgroundColor added in v0.17.0

func (sl *ShapeLayer) WithBackgroundColor(backgroundColor coregraphics.CGColorRef) *ShapeLayer

WithBackgroundColor sets the background color of the receiver. Animatable.

func (*ShapeLayer) WithBorderColor added in v0.17.0

func (sl *ShapeLayer) WithBorderColor(borderColor coregraphics.CGColorRef) *ShapeLayer

WithBorderColor sets the color of the layer’s border. Animatable.

func (*ShapeLayer) WithBorderWidth added in v0.17.0

func (sl *ShapeLayer) WithBorderWidth(borderWidth float64) *ShapeLayer

WithBorderWidth sets the width of the layer’s border. Animatable.

func (*ShapeLayer) WithBounds added in v0.17.0

func (sl *ShapeLayer) WithBounds(bounds corefoundation.CGRect) *ShapeLayer

WithBounds sets the layer’s bounds rectangle. Animatable.

func (*ShapeLayer) WithCompositingFilter added in v0.17.0

func (sl *ShapeLayer) WithCompositingFilter(compositingFilter obj.Object) *ShapeLayer

WithCompositingFilter sets a CoreImage filter used to composite the layer and the content behind it. Animatable.

func (*ShapeLayer) WithConstraints added in v0.17.0

func (sl *ShapeLayer) WithConstraints(items ...*Constraint) *ShapeLayer

WithConstraints sets the constraints used to position current layer’s sublayers.

func (*ShapeLayer) WithContents added in v0.17.0

func (sl *ShapeLayer) WithContents(contents obj.Object) *ShapeLayer

WithContents sets an object that provides the contents of the layer. Animatable.

func (*ShapeLayer) WithContentsCenter added in v0.17.0

func (sl *ShapeLayer) WithContentsCenter(contentsCenter corefoundation.CGRect) *ShapeLayer

WithContentsCenter sets the rectangle that defines how the layer contents are scaled if the layer’s contents are resized. Animatable.

func (*ShapeLayer) WithContentsFormat added in v0.17.0

func (sl *ShapeLayer) WithContentsFormat(contentsFormat obj.Object) *ShapeLayer

WithContentsFormat sets a hint for the desired storage format of the layer contents.

func (*ShapeLayer) WithContentsGravity added in v0.17.0

func (sl *ShapeLayer) WithContentsGravity(contentsGravity obj.Object) *ShapeLayer

WithContentsGravity sets a constant that specifies how the layer’s contents are positioned or scaled within its bounds.

func (*ShapeLayer) WithContentsHeadroom added in v0.17.0

func (sl *ShapeLayer) WithContentsHeadroom(contentsHeadroom float64) *ShapeLayer

WithContentsHeadroom sets the contents headroom.

func (*ShapeLayer) WithContentsRect added in v0.17.0

func (sl *ShapeLayer) WithContentsRect(contentsRect corefoundation.CGRect) *ShapeLayer

WithContentsRect sets the rectangle, in the unit coordinate space, that defines the portion of the layer’s contents that should be used. Animatable.

func (*ShapeLayer) WithContentsScale added in v0.17.0

func (sl *ShapeLayer) WithContentsScale(contentsScale float64) *ShapeLayer

WithContentsScale sets the scale factor applied to the layer.

func (*ShapeLayer) WithCornerCurve added in v0.17.0

func (sl *ShapeLayer) WithCornerCurve(cornerCurve obj.Object) *ShapeLayer

WithCornerCurve sets the corner curve.

func (*ShapeLayer) WithCornerRadius added in v0.17.0

func (sl *ShapeLayer) WithCornerRadius(cornerRadius float64) *ShapeLayer

WithCornerRadius sets the radius to use when drawing rounded corners for the layer’s background. Animatable.

func (*ShapeLayer) WithDelegate added in v0.17.0

func (sl *ShapeLayer) WithDelegate(delegate LayerDelegate) *ShapeLayer

WithDelegate sets the layer’s delegate object.

func (*ShapeLayer) WithDoubleSided added in v0.17.0

func (sl *ShapeLayer) WithDoubleSided(doubleSided bool) *ShapeLayer

WithDoubleSided sets a Boolean indicating whether the layer displays its content when facing away from the viewer. Animatable.

func (*ShapeLayer) WithDrawsAsynchronously added in v0.17.0

func (sl *ShapeLayer) WithDrawsAsynchronously(drawsAsynchronously bool) *ShapeLayer

WithDrawsAsynchronously sets a Boolean indicating whether drawing commands are deferred and processed asynchronously in a background thread.

func (*ShapeLayer) WithEdgeAntialiasingMask added in v0.17.0

func (sl *ShapeLayer) WithEdgeAntialiasingMask(edgeAntialiasingMask EdgeAntialiasingMask) *ShapeLayer

WithEdgeAntialiasingMask sets a bitmask defining how the edges of the receiver are rasterized.

func (*ShapeLayer) WithFillColor added in v0.17.0

func (sl *ShapeLayer) WithFillColor(fillColor coregraphics.CGColorRef) *ShapeLayer

WithFillColor sets the color used to fill the shape’s path. Animatable.

func (*ShapeLayer) WithFillRule added in v0.17.0

func (sl *ShapeLayer) WithFillRule(fillRule obj.Object) *ShapeLayer

WithFillRule sets the fill rule used when filling the shape’s path.

func (*ShapeLayer) WithFrame added in v0.17.0

func (sl *ShapeLayer) WithFrame(frame corefoundation.CGRect) *ShapeLayer

WithFrame sets the layer’s frame rectangle.

func (*ShapeLayer) WithGeometryFlipped added in v0.17.0

func (sl *ShapeLayer) WithGeometryFlipped(geometryFlipped bool) *ShapeLayer

WithGeometryFlipped sets a Boolean that indicates whether the geometry of the layer and its sublayers is flipped vertically.

func (*ShapeLayer) WithHidden added in v0.17.0

func (sl *ShapeLayer) WithHidden(hidden bool) *ShapeLayer

WithHidden sets a Boolean indicating whether the layer is displayed. Animatable.

func (*ShapeLayer) WithLineCap added in v0.17.0

func (sl *ShapeLayer) WithLineCap(lineCap obj.Object) *ShapeLayer

WithLineCap sets specifies the line cap style for the shape’s path.

func (*ShapeLayer) WithLineDashPattern added in v0.17.0

func (sl *ShapeLayer) WithLineDashPattern(items ...obj.Object) *ShapeLayer

WithLineDashPattern sets the dash pattern applied to the shape’s path when stroked.

func (*ShapeLayer) WithLineDashPhase added in v0.17.0

func (sl *ShapeLayer) WithLineDashPhase(lineDashPhase float64) *ShapeLayer

WithLineDashPhase sets the dash phase applied to the shape’s path when stroked. Animatable.

func (*ShapeLayer) WithLineJoin added in v0.17.0

func (sl *ShapeLayer) WithLineJoin(lineJoin obj.Object) *ShapeLayer

WithLineJoin sets specifies the line join style for the shape’s path.

func (*ShapeLayer) WithLineWidth added in v0.17.0

func (sl *ShapeLayer) WithLineWidth(lineWidth float64) *ShapeLayer

WithLineWidth sets specifies the line width of the shape’s path. Animatable.

func (*ShapeLayer) WithMagnificationFilter added in v0.17.0

func (sl *ShapeLayer) WithMagnificationFilter(magnificationFilter obj.Object) *ShapeLayer

WithMagnificationFilter sets the filter used when increasing the size of the content.

func (*ShapeLayer) WithMask added in v0.17.0

func (sl *ShapeLayer) WithMask(mask LayerProvider) *ShapeLayer

WithMask sets an optional layer whose alpha channel is used to mask the layer’s content.

func (*ShapeLayer) WithMaskedCorners added in v0.17.0

func (sl *ShapeLayer) WithMaskedCorners(maskedCorners CornerMask) *ShapeLayer

WithMaskedCorners sets the masked corners.

func (*ShapeLayer) WithMasksToBounds added in v0.17.0

func (sl *ShapeLayer) WithMasksToBounds(masksToBounds bool) *ShapeLayer

WithMasksToBounds sets a Boolean indicating whether sublayers are clipped to the layer’s bounds. Animatable.

func (*ShapeLayer) WithMinificationFilter added in v0.17.0

func (sl *ShapeLayer) WithMinificationFilter(minificationFilter obj.Object) *ShapeLayer

WithMinificationFilter sets the filter used when reducing the size of the content.

func (*ShapeLayer) WithMinificationFilterBias added in v0.17.0

func (sl *ShapeLayer) WithMinificationFilterBias(minificationFilterBias float32) *ShapeLayer

WithMinificationFilterBias sets the bias factor used by the minification filter to determine the levels of detail.

func (*ShapeLayer) WithMiterLimit added in v0.17.0

func (sl *ShapeLayer) WithMiterLimit(miterLimit float64) *ShapeLayer

WithMiterLimit sets the miter limit used when stroking the shape’s path. Animatable.

func (*ShapeLayer) WithName added in v0.17.0

func (sl *ShapeLayer) WithName(name string) *ShapeLayer

WithName sets the name of the receiver.

func (*ShapeLayer) WithNeedsDisplayOnBoundsChange added in v0.17.0

func (sl *ShapeLayer) WithNeedsDisplayOnBoundsChange(needsDisplayOnBoundsChange bool) *ShapeLayer

WithNeedsDisplayOnBoundsChange sets a Boolean indicating whether the layer contents must be updated when its bounds rectangle changes.

func (*ShapeLayer) WithOpacity added in v0.17.0

func (sl *ShapeLayer) WithOpacity(opacity float32) *ShapeLayer

WithOpacity sets the opacity of the receiver. Animatable.

func (*ShapeLayer) WithOpaque added in v0.17.0

func (sl *ShapeLayer) WithOpaque(opaque bool) *ShapeLayer

WithOpaque sets a Boolean value indicating whether the layer contains completely opaque content.

func (*ShapeLayer) WithPath added in v0.17.0

func (sl *ShapeLayer) WithPath(path coregraphics.CGPathRef) *ShapeLayer

WithPath sets the path defining the shape to be rendered. Animatable.

func (*ShapeLayer) WithPosition added in v0.17.0

func (sl *ShapeLayer) WithPosition(position corefoundation.CGPoint) *ShapeLayer

WithPosition sets the layer’s position in its superlayer’s coordinate space. Animatable.

func (*ShapeLayer) WithPreferredDynamicRange added in v0.17.0

func (sl *ShapeLayer) WithPreferredDynamicRange(preferredDynamicRange obj.Object) *ShapeLayer

WithPreferredDynamicRange sets the preferred dynamic range.

func (*ShapeLayer) WithRasterizationScale added in v0.17.0

func (sl *ShapeLayer) WithRasterizationScale(rasterizationScale float64) *ShapeLayer

WithRasterizationScale sets the scale at which to rasterize content, relative to the coordinate space of the layer. Animatable

func (*ShapeLayer) WithShadowColor added in v0.17.0

func (sl *ShapeLayer) WithShadowColor(shadowColor coregraphics.CGColorRef) *ShapeLayer

WithShadowColor sets the color of the layer’s shadow. Animatable.

func (*ShapeLayer) WithShadowOffset added in v0.17.0

func (sl *ShapeLayer) WithShadowOffset(shadowOffset corefoundation.CGSize) *ShapeLayer

WithShadowOffset sets the offset (in points) of the layer’s shadow. Animatable.

func (*ShapeLayer) WithShadowOpacity added in v0.17.0

func (sl *ShapeLayer) WithShadowOpacity(shadowOpacity float32) *ShapeLayer

WithShadowOpacity sets the opacity of the layer’s shadow. Animatable.

func (*ShapeLayer) WithShadowPath added in v0.17.0

func (sl *ShapeLayer) WithShadowPath(shadowPath coregraphics.CGPathRef) *ShapeLayer

WithShadowPath sets the shape of the layer’s shadow. Animatable.

func (*ShapeLayer) WithShadowRadius added in v0.17.0

func (sl *ShapeLayer) WithShadowRadius(shadowRadius float64) *ShapeLayer

WithShadowRadius sets the blur radius (in points) used to render the layer’s shadow. Animatable.

func (*ShapeLayer) WithShouldRasterize added in v0.17.0

func (sl *ShapeLayer) WithShouldRasterize(shouldRasterize bool) *ShapeLayer

WithShouldRasterize sets a Boolean that indicates whether the layer is rendered as a bitmap before compositing. Animatable

func (*ShapeLayer) WithStrokeColor added in v0.17.0

func (sl *ShapeLayer) WithStrokeColor(strokeColor coregraphics.CGColorRef) *ShapeLayer

WithStrokeColor sets the color used to stroke the shape’s path. Animatable.

func (*ShapeLayer) WithStrokeEnd added in v0.17.0

func (sl *ShapeLayer) WithStrokeEnd(strokeEnd float64) *ShapeLayer

WithStrokeEnd sets the relative location at which to stop stroking the path. Animatable.

func (*ShapeLayer) WithStrokeStart added in v0.17.0

func (sl *ShapeLayer) WithStrokeStart(strokeStart float64) *ShapeLayer

WithStrokeStart sets the relative location at which to begin stroking the path. Animatable.

func (*ShapeLayer) WithStyle added in v0.17.0

func (sl *ShapeLayer) WithStyle(style obj.Object) *ShapeLayer

WithStyle sets an optional dictionary used to store property values that aren’t explicitly defined by the layer.

func (*ShapeLayer) WithSublayerTransform added in v0.18.1

func (sl *ShapeLayer) WithSublayerTransform(sublayerTransform CATransform3D) *ShapeLayer

WithSublayerTransform sets specifies the transform to apply to sublayers when rendering. Animatable.

func (*ShapeLayer) WithSublayers added in v0.17.0

func (sl *ShapeLayer) WithSublayers(items ...LayerProvider) *ShapeLayer

WithSublayers sets an array containing the layer’s sublayers.

func (*ShapeLayer) WithToneMapMode added in v0.17.0

func (sl *ShapeLayer) WithToneMapMode(toneMapMode obj.Object) *ShapeLayer

WithToneMapMode sets the tone map mode.

func (*ShapeLayer) WithTransform added in v0.18.1

func (sl *ShapeLayer) WithTransform(transform CATransform3D) *ShapeLayer

WithTransform sets the transform applied to the layer’s contents. Animatable.

func (*ShapeLayer) WithWantsExtendedDynamicRangeContent added in v0.17.0

func (sl *ShapeLayer) WithWantsExtendedDynamicRangeContent(wantsExtendedDynamicRangeContent bool) *ShapeLayer

WithWantsExtendedDynamicRangeContent sets the wants extended dynamic range content.

func (*ShapeLayer) WithZPosition added in v0.17.0

func (sl *ShapeLayer) WithZPosition(zPosition float64) *ShapeLayer

WithZPosition sets the layer’s position on the z axis. Animatable.

type SpringAnimation added in v0.17.0

type SpringAnimation struct {
	BasicAnimation
}

SpringAnimation is an idiomatic wrapper over the Objective-C class CASpringAnimation.

It embeds BasicAnimation, promoting that type's methods.

An animation that applies a spring-like force to a layer’s properties.

func NewSpringAnimation added in v0.17.0

func NewSpringAnimation() *SpringAnimation

NewSpringAnimation creates a new SpringAnimation.

func NewSpringAnimationWithPerceptualDurationBounce added in v0.17.0

func NewSpringAnimationWithPerceptualDurationBounce(perceptualDuration float64, bounce float64) *SpringAnimation

NewSpringAnimationWithPerceptualDurationBounce creates a new SpringAnimation.

func SpringAnimationFromID added in v0.17.0

func SpringAnimationFromID(id objc.ID) *SpringAnimation

SpringAnimationFromID adopts an existing Objective-C object as a SpringAnimation (nil for 0), retaining it and registering a release finalizer.

func (*SpringAnimation) AllowsOverdamping added in v0.17.0

func (sa *SpringAnimation) AllowsOverdamping() bool

AllowsOverdamping wraps the corresponding Objective-C method.

func (*SpringAnimation) Bounce added in v0.17.0

func (sa *SpringAnimation) Bounce() float64

Bounce returns the bounce.

func (*SpringAnimation) Damping added in v0.17.0

func (sa *SpringAnimation) Damping() float64

Damping returns the damping.

func (*SpringAnimation) Mass added in v0.17.0

func (sa *SpringAnimation) Mass() float64

Mass returns the mass.

func (*SpringAnimation) PerceptualDuration added in v0.17.0

func (sa *SpringAnimation) PerceptualDuration() float64

PerceptualDuration returns the perceptual duration.

func (*SpringAnimation) SettlingDuration added in v0.17.0

func (sa *SpringAnimation) SettlingDuration() float64

SettlingDuration returns the settling duration.

func (*SpringAnimation) Stiffness added in v0.17.0

func (sa *SpringAnimation) Stiffness() float64

Stiffness returns the stiffness.

func (*SpringAnimation) WithAdditive added in v0.17.0

func (sa *SpringAnimation) WithAdditive(additive bool) *SpringAnimation

WithAdditive sets determines if the value specified by the animation is added to the current render tree value to produce the new render tree value.

func (*SpringAnimation) WithAllowsOverdamping added in v0.17.0

func (sa *SpringAnimation) WithAllowsOverdamping(allowsOverdamping bool) *SpringAnimation

WithAllowsOverdamping sets the allows overdamping.

func (*SpringAnimation) WithByValue added in v0.17.0

func (sa *SpringAnimation) WithByValue(byValue obj.Object) *SpringAnimation

WithByValue sets defines the value the receiver uses to perform relative interpolation.

func (*SpringAnimation) WithCumulative added in v0.17.0

func (sa *SpringAnimation) WithCumulative(cumulative bool) *SpringAnimation

WithCumulative sets determines if the value of the property is the value at the end of the previous repeat cycle, plus the value of the current repeat cycle.

func (*SpringAnimation) WithDamping added in v0.17.0

func (sa *SpringAnimation) WithDamping(damping float64) *SpringAnimation

WithDamping sets defines how the spring’s motion should be damped due to the forces of friction.

func (*SpringAnimation) WithDelegate added in v0.17.0

func (sa *SpringAnimation) WithDelegate(delegate AnimationDelegate) *SpringAnimation

WithDelegate sets specifies the receiver’s delegate object.

func (*SpringAnimation) WithFromValue added in v0.17.0

func (sa *SpringAnimation) WithFromValue(fromValue obj.Object) *SpringAnimation

WithFromValue sets defines the value the receiver uses to start interpolation.

func (*SpringAnimation) WithInitialVelocity added in v0.17.0

func (sa *SpringAnimation) WithInitialVelocity(initialVelocity float64) *SpringAnimation

WithInitialVelocity sets the initial velocity of the object attached to the spring.

func (*SpringAnimation) WithKeyPath added in v0.17.0

func (sa *SpringAnimation) WithKeyPath(keyPath string) *SpringAnimation

WithKeyPath sets specifies the key path the receiver animates.

func (*SpringAnimation) WithMass added in v0.17.0

func (sa *SpringAnimation) WithMass(mass float64) *SpringAnimation

WithMass sets the mass of the object attached to the end of the spring.

func (*SpringAnimation) WithPreferredFrameRateRange added in v0.18.1

func (sa *SpringAnimation) WithPreferredFrameRateRange(preferredFrameRateRange CAFrameRateRange) *SpringAnimation

WithPreferredFrameRateRange sets the preferred frame rate range.

func (*SpringAnimation) WithRemovedOnCompletion added in v0.17.0

func (sa *SpringAnimation) WithRemovedOnCompletion(removedOnCompletion bool) *SpringAnimation

WithRemovedOnCompletion sets determines if the animation is removed from the target layer’s animations upon completion.

func (*SpringAnimation) WithStiffness added in v0.17.0

func (sa *SpringAnimation) WithStiffness(stiffness float64) *SpringAnimation

WithStiffness sets the spring stiffness coefficient.

func (*SpringAnimation) WithTimingFunction added in v0.17.0

func (sa *SpringAnimation) WithTimingFunction(timingFunction *MediaTimingFunction) *SpringAnimation

WithTimingFunction sets an optional timing function defining the pacing of the animation.

func (*SpringAnimation) WithToValue added in v0.17.0

func (sa *SpringAnimation) WithToValue(toValue obj.Object) *SpringAnimation

WithToValue sets defines the value the receiver uses to end interpolation.

func (*SpringAnimation) WithValueFunction added in v0.17.0

func (sa *SpringAnimation) WithValueFunction(valueFunction *ValueFunction) *SpringAnimation

WithValueFunction sets an optional value function that is applied to interpolated values.

type Tag added in v0.17.0

type Tag int32
const (
	TagUndefinedTag  Tag = 0
	TagExtendedAllow Tag = 1
	TagExtendedDeny  Tag = 2
)

func (Tag) String added in v0.17.0

func (e Tag) String() string

String returns the Tag constant's name, or its numeric form when the value is not a known constant.

type TextLayer added in v0.17.0

type TextLayer struct {
	Layer
}

TextLayer is an idiomatic wrapper over the Objective-C class CATextLayer.

It embeds Layer, promoting that type's methods.

A layer that provides simple text layout and rendering of plain or attributed strings.

func NewTextLayer added in v0.17.0

func NewTextLayer() *TextLayer

NewTextLayer creates a new TextLayer.

func TextLayerFromID added in v0.17.0

func TextLayerFromID(id objc.ID) *TextLayer

TextLayerFromID adopts an existing Objective-C object as a TextLayer (nil for 0), retaining it and registering a release finalizer.

func (*TextLayer) AlignmentMode added in v0.17.0

func (tl *TextLayer) AlignmentMode() *foundation.String

AlignmentMode returns the alignment mode.

func (*TextLayer) AllowsFontSubpixelQuantization added in v0.17.0

func (tl *TextLayer) AllowsFontSubpixelQuantization() bool

AllowsFontSubpixelQuantization wraps the corresponding Objective-C method.

func (*TextLayer) Font added in v0.17.0

func (tl *TextLayer) Font() obj.Object

Font returns the font.

func (*TextLayer) FontSize added in v0.17.0

func (tl *TextLayer) FontSize() float64

FontSize returns the font size.

func (*TextLayer) ForegroundColor added in v0.17.0

func (tl *TextLayer) ForegroundColor() coregraphics.CGColorRef

ForegroundColor returns the foreground color.

func (*TextLayer) IsWrapped added in v0.17.0

func (tl *TextLayer) IsWrapped() bool

IsWrapped reports whether the object is wrapped.

func (*TextLayer) String added in v0.17.0

func (tl *TextLayer) String() obj.Object

String returns the string.

func (*TextLayer) TruncationMode added in v0.17.0

func (tl *TextLayer) TruncationMode() *foundation.String

TruncationMode returns the truncation mode.

func (*TextLayer) WithActions added in v0.17.0

func (tl *TextLayer) WithActions(actions map[string]obj.Object) *TextLayer

WithActions sets a dictionary containing layer actions.

func (*TextLayer) WithAlignmentMode added in v0.17.0

func (tl *TextLayer) WithAlignmentMode(alignmentMode obj.Object) *TextLayer

WithAlignmentMode sets determines how individual lines of text are horizontally aligned within the receiver’s bounds.

func (*TextLayer) WithAllowsEdgeAntialiasing added in v0.17.0

func (tl *TextLayer) WithAllowsEdgeAntialiasing(allowsEdgeAntialiasing bool) *TextLayer

WithAllowsEdgeAntialiasing sets a Boolean indicating whether the layer is allowed to perform edge antialiasing.

func (*TextLayer) WithAllowsFontSubpixelQuantization added in v0.17.0

func (tl *TextLayer) WithAllowsFontSubpixelQuantization(allowsFontSubpixelQuantization bool) *TextLayer

WithAllowsFontSubpixelQuantization sets determines whether to allow subpixel quantization for the graphics context used for text rendering.

func (*TextLayer) WithAllowsGroupOpacity added in v0.17.0

func (tl *TextLayer) WithAllowsGroupOpacity(allowsGroupOpacity bool) *TextLayer

WithAllowsGroupOpacity sets a Boolean indicating whether the layer is allowed to composite itself as a group separate from its parent.

func (*TextLayer) WithAnchorPoint added in v0.17.0

func (tl *TextLayer) WithAnchorPoint(anchorPoint corefoundation.CGPoint) *TextLayer

WithAnchorPoint sets defines the anchor point of the layer’s bounds rectangle. Animatable.

func (*TextLayer) WithAnchorPointZ added in v0.17.0

func (tl *TextLayer) WithAnchorPointZ(anchorPointZ float64) *TextLayer

WithAnchorPointZ sets the anchor point for the layer’s position along the z axis. Animatable.

func (*TextLayer) WithAutoresizingMask added in v0.17.0

func (tl *TextLayer) WithAutoresizingMask(autoresizingMask AutoresizingMask) *TextLayer

WithAutoresizingMask sets a bitmask defining how the layer is resized when the bounds of its superlayer changes.

func (*TextLayer) WithBackgroundColor added in v0.17.0

func (tl *TextLayer) WithBackgroundColor(backgroundColor coregraphics.CGColorRef) *TextLayer

WithBackgroundColor sets the background color of the receiver. Animatable.

func (*TextLayer) WithBorderColor added in v0.17.0

func (tl *TextLayer) WithBorderColor(borderColor coregraphics.CGColorRef) *TextLayer

WithBorderColor sets the color of the layer’s border. Animatable.

func (*TextLayer) WithBorderWidth added in v0.17.0

func (tl *TextLayer) WithBorderWidth(borderWidth float64) *TextLayer

WithBorderWidth sets the width of the layer’s border. Animatable.

func (*TextLayer) WithBounds added in v0.17.0

func (tl *TextLayer) WithBounds(bounds corefoundation.CGRect) *TextLayer

WithBounds sets the layer’s bounds rectangle. Animatable.

func (*TextLayer) WithCompositingFilter added in v0.17.0

func (tl *TextLayer) WithCompositingFilter(compositingFilter obj.Object) *TextLayer

WithCompositingFilter sets a CoreImage filter used to composite the layer and the content behind it. Animatable.

func (*TextLayer) WithConstraints added in v0.17.0

func (tl *TextLayer) WithConstraints(items ...*Constraint) *TextLayer

WithConstraints sets the constraints used to position current layer’s sublayers.

func (*TextLayer) WithContents added in v0.17.0

func (tl *TextLayer) WithContents(contents obj.Object) *TextLayer

WithContents sets an object that provides the contents of the layer. Animatable.

func (*TextLayer) WithContentsCenter added in v0.17.0

func (tl *TextLayer) WithContentsCenter(contentsCenter corefoundation.CGRect) *TextLayer

WithContentsCenter sets the rectangle that defines how the layer contents are scaled if the layer’s contents are resized. Animatable.

func (*TextLayer) WithContentsFormat added in v0.17.0

func (tl *TextLayer) WithContentsFormat(contentsFormat obj.Object) *TextLayer

WithContentsFormat sets a hint for the desired storage format of the layer contents.

func (*TextLayer) WithContentsGravity added in v0.17.0

func (tl *TextLayer) WithContentsGravity(contentsGravity obj.Object) *TextLayer

WithContentsGravity sets a constant that specifies how the layer’s contents are positioned or scaled within its bounds.

func (*TextLayer) WithContentsHeadroom added in v0.17.0

func (tl *TextLayer) WithContentsHeadroom(contentsHeadroom float64) *TextLayer

WithContentsHeadroom sets the contents headroom.

func (*TextLayer) WithContentsRect added in v0.17.0

func (tl *TextLayer) WithContentsRect(contentsRect corefoundation.CGRect) *TextLayer

WithContentsRect sets the rectangle, in the unit coordinate space, that defines the portion of the layer’s contents that should be used. Animatable.

func (*TextLayer) WithContentsScale added in v0.17.0

func (tl *TextLayer) WithContentsScale(contentsScale float64) *TextLayer

WithContentsScale sets the scale factor applied to the layer.

func (*TextLayer) WithCornerCurve added in v0.17.0

func (tl *TextLayer) WithCornerCurve(cornerCurve obj.Object) *TextLayer

WithCornerCurve sets the corner curve.

func (*TextLayer) WithCornerRadius added in v0.17.0

func (tl *TextLayer) WithCornerRadius(cornerRadius float64) *TextLayer

WithCornerRadius sets the radius to use when drawing rounded corners for the layer’s background. Animatable.

func (*TextLayer) WithDelegate added in v0.17.0

func (tl *TextLayer) WithDelegate(delegate LayerDelegate) *TextLayer

WithDelegate sets the layer’s delegate object.

func (*TextLayer) WithDoubleSided added in v0.17.0

func (tl *TextLayer) WithDoubleSided(doubleSided bool) *TextLayer

WithDoubleSided sets a Boolean indicating whether the layer displays its content when facing away from the viewer. Animatable.

func (*TextLayer) WithDrawsAsynchronously added in v0.17.0

func (tl *TextLayer) WithDrawsAsynchronously(drawsAsynchronously bool) *TextLayer

WithDrawsAsynchronously sets a Boolean indicating whether drawing commands are deferred and processed asynchronously in a background thread.

func (*TextLayer) WithEdgeAntialiasingMask added in v0.17.0

func (tl *TextLayer) WithEdgeAntialiasingMask(edgeAntialiasingMask EdgeAntialiasingMask) *TextLayer

WithEdgeAntialiasingMask sets a bitmask defining how the edges of the receiver are rasterized.

func (*TextLayer) WithFont added in v0.17.0

func (tl *TextLayer) WithFont(font obj.Object) *TextLayer

WithFont sets the font used to render the receiver’s text.

func (*TextLayer) WithFontSize added in v0.17.0

func (tl *TextLayer) WithFontSize(fontSize float64) *TextLayer

WithFontSize sets the font size used to render the receiver’s text. Animatable.

func (*TextLayer) WithForegroundColor added in v0.17.0

func (tl *TextLayer) WithForegroundColor(foregroundColor coregraphics.CGColorRef) *TextLayer

WithForegroundColor sets the color used to render the receiver’s text. Animatable.

func (*TextLayer) WithFrame added in v0.17.0

func (tl *TextLayer) WithFrame(frame corefoundation.CGRect) *TextLayer

WithFrame sets the layer’s frame rectangle.

func (*TextLayer) WithGeometryFlipped added in v0.17.0

func (tl *TextLayer) WithGeometryFlipped(geometryFlipped bool) *TextLayer

WithGeometryFlipped sets a Boolean that indicates whether the geometry of the layer and its sublayers is flipped vertically.

func (*TextLayer) WithHidden added in v0.17.0

func (tl *TextLayer) WithHidden(hidden bool) *TextLayer

WithHidden sets a Boolean indicating whether the layer is displayed. Animatable.

func (*TextLayer) WithMagnificationFilter added in v0.17.0

func (tl *TextLayer) WithMagnificationFilter(magnificationFilter obj.Object) *TextLayer

WithMagnificationFilter sets the filter used when increasing the size of the content.

func (*TextLayer) WithMask added in v0.17.0

func (tl *TextLayer) WithMask(mask LayerProvider) *TextLayer

WithMask sets an optional layer whose alpha channel is used to mask the layer’s content.

func (*TextLayer) WithMaskedCorners added in v0.17.0

func (tl *TextLayer) WithMaskedCorners(maskedCorners CornerMask) *TextLayer

WithMaskedCorners sets the masked corners.

func (*TextLayer) WithMasksToBounds added in v0.17.0

func (tl *TextLayer) WithMasksToBounds(masksToBounds bool) *TextLayer

WithMasksToBounds sets a Boolean indicating whether sublayers are clipped to the layer’s bounds. Animatable.

func (*TextLayer) WithMinificationFilter added in v0.17.0

func (tl *TextLayer) WithMinificationFilter(minificationFilter obj.Object) *TextLayer

WithMinificationFilter sets the filter used when reducing the size of the content.

func (*TextLayer) WithMinificationFilterBias added in v0.17.0

func (tl *TextLayer) WithMinificationFilterBias(minificationFilterBias float32) *TextLayer

WithMinificationFilterBias sets the bias factor used by the minification filter to determine the levels of detail.

func (*TextLayer) WithName added in v0.17.0

func (tl *TextLayer) WithName(name string) *TextLayer

WithName sets the name of the receiver.

func (*TextLayer) WithNeedsDisplayOnBoundsChange added in v0.17.0

func (tl *TextLayer) WithNeedsDisplayOnBoundsChange(needsDisplayOnBoundsChange bool) *TextLayer

WithNeedsDisplayOnBoundsChange sets a Boolean indicating whether the layer contents must be updated when its bounds rectangle changes.

func (*TextLayer) WithOpacity added in v0.17.0

func (tl *TextLayer) WithOpacity(opacity float32) *TextLayer

WithOpacity sets the opacity of the receiver. Animatable.

func (*TextLayer) WithOpaque added in v0.17.0

func (tl *TextLayer) WithOpaque(opaque bool) *TextLayer

WithOpaque sets a Boolean value indicating whether the layer contains completely opaque content.

func (*TextLayer) WithPosition added in v0.17.0

func (tl *TextLayer) WithPosition(position corefoundation.CGPoint) *TextLayer

WithPosition sets the layer’s position in its superlayer’s coordinate space. Animatable.

func (*TextLayer) WithPreferredDynamicRange added in v0.17.0

func (tl *TextLayer) WithPreferredDynamicRange(preferredDynamicRange obj.Object) *TextLayer

WithPreferredDynamicRange sets the preferred dynamic range.

func (*TextLayer) WithRasterizationScale added in v0.17.0

func (tl *TextLayer) WithRasterizationScale(rasterizationScale float64) *TextLayer

WithRasterizationScale sets the scale at which to rasterize content, relative to the coordinate space of the layer. Animatable

func (*TextLayer) WithShadowColor added in v0.17.0

func (tl *TextLayer) WithShadowColor(shadowColor coregraphics.CGColorRef) *TextLayer

WithShadowColor sets the color of the layer’s shadow. Animatable.

func (*TextLayer) WithShadowOffset added in v0.17.0

func (tl *TextLayer) WithShadowOffset(shadowOffset corefoundation.CGSize) *TextLayer

WithShadowOffset sets the offset (in points) of the layer’s shadow. Animatable.

func (*TextLayer) WithShadowOpacity added in v0.17.0

func (tl *TextLayer) WithShadowOpacity(shadowOpacity float32) *TextLayer

WithShadowOpacity sets the opacity of the layer’s shadow. Animatable.

func (*TextLayer) WithShadowPath added in v0.17.0

func (tl *TextLayer) WithShadowPath(shadowPath coregraphics.CGPathRef) *TextLayer

WithShadowPath sets the shape of the layer’s shadow. Animatable.

func (*TextLayer) WithShadowRadius added in v0.17.0

func (tl *TextLayer) WithShadowRadius(shadowRadius float64) *TextLayer

WithShadowRadius sets the blur radius (in points) used to render the layer’s shadow. Animatable.

func (*TextLayer) WithShouldRasterize added in v0.17.0

func (tl *TextLayer) WithShouldRasterize(shouldRasterize bool) *TextLayer

WithShouldRasterize sets a Boolean that indicates whether the layer is rendered as a bitmap before compositing. Animatable

func (*TextLayer) WithString added in v0.17.0

func (tl *TextLayer) WithString(str obj.Object) *TextLayer

WithString sets the text to be rendered by the receiver.

func (*TextLayer) WithStyle added in v0.17.0

func (tl *TextLayer) WithStyle(style obj.Object) *TextLayer

WithStyle sets an optional dictionary used to store property values that aren’t explicitly defined by the layer.

func (*TextLayer) WithSublayerTransform added in v0.18.1

func (tl *TextLayer) WithSublayerTransform(sublayerTransform CATransform3D) *TextLayer

WithSublayerTransform sets specifies the transform to apply to sublayers when rendering. Animatable.

func (*TextLayer) WithSublayers added in v0.17.0

func (tl *TextLayer) WithSublayers(items ...LayerProvider) *TextLayer

WithSublayers sets an array containing the layer’s sublayers.

func (*TextLayer) WithToneMapMode added in v0.17.0

func (tl *TextLayer) WithToneMapMode(toneMapMode obj.Object) *TextLayer

WithToneMapMode sets the tone map mode.

func (*TextLayer) WithTransform added in v0.18.1

func (tl *TextLayer) WithTransform(transform CATransform3D) *TextLayer

WithTransform sets the transform applied to the layer’s contents. Animatable.

func (*TextLayer) WithTruncationMode added in v0.17.0

func (tl *TextLayer) WithTruncationMode(truncationMode obj.Object) *TextLayer

WithTruncationMode sets determines how the text is truncated to fit within the receiver’s bounds.

func (*TextLayer) WithWantsExtendedDynamicRangeContent added in v0.17.0

func (tl *TextLayer) WithWantsExtendedDynamicRangeContent(wantsExtendedDynamicRangeContent bool) *TextLayer

WithWantsExtendedDynamicRangeContent sets the wants extended dynamic range content.

func (*TextLayer) WithWrapped added in v0.17.0

func (tl *TextLayer) WithWrapped(wrapped bool) *TextLayer

WithWrapped sets determines whether the text is wrapped to fit within the receiver’s bounds.

func (*TextLayer) WithZPosition added in v0.17.0

func (tl *TextLayer) WithZPosition(zPosition float64) *TextLayer

WithZPosition sets the layer’s position on the z axis. Animatable.

type TiledLayer added in v0.17.0

type TiledLayer struct {
	Layer
}

TiledLayer is an idiomatic wrapper over the Objective-C class CATiledLayer.

It embeds Layer, promoting that type's methods.

A layer that provides a way to asynchronously provide tiles of the layer’s content, potentially cached at multiple levels of detail.

func NewTiledLayer added in v0.17.0

func NewTiledLayer() *TiledLayer

NewTiledLayer creates a new TiledLayer.

func TiledLayerFromID added in v0.17.0

func TiledLayerFromID(id objc.ID) *TiledLayer

TiledLayerFromID adopts an existing Objective-C object as a TiledLayer (nil for 0), retaining it and registering a release finalizer.

func (*TiledLayer) LevelsOfDetail added in v0.17.0

func (tl *TiledLayer) LevelsOfDetail() int

LevelsOfDetail returns the levels of detail.

func (*TiledLayer) LevelsOfDetailBias added in v0.17.0

func (tl *TiledLayer) LevelsOfDetailBias() int

LevelsOfDetailBias returns the levels of detail bias.

func (*TiledLayer) TileSize added in v0.17.0

func (tl *TiledLayer) TileSize() corefoundation.CGSize

TileSize returns the tile size.

func (*TiledLayer) WithActions added in v0.17.0

func (tl *TiledLayer) WithActions(actions map[string]obj.Object) *TiledLayer

WithActions sets a dictionary containing layer actions.

func (*TiledLayer) WithAllowsEdgeAntialiasing added in v0.17.0

func (tl *TiledLayer) WithAllowsEdgeAntialiasing(allowsEdgeAntialiasing bool) *TiledLayer

WithAllowsEdgeAntialiasing sets a Boolean indicating whether the layer is allowed to perform edge antialiasing.

func (*TiledLayer) WithAllowsGroupOpacity added in v0.17.0

func (tl *TiledLayer) WithAllowsGroupOpacity(allowsGroupOpacity bool) *TiledLayer

WithAllowsGroupOpacity sets a Boolean indicating whether the layer is allowed to composite itself as a group separate from its parent.

func (*TiledLayer) WithAnchorPoint added in v0.17.0

func (tl *TiledLayer) WithAnchorPoint(anchorPoint corefoundation.CGPoint) *TiledLayer

WithAnchorPoint sets defines the anchor point of the layer’s bounds rectangle. Animatable.

func (*TiledLayer) WithAnchorPointZ added in v0.17.0

func (tl *TiledLayer) WithAnchorPointZ(anchorPointZ float64) *TiledLayer

WithAnchorPointZ sets the anchor point for the layer’s position along the z axis. Animatable.

func (*TiledLayer) WithAutoresizingMask added in v0.17.0

func (tl *TiledLayer) WithAutoresizingMask(autoresizingMask AutoresizingMask) *TiledLayer

WithAutoresizingMask sets a bitmask defining how the layer is resized when the bounds of its superlayer changes.

func (*TiledLayer) WithBackgroundColor added in v0.17.0

func (tl *TiledLayer) WithBackgroundColor(backgroundColor coregraphics.CGColorRef) *TiledLayer

WithBackgroundColor sets the background color of the receiver. Animatable.

func (*TiledLayer) WithBorderColor added in v0.17.0

func (tl *TiledLayer) WithBorderColor(borderColor coregraphics.CGColorRef) *TiledLayer

WithBorderColor sets the color of the layer’s border. Animatable.

func (*TiledLayer) WithBorderWidth added in v0.17.0

func (tl *TiledLayer) WithBorderWidth(borderWidth float64) *TiledLayer

WithBorderWidth sets the width of the layer’s border. Animatable.

func (*TiledLayer) WithBounds added in v0.17.0

func (tl *TiledLayer) WithBounds(bounds corefoundation.CGRect) *TiledLayer

WithBounds sets the layer’s bounds rectangle. Animatable.

func (*TiledLayer) WithCompositingFilter added in v0.17.0

func (tl *TiledLayer) WithCompositingFilter(compositingFilter obj.Object) *TiledLayer

WithCompositingFilter sets a CoreImage filter used to composite the layer and the content behind it. Animatable.

func (*TiledLayer) WithConstraints added in v0.17.0

func (tl *TiledLayer) WithConstraints(items ...*Constraint) *TiledLayer

WithConstraints sets the constraints used to position current layer’s sublayers.

func (*TiledLayer) WithContents added in v0.17.0

func (tl *TiledLayer) WithContents(contents obj.Object) *TiledLayer

WithContents sets an object that provides the contents of the layer. Animatable.

func (*TiledLayer) WithContentsCenter added in v0.17.0

func (tl *TiledLayer) WithContentsCenter(contentsCenter corefoundation.CGRect) *TiledLayer

WithContentsCenter sets the rectangle that defines how the layer contents are scaled if the layer’s contents are resized. Animatable.

func (*TiledLayer) WithContentsFormat added in v0.17.0

func (tl *TiledLayer) WithContentsFormat(contentsFormat obj.Object) *TiledLayer

WithContentsFormat sets a hint for the desired storage format of the layer contents.

func (*TiledLayer) WithContentsGravity added in v0.17.0

func (tl *TiledLayer) WithContentsGravity(contentsGravity obj.Object) *TiledLayer

WithContentsGravity sets a constant that specifies how the layer’s contents are positioned or scaled within its bounds.

func (*TiledLayer) WithContentsHeadroom added in v0.17.0

func (tl *TiledLayer) WithContentsHeadroom(contentsHeadroom float64) *TiledLayer

WithContentsHeadroom sets the contents headroom.

func (*TiledLayer) WithContentsRect added in v0.17.0

func (tl *TiledLayer) WithContentsRect(contentsRect corefoundation.CGRect) *TiledLayer

WithContentsRect sets the rectangle, in the unit coordinate space, that defines the portion of the layer’s contents that should be used. Animatable.

func (*TiledLayer) WithContentsScale added in v0.17.0

func (tl *TiledLayer) WithContentsScale(contentsScale float64) *TiledLayer

WithContentsScale sets the scale factor applied to the layer.

func (*TiledLayer) WithCornerCurve added in v0.17.0

func (tl *TiledLayer) WithCornerCurve(cornerCurve obj.Object) *TiledLayer

WithCornerCurve sets the corner curve.

func (*TiledLayer) WithCornerRadius added in v0.17.0

func (tl *TiledLayer) WithCornerRadius(cornerRadius float64) *TiledLayer

WithCornerRadius sets the radius to use when drawing rounded corners for the layer’s background. Animatable.

func (*TiledLayer) WithDelegate added in v0.17.0

func (tl *TiledLayer) WithDelegate(delegate LayerDelegate) *TiledLayer

WithDelegate sets the layer’s delegate object.

func (*TiledLayer) WithDoubleSided added in v0.17.0

func (tl *TiledLayer) WithDoubleSided(doubleSided bool) *TiledLayer

WithDoubleSided sets a Boolean indicating whether the layer displays its content when facing away from the viewer. Animatable.

func (*TiledLayer) WithDrawsAsynchronously added in v0.17.0

func (tl *TiledLayer) WithDrawsAsynchronously(drawsAsynchronously bool) *TiledLayer

WithDrawsAsynchronously sets a Boolean indicating whether drawing commands are deferred and processed asynchronously in a background thread.

func (*TiledLayer) WithEdgeAntialiasingMask added in v0.17.0

func (tl *TiledLayer) WithEdgeAntialiasingMask(edgeAntialiasingMask EdgeAntialiasingMask) *TiledLayer

WithEdgeAntialiasingMask sets a bitmask defining how the edges of the receiver are rasterized.

func (*TiledLayer) WithFrame added in v0.17.0

func (tl *TiledLayer) WithFrame(frame corefoundation.CGRect) *TiledLayer

WithFrame sets the layer’s frame rectangle.

func (*TiledLayer) WithGeometryFlipped added in v0.17.0

func (tl *TiledLayer) WithGeometryFlipped(geometryFlipped bool) *TiledLayer

WithGeometryFlipped sets a Boolean that indicates whether the geometry of the layer and its sublayers is flipped vertically.

func (*TiledLayer) WithHidden added in v0.17.0

func (tl *TiledLayer) WithHidden(hidden bool) *TiledLayer

WithHidden sets a Boolean indicating whether the layer is displayed. Animatable.

func (*TiledLayer) WithLevelsOfDetail added in v0.17.0

func (tl *TiledLayer) WithLevelsOfDetail(levelsOfDetail int) *TiledLayer

WithLevelsOfDetail sets the number of levels of detail maintained by this layer.

func (*TiledLayer) WithLevelsOfDetailBias added in v0.17.0

func (tl *TiledLayer) WithLevelsOfDetailBias(levelsOfDetailBias int) *TiledLayer

WithLevelsOfDetailBias sets the number of magnified levels of detail for this layer.

func (*TiledLayer) WithMagnificationFilter added in v0.17.0

func (tl *TiledLayer) WithMagnificationFilter(magnificationFilter obj.Object) *TiledLayer

WithMagnificationFilter sets the filter used when increasing the size of the content.

func (*TiledLayer) WithMask added in v0.17.0

func (tl *TiledLayer) WithMask(mask LayerProvider) *TiledLayer

WithMask sets an optional layer whose alpha channel is used to mask the layer’s content.

func (*TiledLayer) WithMaskedCorners added in v0.17.0

func (tl *TiledLayer) WithMaskedCorners(maskedCorners CornerMask) *TiledLayer

WithMaskedCorners sets the masked corners.

func (*TiledLayer) WithMasksToBounds added in v0.17.0

func (tl *TiledLayer) WithMasksToBounds(masksToBounds bool) *TiledLayer

WithMasksToBounds sets a Boolean indicating whether sublayers are clipped to the layer’s bounds. Animatable.

func (*TiledLayer) WithMinificationFilter added in v0.17.0

func (tl *TiledLayer) WithMinificationFilter(minificationFilter obj.Object) *TiledLayer

WithMinificationFilter sets the filter used when reducing the size of the content.

func (*TiledLayer) WithMinificationFilterBias added in v0.17.0

func (tl *TiledLayer) WithMinificationFilterBias(minificationFilterBias float32) *TiledLayer

WithMinificationFilterBias sets the bias factor used by the minification filter to determine the levels of detail.

func (*TiledLayer) WithName added in v0.17.0

func (tl *TiledLayer) WithName(name string) *TiledLayer

WithName sets the name of the receiver.

func (*TiledLayer) WithNeedsDisplayOnBoundsChange added in v0.17.0

func (tl *TiledLayer) WithNeedsDisplayOnBoundsChange(needsDisplayOnBoundsChange bool) *TiledLayer

WithNeedsDisplayOnBoundsChange sets a Boolean indicating whether the layer contents must be updated when its bounds rectangle changes.

func (*TiledLayer) WithOpacity added in v0.17.0

func (tl *TiledLayer) WithOpacity(opacity float32) *TiledLayer

WithOpacity sets the opacity of the receiver. Animatable.

func (*TiledLayer) WithOpaque added in v0.17.0

func (tl *TiledLayer) WithOpaque(opaque bool) *TiledLayer

WithOpaque sets a Boolean value indicating whether the layer contains completely opaque content.

func (*TiledLayer) WithPosition added in v0.17.0

func (tl *TiledLayer) WithPosition(position corefoundation.CGPoint) *TiledLayer

WithPosition sets the layer’s position in its superlayer’s coordinate space. Animatable.

func (*TiledLayer) WithPreferredDynamicRange added in v0.17.0

func (tl *TiledLayer) WithPreferredDynamicRange(preferredDynamicRange obj.Object) *TiledLayer

WithPreferredDynamicRange sets the preferred dynamic range.

func (*TiledLayer) WithRasterizationScale added in v0.17.0

func (tl *TiledLayer) WithRasterizationScale(rasterizationScale float64) *TiledLayer

WithRasterizationScale sets the scale at which to rasterize content, relative to the coordinate space of the layer. Animatable

func (*TiledLayer) WithShadowColor added in v0.17.0

func (tl *TiledLayer) WithShadowColor(shadowColor coregraphics.CGColorRef) *TiledLayer

WithShadowColor sets the color of the layer’s shadow. Animatable.

func (*TiledLayer) WithShadowOffset added in v0.17.0

func (tl *TiledLayer) WithShadowOffset(shadowOffset corefoundation.CGSize) *TiledLayer

WithShadowOffset sets the offset (in points) of the layer’s shadow. Animatable.

func (*TiledLayer) WithShadowOpacity added in v0.17.0

func (tl *TiledLayer) WithShadowOpacity(shadowOpacity float32) *TiledLayer

WithShadowOpacity sets the opacity of the layer’s shadow. Animatable.

func (*TiledLayer) WithShadowPath added in v0.17.0

func (tl *TiledLayer) WithShadowPath(shadowPath coregraphics.CGPathRef) *TiledLayer

WithShadowPath sets the shape of the layer’s shadow. Animatable.

func (*TiledLayer) WithShadowRadius added in v0.17.0

func (tl *TiledLayer) WithShadowRadius(shadowRadius float64) *TiledLayer

WithShadowRadius sets the blur radius (in points) used to render the layer’s shadow. Animatable.

func (*TiledLayer) WithShouldRasterize added in v0.17.0

func (tl *TiledLayer) WithShouldRasterize(shouldRasterize bool) *TiledLayer

WithShouldRasterize sets a Boolean that indicates whether the layer is rendered as a bitmap before compositing. Animatable

func (*TiledLayer) WithStyle added in v0.17.0

func (tl *TiledLayer) WithStyle(style obj.Object) *TiledLayer

WithStyle sets an optional dictionary used to store property values that aren’t explicitly defined by the layer.

func (*TiledLayer) WithSublayerTransform added in v0.18.1

func (tl *TiledLayer) WithSublayerTransform(sublayerTransform CATransform3D) *TiledLayer

WithSublayerTransform sets specifies the transform to apply to sublayers when rendering. Animatable.

func (*TiledLayer) WithSublayers added in v0.17.0

func (tl *TiledLayer) WithSublayers(items ...LayerProvider) *TiledLayer

WithSublayers sets an array containing the layer’s sublayers.

func (*TiledLayer) WithTileSize added in v0.17.0

func (tl *TiledLayer) WithTileSize(tileSize corefoundation.CGSize) *TiledLayer

WithTileSize sets the maximum size of each tile used to create the layer’s content.

func (*TiledLayer) WithToneMapMode added in v0.17.0

func (tl *TiledLayer) WithToneMapMode(toneMapMode obj.Object) *TiledLayer

WithToneMapMode sets the tone map mode.

func (*TiledLayer) WithTransform added in v0.18.1

func (tl *TiledLayer) WithTransform(transform CATransform3D) *TiledLayer

WithTransform sets the transform applied to the layer’s contents. Animatable.

func (*TiledLayer) WithWantsExtendedDynamicRangeContent added in v0.17.0

func (tl *TiledLayer) WithWantsExtendedDynamicRangeContent(wantsExtendedDynamicRangeContent bool) *TiledLayer

WithWantsExtendedDynamicRangeContent sets the wants extended dynamic range content.

func (*TiledLayer) WithZPosition added in v0.17.0

func (tl *TiledLayer) WithZPosition(zPosition float64) *TiledLayer

WithZPosition sets the layer’s position on the z axis. Animatable.

type Transaction added in v0.17.0

type Transaction struct {
	objref.Handle
}

Transaction is an idiomatic wrapper over the Objective-C class CATransaction.

A mechanism for grouping multiple layer-tree operations into atomic updates to the render tree.

func NewTransaction added in v0.17.0

func NewTransaction() *Transaction

NewTransaction creates a new Transaction.

func TransactionFromID added in v0.17.0

func TransactionFromID(id objc.ID) *Transaction

TransactionFromID adopts an existing Objective-C object as a Transaction (nil for 0), retaining it and registering a release finalizer.

func (*Transaction) Description added in v0.17.0

func (t *Transaction) Description() string

Description returns the object's -description text.

func (*Transaction) IsEqual added in v0.17.0

func (t *Transaction) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Transaction) IsKind added in v0.17.0

func (t *Transaction) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Transaction) String added in v0.17.0

func (t *Transaction) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type TransformLayer added in v0.17.0

type TransformLayer struct {
	Layer
}

TransformLayer is an idiomatic wrapper over the Objective-C class CATransformLayer.

It embeds Layer, promoting that type's methods.

Objects used to create true 3D layer hierarchies, rather than the flattened hierarchy rendering model used by other layer types.

func NewTransformLayer added in v0.17.0

func NewTransformLayer() *TransformLayer

NewTransformLayer creates a new TransformLayer.

func TransformLayerFromID added in v0.17.0

func TransformLayerFromID(id objc.ID) *TransformLayer

TransformLayerFromID adopts an existing Objective-C object as a TransformLayer (nil for 0), retaining it and registering a release finalizer.

func (*TransformLayer) WithActions added in v0.17.0

func (tl *TransformLayer) WithActions(actions map[string]obj.Object) *TransformLayer

WithActions sets a dictionary containing layer actions.

func (*TransformLayer) WithAllowsEdgeAntialiasing added in v0.17.0

func (tl *TransformLayer) WithAllowsEdgeAntialiasing(allowsEdgeAntialiasing bool) *TransformLayer

WithAllowsEdgeAntialiasing sets a Boolean indicating whether the layer is allowed to perform edge antialiasing.

func (*TransformLayer) WithAllowsGroupOpacity added in v0.17.0

func (tl *TransformLayer) WithAllowsGroupOpacity(allowsGroupOpacity bool) *TransformLayer

WithAllowsGroupOpacity sets a Boolean indicating whether the layer is allowed to composite itself as a group separate from its parent.

func (*TransformLayer) WithAnchorPoint added in v0.17.0

func (tl *TransformLayer) WithAnchorPoint(anchorPoint corefoundation.CGPoint) *TransformLayer

WithAnchorPoint sets defines the anchor point of the layer’s bounds rectangle. Animatable.

func (*TransformLayer) WithAnchorPointZ added in v0.17.0

func (tl *TransformLayer) WithAnchorPointZ(anchorPointZ float64) *TransformLayer

WithAnchorPointZ sets the anchor point for the layer’s position along the z axis. Animatable.

func (*TransformLayer) WithAutoresizingMask added in v0.17.0

func (tl *TransformLayer) WithAutoresizingMask(autoresizingMask AutoresizingMask) *TransformLayer

WithAutoresizingMask sets a bitmask defining how the layer is resized when the bounds of its superlayer changes.

func (*TransformLayer) WithBackgroundColor added in v0.17.0

func (tl *TransformLayer) WithBackgroundColor(backgroundColor coregraphics.CGColorRef) *TransformLayer

WithBackgroundColor sets the background color of the receiver. Animatable.

func (*TransformLayer) WithBorderColor added in v0.17.0

func (tl *TransformLayer) WithBorderColor(borderColor coregraphics.CGColorRef) *TransformLayer

WithBorderColor sets the color of the layer’s border. Animatable.

func (*TransformLayer) WithBorderWidth added in v0.17.0

func (tl *TransformLayer) WithBorderWidth(borderWidth float64) *TransformLayer

WithBorderWidth sets the width of the layer’s border. Animatable.

func (*TransformLayer) WithBounds added in v0.17.0

func (tl *TransformLayer) WithBounds(bounds corefoundation.CGRect) *TransformLayer

WithBounds sets the layer’s bounds rectangle. Animatable.

func (*TransformLayer) WithCompositingFilter added in v0.17.0

func (tl *TransformLayer) WithCompositingFilter(compositingFilter obj.Object) *TransformLayer

WithCompositingFilter sets a CoreImage filter used to composite the layer and the content behind it. Animatable.

func (*TransformLayer) WithConstraints added in v0.17.0

func (tl *TransformLayer) WithConstraints(items ...*Constraint) *TransformLayer

WithConstraints sets the constraints used to position current layer’s sublayers.

func (*TransformLayer) WithContents added in v0.17.0

func (tl *TransformLayer) WithContents(contents obj.Object) *TransformLayer

WithContents sets an object that provides the contents of the layer. Animatable.

func (*TransformLayer) WithContentsCenter added in v0.17.0

func (tl *TransformLayer) WithContentsCenter(contentsCenter corefoundation.CGRect) *TransformLayer

WithContentsCenter sets the rectangle that defines how the layer contents are scaled if the layer’s contents are resized. Animatable.

func (*TransformLayer) WithContentsFormat added in v0.17.0

func (tl *TransformLayer) WithContentsFormat(contentsFormat obj.Object) *TransformLayer

WithContentsFormat sets a hint for the desired storage format of the layer contents.

func (*TransformLayer) WithContentsGravity added in v0.17.0

func (tl *TransformLayer) WithContentsGravity(contentsGravity obj.Object) *TransformLayer

WithContentsGravity sets a constant that specifies how the layer’s contents are positioned or scaled within its bounds.

func (*TransformLayer) WithContentsHeadroom added in v0.17.0

func (tl *TransformLayer) WithContentsHeadroom(contentsHeadroom float64) *TransformLayer

WithContentsHeadroom sets the contents headroom.

func (*TransformLayer) WithContentsRect added in v0.17.0

func (tl *TransformLayer) WithContentsRect(contentsRect corefoundation.CGRect) *TransformLayer

WithContentsRect sets the rectangle, in the unit coordinate space, that defines the portion of the layer’s contents that should be used. Animatable.

func (*TransformLayer) WithContentsScale added in v0.17.0

func (tl *TransformLayer) WithContentsScale(contentsScale float64) *TransformLayer

WithContentsScale sets the scale factor applied to the layer.

func (*TransformLayer) WithCornerCurve added in v0.17.0

func (tl *TransformLayer) WithCornerCurve(cornerCurve obj.Object) *TransformLayer

WithCornerCurve sets the corner curve.

func (*TransformLayer) WithCornerRadius added in v0.17.0

func (tl *TransformLayer) WithCornerRadius(cornerRadius float64) *TransformLayer

WithCornerRadius sets the radius to use when drawing rounded corners for the layer’s background. Animatable.

func (*TransformLayer) WithDelegate added in v0.17.0

func (tl *TransformLayer) WithDelegate(delegate LayerDelegate) *TransformLayer

WithDelegate sets the layer’s delegate object.

func (*TransformLayer) WithDoubleSided added in v0.17.0

func (tl *TransformLayer) WithDoubleSided(doubleSided bool) *TransformLayer

WithDoubleSided sets a Boolean indicating whether the layer displays its content when facing away from the viewer. Animatable.

func (*TransformLayer) WithDrawsAsynchronously added in v0.17.0

func (tl *TransformLayer) WithDrawsAsynchronously(drawsAsynchronously bool) *TransformLayer

WithDrawsAsynchronously sets a Boolean indicating whether drawing commands are deferred and processed asynchronously in a background thread.

func (*TransformLayer) WithEdgeAntialiasingMask added in v0.17.0

func (tl *TransformLayer) WithEdgeAntialiasingMask(edgeAntialiasingMask EdgeAntialiasingMask) *TransformLayer

WithEdgeAntialiasingMask sets a bitmask defining how the edges of the receiver are rasterized.

func (*TransformLayer) WithFrame added in v0.17.0

func (tl *TransformLayer) WithFrame(frame corefoundation.CGRect) *TransformLayer

WithFrame sets the layer’s frame rectangle.

func (*TransformLayer) WithGeometryFlipped added in v0.17.0

func (tl *TransformLayer) WithGeometryFlipped(geometryFlipped bool) *TransformLayer

WithGeometryFlipped sets a Boolean that indicates whether the geometry of the layer and its sublayers is flipped vertically.

func (*TransformLayer) WithHidden added in v0.17.0

func (tl *TransformLayer) WithHidden(hidden bool) *TransformLayer

WithHidden sets a Boolean indicating whether the layer is displayed. Animatable.

func (*TransformLayer) WithMagnificationFilter added in v0.17.0

func (tl *TransformLayer) WithMagnificationFilter(magnificationFilter obj.Object) *TransformLayer

WithMagnificationFilter sets the filter used when increasing the size of the content.

func (*TransformLayer) WithMask added in v0.17.0

func (tl *TransformLayer) WithMask(mask LayerProvider) *TransformLayer

WithMask sets an optional layer whose alpha channel is used to mask the layer’s content.

func (*TransformLayer) WithMaskedCorners added in v0.17.0

func (tl *TransformLayer) WithMaskedCorners(maskedCorners CornerMask) *TransformLayer

WithMaskedCorners sets the masked corners.

func (*TransformLayer) WithMasksToBounds added in v0.17.0

func (tl *TransformLayer) WithMasksToBounds(masksToBounds bool) *TransformLayer

WithMasksToBounds sets a Boolean indicating whether sublayers are clipped to the layer’s bounds. Animatable.

func (*TransformLayer) WithMinificationFilter added in v0.17.0

func (tl *TransformLayer) WithMinificationFilter(minificationFilter obj.Object) *TransformLayer

WithMinificationFilter sets the filter used when reducing the size of the content.

func (*TransformLayer) WithMinificationFilterBias added in v0.17.0

func (tl *TransformLayer) WithMinificationFilterBias(minificationFilterBias float32) *TransformLayer

WithMinificationFilterBias sets the bias factor used by the minification filter to determine the levels of detail.

func (*TransformLayer) WithName added in v0.17.0

func (tl *TransformLayer) WithName(name string) *TransformLayer

WithName sets the name of the receiver.

func (*TransformLayer) WithNeedsDisplayOnBoundsChange added in v0.17.0

func (tl *TransformLayer) WithNeedsDisplayOnBoundsChange(needsDisplayOnBoundsChange bool) *TransformLayer

WithNeedsDisplayOnBoundsChange sets a Boolean indicating whether the layer contents must be updated when its bounds rectangle changes.

func (*TransformLayer) WithOpacity added in v0.17.0

func (tl *TransformLayer) WithOpacity(opacity float32) *TransformLayer

WithOpacity sets the opacity of the receiver. Animatable.

func (*TransformLayer) WithOpaque added in v0.17.0

func (tl *TransformLayer) WithOpaque(opaque bool) *TransformLayer

WithOpaque sets a Boolean value indicating whether the layer contains completely opaque content.

func (*TransformLayer) WithPosition added in v0.17.0

func (tl *TransformLayer) WithPosition(position corefoundation.CGPoint) *TransformLayer

WithPosition sets the layer’s position in its superlayer’s coordinate space. Animatable.

func (*TransformLayer) WithPreferredDynamicRange added in v0.17.0

func (tl *TransformLayer) WithPreferredDynamicRange(preferredDynamicRange obj.Object) *TransformLayer

WithPreferredDynamicRange sets the preferred dynamic range.

func (*TransformLayer) WithRasterizationScale added in v0.17.0

func (tl *TransformLayer) WithRasterizationScale(rasterizationScale float64) *TransformLayer

WithRasterizationScale sets the scale at which to rasterize content, relative to the coordinate space of the layer. Animatable

func (*TransformLayer) WithShadowColor added in v0.17.0

func (tl *TransformLayer) WithShadowColor(shadowColor coregraphics.CGColorRef) *TransformLayer

WithShadowColor sets the color of the layer’s shadow. Animatable.

func (*TransformLayer) WithShadowOffset added in v0.17.0

func (tl *TransformLayer) WithShadowOffset(shadowOffset corefoundation.CGSize) *TransformLayer

WithShadowOffset sets the offset (in points) of the layer’s shadow. Animatable.

func (*TransformLayer) WithShadowOpacity added in v0.17.0

func (tl *TransformLayer) WithShadowOpacity(shadowOpacity float32) *TransformLayer

WithShadowOpacity sets the opacity of the layer’s shadow. Animatable.

func (*TransformLayer) WithShadowPath added in v0.17.0

func (tl *TransformLayer) WithShadowPath(shadowPath coregraphics.CGPathRef) *TransformLayer

WithShadowPath sets the shape of the layer’s shadow. Animatable.

func (*TransformLayer) WithShadowRadius added in v0.17.0

func (tl *TransformLayer) WithShadowRadius(shadowRadius float64) *TransformLayer

WithShadowRadius sets the blur radius (in points) used to render the layer’s shadow. Animatable.

func (*TransformLayer) WithShouldRasterize added in v0.17.0

func (tl *TransformLayer) WithShouldRasterize(shouldRasterize bool) *TransformLayer

WithShouldRasterize sets a Boolean that indicates whether the layer is rendered as a bitmap before compositing. Animatable

func (*TransformLayer) WithStyle added in v0.17.0

func (tl *TransformLayer) WithStyle(style obj.Object) *TransformLayer

WithStyle sets an optional dictionary used to store property values that aren’t explicitly defined by the layer.

func (*TransformLayer) WithSublayerTransform added in v0.18.1

func (tl *TransformLayer) WithSublayerTransform(sublayerTransform CATransform3D) *TransformLayer

WithSublayerTransform sets specifies the transform to apply to sublayers when rendering. Animatable.

func (*TransformLayer) WithSublayers added in v0.17.0

func (tl *TransformLayer) WithSublayers(items ...LayerProvider) *TransformLayer

WithSublayers sets an array containing the layer’s sublayers.

func (*TransformLayer) WithToneMapMode added in v0.17.0

func (tl *TransformLayer) WithToneMapMode(toneMapMode obj.Object) *TransformLayer

WithToneMapMode sets the tone map mode.

func (*TransformLayer) WithTransform added in v0.18.1

func (tl *TransformLayer) WithTransform(transform CATransform3D) *TransformLayer

WithTransform sets the transform applied to the layer’s contents. Animatable.

func (*TransformLayer) WithWantsExtendedDynamicRangeContent added in v0.17.0

func (tl *TransformLayer) WithWantsExtendedDynamicRangeContent(wantsExtendedDynamicRangeContent bool) *TransformLayer

WithWantsExtendedDynamicRangeContent sets the wants extended dynamic range content.

func (*TransformLayer) WithZPosition added in v0.17.0

func (tl *TransformLayer) WithZPosition(zPosition float64) *TransformLayer

WithZPosition sets the layer’s position on the z axis. Animatable.

type Transition added in v0.17.0

type Transition struct {
	Animation
}

Transition is an idiomatic wrapper over the Objective-C class CATransition.

It embeds Animation, promoting that type's methods.

An object that provides an animated transition between a layer’s states.

func NewTransition added in v0.17.0

func NewTransition() *Transition

NewTransition creates a new Transition.

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 (*Transition) EndProgress added in v0.17.0

func (t *Transition) EndProgress() float32

EndProgress returns the end progress.

func (*Transition) Filter added in v0.17.0

func (t *Transition) Filter() obj.Object

Filter returns the filter.

func (*Transition) StartProgress added in v0.17.0

func (t *Transition) StartProgress() float32

StartProgress returns the start progress.

func (*Transition) Subtype added in v0.17.0

func (t *Transition) Subtype() *foundation.String

Subtype returns the subtype.

func (*Transition) Type added in v0.17.0

func (t *Transition) Type() *foundation.String

Type returns the type.

func (*Transition) WithDelegate added in v0.17.0

func (t *Transition) WithDelegate(delegate AnimationDelegate) *Transition

WithDelegate sets specifies the receiver’s delegate object.

func (*Transition) WithEndProgress added in v0.17.0

func (t *Transition) WithEndProgress(endProgress float32) *Transition

WithEndProgress sets indicates the end point of the receiver as a fraction of the entire transition.

func (*Transition) WithFilter added in v0.17.0

func (t *Transition) WithFilter(filter obj.Object) *Transition

WithFilter sets an optional Core Image filter object that provides the transition.

func (*Transition) WithPreferredFrameRateRange added in v0.18.1

func (t *Transition) WithPreferredFrameRateRange(preferredFrameRateRange CAFrameRateRange) *Transition

WithPreferredFrameRateRange sets the preferred frame rate range.

func (*Transition) WithRemovedOnCompletion added in v0.17.0

func (t *Transition) WithRemovedOnCompletion(removedOnCompletion bool) *Transition

WithRemovedOnCompletion sets determines if the animation is removed from the target layer’s animations upon completion.

func (*Transition) WithStartProgress added in v0.17.0

func (t *Transition) WithStartProgress(startProgress float32) *Transition

WithStartProgress sets indicates the start point of the receiver as a fraction of the entire transition.

func (*Transition) WithSubtype added in v0.17.0

func (t *Transition) WithSubtype(subtype obj.Object) *Transition

WithSubtype sets specifies an optional subtype that indicates the direction for the predefined motion-based transitions.

func (*Transition) WithTimingFunction added in v0.17.0

func (t *Transition) WithTimingFunction(timingFunction *MediaTimingFunction) *Transition

WithTimingFunction sets an optional timing function defining the pacing of the animation.

func (*Transition) WithType added in v0.17.0

func (t *Transition) WithType(type_ obj.Object) *Transition

WithType sets specifies the predefined transition type.

type Type added in v0.17.0

type Type int32
const (
	TypeExtended Type = 256
	TypeAccess   Type = 0
	TypeDefault  Type = 1
	TypeAfs      Type = 2
	TypeCoda     Type = 3
	TypeNtfs     Type = 4
	TypeNwfs     Type = 5
)

func (Type) String added in v0.17.0

func (e Type) String() string

String returns the Type constant's name, or its numeric form when the value is not a known constant.

type ValueFunction added in v0.17.0

type ValueFunction struct {
	objref.Handle
}

ValueFunction is an idiomatic wrapper over the Objective-C class CAValueFunction.

An object that provides a flexible method of defining animated transformations.

func CAValueFunctionFunctionWithName

func CAValueFunctionFunctionWithName(name obj.Object) *ValueFunction

CAValueFunctionFunctionWithName returns the value function object identified by the name.

func NewValueFunction added in v0.17.0

func NewValueFunction() *ValueFunction

NewValueFunction creates a new ValueFunction.

func ValueFunctionFromID added in v0.17.0

func ValueFunctionFromID(id objc.ID) *ValueFunction

ValueFunctionFromID adopts an existing Objective-C object as a ValueFunction (nil for 0), retaining it and registering a release finalizer.

func (*ValueFunction) Description added in v0.17.0

func (vf *ValueFunction) Description() string

Description returns the object's -description text.

func (*ValueFunction) IsEqual added in v0.17.0

func (vf *ValueFunction) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*ValueFunction) IsKind added in v0.17.0

func (vf *ValueFunction) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*ValueFunction) Name added in v0.17.0

func (vf *ValueFunction) Name() *foundation.String

Name returns the name.

func (*ValueFunction) String added in v0.17.0

func (vf *ValueFunction) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

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

String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL