mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Misc cleanup (#3381)
* Give credit to recent big-time contributors in the main README.md * Better named profiling scopes * Document everything in memory.rs * Better doc-strings * Add a section about dependencies to the main README.md * Improve egui_extras docs * fix typos
This commit is contained in:
@@ -13,6 +13,10 @@ use crate::*;
|
||||
/// of `min` and `max` are swapped. These are usually a sign of an error.
|
||||
///
|
||||
/// Normally the unit is points (logical pixels) in screen space coordinates.
|
||||
///
|
||||
/// `Rect` does NOT implement `Default`, because there is no obvious default value.
|
||||
/// [`Rect::ZERO`] may seem reasonable, but when used as a bounding box, [`Rect::NOTHING`]
|
||||
/// is a better default - so be explicit instead!
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Eq, PartialEq)]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
|
||||
|
||||
Reference in New Issue
Block a user