Fix typos (#4640)
This commit is contained in:
parent
3cdb667cd6
commit
ee3b04ea17
|
|
@ -3,7 +3,7 @@
|
||||||
//! Try the live web demo: <https://www.egui.rs/#demo>. Read more about egui at <https://github.com/emilk/egui>.
|
//! Try the live web demo: <https://www.egui.rs/#demo>. Read more about egui at <https://github.com/emilk/egui>.
|
||||||
//!
|
//!
|
||||||
//! `egui` is in heavy development, with each new version having breaking changes.
|
//! `egui` is in heavy development, with each new version having breaking changes.
|
||||||
//! You need to have rust 1.62.0 or later to use `egui`.
|
//! You need to have rust 1.76.0 or later to use `egui`.
|
||||||
//!
|
//!
|
||||||
//! To quickly get started with egui, you can take a look at [`eframe_template`](https://github.com/emilk/eframe_template)
|
//! To quickly get started with egui, you can take a look at [`eframe_template`](https://github.com/emilk/eframe_template)
|
||||||
//! which uses [`eframe`](https://docs.rs/eframe).
|
//! which uses [`eframe`](https://docs.rs/eframe).
|
||||||
|
|
|
||||||
|
|
@ -401,7 +401,7 @@ pub struct ScrollStyle {
|
||||||
/// When the user hovers the scroll bars they expand to [`Self::bar_width`].
|
/// When the user hovers the scroll bars they expand to [`Self::bar_width`].
|
||||||
pub floating_width: f32,
|
pub floating_width: f32,
|
||||||
|
|
||||||
/// How much space i allocated for a floating scroll bar?
|
/// How much space is allocated for a floating scroll bar?
|
||||||
///
|
///
|
||||||
/// Normally this is zero, but you could set this to something small
|
/// Normally this is zero, but you could set this to something small
|
||||||
/// like 4.0 and set [`Self::dormant_handle_opacity`] and
|
/// like 4.0 and set [`Self::dormant_handle_opacity`] and
|
||||||
|
|
@ -499,7 +499,7 @@ impl ScrollStyle {
|
||||||
active_background_opacity: 1.0,
|
active_background_opacity: 1.0,
|
||||||
active_handle_opacity: 1.0,
|
active_handle_opacity: 1.0,
|
||||||
|
|
||||||
// Be tranlucent when expanded so we can see the content
|
// Be translucent when expanded so we can see the content
|
||||||
interact_background_opacity: 0.6,
|
interact_background_opacity: 0.6,
|
||||||
interact_handle_opacity: 0.6,
|
interact_handle_opacity: 0.6,
|
||||||
|
|
||||||
|
|
@ -652,7 +652,7 @@ pub struct Interaction {
|
||||||
/// Radius of the interactive area of the corner of a window during drag-to-resize.
|
/// Radius of the interactive area of the corner of a window during drag-to-resize.
|
||||||
pub resize_grab_radius_corner: f32,
|
pub resize_grab_radius_corner: f32,
|
||||||
|
|
||||||
/// If `false`, tooltips will show up anytime you hover anything, even is mouse is still moving
|
/// If `false`, tooltips will show up anytime you hover anything, even if mouse is still moving
|
||||||
pub show_tooltips_only_when_still: bool,
|
pub show_tooltips_only_when_still: bool,
|
||||||
|
|
||||||
/// Delay in seconds before showing tooltips after the mouse stops moving
|
/// Delay in seconds before showing tooltips after the mouse stops moving
|
||||||
|
|
@ -2118,7 +2118,7 @@ impl HandleShape {
|
||||||
pub enum NumericColorSpace {
|
pub enum NumericColorSpace {
|
||||||
/// RGB is 0-255 in gamma space.
|
/// RGB is 0-255 in gamma space.
|
||||||
///
|
///
|
||||||
/// Alpha is 0-255 in linear space .
|
/// Alpha is 0-255 in linear space.
|
||||||
GammaByte,
|
GammaByte,
|
||||||
|
|
||||||
/// 0-1 in linear space.
|
/// 0-1 in linear space.
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ impl CursorRange {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// If there is a selection, None is returned.
|
/// If there is a selection, None is returned.
|
||||||
/// If the two ends is the same, that is returned.
|
/// If the two ends are the same, that is returned.
|
||||||
pub fn single(&self) -> Option<Cursor> {
|
pub fn single(&self) -> Option<Cursor> {
|
||||||
if self.is_empty() {
|
if self.is_empty() {
|
||||||
Some(self.primary)
|
Some(self.primary)
|
||||||
|
|
@ -98,7 +98,7 @@ impl CursorRange {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// returns the two ends ordered
|
/// Returns the two ends ordered.
|
||||||
pub fn sorted_cursors(&self) -> [Cursor; 2] {
|
pub fn sorted_cursors(&self) -> [Cursor; 2] {
|
||||||
if self.is_sorted() {
|
if self.is_sorted() {
|
||||||
[self.primary, self.secondary]
|
[self.primary, self.secondary]
|
||||||
|
|
|
||||||
|
|
@ -226,7 +226,7 @@ fn label_ui(ui: &mut egui::Ui) {
|
||||||
|
|
||||||
ui.add(
|
ui.add(
|
||||||
egui::Label::new(
|
egui::Label::new(
|
||||||
"Labels containing long text can be set to elide the text that doesn't fit on a single line using `Label::elide`. When hovered, the label will show the full text.",
|
"Labels containing long text can be set to elide the text that doesn't fit on a single line using `Label::truncate`. When hovered, the label will show the full text.",
|
||||||
)
|
)
|
||||||
.truncate(),
|
.truncate(),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ impl super::View for Tooltips {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
let disabled_tooltip_ui = |ui: &mut egui::Ui| {
|
let disabled_tooltip_ui = |ui: &mut egui::Ui| {
|
||||||
ui.label("A fifferent tooltip when widget is disabled.");
|
ui.label("A different tooltip when widget is disabled.");
|
||||||
ui.horizontal(|ui| {
|
ui.horizontal(|ui| {
|
||||||
ui.label("This tooltip was created with");
|
ui.label("This tooltip was created with");
|
||||||
ui.code(".on_disabled_hover_ui(…)");
|
ui.code(".on_disabled_hover_ui(…)");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue