[][src]Crate polyhorn_ios

This crate implements Polyhorn for iOS.

Modules

assets

Static-typed assets that correspond to files in the assets/ folder of a Polyhorn package.

color

Technical implementation of a subset of CSS Color Module Level 4 (WD).

components

iOS implementations for Polyhorn UI components.

font

Technical implementation of a subset of CSS Fonts Module Level 4 (WD).

geometry

Primitives to work with concrete geometry.

handles

Implementations of Polyhorn UI handles that can be used to run imperative code against components.

hooks

Re-exports of hooks provided by Polyhorn Core and Polyhorn UI.

layout

Primitives to work with layout and opaque geometry.

linalg

A bunch of linear algebra that is shared between platform implementations and used to compute and interpolate 3D transforms.

prelude

This is the Polyhorn for iOS prelude. It includes every type and function of Polyhorn UI with the exception that it defines its own Component, Element and Manager that are specialized for the iOS platform.

raw

Internal APIs used by Polyhorn for iOS.

styles

Styles for each reactive component.

Macros

render

Calls polyhorn_ui::macros::render::render_impl with a token stream that we obtain from the Rust compiler.

Structs

Context
ContextProvider
Key

Key is a dynamically typed wrapper around any type that implements Any + Eq + Hash (note that Any implies 'static). Key acts as a transparent wrapper for these traits, where Eq and PartialEq in particular perform dynamic type checks before determining value equality.

Receiver
Reference
Sender
State

Traits

Component

Platform-specific component trait.

Link

Functions

render

This is the entry point of Polyhorn. This function renders an element into the given container. The returned instance must be retained. Once the returned is dropped, all UI will be unmounted.

Type Definitions

Element

Polyhorn core element type that is specialized for the iOS platform.

Instance

Polyhorn core instance type that is specialized for the iOS platform.

Manager

Polyhorn core manager type that is specialized for the iOS platform.

Weak

Polyhorn core weak type that is specialized for the iOS platform.

WeakLink

Polyhorn core weak link type that is specialized for the iOS platform.

WeakReference

Polyhorn core weak reference type that is specialized for the iOS platform.

WeakState

Polyhorn core weak state type that is specialized for the iOS platform.

Attribute Macros

test

Calls polyhorn_ui::macros::test::test_impl with a token stream that we obtain from the Rust compiler.