[−][src]Trait polyhorn_core::Platform
This is a platform that needs to be implemented by every render host.
Associated Types
type ContainerID: Copy + Eq + Hash + Send
[src]
This is a virtual container that renders a built-in. These containers
should be thread-safe (e.g. Send + Sync
).
type Container: Container<Self>
[src]
This is a native container that renders a built-in. For example, this can be an UIView or a div. Native containers are usually not thread-safe and reside only on the main thread.
type Component: Component<Self>
[src]
type Compositor: Compositor<Self>
[src]
type CommandBuffer: CommandBuffer<Self>
[src]
type Environment
[src]
Required methods
pub fn with_compositor<F>(container: Self::Container, task: F) -> Disposable where
F: FnOnce(Self::ContainerID, Self::Compositor, EventLoop) -> Disposable + Send + 'static,
[src]
F: FnOnce(Self::ContainerID, Self::Compositor, EventLoop) -> Disposable + Send + 'static,