Make gpui::platform module private
This commit is contained in:
+2
-2
@@ -21,8 +21,8 @@ pub use executor::Task;
|
|||||||
pub mod color;
|
pub mod color;
|
||||||
pub mod json;
|
pub mod json;
|
||||||
pub mod keymap;
|
pub mod keymap;
|
||||||
pub mod platform;
|
mod platform;
|
||||||
pub use platform::Event;
|
pub use platform::{Event, PathPromptOptions};
|
||||||
pub use presenter::{
|
pub use presenter::{
|
||||||
AfterLayoutContext, Axis, DebugContext, EventContext, LayoutContext, PaintContext,
|
AfterLayoutContext, Axis, DebugContext, EventContext, LayoutContext, PaintContext,
|
||||||
SizeConstraint, Vector2FExt,
|
SizeConstraint, Vector2FExt,
|
||||||
|
|||||||
@@ -17,8 +17,6 @@ pub struct Window {
|
|||||||
resize_handlers: Vec<Box<dyn FnMut(&mut dyn super::WindowContext)>>,
|
resize_handlers: Vec<Box<dyn FnMut(&mut dyn super::WindowContext)>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct WindowContext {}
|
|
||||||
|
|
||||||
impl Platform {
|
impl Platform {
|
||||||
fn new() -> Self {
|
fn new() -> Self {
|
||||||
Self {
|
Self {
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
use fs::OpenOptions;
|
use fs::OpenOptions;
|
||||||
use gpui::platform::PathPromptOptions;
|
use gpui::PathPromptOptions;
|
||||||
use log::LevelFilter;
|
use log::LevelFilter;
|
||||||
use simplelog::SimpleLogger;
|
use simplelog::SimpleLogger;
|
||||||
use std::{fs, path::PathBuf};
|
use std::{fs, path::PathBuf};
|
||||||
|
|||||||
Reference in New Issue
Block a user