mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 21:13:02 +00:00
💄
This commit is contained in:
parent
33ebfc3f10
commit
2055f05b09
1 changed files with 5 additions and 5 deletions
|
@ -26,6 +26,11 @@ pub struct SceneBuilder {
|
||||||
mouse_region_ids: HashSet<MouseRegionId>,
|
mouse_region_ids: HashSet<MouseRegionId>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub struct Scene {
|
||||||
|
scale_factor: f32,
|
||||||
|
stacking_contexts: Vec<StackingContext>,
|
||||||
|
}
|
||||||
|
|
||||||
struct StackingContext {
|
struct StackingContext {
|
||||||
layers: Vec<Layer>,
|
layers: Vec<Layer>,
|
||||||
active_layer_stack: Vec<usize>,
|
active_layer_stack: Vec<usize>,
|
||||||
|
@ -176,11 +181,6 @@ pub struct Image {
|
||||||
pub data: Arc<ImageData>,
|
pub data: Arc<ImageData>,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Scene {
|
|
||||||
scale_factor: f32,
|
|
||||||
stacking_contexts: Vec<StackingContext>,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl Scene {
|
impl Scene {
|
||||||
pub fn scale_factor(&self) -> f32 {
|
pub fn scale_factor(&self) -> f32 {
|
||||||
self.scale_factor
|
self.scale_factor
|
||||||
|
|
Loading…
Reference in a new issue