error[E0433]: failed to resolve: use of undeclared type or module `LayoutRect`
--> imagine/src/systems/render_system.rs:32:26
|
32 | let bounds = LayoutRect::new(LayoutPoint::zero(), builder.content_size());
| ^^^^^^^^^^ use of undeclared type or module `LayoutRect`
error[E0433]: failed to resolve: use of undeclared type or module `LayoutPoint`
--> imagine/src/systems/render_system.rs:32:42
|
32 | let bounds = LayoutRect::new(LayoutPoint::zero(), builder.content_size());
| ^^^^^^^^^^^ use of undeclared type or module `LayoutPoint`
error[E0433]: failed to resolve: use of undeclared type or module `LayoutPrimitiveInfo`
--> imagine/src/systems/render_system.rs:34:24
|
34 | let info = LayoutPrimitiveInfo::new(bounds);
| ^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `LayoutPrimitiveInfo`
error[E0433]: failed to resolve: use of undeclared type or module `LayoutPoint`
--> imagine/src/text.rs:32:28
|
32 | point: LayoutPoint::new(position.x, position.y),
| ^^^^^^^^^^^ use of undeclared type or module `LayoutPoint`
error[E0433]: failed to resolve: use of undeclared type or module `LayoutPoint`
--> imagine/src/text.rs:56:24
|
56 | point: LayoutPoint::new(glyph.point.x + origin.x, glyph.point.y + origin.y),
| ^^^^^^^^^^^ use of undeclared type or module `LayoutPoint`
error[E0433]: failed to resolve: use of undeclared type or module `LayoutSize`
--> imagine/src/lib.rs:109:34
|
109 | layout_size: LayoutSize::zero(),
| ^^^^^^^^^^ use of undeclared type or module `LayoutSize`
error[E0433]: failed to resolve: use of undeclared type or module `DeviceIntSize`
--> imagine/src/lib.rs:178:21
|
178 | DeviceIntSize::new(size.width as i32, size.height as i32)
| ^^^^^^^^^^^^^ use of undeclared type or module `DeviceIntSize`
error[E0433]: failed to resolve: could not find `TypedScale` in `euclid`
--> imagine/src/lib.rs:182:57
|
182 | framebuffer_size.to_f32() / euclid::TypedScale::new(hidpi_factor as f32);
| ^^^^^^^^^^ could not find `TypedScale` in `euclid`
error[E0433]: failed to resolve: use of undeclared type or module `DeviceIntSize`
--> imagine/src/lib.rs:220:21
|
220 | DeviceIntSize::new(size.width as i32, size.height as i32)
| ^^^^^^^^^^^^^ use of undeclared type or module `DeviceIntSize`
error[E0433]: failed to resolve: use of undeclared type or module `DeviceIntSize`
--> imagine/src/lib.rs:340:13
|
340 | DeviceIntSize::new(size.width as i32, size.height as i32)
| ^^^^^^^^^^^^^ use of undeclared type or module `DeviceIntSize`
error[E0433]: failed to resolve: use of undeclared type or module `DeviceIntSize`
--> imagine/src/lib.rs:405:21
|
405 | DeviceIntSize::new(size.width as i32, size.height as i32)
| ^^^^^^^^^^^^^ use of undeclared type or module `DeviceIntSize`
error[E0433]: failed to resolve: use of undeclared type or module `DeviceIntRect`
--> imagine/src/lib.rs:411:21
|
411 | DeviceIntRect::new(DeviceIntPoint::zero(), framebuffer_size),
| ^^^^^^^^^^^^^ use of undeclared type or module `DeviceIntRect`
error[E0433]: failed to resolve: use of undeclared type or module `DeviceIntPoint`
--> imagine/src/lib.rs:411:40
|
411 | DeviceIntRect::new(DeviceIntPoint::zero(), framebuffer_size),
| ^^^^^^^^^^^^^^ use of undeclared type or module `DeviceIntPoint`
error[E0433]: failed to resolve: use of undeclared type or module `WorldPoint`
--> imagine/src/lib.rs:433:38
|
433 | let world_position = WorldPoint::new(position.x as f32, position.y as f32);
| ^^^^^^^^^^ use of undeclared type or module `WorldPoint`
error[E0412]: cannot find type `LayoutPrimitiveInfo` in this scope
--> imagine/src/text.rs:46:16
|
46 | info: &LayoutPrimitiveInfo,
| ^^^^^^^^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `LayoutPoint` in this scope
--> imagine/src/text.rs:47:17
|
47 | origin: LayoutPoint,
| ^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `LayoutSize` in this scope
--> imagine/src/lib.rs:181:34
|
181 | let layout_size: LayoutSize =
| ^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `LayoutSize` in this scope
--> imagine/src/lib.rs:262:18
|
262 | layout_size: LayoutSize,
| ^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `LayoutSize` in this scope
--> imagine/src/lib.rs:273:34
|
273 | pub fn layout_size(&self) -> LayoutSize {
| ^^^^^^^^^^ not found in this scope
warning: trait objects without an explicit `dyn` are deprecated
--> imagine/src/widget.rs:47:19
|
47 | type Target = Widget;
| ^^^^^^ help: use `dyn`: `dyn Widget`
|
= note: `#[warn(bare_trait_objects)]` on by default
warning: trait objects without an explicit `dyn` are deprecated
--> imagine/src/lib.rs:537:28
|
537 | fn clone(&self) -> Box<RenderNotifier> {
| ^^^^^^^^^^^^^^ help: use `dyn`: `dyn RenderNotifier`
error[E0061]: this function takes 5 arguments but 4 arguments were supplied
--> imagine/src/lib.rs:344:13
|
344 | webrender::Renderer::new(gl.clone(), notifier, opts, None).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^ ---------- -------- ---- ---- supplied 4 arguments
| |
| expected 5 arguments
error[E0599]: no method named `set_window_parameters` found for struct `webrender_api::api::RenderApi` in the current scope
--> imagine/src/lib.rs:408:26
|
408 | self.api.set_window_parameters(
| ^^^^^^^^^^^^^^^^^^^^^ method not found in `webrender_api::api::RenderApi`
error[E0599]: no method named `toggle_debug_flags` found for struct `webrender::renderer::Renderer` in the current scope
--> imagine/src/lib.rs:426:22
|
426 | .toggle_debug_flags(webrender::DebugFlags::PROFILER_DBG);
| ^^^^^^^^^^^^^^^^^^ help: there is an associated function with a similar name: `get_debug_flags`
error[E0061]: this function takes 12 arguments but 6 arguments were supplied
--> imagine/src/systems/render_system.rs:36:21
|
36 | builder.push_stacking_context(
| ^^^^^^^^^^^^^^^^^^^^^ expected 12 arguments
37 | &info,
| -----
38 | None,
| ----
39 | TransformStyle::Flat,
| --------------------
40 | MixBlendMode::Normal,
| --------------------
41 | &[],
| ---
42 | RasterSpace::Screen,
| ------------------- supplied 6 arguments
error[E0061]: this function takes 6 arguments but 5 arguments were supplied
--> imagine/src/text.rs:59:17
|
59 | builder.push_text(info, &glyphs, font_instance_key, ColorF::BLACK, None);
| ^^^^^^^^^ ---- ------- ----------------- ------------- ---- supplied 5 arguments
| |
| expected 6 arguments
error: aborting due to 24 previous errors
Some errors have detailed explanations: E0061, E0412, E0433, E0599.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `imagine`.