[][src]Module polyhorn_ios::raw

Internal APIs used by Polyhorn for iOS.

Structs

AnimationHandle

Concrete implementation of a handle that controls the animation of a UIView or a related class.

Animator

Concrete implementation of an animator that animates UIViews and related classes.

CommandBuffer

Concrete implementation of a command buffer that can buffer commands before committing them to the compositor.

Compositor

Concrete implementation of a compositor that is responsible for adding and removing native views from the native view hierarchy based on the virtual representation within Polyhorn.

ContainerID

An opaque ID for containers that can be shared between threads.

Environment

Opaque type that wraps the shared layout tree.

OpaqueComponent

Opaque reference counted wrapper around a component.

OpaqueContainer

Opaque wrapper around a container with two optional layouts attached. If both are given, the first refers to the container's layout itself, whereas the second refers to the container's content layout. These can be different when working with scroll views for example, which are essentially treated as two adjacent nodes in the layout tree.

QueueBound

Wraps an object that is bound to a specific libdispatch DispatchQueue. As a result, the wrapped object can only be accessed from the specified queue and will always be dropped from that queue (regardless of which thread the wrapper is dropped by).

Enums

Builtin

Defines one of the native views that bridge Polyhorn with iOS's UIKit.

Platform

Non-constructable type that implements the platform trait for iOS.

Traits

Apply

This trait is implemented for every style that can be applied to an instance of UIView.

Component

Platform-specific component trait.

Container

Concrete implementation of a iOS-specific container.

Convert

Implemented by Polyhorn types that can be trivially converted into native Objective-C types.

Functions

attributed_string

Generates a new NSAttributedString for the given text with the given text style.