Crate polyhorn_ios

Crate polyhorn_ios 

Source
Expand description

This crate implements Polyhorn for iOS.

Re-exports§

pub use raw::Component;

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
Receiver
Reference
Sender
State

Traits§

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 Aliases§

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.