Rename Layer to overlay::Content

This commit is contained in:
Héctor Ramón Jiménez 2020-05-23 01:07:59 +02:00
parent a264236624
commit 0ff5a02550
9 changed files with 41 additions and 40 deletions

View file

@ -1,6 +1,4 @@
//! Organize rendering primitives into a flattened list of layers.
mod menu;
use crate::image;
use crate::svg;
use crate::triangle;

View file

@ -9,6 +9,7 @@
#![forbid(rust_2018_idioms)]
#![cfg_attr(docsrs, feature(doc_cfg))]
mod antialiasing;
mod overlay;
mod primitive;
mod renderer;
mod transformation;

1
graphics/src/overlay.rs Normal file
View file

@ -0,0 +1 @@
mod menu;

View file

@ -1,11 +1,11 @@
use crate::backend::Backend;
use crate::{Primitive, Renderer};
use iced_native::{
layer, mouse, Background, Color, Font, HorizontalAlignment, Point,
mouse, overlay, Background, Color, Font, HorizontalAlignment, Point,
Rectangle, VerticalAlignment,
};
impl<B> layer::menu::Renderer for Renderer<B>
impl<B> overlay::menu::Renderer for Renderer<B>
where
B: Backend,
{