MCPcopy Create free account
hub / github.com/algoscienceacademy/RustUI / new

Method new

src/renderer/default.rs:15–21  ·  view source on GitHub ↗
(window: &Window)

Source from the content-addressed store, hash-verified

13
14impl DefaultRenderer {
15 pub fn new(window: &Window) -> Self {
16 Self {
17 window: window.clone(),
18 frame_count: 0,
19 transform: Point::default(),
20 }
21 }
22
23 pub fn present(&mut self) {
24 // Implementation for presenting the frame

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected