[−][src]Crate polyhorn_ui
This crate contains the types and implementations that are shared between all platforms that are capable of presenting a graphical user interface.
Modules
animation | Types and traits for working with animations. |
assets | Static-typed assets that correspond to files in the |
color | Technical implementation of a subset of CSS Color Module Level 4 (WD). |
components | Built-in components that must be implemented by every Polyhorn platform that renders to a graphical user interface. |
events | Technical implementation of Pointer Events Module Level 3 (WD). |
font | Technical implementation of a subset of CSS Fonts Module Level 4 (WD). |
geometry | Primitives to work with concrete geometry. |
handles | Imperative handles to reactive components. |
hooks | Macros, types and traits that implement UI-related hooks for Polyhorn. |
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. |
physics | Primitives for a few physics-based types (velocity, angles). |
prelude | This is the shared Polyhorn UI prelude. |
queries | Queries form a uniform interface to access properties of a resource. These traits are implemented by the concrete asset types (e.g. FontAsset and ImageAsset) and can be implemented by any other type that can also answer these queries. |
styles | Styles for each reactive component. |
Macros
use_safe_area_insets | Hook that returns the safe area insets of a view. |