Add emath::OrderedFloat (moved from epaint::util::OrderedFloat) (#4389)
It makes much more sense in `emath`
This commit is contained in:
@@ -81,6 +81,7 @@ unity = ["epaint/unity"]
|
||||
|
||||
|
||||
[dependencies]
|
||||
emath = { workspace = true, default-features = false }
|
||||
epaint = { workspace = true, default-features = false }
|
||||
|
||||
ahash.workspace = true
|
||||
|
||||
+9
-11
@@ -55,23 +55,21 @@
|
||||
mod bytes_loader;
|
||||
mod texture_loader;
|
||||
|
||||
use std::borrow::Cow;
|
||||
use std::fmt::Debug;
|
||||
use std::ops::Deref;
|
||||
use std::{fmt::Display, sync::Arc};
|
||||
use std::{
|
||||
borrow::Cow,
|
||||
fmt::{Debug, Display},
|
||||
ops::Deref,
|
||||
sync::Arc,
|
||||
};
|
||||
|
||||
use ahash::HashMap;
|
||||
|
||||
use epaint::mutex::Mutex;
|
||||
use epaint::util::FloatOrd;
|
||||
use epaint::util::OrderedFloat;
|
||||
use epaint::TextureHandle;
|
||||
use epaint::{textures::TextureOptions, ColorImage, TextureId, Vec2};
|
||||
use emath::{Float, OrderedFloat};
|
||||
use epaint::{mutex::Mutex, textures::TextureOptions, ColorImage, TextureHandle, TextureId, Vec2};
|
||||
|
||||
use crate::Context;
|
||||
|
||||
pub use self::bytes_loader::DefaultBytesLoader;
|
||||
pub use self::texture_loader::DefaultTextureLoader;
|
||||
pub use self::{bytes_loader::DefaultBytesLoader, texture_loader::DefaultTextureLoader};
|
||||
|
||||
/// Represents a failed attempt at loading an image.
|
||||
#[derive(Clone, Debug)]
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
use std::borrow::Cow;
|
||||
|
||||
use crate::load::TextureLoadResult;
|
||||
use emath::{Float as _, Rot2};
|
||||
use epaint::RectShape;
|
||||
|
||||
use crate::{
|
||||
load::{Bytes, SizeHint, SizedTexture, TexturePoll},
|
||||
load::{Bytes, SizeHint, SizedTexture, TextureLoadResult, TexturePoll},
|
||||
*,
|
||||
};
|
||||
use emath::Rot2;
|
||||
use epaint::{util::FloatOrd, RectShape};
|
||||
|
||||
/// A widget which displays an image.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user