mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
Remove id from ViewportBuilder so it can implement Default
This commit is contained in:
@@ -238,6 +238,15 @@ impl From<Arc<ColorImage>> for ImageData {
|
||||
}
|
||||
}
|
||||
|
||||
impl std::fmt::Debug for ColorImage {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
f.debug_struct("ColorImage")
|
||||
.field("size", &self.size)
|
||||
.field("pixel-count", &self.pixels.len())
|
||||
.finish_non_exhaustive()
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
/// A single-channel image designed for the font texture.
|
||||
|
||||
Reference in New Issue
Block a user