Split out new crate egui-winit from egui_glium (#735)

This commit is contained in:
Emil Ernerfeldt
2021-09-28 17:33:28 +02:00
committed by GitHub
parent ba0e3780a1
commit 1b36863248
27 changed files with 1003 additions and 616 deletions
+2 -1
View File
@@ -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"]
+2 -2
View File
@@ -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,