Fixed typos: wether -> whether (#1210)
Co-authored-by: mir <mir@wisdomtag.com>
This commit is contained in:
parent
9ed96155e9
commit
7d41551913
6 changed files with 10 additions and 10 deletions
|
@ -371,7 +371,7 @@ NOTE: [`epaint`](epaint/CHANGELOG.md), [`eframe`](eframe/CHANGELOG.md), [`egui_w
|
||||||
### Changed 🔧
|
### Changed 🔧
|
||||||
* Text will now wrap at newlines, spaces, dashes, punctuation or in the middle of a words if necessary, in that order of priority.
|
* Text will now wrap at newlines, spaces, dashes, punctuation or in the middle of a words if necessary, in that order of priority.
|
||||||
* Widgets will now always line break at `\n` characters.
|
* Widgets will now always line break at `\n` characters.
|
||||||
* Widgets will now more intelligently choose wether or not to wrap text.
|
* Widgets will now more intelligently choose whether or not to wrap text.
|
||||||
* `mouse` has been renamed `pointer` everywhere (to make it clear it includes touches too).
|
* `mouse` has been renamed `pointer` everywhere (to make it clear it includes touches too).
|
||||||
* Most parts of `Response` are now methods, so `if ui.button("…").clicked {` is now `if ui.button("…").clicked() {`.
|
* Most parts of `Response` are now methods, so `if ui.button("…").clicked {` is now `if ui.button("…").clicked() {`.
|
||||||
* `Response::active` is now gone. You can use `response.dragged()` or `response.clicked()` instead.
|
* `Response::active` is now gone. You can use `response.dragged()` or `response.clicked()` instead.
|
||||||
|
|
|
@ -900,12 +900,12 @@ impl Context {
|
||||||
|
|
||||||
// ---------------------------------------------------------------------
|
// ---------------------------------------------------------------------
|
||||||
|
|
||||||
/// Wether or not to debug widget layout on hover.
|
/// Whether or not to debug widget layout on hover.
|
||||||
pub fn debug_on_hover(&self) -> bool {
|
pub fn debug_on_hover(&self) -> bool {
|
||||||
self.options().style.debug.debug_on_hover
|
self.options().style.debug.debug_on_hover
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Turn on/off wether or not to debug widget layout on hover.
|
/// Turn on/off whether or not to debug widget layout on hover.
|
||||||
pub fn set_debug_on_hover(&self, debug_on_hover: bool) {
|
pub fn set_debug_on_hover(&self, debug_on_hover: bool) {
|
||||||
let mut style = (*self.options().style).clone();
|
let mut style = (*self.options().style).clone();
|
||||||
style.debug.debug_on_hover = debug_on_hover;
|
style.debug.debug_on_hover = debug_on_hover;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
/// moved outside the slider.
|
/// moved outside the slider.
|
||||||
///
|
///
|
||||||
/// For some widgets `Id`s are also used to persist some state about the
|
/// For some widgets `Id`s are also used to persist some state about the
|
||||||
/// widgets, such as Window position or wether not a collapsing header region is open.
|
/// widgets, such as Window position or whether not a collapsing header region is open.
|
||||||
///
|
///
|
||||||
/// This implies that the `Id`s must be unique.
|
/// This implies that the `Id`s must be unique.
|
||||||
///
|
///
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
///
|
///
|
||||||
/// For things that need to persist state even after moving (windows, collapsing headers)
|
/// For things that need to persist state even after moving (windows, collapsing headers)
|
||||||
/// the location of the widgets is obviously not good enough. For instance,
|
/// the location of the widgets is obviously not good enough. For instance,
|
||||||
/// a collapsing region needs to remember wether or not it is open even
|
/// a collapsing region needs to remember whether or not it is open even
|
||||||
/// if the layout next frame is different and the collapsing is not lower down
|
/// if the layout next frame is different and the collapsing is not lower down
|
||||||
/// on the screen.
|
/// on the screen.
|
||||||
///
|
///
|
||||||
|
|
|
@ -315,10 +315,10 @@ pub struct Visuals {
|
||||||
///
|
///
|
||||||
/// If `text_color` is `None` (default), then the text color will be the same as the
|
/// If `text_color` is `None` (default), then the text color will be the same as the
|
||||||
/// foreground stroke color (`WidgetVisuals::fg_stroke`)
|
/// foreground stroke color (`WidgetVisuals::fg_stroke`)
|
||||||
/// and will depend on wether or not the widget is being interacted with.
|
/// and will depend on whether or not the widget is being interacted with.
|
||||||
///
|
///
|
||||||
/// In the future we may instead modulate
|
/// In the future we may instead modulate
|
||||||
/// the `text_color` based on wether or not it is interacted with
|
/// the `text_color` based on whether or not it is interacted with
|
||||||
/// so that `visuals.text_color` is always used,
|
/// so that `visuals.text_color` is always used,
|
||||||
/// but its alpha may be different based on whether or not
|
/// but its alpha may be different based on whether or not
|
||||||
/// it is disabled, non-interactive, hovered etc.
|
/// it is disabled, non-interactive, hovered etc.
|
||||||
|
|
|
@ -52,7 +52,7 @@ impl super::View for IdTest {
|
||||||
|
|
||||||
ui.label("\
|
ui.label("\
|
||||||
Widgets that store state require unique and persisting identifiers so we can track their state between frames.\n\
|
Widgets that store state require unique and persisting identifiers so we can track their state between frames.\n\
|
||||||
For instance, collapsable headers needs to store wether or not they are open. \
|
For instance, collapsable headers needs to store whether or not they are open. \
|
||||||
Their Id:s are derived from their names. \
|
Their Id:s are derived from their names. \
|
||||||
If you fail to give them unique names then clicking one will open both. \
|
If you fail to give them unique names then clicking one will open both. \
|
||||||
To help you debug this, an error message is printed on screen:");
|
To help you debug this, an error message is printed on screen:");
|
||||||
|
|
|
@ -181,13 +181,13 @@ pub trait App {
|
||||||
egui::Color32::from_rgba_unmultiplied(12, 12, 12, 180).into()
|
egui::Color32::from_rgba_unmultiplied(12, 12, 12, 180).into()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Controls wether or not the native window position and size will be
|
/// Controls whether or not the native window position and size will be
|
||||||
/// persisted (only if the "persistence" feature is enabled).
|
/// persisted (only if the "persistence" feature is enabled).
|
||||||
fn persist_native_window(&self) -> bool {
|
fn persist_native_window(&self) -> bool {
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Controls wether or not the egui memory (window positions etc) will be
|
/// Controls whether or not the egui memory (window positions etc) will be
|
||||||
/// persisted (only if the "persistence" feature is enabled).
|
/// persisted (only if the "persistence" feature is enabled).
|
||||||
fn persist_egui_memory(&self) -> bool {
|
fn persist_egui_memory(&self) -> bool {
|
||||||
true
|
true
|
||||||
|
|
Loading…
Reference in a new issue