Split out new crate egui-winit from egui_glium (#735)
This commit is contained in:
+2
-1
@@ -47,7 +47,8 @@ cint = ["epaint/cint"]
|
||||
|
||||
persistence = ["serde", "epaint/persistence", "ron"]
|
||||
|
||||
# multi_threaded is only needed if you plan to use the same egui::Context from multiple threads.
|
||||
# multi_threaded is only needed if you plan to use the same egui::Context
|
||||
# from multiple threads. It comes with a minor performance impact.
|
||||
single_threaded = ["epaint/single_threaded"]
|
||||
multi_threaded = ["epaint/multi_threaded"]
|
||||
|
||||
|
||||
@@ -134,7 +134,7 @@ impl RawInput {
|
||||
#[derive(Clone, Debug, Default, PartialEq)]
|
||||
#[cfg_attr(feature = "persistence", derive(serde::Deserialize, serde::Serialize))]
|
||||
pub struct HoveredFile {
|
||||
/// Set by the `egui_glium` backend.
|
||||
/// Set by the `egui-winit` backend.
|
||||
pub path: Option<std::path::PathBuf>,
|
||||
/// With the `egui_web` backend, this is set to the mime-type of the file (if available).
|
||||
pub mime: String,
|
||||
@@ -144,7 +144,7 @@ pub struct HoveredFile {
|
||||
#[derive(Clone, Debug, Default, PartialEq)]
|
||||
#[cfg_attr(feature = "persistence", derive(serde::Deserialize, serde::Serialize))]
|
||||
pub struct DroppedFile {
|
||||
/// Set by the `egui_glium` backend.
|
||||
/// Set by the `egui-winit` backend.
|
||||
pub path: Option<std::path::PathBuf>,
|
||||
/// Name of the file. Set by the `egui_web` backend.
|
||||
pub name: String,
|
||||
|
||||
Reference in New Issue
Block a user