Don't glob-include eveything in mod layers
This commit is contained in:
parent
4203944892
commit
421e8bc91e
4 changed files with 6 additions and 5 deletions
|
@ -8,6 +8,7 @@ use std::sync::{
|
|||
use crate::{
|
||||
animation_manager::AnimationManager,
|
||||
data::output::Output,
|
||||
layers::GraphicLayers,
|
||||
mutex::{Mutex, MutexGuard},
|
||||
paint::{stats::*, text::Fonts, *},
|
||||
*,
|
||||
|
|
|
@ -86,7 +86,7 @@ pub(crate) mod grid;
|
|||
mod id;
|
||||
mod input_state;
|
||||
mod introspection;
|
||||
mod layers;
|
||||
pub mod layers;
|
||||
mod layout;
|
||||
mod memory;
|
||||
pub mod menu;
|
||||
|
@ -118,7 +118,7 @@ pub use {
|
|||
grid::Grid,
|
||||
id::Id,
|
||||
input_state::*,
|
||||
layers::*,
|
||||
layers::{LayerId, Order},
|
||||
layout::*,
|
||||
memory::Memory,
|
||||
painter::Painter,
|
||||
|
|
|
@ -380,7 +380,7 @@ impl Areas {
|
|||
pub(crate) fn visible_windows(&self) -> Vec<&area::State> {
|
||||
self.visible_layer_ids()
|
||||
.iter()
|
||||
.filter(|layer| layer.order == crate::layers::Order::Middle)
|
||||
.filter(|layer| layer.order == crate::Order::Middle)
|
||||
.filter_map(|layer| self.get(layer.id))
|
||||
.collect()
|
||||
}
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
use crate::{
|
||||
layers::ShapeIdx,
|
||||
layers::{LayerId, ShapeIdx},
|
||||
math::{Align2, Pos2, Rect, Vec2},
|
||||
paint::{
|
||||
text::{Fonts, Galley, TextStyle},
|
||||
Shape, Stroke,
|
||||
},
|
||||
Color32, CtxRef, LayerId,
|
||||
Color32, CtxRef,
|
||||
};
|
||||
|
||||
/// Helper to paint shapes and text to a specific region on a specific layer.
|
||||
|
|
Loading…
Reference in a new issue