Rename overlay::Content trait to Overlay

The `Overlay` struct is now `overlay::Element`.
This commit is contained in:
Héctor Ramón Jiménez 2020-07-10 01:31:56 +02:00
parent ce8cb228ef
commit 1070b61f34
12 changed files with 186 additions and 184 deletions

View file

@ -1,7 +1,7 @@
//! Navigate an endless amount of content with a scrollbar.
use crate::{
column, layout, mouse, Align, Clipboard, Column, Element, Event, Hasher,
Layout, Length, Overlay, Point, Rectangle, Size, Vector, Widget,
column, layout, mouse, overlay, Align, Clipboard, Column, Element, Event,
Hasher, Layout, Length, Point, Rectangle, Size, Vector, Widget,
};
use std::{f32, hash::Hash, u32};
@ -319,7 +319,7 @@ where
fn overlay(
&mut self,
layout: Layout<'_>,
) -> Option<Overlay<'_, Message, Renderer>> {
) -> Option<overlay::Element<'_, Message, Renderer>> {
let Self { content, state, .. } = self;
content