Expand description
Cotis context and interactivity trait implementations for crate::renderer::CotisWgpuRenderer.
These impls connect the renderer to the Cotis application framework. They are defined here
rather than in crate::renderer to keep the renderer module focused on GPU/window logic.
| Trait | Behavior |
|---|---|
cotis_utils::traits::CotisWindowContext | Returns physical window dimensions in pixels from winit inner_size. |
cotis_utils::traits::CotisFrameContext | Returns elapsed time since the previous frame. |
cotis_utils::traits::CotisRenderContext | Provided automatically via blanket impl when window and frame contexts are implemented. |
cotis_utils::text::RendererTextMeasuringProvider | Glyphon measurement with DPI-scaled font metrics. font_id is ignored; always uses Family::SansSerif. |
cotis_utils::interactivity::mouse::MouseProvider | Reads cursor position, button state, and scroll delta from crate::input::InputSnapshot. |
cotis_utils::interactivity::keyboard::SimpleKeyboardProvider | Reads pressed keys from crate::input::InputSnapshot. |
cotis_utils::interactivity::keyboard::SimpleTextProvider | Reads IME/preedit characters from crate::input::InputSnapshot. |