mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -04:00
Replace every ... with … like some sort of crazy person
Also fix some small typos Closes https://github.com/emilk/egui/pull/736
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
//!
|
||||
//! Second, count and reset all instances of a type in [`serializable::IdAnyMap`] could return an incorrect value for the same reason.
|
||||
//!
|
||||
//! Deserialization errors of loaded elements of these storages can be determined only when you call `get_...` functions, they not logged and not provided to a user, on this errors value is just replaced with `or_insert()`/default value.
|
||||
//! Deserialization errors of loaded elements of these storages can be determined only when you call `get_…` functions, they not logged and not provided to a user, on this errors value is just replaced with `or_insert()`/default value.
|
||||
//!
|
||||
//! # When not to use this
|
||||
//!
|
||||
|
||||
@@ -79,14 +79,14 @@ impl<'open> Window<'open> {
|
||||
self
|
||||
}
|
||||
|
||||
/// Usage: `Window::new(...).mutate(|w| w.resize = w.resize.auto_expand_width(true))`
|
||||
/// Usage: `Window::new(…).mutate(|w| w.resize = w.resize.auto_expand_width(true))`
|
||||
/// Not sure this is a good interface for this.
|
||||
pub fn mutate(mut self, mutate: impl Fn(&mut Self)) -> Self {
|
||||
mutate(&mut self);
|
||||
self
|
||||
}
|
||||
|
||||
/// Usage: `Window::new(...).resize(|r| r.auto_expand_width(true))`
|
||||
/// Usage: `Window::new(…).resize(|r| r.auto_expand_width(true))`
|
||||
/// Not sure this is a good interface for this.
|
||||
pub fn resize(mut self, mutate: impl Fn(Resize) -> Resize) -> Self {
|
||||
self.resize = mutate(self.resize);
|
||||
|
||||
@@ -389,7 +389,7 @@ impl RawInput {
|
||||
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
|
||||
pub struct TouchDeviceId(pub u64);
|
||||
|
||||
/// Unique identification of a touch occurrence (finger or pen or ...).
|
||||
/// Unique identification of a touch occurrence (finger or pen or …).
|
||||
/// A Touch ID is valid until the finger is lifted.
|
||||
/// A new ID is used for the next touch.
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, PartialOrd, Ord)]
|
||||
@@ -403,7 +403,7 @@ pub enum TouchPhase {
|
||||
/// User just placed a touch point on the touch surface
|
||||
Start,
|
||||
/// User moves a touch point along the surface. This event is also sent when
|
||||
/// any attributes (position, force, ...) of the touch point change.
|
||||
/// any attributes (position, force, …) of the touch point change.
|
||||
Move,
|
||||
/// User lifted the finger or pen from the surface, or slid off the edge of
|
||||
/// the surface
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
//! menu::bar(ui, |ui| {
|
||||
//! menu::menu(ui, "File", |ui| {
|
||||
//! if ui.button("Open").clicked() {
|
||||
//! // ...
|
||||
//! // …
|
||||
//! }
|
||||
//! });
|
||||
//! });
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
|
||||
// #[cfg_attr(feature = "serde", derive(serde::Serialize))]
|
||||
pub struct Sense {
|
||||
/// buttons, sliders, windows ...
|
||||
/// buttons, sliders, windows, …
|
||||
pub click: bool,
|
||||
|
||||
/// sliders, windows, scroll bars, scroll areas ...
|
||||
/// sliders, windows, scroll bars, scroll areas, …
|
||||
pub drag: bool,
|
||||
|
||||
/// this widgets want focus.
|
||||
|
||||
@@ -326,7 +326,7 @@ pub struct WidgetVisuals {
|
||||
/// Button frames etc.
|
||||
pub corner_radius: f32,
|
||||
|
||||
/// Stroke and text color of the interactive part of a component (button text, slider grab, check-mark, ...).
|
||||
/// Stroke and text color of the interactive part of a component (button text, slider grab, check-mark, …).
|
||||
pub fg_stroke: Stroke,
|
||||
|
||||
/// Make the frame this much larger.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
//!
|
||||
//! Example widget uses:
|
||||
//! * `ui.add(Label::new("Text").text_color(color::red));`
|
||||
//! * `if ui.add(Button::new("Click me")).clicked() { ... }`
|
||||
//! * `if ui.add(Button::new("Click me")).clicked() { … }`
|
||||
|
||||
use crate::*;
|
||||
|
||||
|
||||
@@ -391,7 +391,7 @@ impl<'t> TextEdit<'t> {
|
||||
}
|
||||
|
||||
/// Set to 0.0 to keep as small as possible.
|
||||
/// Set to [`f32::INFINITY`] to take up all available space.
|
||||
/// Set to [`f32::INFINITY`] to take up all available space (i.e. disable automatic word wrap).
|
||||
pub fn desired_width(mut self, desired_width: f32) -> Self {
|
||||
self.desired_width = Some(desired_width);
|
||||
self
|
||||
|
||||
Reference in New Issue
Block a user